/* ================================================================
   NIFLON — Bootstrap 4 BOLD IMPACT Design
   カラー: ネイビー #1c2b4b / シルバーグレー #8c9bab / オフホワイト #f6f7f9
   ================================================================ */

/* ----------------------------------------------------------------
   CSS Custom Properties
   ---------------------------------------------------------------- */
:root {
  --navy:        #1c2b4b;
  --navy-dark:   #111d35;
  --navy-light:  #2a3f6e;
  --silver:      #8c9bab;
  --silver-light:#b0bbc5;
  --silver-dark: #6b7d8e;
  --white:       #ffffff;
  --off-white:   #f6f7f9;
  --light-gray:  #eaecf0;
  --mid-gray:    #888;
  --text:        #222222;
  --text-sub:    #555555;
  --radius:      4px;
  --transition:  0.3s ease;
  --shadow:      0 4px 24px rgba(28,43,75,0.10);
  --shadow-lg:   0 8px 40px rgba(28,43,75,0.16);
  --font-jp: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
             "游ゴシック体", YuGothic, "Yu Gothic M",
             "游ゴシック Medium", "Yu Gothic Medium",
             "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN W3",
             HiraKakuProN-W3, "メイリオ", Meiryo, sans-serif;
}

/* ----------------------------------------------------------------
   Global Reset
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--silver); text-decoration: none; }

/* ----------------------------------------------------------------
   Typography Utilities
   ---------------------------------------------------------------- */
.text-navy   { color: var(--navy) !important; }
.text-silver { color: var(--silver) !important; }
.bg-navy     { background-color: var(--navy) !important; }
.bg-navy-dark{ background-color: var(--navy-dark) !important; }
.bg-off-white{ background-color: var(--off-white) !important; }
.bg-silver   { background-color: var(--silver) !important; }

/* ----------------------------------------------------------------
   Section Labels
   ---------------------------------------------------------------- */
.en-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 8px;
}

/* ----------------------------------------------------------------
   Section Heading (共通)
   ---------------------------------------------------------------- */
.section-heading { margin-bottom: 48px; }
.section-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: bold;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
	letter-spacing: 0.05em;
}
.section-heading p {
  color: var(--text-sub);
  font-size: 1.00rem;
  margin: 0 auto;
}
.section-heading.text-left p { margin: 0; }

.silver-bar {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--silver);
  margin: 12px auto 20px;
  border-radius: 2px;
}
.silver-bar.bar-left { margin: 12px 0 20px; }

/* ----------------------------------------------------------------
   番号付きセクションタイトル (.numbered-title)
   ---------------------------------------------------------------- */
.numbered-title {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--light-gray);
}
.numbered-title .num {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--light-gray);
  line-height: 1;
  letter-spacing: -2px;
  flex-shrink: 0;
}
.numbered-title h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 900;
  color: var(--navy);
  margin: 0;
  line-height: 1.25;
}
.numbered-title h2 .en {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--silver);
  margin-top: 4px;
}

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.btn-niflon {
  display: inline-block;
  padding: 12px 32px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn-niflon-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-niflon-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: #fff;
}
.btn-niflon-silver {
  background: var(--silver);
  color: #fff;
  border-color: var(--silver);
}
.btn-niflon-silver:hover {
  background: var(--silver-dark);
  border-color: var(--silver-dark);
  color: #fff;
}
.btn-niflon-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-niflon-outline:hover {
  background: var(--navy);
  color: #fff;
}
.btn-niflon-outline-silver {
  background: transparent;
  color: var(--silver);
  border-color: var(--silver);
}
.btn-niflon-outline-silver:hover {
  background: var(--silver);
  color: #fff;
}

/* ----------------------------------------------------------------
   Navbar — Bootstrap 4 上書き
   レイアウト: [ロゴ]  [右寄せメニュー (ml-auto)]  [CONTACT画像ボタン]
   ---------------------------------------------------------------- */
