/* ============================================================
   案A: 高級ミニマル型 — SP税理士法人参考
   配色: ダーク(#0d1117) × ゴールド(#c9a227) × ホワイト
   フォント: Noto Serif JP（見出し）/ Noto Sans JP（本文）
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Noto+Serif+JP:wght@400;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:    #0d1117;
  --dark2:   #161b22;
  --gold:    #c9a227;
  --white:   #ffffff;
  --gray:    #6b7280;
  --light:   #f8f8f8;
  --serif:   'Noto Serif JP', serif;
  --sans:    'Noto Sans JP', sans-serif;
  --display: 'Playfair Display', serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--white); color: var(--dark); line-height: 1.7; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }

/* ── ヘッダー ── */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
  background: rgba(255,255,255,0.97); border-bottom: 1px solid #e5e5e5;
  transition: box-shadow .3s;
}
.header-logo { display: flex; align-items: center; gap: .75rem; }
.header-logo .logo-box {
  width: 40px; height: 40px; border: 2px solid var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
}
.header-logo .logo-name { font-family: var(--serif); font-weight: 700; font-size: 1rem; }
.hamburger {
  width: 40px; height: 40px; background: var(--dark); border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--white); }

/* ── メニューオーバーレイ ── */
#menu-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.95);
  display: none; flex-direction: column;
}
#menu-overlay.open { display: flex; }
.menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.menu-header .logo-name { color: var(--white); font-family: var(--serif); font-weight: 700; }
.menu-close { background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }
.menu-nav { display: flex; flex-direction: column; gap: .25rem; padding: 2.5rem 2.5rem; }
.menu-nav a {
  color: var(--white); font-size: 1.25rem; font-family: var(--serif);
  padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s;
}
.menu-nav a:hover { color: var(--gold); }

/* ── 右端縦書きCTA ── */
.side-cta {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90;
  background: #c0392b; color: var(--white);
  writing-mode: vertical-rl; letter-spacing: .1em;
  padding: 1.25rem .5rem; font-size: .75rem; font-weight: 700;
  cursor: pointer; border: none; transition: opacity .2s;
}
.side-cta:hover { opacity: .85; }

/* ── ヒーロー ── */
#hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  padding-bottom: 5rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.8) 40%, rgba(0,0,0,.25) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 0 2.5rem; max-width: 700px; }
.hero-label { font-size: .7rem; letter-spacing: .2em; color: var(--gold); font-family: var(--display); margin-bottom: 1rem; }
.hero-title {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; color: var(--white); line-height: 1.3; margin-bottom: 1.25rem;
}
.hero-title span { color: var(--gold); }
.hero-desc { color: rgba(255,255,255,.75); font-size: .9rem; margin-bottom: 2rem; max-width: 480px; }
.btn-gold {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--gold); color: var(--dark);
  padding: .9rem 2rem; font-weight: 700; font-size: .9rem;
  border: none; cursor: pointer; transition: opacity .2s;
}
.btn-gold:hover { opacity: .85; }

/* ── セクション共通 ── */
.section { padding: 5rem 0; }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section-label { font-size: .7rem; letter-spacing: .2em; color: var(--gold); font-family: var(--display); margin-bottom: .5rem; }
.section-title { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 1rem; }
.section-sub { font-size: .85rem; color: var(--gray); margin-bottom: 3rem; }
.bg-dark  { background: var(--dark); color: var(--white); }
.bg-dark2 { background: var(--dark2); color: var(--white); }
.bg-light { background: var(--light); }

