/* =========================================================
   NK Core サイト用 style.css（修正版）
   ========================================================= */

/* === カラーとフォントの定義 === */
:root {
  --navy: #0D3B66;
  --navy-dark: #0B3152;
  --sky: #E6F3FF;
  --text-dark: #1B1B1B;
  --text-light: #555;
  --accent: #F9A826;
  --bg-light: #F8F9FA;
  --white: #FFFFFF;
  --border-color: #DEE2E6;

  --font-base: 'Noto Sans JP', sans-serif;
  --font-heading: 'Poppins', sans-serif;

  --header-height: 80px;
}

/* === ベース === */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: opacity .3s ease; }
a:hover { opacity: .8; text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

/* === レイアウト === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* セクション間隔を調整 */
.section { padding: 56px 0; }
.section-light { background-color: var(--bg-light); }
.section-dark  { background-color: var(--white); }

/* 見出し間隔も詰める */
.section-title{
  text-align:center; font-size:2.25rem;
  margin:0 0 32px;
  position:relative; padding-bottom:16px;
}
.section-title::after{
  content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%);
  width:60px; height:4px; background-color:var(--navy); border-radius:2px;
}

/* セクション淡色パネル */
.section--soft {
  background: linear-gradient(180deg, #FBFDFF 0%, #F5F8FC 100%);
  box-shadow:
    inset 0 1px 0 rgba(13,59,102,.06),
    inset 0 -1px 0 rgba(13,59,102,.04);
}

/* 補助クラス（任意でさらに圧縮） */
.section.is-compact { padding: 40px 0; }

/* === ヘッダー === */
.site-header{
  background-color:var(--white);
  border-bottom:1px solid var(--border-color);
  position:sticky; top:0; z-index:100; height:var(--header-height);
  display:flex; align-items:center;
}
.header-container{
  display:flex; justify-content:space-between; align-items:center; width:100%; max-width:100%;
  padding:0 24px; margin:0 auto;
}
.logo{ height:50px; }
.global-nav ul{ list-style:none; padding:0; margin:0; display:flex; gap:28px; }
.global-nav a{
  font-family:var(--font-heading); font-weight:600; font-size:1rem; color:var(--text-dark);
  padding:8px 0; position:relative;
}
.global-nav a::after{
  content:''; position:absolute; bottom:0; left:0; width:0; height:2px; background:var(--navy);
  transition:width .3s ease;
}
.global-nav a:hover::after{ width:100%; }

/* === ヒーロー === */
.hero{
  background: linear-gradient(rgba(13,59,102,.6), rgba(13,59,102,.6)), url('hero.jpg') no-repeat center/cover;
  min-height:500px; display:flex; align-items:center; justify-content:center; text-align:center; color:var(--white); padding:20px;
}
.hero-title{ font-size:3.5rem; color:var(--white); margin:0 0 16px; animation:fadeIn 1s .2s both; }
.hero-lead{ font-size:1.25rem; max-width:600px; margin:0 auto; opacity:.9; animation:fadeIn 1s .5s both; }
@keyframes fadeIn{ from{opacity:0; transform:translateY(20px);} to{opacity:1; transform:translateY(0);} }

/* === コンテンツ === */
.section-promise .section-description{
  max-width:800px; margin:0 auto 32px; text-align:center; font-size:1.1rem; color:var(--text-light);
}

.button-area{ display:flex; justify-content:center; gap:16px; margin-top:32px; }

.btn{
  display:inline-block; padding:12px 32px; border-radius:50px; font-family:var(--font-heading);
  font-weight:600; transition:all .3s ease; border:2px solid transparent; text-decoration:none;
  background-color:var(--navy); color:var(--white);
}
.btn:hover{ background-color:var(--navy-dark); transform:translateY(-3px); box-shadow:0 4px 12px rgba(0,0,0,.1); }
.btn-outline{ background:transparent; border:2px solid var(--navy); color:var(--navy); }
.btn-outline:hover{ background:var(--navy); color:var(--white); }

/* === 選ばれる理由 === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}
.feature-card{
  background:var(--white); border:1px solid var(--border-color); border-radius:12px; padding:32px; text-align:center;
  box-shadow:0 3px 16px rgba(0,0,0,.05); transition:transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover{ transform:translateY(-8px); box-shadow:0 8px 30px rgba(0,0,0,.1); }
.feature-icon{ font-size:3rem; color:var(--navy); margin-bottom:16px; }

/* === CTA（カード型） === */
.section-cta{
  background:var(--navy); color:var(--white); text-align:center;
  padding:40px 24px; margin:48px auto; max-width:900px; border-radius:14px; overflow:hidden;
}
.section-cta .section-title {
  font-size:1.75rem;
  margin-bottom:12px;
  color:var(--white);
}
.section-cta p{ 
  color:rgba(255,255,255,.92);
  max-width:640px;
  margin:0 auto 20px;
}
.section-cta .btn{ background:var(--white); color:var(--navy); border:2px solid var(--white); }
.section-cta .btn:hover{ background:var(--accent); color:var(--white); border-color:var(--accent); }

/* === 会社概要 === */
.page-header{ background:var(--bg-light); padding:40px 0; border-bottom:1px solid var(--border-color); }
.page-header h1{ font-size:2.5rem; margin:0; }
.company-table{ width:100%; border-collapse:collapse; font-size:1rem; }
.company-table th, .company-table td{ border:1px solid var(--border-color); padding:16px; text-align:left; vertical-align:top; }
.company-table th{ background-color:var(--bg-light); width:25%; font-weight:700; }

.philosophy-content, .values-grid{
  background:var(--white); border:1px solid var(--border-color); padding:32px; border-radius:12px;
}
.values-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.value-card h3{ margin-top:0; }
.philosophy-tagline{ font-size:1.2rem; color:var(--text-light); }

/* === フッター === */
.site-footer{
  background-color:var(--navy); color:rgba(255,255,255,.8); padding:54px 0 20px;
}
.footer-grid{
  display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px; padding-bottom:40px;
  border-bottom:1px solid rgba(255,255,255,.2);
}
.footer-logo{ height:40px; margin-bottom:16px; }
.footer-nav h4, .footer-contact h4{ font-family:var(--font-heading); color:var(--white); margin-top:0; }
.footer-nav ul{ list-style:none; padding:0; margin:0; }
.footer-nav a{ color:rgba(255,255,255,.8); }
.copyright{ text-align:center; padding-top:20px; font-size:.9rem; }

/* === お問い合わせフォーム === */
.form-table{
  width:100%; max-width:800px; margin:0 auto; border-collapse:collapse; font-size:1rem;
}
.form-table th, .form-table td{
  border:1px solid var(--border-color); padding:16px; text-align:left; vertical-align:top;
}
.form-table th{ background-color:var(--bg-light); width:30%; }
.form-table input:not([type="checkbox"]),
.form-table textarea{
  width:100%; padding:12px; border:1px solid var(--border-color); border-radius:8px; font-size:1rem; font-family:var(--font-base);
  transition:border-color .3s, box-shadow .3s;
}
.form-table input:focus,
.form-table textarea:focus{
  outline:none; border-color:var(--navy); box-shadow:0 0 0 3px rgba(13,59,102,.1);
}
.form-table textarea{ min-height:160px; resize:vertical; }
.badge{ display:inline-block; font-size:.8rem; line-height:1; padding:4px 8px; border-radius:50px; margin-left:.5em; vertical-align:middle; border:1px solid; }
.badge.req{ background:#fff0f0; color:#d32f2f; border-color:#ffcdd2; }
.badge.opt{ background:#f5f5f5; color:#555; border-color:#ddd; }
.consent-label{ display:inline-flex; align-items:center; gap:.5em; cursor:pointer; }
.consent-label input[type="checkbox"]{ width:1.2em; height:1.2em; }

/* === ユーティリティ（Thanks/404） === */
.simple-card{
  background:var(--white); border-radius:12px; padding:48px; text-align:center; max-width:700px; margin:0 auto;
  box-shadow:0 4px 20px rgba(0,0,0,.05);
}
.simple-card h1{ font-size:2rem; margin-top:0; }

/* === プライバシーポリシー === */
.policy-content{
  background:var(--white); padding:40px; border-radius:12px; box-shadow:0 4px 20px rgba(0,0,0,.05);
}
.policy-content h2{
  font-size:1.5rem; padding-bottom:8px; border-bottom:2px solid var(--bg-light); margin-top:40px;
}
.policy-content ul{ padding-left:20px; }
.toc{ background:var(--bg-light); padding:24px; border-radius:8px; margin-bottom:32px; }
.toc ol{ padding-left:20px; margin:0; }
.toc a{ font-weight:700; }

/* === レスポンシブ === */
@media (max-width: 1200px){
  .values-grid{ grid-template-columns:repeat(2,1fr); }
  .features-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 1024px){
  .footer-grid{ grid-template-columns:1.5fr 1fr; }
}
@media (max-width: 768px){
  .section { padding:44px 0; }
  .section-title { margin-bottom:24px; }
  .features-grid, .values-grid{ grid-template-columns:1fr; gap:24px; }
  .footer-grid{ grid-template-columns:1fr; gap:24px; }
  .header-container{ flex-direction:column; gap:16px; }
  .site-header{ height:auto; padding:16px; }
  .hero{ min-height:400px; }
  .hero-title{ font-size:2.5rem; }
  .hero-lead{ font-size:1.1rem; }
  .company-table th{ width:35%; }
  .section-cta{ padding:32px 20px; margin:40px 0; }
}
/* =========================================
   SUPER RICH 見た目強化（内容はそのまま）
   対象: .section-promise.is-rich / .section-features.is-rich
   ========================================= */

/* セクション全体の“面”演出：淡いグラデ＋角のグロー */
.section.is-rich.section--soft{
  position: relative;
  overflow: clip; /* 子の発光がはみ出さないように */
  background:
    radial-gradient(1200px 600px at 10% -20%, rgba(13,59,102,.12), transparent 60%),
    radial-gradient(1200px 600px at 110% 120%, rgba(13,59,102,.10), transparent 60%),
    linear-gradient(180deg, #FBFDFF 0%, #F2F6FC 100%);
  box-shadow:
    inset 0 1px 0 rgba(13,59,102,.06),
    inset 0 -1px 0 rgba(13,59,102,.05);
}

/* 見出しを上品に：下線をグラデ線でリッチに */
.section.is-rich .section-title{
  letter-spacing: .01em;
  margin-bottom: 24px; /* 少し詰める */
}
.section.is-rich .section-title::after{
  height: 5px; width: 88px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(13,59,102,.0), rgba(13,59,102,.6), rgba(13,59,102,.0));
  box-shadow: 0 2px 8px rgba(13,59,102,.15);
}

/* サブリード（もし存在すれば）に上質な色味 */
.section.is-rich .section-sublead{
  color: #3b5068;
  font-weight: 500;
}

/* 1) 私たちの約束（カードなしの本文を“誌面風”に） */
.section-promise.is-rich .section-description{
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(13,59,102,.12);
  box-shadow: 0 10px 30px rgba(13,59,102,.10);
  backdrop-filter: blur(4px);
  border-radius: 14px;
  padding: 22px 24px;
  line-height: 1.9;
}

/* ボタン周りの密度ときらめき感（控えめ） */
.section.is-rich .button-area .btn{
  box-shadow: 0 8px 20px rgba(13,59,102,.12);
}
.section.is-rich .button-area .btn:hover{
  box-shadow: 0 12px 28px rgba(13,59,102,.16);
}

/* 2) 選ばれる理由：カードを“グラス×リムライト”でリッチに */
.section-features.is-rich .features-grid{
  counter-reset: feat; /* 番号付与の準備（表示はバッジで） */
}
.section-features.is-rich .feature-card{
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.95));
  border: 1px solid rgba(13,59,102,.12);
  box-shadow: 0 12px 36px rgba(13,59,102,.12);
  backdrop-filter: blur(4px);
  transform: translateZ(0); /* ホバーのパフォーマンス向上 */
}

/* カードのグロー縁取り（薄く） */
.section-features.is-rich .feature-card::before{
  content: "";
  position: absolute; inset: 0;
  border-radius: 12px;
  pointer-events: none;
  background: radial-gradient(400px 200px at 20% -10%, rgba(13,59,102,.10), transparent 40%),
              radial-gradient(400px 200px at 120% 110%, rgba(13,59,102,.08), transparent 40%);
  mix-blend-mode: normal;
}

/* 番号バッジ（左上） */
.section-features.is-rich .feature-card::after{
  counter-increment: feat;
  content: counter(feat, decimal-leading-zero);
  position: absolute;
  top: -12px; left: -12px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 700;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13,59,102,.25);
}