.niflon-navbar {
  background: var(--white);
  border-bottom: 0px solid var(--silver);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 16px rgba(28,43,75,0.08);
  min-height: 72px;
}
.niflon-navbar .container-fluid {
  min-height: 72px;
  align-items: stretch;
  padding-right: 0 !important;  /* contactボタンを右端まで伸ばす */
}

/* ロゴ */
.niflon-navbar .navbar-brand {
  padding: 0;
  margin-right: 35px;
  display: flex;
  align-items: center;
}
.niflon-navbar .navbar-brand img {
  height: 60px;
  width: auto;
  /* logo.png をそのまま表示 — CSS filter なし (navy filter 不要) */
  transition: opacity var(--transition);
}
.niflon-navbar .navbar-brand:hover img { opacity: 0.8; }

/* ナビゲーションリンク (左寄せ) */
.niflon-navbar .navbar-nav { align-items: stretch; }
.niflon-navbar .nav-item { display: flex; align-items: stretch; }
.niflon-navbar .nav-link {
  font-size: 1.00rem;
  font-weight: 700;
  color: var(--navy) !important;
  padding: 0 16px !important;
  letter-spacing: 0.04em;
  position: relative;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: color var(--transition);
}
.niflon-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--silver);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.niflon-navbar .nav-link:hover,
.niflon-navbar .nav-item.active .nav-link {
  color: var(--silver-dark) !important;
}
.niflon-navbar .nav-link:hover::after,
.niflon-navbar .nav-item.active .nav-link::after {
  transform: scaleX(1);
}

/* CONTACTボタン (PC のみ — 添付2.jpg 画像ボタン) */
.navbar-contact-btn {
  display: inline-flex;
  align-items: stretch;
  padding: 0;
  margin-left: 0;
  border: none;
  outline: none;
  text-decoration: none;
  overflow: hidden;
  align-self: stretch;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.navbar-contact-btn .contact-btn-img {
  display: block;
  height: 80px;
  width: auto;
  object-fit: cover;
  object-position: center;
}
.navbar-contact-btn:hover {
  opacity: 0.88;
  filter: brightness(1.08);
  text-decoration: none;
}

/* ハンバーガーボタン (モバイル — Bootstrap native, 1つのみ) */
.niflon-navbar .navbar-toggler {
  border: 1px solid var(--navy);
  border-radius: 3px;
  padding: 5px 5px;
  margin-left: auto;
}
.niflon-navbar .navbar-toggler:focus { outline: none; box-shadow: none; }
.niflon-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%231c2b4b' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 22px;
  height: 22px;
}

/* ============================================================
   モバイルメニュー (max-width: 991px)
   ============================================================ */
@media (max-width: 991px) {
  .niflon-navbar { min-height: 60px; }
  .niflon-navbar .container-fluid { min-height: 60px; padding-right: 12px !important; }
  .niflon-navbar .navbar-brand img { height: 36px; }

  /* ドロップダウンメニュー背景 */
  .niflon-navbar .navbar-collapse {
    background: var(--navy);
    border-top: 3px solid var(--silver);
    margin: 0 -12px;
    padding: 8px 12px 16px;
  }
  .niflon-navbar .navbar-nav { flex-direction: column; }
  .niflon-navbar .nav-item { display: block; }
  .niflon-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    padding: 12px 8px !important;
    font-size: 0.90rem;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    display: block;
  }
  .niflon-navbar .nav-link::after { display: none; }
  .niflon-navbar .nav-link:hover { color: #fff !important; background: rgba(255,255,255,0.07); }

  /* モバイル お問い合わせリンク */
  .nav-link-contact-mobile {
    color: var(--silver-light) !important;
    font-weight: 700;
    border-bottom: none !important;
  }
  .nav-link-contact-mobile:hover { color: #fff !important; }
}

/* ----------------------------------------------------------------
   Page Banner
   ---------------------------------------------------------------- */
.page-banner {
  position: relative;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  padding: 80px 0 64px;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,29,53,0.82) 0%, rgba(28,43,75,0.65) 100%);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner-title {
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  font-weight: bold;
  color: #fff;
  margin: 0;
  letter-spacing: 0.04em;
}