/* ── Message ── */
.message-grid { display: grid; grid-template-columns: 200px 1fr; gap: 3rem; align-items: start; }
.message-en { font-family: var(--display); font-size: 1.75rem; font-weight: 700; }
.message-ja { font-size: .8rem; color: var(--gray); margin-top: .25rem; }
.message-text { font-size: .9rem; line-height: 1.9; color: #444; }
.more-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem; font-size: .85rem; font-weight: 500; }
.more-link:hover { opacity: .7; }
@media (max-width: 640px) { .message-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ── サービス「3つの柱」 ── */
.service-layout { display: flex; }
.service-left {
  width: 33.333%; background: var(--dark); display: flex; align-items: center; justify-content: center;
  padding: 3rem 2rem; min-height: 560px;
}
.service-left-inner { text-align: center; }
.service-left-en { font-size: .7rem; letter-spacing: .2em; color: rgba(255,255,255,.3); font-family: var(--display); margin-bottom: .75rem; }
.service-left-ja { color: var(--white); font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.service-right { flex: 1; }
.service-item { display: flex; min-height: 187px; border-bottom: 1px solid #f0f0f0; }
.service-item:last-child { border-bottom: none; }
.service-text { flex: 1; padding: 2.5rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.service-num { font-family: var(--display); font-size: 3rem; font-weight: 700; color: var(--gold); opacity: .6; line-height: 1; margin-bottom: .75rem; }
.service-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.service-desc { font-size: .85rem; color: var(--gray); line-height: 1.7; }
.service-img { width: 200px; flex-shrink: 0; background: center/cover no-repeat; }
@media (max-width: 768px) {
  .service-layout { flex-direction: column; }
  .service-left { width: 100%; min-height: auto; padding: 2rem; }
  .service-img { display: none; }
}

/* ── フロー ── */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.flow-item {}
.flow-num { font-family: var(--display); font-size: 2.5rem; font-weight: 700; color: var(--gold); opacity: .7; line-height: 1; margin-bottom: .5rem; }
.flow-line { width: 2rem; height: 1px; background: var(--dark); margin-bottom: .75rem; }
.flow-name { font-family: var(--serif); font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.flow-desc { font-size: .8rem; color: var(--gray); line-height: 1.7; }
@media (max-width: 768px) { .flow-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .flow-grid { grid-template-columns: 1fr; } }

/* ── 事例 ── */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.case-card { padding: 2rem; border-top: 2px solid var(--dark); background: var(--white); }
.case-num { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--gold); opacity: .5; margin-bottom: 1rem; }
.case-title { font-family: var(--serif); font-size: .95rem; font-weight: 700; margin-bottom: .75rem; }
.case-desc { font-size: .8rem; color: var(--gray); line-height: 1.7; }
@media (max-width: 768px) { .cases-grid { grid-template-columns: 1fr; } }

/* ── お客様の声 ── */
.voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.voice-card { border-left: 2px solid var(--dark); padding-left: 1.5rem; }
.voice-quote { font-size: 2.5rem; color: var(--gold); opacity: .4; font-family: var(--display); line-height: 1; margin-bottom: .75rem; }
.voice-text { font-size: .85rem; line-height: 1.8; color: #444; margin-bottom: 1rem; font-style: italic; }
.voice-name { font-family: var(--serif); font-size: .85rem; font-weight: 700; }
.voice-role { font-size: .75rem; color: var(--gray); margin-top: .25rem; }
@media (max-width: 768px) { .voices-grid { grid-template-columns: 1fr; } }

/* ── 代表者 ── */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.profile-img { aspect-ratio: 4/5; background: center/cover no-repeat; }
.profile-en { font-size: .7rem; letter-spacing: .15em; color: var(--gray); font-family: var(--display); margin-bottom: .25rem; }
.profile-name { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; margin-bottom: .25rem; }
.profile-title { font-size: .8rem; color: var(--gray); margin-bottom: 2rem; }
.profile-text { font-size: .875rem; line-height: 1.9; color: #444; }
.profile-text p + p { margin-top: 1rem; }
@media (max-width: 768px) { .profile-grid { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid #e5e5e5; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; text-align: left; background: none; border: none; cursor: pointer;
  font-size: .9rem; font-weight: 500; gap: 1rem;
}
.faq-icon { font-size: 1.25rem; color: var(--gray); flex-shrink: 0; transition: transform .25s; }
.faq-a { display: none; padding-bottom: 1.25rem; font-size: .85rem; color: var(--gray); line-height: 1.8; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ── ニュース ── */
.news-list { max-width: 800px; }
.news-item { display: flex; align-items: baseline; gap: 2rem; padding: 1.1rem 0; border-bottom: 1px solid #e5e5e5; }
.news-date { font-family: var(--display); font-size: .75rem; color: var(--gray); flex-shrink: 0; }
.news-title { font-size: .875rem; color: var(--dark); }

/* ── アクセス ── */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.access-table { width: 100%; border-collapse: collapse; }
.access-table tr { border-bottom: 1px solid #e5e5e5; }
.access-table td { padding: .875rem 0; font-size: .875rem; vertical-align: top; }
.access-table td:first-child { width: 6rem; color: var(--gray); font-size: .8rem; }
.map-placeholder {
  width: 100%; height: 240px; background: var(--light);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #e5e5e5; color: var(--gray); font-size: .85rem;
}
@media (max-width: 768px) { .access-grid { grid-template-columns: 1fr; } }

/* ── お問い合わせ ── */
.contact-form { max-width: 560px; display: flex; flex-direction: column; gap: 1.25rem; }
.form-group label { display: block; font-size: .75rem; color: rgba(255,255,255,.4); letter-spacing: .1em; margin-bottom: .5rem; }
.form-group label .req { color: #c0392b; }
.form-group input,
.form-group textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,.15);
  color: var(--white); font-size: .875rem; padding: .625rem 0; outline: none;
  font-family: var(--sans); transition: border-color .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { opacity: .25; }
.form-group input:focus,
.form-group textarea:focus { border-color: rgba(255,255,255,.4); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #c0392b; color: var(--white);
  padding: .9rem 2.5rem; font-weight: 700; font-size: .875rem;
  border: none; cursor: pointer; margin-top: .5rem; transition: opacity .2s;
}
.btn-submit:hover { opacity: .85; }
.success-msg { text-align: center; padding: 3rem 0; }
.success-msg .check { font-size: 2.5rem; color: var(--gold); margin-bottom: 1rem; }
.success-msg p { color: rgba(255,255,255,.6); font-size: .875rem; }

/* ── フッター ── */
#footer {
  background: var(--dark); border-top: 1px solid rgba(255,255,255,.08);
  padding: 2.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-logo { display: flex; align-items: center; gap: .75rem; }
.footer-logo .logo-box { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; color: var(--white); font-family: var(--serif); font-size: .9rem; }
.footer-logo .logo-name { color: rgba(255,255,255,.5); font-family: var(--serif); font-size: .875rem; }
.footer-copy { color: rgba(255,255,255,.2); font-size: .75rem; }

/* ── ダーク系セクション用テキスト ── */
.bg-dark .section-title,
.bg-dark2 .section-title { color: var(--white); }
.bg-dark .section-label,
.bg-dark2 .section-label { color: var(--gold); }
.bg-dark .section-sub,
.bg-dark2 .section-sub { color: rgba(255,255,255,.5); }
.bg-dark .flow-line { background: rgba(255,255,255,.3); }
.bg-dark .flow-name { color: var(--white); }
.bg-dark .flow-desc { color: rgba(255,255,255,.5); }
.bg-dark .news-item { border-color: rgba(255,255,255,.1); }
.bg-dark .news-date { color: rgba(255,255,255,.3); }
.bg-dark .news-title { color: rgba(255,255,255,.7); }
.bg-dark2 .case-card { background: var(--dark2); border-color: rgba(255,255,255,.15); }
.bg-dark2 .case-num { color: rgba(255,255,255,.1); }
.bg-dark2 .case-title { color: var(--white); }
.bg-dark2 .case-desc { color: rgba(255,255,255,.5); }
.bg-dark .voice-card { border-color: rgba(255,255,255,.15); }
.bg-dark .voice-text { color: rgba(255,255,255,.6); }
.bg-dark .voice-name { color: var(--white); }
.bg-dark .voice-role { color: rgba(255,255,255,.3); }
.bg-dark .access-table td { color: rgba(255,255,255,.7); }
.bg-dark .access-table td:first-child { color: rgba(255,255,255,.3); }
.bg-dark .access-table tr { border-color: rgba(255,255,255,.1); }
.bg-dark .map-placeholder { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.2); }
.bg-dark .profile-en { color: rgba(255,255,255,.3); }
.bg-dark .profile-name { color: var(--white); }
.bg-dark .profile-title { color: rgba(255,255,255,.4); }
.bg-dark .profile-text { color: rgba(255,255,255,.6); }