/* アイコンを“円形リッチバッジ”に（HTMLは既存の<i>のまま） */
.section-features.is-rich .feature-icon{
  display: inline-grid; place-items: center;
  width: 84px; height: 84px; border-radius: 50%;
  font-size: 2rem; color: var(--navy);
  background:
    radial-gradient(120px 120px at 30% 30%, rgba(13,59,102,.18), rgba(13,59,102,.06) 60%, transparent 70%),
    #fff;
  border: 1px solid rgba(13,59,102,.15);
  box-shadow: 0 10px 26px rgba(13,59,102,.15);
  margin-bottom: 16px;
  transition: transform .35s ease, box-shadow .35s ease;
}

/* カードのホバー：上品な持ち上がり＋アイコン微浮遊 */
.section-features.is-rich .feature-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(13,59,102,.18);
}
.section-features.is-rich .feature-card:hover .feature-icon{
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(13,59,102,.22);
}

/* テキストの視認性強化（見出しを少し締める） */
.section-features.is-rich .feature-card h3{
  margin-top: 10px;
  letter-spacing: .01em;
}
.section-features.is-rich .feature-card p{
  color: #35506a;
}

/* スクロール時の“ふわっ”を少しだけリッチに */
.section.is-rich.reveal{
  will-change: transform, opacity;
}
.section.is-rich.reveal.is-visible{
  transition-timing-function: cubic-bezier(.2,.65,.2,1);
}