/* ----------------------------------------------------------------
   Breadcrumb
   ---------------------------------------------------------------- */
.breadcrumb {
  background: transparent;
  padding: 16px 0 8px;
  margin: 0;
  font-size: 0.82rem;
}
.breadcrumb-item + .breadcrumb-item::before { color: var(--silver); }
.breadcrumb-item a { color: var(--silver); }
.breadcrumb-item.active { color: var(--mid-gray); }

/* ----------------------------------------------------------------
   Hero Slider
   ---------------------------------------------------------------- */
.hero-slider { position: relative; overflow: hidden; }
.hero-slider .swiper-container { height: 80vh; min-height: 480px; max-height: 800px; }
.hero-slider .swiper-slide {
  position: relative;
  overflow: hidden;
}
.hero-slider .swiper-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-text {
  position: absolute;
  inset: 0;
  /* テキスト背景：左側に薄いネイビーのグラデーションをかけて視認性を向上 */
 
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  color: #003f8e;
}
.hero-en {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #003f8e;
  margin-bottom: 16px;
  display: block;
 
}
.hero-text h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: bold;
  line-height: 1.35;
  color: #003f8e;
  margin-bottom: 20px;

}
.hero-text .hero-sub {
  font-size: clamp(0.82rem, 1.5vw, 0.98rem);
  color: #333;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 650px;
  font-weight: bold;
 
}
.swiper-pagination-bullet { background: rgba(255,255,255,0.6); opacity: 1; }
.swiper-pagination-bullet-active { background: var(--silver-light); }
.swiper-button-prev, .swiper-button-next { color: #fff; }

/* ----------------------------------------------------------------
   Hero Slider — スマホ対応 (max-width: 767px)
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .hero-slider .swiper-container {
    height: 40vh;
    min-height: 260px;
    max-height: 480px;
  }
  .hero-text {
    padding: 0 5%;
  }
  .hero-en {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    margin-bottom: 10px;
  }
  .hero-text h1 {
    font-size: clamp(1.05rem, 5vw, 1.5rem);
    margin-bottom: 12px;
  }
  .hero-text .hero-sub {
    font-size: clamp(0.70rem, 2.8vw, 0.82rem);
    margin-bottom: 18px;
  }
}

/* ----------------------------------------------------------------
   Stats Bar
   ---------------------------------------------------------------- */
.stats-bar {
  background: var(--navy);
  padding: 32px 0;
}
.stats-bar .row { align-items: center; }
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--silver-light);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  text-align: center;
  letter-spacing: 0.04em;
}
@media (max-width: 575px) {
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:last-child { border-bottom: none; }
}

/* ----------------------------------------------------------------
   About Split
   ---------------------------------------------------------------- */
.about-split-section {
  overflow: hidden;
  /* モニタサイズが変わっても常に固定高さを維持 */
  height: 600px;
}
.about-split-section .row.no-gutters {
  height: 100%;
}
.about-split-section .col-md-6 {
  height: 100%;
}
.about-left-col {
  background: var(--navy);
  padding: 48px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
}
.about-right-col {
  padding: 0;
  height: 100%;
}
.about-right-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 767px) {
  /* スマホは自動高さ（縦積みのため固定不要） */
  .about-split-section { height: auto; }
  .about-split-section .col-md-6 { height: auto; }
  .about-left-col {
    padding: 48px 24px;
    height: auto;
    overflow-y: visible;
  }
  .about-right-col { height: auto; }
  .about-right-col img { min-height: 260px; height: 260px; }
}

/* ----------------------------------------------------------------
   Service Cards
   ---------------------------------------------------------------- */
.service-card-custom {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 28px;
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
  border-top: 4px solid var(--silver);
}
.service-card-custom:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--light-gray);
  line-height: 1;
  margin-bottom: 12px;
}
.service-card-custom h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-card-custom p {
  font-size: 1.00rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin: 0;
}

/* ----------------------------------------------------------------
   Product Strip (Top page)
   ---------------------------------------------------------------- */
.product-strip-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
}
.product-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-strip-item:hover img { transform: scale(1.06); }
.strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,29,53,0.75) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: background var(--transition);
}
.product-strip-item:hover .strip-overlay {
  background: linear-gradient(to top, rgba(140,155,171,0.82) 0%, transparent 55%);
}
.strip-label {
  font-size: 1.00rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

/* ----------------------------------------------------------------
   CTA Banner
   ---------------------------------------------------------------- */
.cta-banner {
  background: var(--navy-dark);
  padding: 72px 0;
  text-align: center;
  position: relative;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--silver);
}
.cta-banner h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}
.cta-banner p {
  font-size: 1.00rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.niflon-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
}
.footer-inner { padding: 72px 0 48px; }

.footer-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.footer-company { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-address { font-size: 0.8rem; line-height: 1.8; color: rgba(255,255,255,0.6); }
.footer-contact-link {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 24px;
  font-size: 1.00rem;
  font-weight: 700;
  color: #fff;
  border: 1.5px solid var(--silver);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.footer-contact-link:hover {
  background: var(--silver);
  color: #fff;
  border-color: var(--silver);
}

.footer-nav-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-light);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.footer-nav-list { list-style: none; padding: 0; margin: 0; }
.footer-nav-list li { margin-bottom: 10px; }
.footer-nav-list a {
  font-size: 1.00rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-nav-list a:hover { color: var(--silver-light); }

.footer-access-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-light);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.footer-access-text { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.footer-map iframe { border-radius: var(--radius); border: 0; }

.footer-bottom {
  background: var(--navy);
  padding: 16px 0;
  text-align: center;
}
.footer-bottom .copyright {
  font-size: 0.85rem;
  color: #fff;
  margin: 0;
}

/* Page Top */
#pagetop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: none;
}
#pagetop a {
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.00rem;
  box-shadow: var(--shadow);
  transition: background var(--transition);
}
#pagetop a:hover { background: var(--silver); }

/* ----------------------------------------------------------------
   Table (会社概要・採用情報等)
   ---------------------------------------------------------------- */
.niflon-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.0rem;
}
.niflon-table th,
.niflon-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--light-gray);
  vertical-align: top;
  line-height: 1.75;
}
.niflon-table th {
  width: 30%;
  background: var(--off-white);
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.niflon-table tr:last-child th,
.niflon-table tr:last-child td { border-bottom: none; }
@media (max-width: 575px) {
  .niflon-table th { display: block; width: 100%; border-bottom: none; padding-bottom: 6px; }
  .niflon-table td { display: block; width: 100%; padding-top: 0; }
  .niflon-table tr { display: block; border-bottom: 1px solid var(--light-gray); margin-bottom: 0; }
}

/* ----------------------------------------------------------------
   President Message
   ---------------------------------------------------------------- */
.president-box {
  background: var(--off-white);
  border-left: 5px solid var(--silver);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 36px 40px;
  font-size: 0.93rem;
  line-height: 2;
  color: var(--text-sub);
}
.president-lead {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.6;
}
.president-sig {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--light-gray);
  text-align: right;
}
.president-sig p { margin: 0; font-size: 1.00rem; color: var(--mid-gray); }
.president-sig .sig-name { font-weight: 700; color: var(--navy); font-size: 0.95rem; }

/* ----------------------------------------------------------------
   History Table
   ---------------------------------------------------------------- */
.history-table th { width: 20%; color: var(--silver); font-weight: 700; }

/* ----------------------------------------------------------------
   Strength Card (事業内容)
   ---------------------------------------------------------------- */
.strength-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
  border-left: 4px solid var(--silver);
}
.strength-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.strength-card p { font-size: 0.85rem; color: var(--text-sub); margin: 0; line-height: 1.8; }

/* ----------------------------------------------------------------
   Product Page
   ---------------------------------------------------------------- */
.product-nav-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-nav-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.product-nav-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.nav-card-label {
  display: block;
  padding: 10px 8px;
  font-size: 1.00rem;
  font-weight: 700;
  color: var(--navy);
}
.product-nav-card:hover .nav-card-label { color: var(--silver); }