/* レスポンシブ微調整 */
@media (max-width: 1200px){
  .section-features.is-rich .feature-card::after{
    top: -10px; left: -10px; width: 40px; height: 40px;
  }
  .section-features.is-rich .feature-icon{ width: 78px; height: 78px; font-size: 1.9rem; }
}
@media (max-width: 768px){
  .section-promise.is-rich .section-description{ padding: 18px 16px; }
  .section-features.is-rich .feature-card::after{ top: -8px; left: -8px; width: 36px; height: 36px; }
  .section-features.is-rich .feature-icon{ width: 72px; height: 72px; font-size: 1.8rem; }
}
@media (max-width: 768px) {
  nav ul {
    display: flex;
    flex-wrap: wrap;       /* 折返しOK */
    justify-content: center;
    gap: 8px;
  }
  nav ul li a {
    font-size: 14px;
    white-space: nowrap;   /* 途中で切れない */
  }
}
.sp-br { display: none; }
@media (max-width: 768px) {
  .sp-br { display: inline; }
}
/* ヒーロー帯（PCはcover、SPはcontain） */
.hero {
  position: relative;
  min-height: clamp(360px, 60vh, 640px);
  background-image: url('hero.jpg');   /* 既存の指定があればそのままでOK */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;              /* ← デフォルトは“画面いっぱい（トリミングあり）” */
}

/* スマホでは画像全体を優先して表示（左右が切れない） */
@media (max-width: 768px) {
  .hero {
    background-size: contain;          /* ← トリミングしない */
    background-color: #0D3B66;         /* 余白に出る帯の色（ネイビー） */
  }
}
/*ヒーロー画像
.hero {
  position: relative;
  background: url("hero.jpg") center/cover no-repeat;
}

/* スマホ時のみ contain＋グラデーション */
@media (max-width: 768px) {
  .hero {
    background:
      linear-gradient(
        to bottom,
        rgba(255,255,255,1) 0%,
        rgba(13,59,102,0.6) 20%,
        rgba(13,59,102,0.6) 80%,
        rgba(255,255,255,1) 100%
      ),
      url("hero.jpg") center/contain no-repeat;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }
}