/* Grade Cards */
.grade-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
}
.grade-header {
  padding: 24px 20px;
  text-align: center;
  color: #fff;
}
.grade-header h3 { font-size: 1rem; font-weight: 700; margin: 10px 0 4px; }
.grade-header .grade-sub { font-size: 0.75rem; opacity: 0.85; }
.grade-icon { font-size: 1.8rem; line-height: 1; }
.grade-high    { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); }
.grade-cost    { background: linear-gradient(135deg, var(--silver-dark) 0%, var(--silver) 100%); }
.grade-sustain { background: linear-gradient(135deg, #2d7a5c 0%, #3fa877 100%); }
.grade-body {
  padding: 20px;
  font-size: 1.00rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* Product Area Sections */
.product-section-num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.0rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-right: 16px;
}
.product-section-title {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--light-gray);
}
.product-section-title h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 900;
  color: var(--navy);
  margin: 0;
}
.product-section-title h3 .en {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--silver);
  letter-spacing: 0.12em;
  margin-left: 12px;
}

.product-item-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  height: 100%;
  border-top: 3px solid var(--navy);
  transition: box-shadow var(--transition);
}
.product-item-card:hover { box-shadow: var(--shadow-lg); }
.item-title {
  font-size: 1.00rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.item-desc {
  font-size: 1.00rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 12px;
}
.item-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.item-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--off-white);
  color: var(--silver-dark);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid var(--light-gray);
}

.material-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 3px;
  margin: 2px;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.00rem;
}
.product-table th {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  text-align: left;
  border: none;
}
.product-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--light-gray);
  vertical-align: top;
  line-height: 1.75;
}
.product-table td strong { color: var(--navy); }
.product-table tbody tr:nth-child(odd) td { background: var(--off-white); }
.product-table tbody tr:hover td { background: rgba(140,155,171,0.08); }

.machined-note {
  background: rgba(28,43,75,0.04);
  border-left: 4px solid var(--silver);
  padding: 16px 20px;
  font-size: 1.00rem;
  color: var(--text-sub);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 8px;
}

.product-cta {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: #fff;
}
.product-cta p {
  font-size: 1.00rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

/* ----------------------------------------------------------------
   Form (お問い合わせ)
   ---------------------------------------------------------------- */
.niflon-form .form-control {
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  font-size: 1.0rem;
  padding: 10px 14px;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.niflon-form .form-control:focus {
  border-color: var(--silver);
  box-shadow: 0 0 0 3px rgba(140,155,171,0.2);
  outline: none;
}
.niflon-form .col-form-label {
  font-weight: 700;
  font-size: 1.00rem;
  color: var(--navy);
  padding-top: 10px;
}
.rq-tag {
  position: relative;
}
.op-tag {
  position: relative;
}
.op-tag::after {
  content: '任意';
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  background: var(--silver);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 2px;
  vertical-align: middle;
}

.rq-tag::after {
  content: '必須';
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  background: var(--navy);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 2px;
  vertical-align: middle;
}

/* ----------------------------------------------------------------
   Privacy Page
   ---------------------------------------------------------------- */
.privacy-section h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--silver);
}
.privacy-section p {
  font-size: 1.00rem;
  color: var(--text-sub);
  line-height: 1.85;
  margin-bottom: 8px;
}

/* ----------------------------------------------------------------
   Use-case image grid
   ---------------------------------------------------------------- */
.usecase-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--light-gray);
}
.usecase-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.usecase-img-wrap:hover img { transform: scale(1.05); }
.usecase-label {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 8px;
}

/* ----------------------------------------------------------------
   News section
   ---------------------------------------------------------------- */
.news-section {
  width: 100%;
  min-height: 300px;
  border: none;
  display: block;
}
.news-frame-wrap {
  overflow: hidden;
}

/* ----------------------------------------------------------------
   Recruit Intro
   ---------------------------------------------------------------- */
.recruit-intro {
  background: var(--off-white);
  border-left: 5px solid var(--silver);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.00rem;
  color: var(--text-sub);
  line-height: 1.9;
  margin-bottom: 36px;
}

/* ----------------------------------------------------------------
   Anchor offset (fixed navbar 対応)
   ---------------------------------------------------------------- */
.anchor-target {
  display: block;
  position: relative;
  top: -80px;
  visibility: hidden;
}

/* ----------------------------------------------------------------
   Misc Utilities
   ---------------------------------------------------------------- */
section { padding: 72px 0; }
section:first-of-type { padding-top: 48px; }
.section-bg-white    { background: var(--white); }
.section-bg-offwhite { background: var(--off-white); }
.section-bg-navy     { background: var(--navy); color: #fff; }

@media (max-width: 767px) {
  section { padding: 48px 0; }
}

/* ----------------------------------------------------------------
   Confirm Table (お問い合わせ確認画面 — contact/mail.php)
   ---------------------------------------------------------------- */
table.confirm-table {
  width: 100%;
  border-spacing: 0 0.6rem;
  border-collapse: separate;
  margin-bottom: 24px;
}
table.confirm-table th {
  display: block;
  width: 100%;
  font-weight: 700;
  color: var(--navy);
  padding: 8px 12px 4px;
  font-size: 0.85rem;
  background: var(--off-white);
  border-left: 3px solid var(--silver);
}
table.confirm-table td {
  display: block;
  width: 100%;
  padding: 8px 12px 12px;
  background: #fff;
  color: var(--text);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--light-gray);
  line-height: 1.75;
}
@media (min-width: 768px) {
  table.confirm-table {
    width: 720px;
    margin: 24px auto;
  }
  table.confirm-table th {
    display: table-cell;
    width: 32%;
    padding: 12px 16px;
    font-size: 0.9rem;
    vertical-align: middle;
    border-radius: var(--radius) 0 0 var(--radius);
    border-left: 3px solid var(--silver);
    border-bottom: none;
  }
  table.confirm-table td {
    display: table-cell;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-bottom: none;
    vertical-align: middle;
  }
}

/* ----------------------------------------------------------------
   Form Button Wrapper (確認画面ボタン — contact/mail.php)
   ---------------------------------------------------------------- */
.form-button-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  padding-bottom: 24px;
}
.form-button-wrapper .submit-btn,
.form-button-wrapper .back-btn,
.form-button-wrapper .home-btn {
  display: inline-block;
  padding: 12px 40px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
  text-decoration: none;
}
.form-button-wrapper .submit-btn {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.form-button-wrapper .submit-btn:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
}
.form-button-wrapper .back-btn {
  background: var(--silver);
  color: #fff;
  border-color: var(--silver);
}
.form-button-wrapper .back-btn:hover {
  background: var(--silver-dark);
  border-color: var(--silver-dark);
}
.form-button-wrapper .home-btn {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.form-button-wrapper .home-btn:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: #fff;
}
@media (max-width: 575px) {
  .form-button-wrapper .submit-btn,
  .form-button-wrapper .back-btn,
  .form-button-wrapper .home-btn {
    width: 100%;
    padding: 12px 20px;
  }
}

/* ----------------------------------------------------------------
   スマホ対応追加パッチ
   ---------------------------------------------------------------- */
/* numbered-title スマホ時の.num縮小 */
@media (max-width: 575px) {
  .numbered-title {
    gap: 12px;
    margin-bottom: 24px;
  }
  .numbered-title .num {
    font-size: 2.4rem;
  }
  .numbered-title h2 {
    font-size: 1.05rem;
  }
}

/* フォームのラベルがスマホで左揃えになるよう調整 */
@media (max-width: 767px) {
  .niflon-form .col-form-label {
    padding-bottom: 4px;
    font-size: 0.88rem;
  }
}

/* CTAバナーのスマホパディング調整 */
@media (max-width: 575px) {
  .cta-banner {
    padding: 48px 0;
  }
  .cta-banner h2 {
    font-size: 1.2rem;
  }
}
