/* ============================================
   竹内会計事務所 相続専門サイト
   kaizuka-sozoku.com
   カラー：紺 × 金
============================================ */

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

/* --- CSS変数 --- */
:root {
  --navy:      #1a4f7a;
  --navy-dark: #0f2f4a;
  --navy-light:#e8f0f7;
  --gold:      #c8a951;
  --gold-light:#fdf3d8;
  --white:     #ffffff;
  --off-white: #f5f3ef;
  --text:      #2c2c2c;
  --text-muted:#666666;
  --border:    #ddd8d0;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans:  'Noto Sans JP', sans-serif;
  --max-width: 1000px;
  --radius:    8px;
}

/* --- リセット --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.8;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- 共通レイアウト --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 72px 0;
}
.section-alt {
  background: var(--white);
}
.section-navy {
  background: var(--navy-dark);
  color: var(--white);
}

/* --- セクション見出し --- */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.section-heading .label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.4;
}
.section-navy .section-heading h2 {
  color: var(--white);
}
.section-heading .lead {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.section-navy .section-heading .lead {
  color: rgba(255,255,255,0.75);
}
.heading-rule {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ============================================
   ヘッダー
============================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(200,169,81,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.header-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.header-logo .name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}
.header-logo .sub {
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.header-tel {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.header-tel .tel-icon {
  font-size: 0.9rem;
  color: var(--gold);
}
.header-tel .tel-note {
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  display: block;
  letter-spacing: 0.05em;
}
.header-nav {
  display: flex;
  gap: 0;
}
.header-nav a {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
  padding: 0 12px;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.05em;
}
.header-nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ハンバーガーメニュー（スマホ用） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* スマホナビ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--navy-dark);
  border-top: 1px solid rgba(200,169,81,0.2);
  z-index: 999;
  padding: 8px 0 16px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 24px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  letter-spacing: 0.05em;
}
.mobile-nav a:hover { color: var(--gold); }

/* ============================================
   ヒーロー（ファーストビュー）
============================================ */
#hero {
  margin-top: 64px;
  background: var(--navy-dark);
  padding: 80px 24px 72px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(200,169,81,0.03) 0px,
      rgba(200,169,81,0.03) 1px,
      transparent 1px,
      transparent 80px
    );
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.hero-label::before,
.hero-label::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
}
.hero-title em {
  font-style: normal;
  color: var(--gold);
}
.hero-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  line-height: 1.9;
}
.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-badge {
  background: rgba(200,169,81,0.15);
  border: 1px solid rgba(200,169,81,0.4);
  color: var(--gold);
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 32px;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}
.btn-primary:hover { background: #d4b45a; transform: translateY(-1px); }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-size: 0.9rem;
  padding: 14px 32px;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================
   ごあいさつ
============================================ */
#greeting .greeting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
#greeting .greeting-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.9;
}
#greeting .greeting-names {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#greeting .greeting-names .person {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
}
#greeting .greeting-names .person span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 8px;
}
.greeting-card {
  background: var(--navy-dark);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--white);
}
.greeting-card .card-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.greeting-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.greeting-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.greeting-card ul li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ============================================
   相続の流れ（タイムライン）
============================================ */
#timeline {
  background: var(--white);
}
.timeline-track {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline-track::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--navy) 0%, var(--gold) 100%);
}
.tl-item {
  position: relative;
  margin-bottom: 32px;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -34px;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--white);
  z-index: 1;
}
.tl-body {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 18px 20px;
  border-left: 3px solid transparent;
}
.tl-phase {
  font-size: 1.0rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.tl-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-badge {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  font-family: var(--font-sans);
}
.tl-badge-deadline {
  background: #fdecea;
  color: #c0392b;
}
.tl-badge-info {
  background: var(--navy-light);
  color: var(--navy);
}
.tl-badge-partner {
  background: #eaf3de;
  color: #3b6d11;
}
.tl-tasks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tl-tasks li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.6;
}
.tl-tasks li::before {
  content: '・';
  position: absolute;
  left: 0;
}
.tl-tasks li strong { color: var(--text); font-weight: 500; }

/* タイムラインの色分け */
.tl-item.phase-1 .tl-dot { background: #2d6a9f; }
.tl-item.phase-1 .tl-body { border-left-color: #2d6a9f; }
.tl-item.phase-1 .tl-phase { color: #2d6a9f; }
.tl-item.phase-2 .tl-dot { background: #3d7fa3; }
.tl-item.phase-2 .tl-body { border-left-color: #3d7fa3; }
.tl-item.phase-2 .tl-phase { color: #3d7fa3; }
.tl-item.phase-3 .tl-dot { background: #6a9ab0; }
.tl-item.phase-3 .tl-body { border-left-color: #6a9ab0; }
.tl-item.phase-3 .tl-phase { color: #6a9ab0; }
.tl-item.phase-4 .tl-dot { background: var(--gold); }
.tl-item.phase-4 .tl-body { border-left-color: var(--gold); }
.tl-item.phase-4 .tl-phase { color: var(--gold); }
.tl-item.phase-5 .tl-dot { background: #b8943a; }
.tl-item.phase-5 .tl-body { border-left-color: #b8943a; }
.tl-item.phase-5 .tl-phase { color: #b8943a; }
.tl-item.phase-6 .tl-dot { background: #a07e28; }
.tl-item.phase-6 .tl-body { border-left-color: #a07e28; }
.tl-item.phase-6 .tl-phase { color: #a07e28; }
.tl-item.phase-7 .tl-dot { background: var(--navy); }
.tl-item.phase-7 .tl-body { border-left-color: var(--navy); background: var(--navy-light); }
.tl-item.phase-7 .tl-phase { color: var(--navy); }
.tl-item.phase-8 .tl-dot { background: #888; }
.tl-item.phase-8 .tl-body { border-left-color: #888; }
.tl-item.phase-8 .tl-phase { color: #888; }

/* ============================================
   サポート内容
============================================ */
#support .support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.support-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 3px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
}
.support-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,79,122,0.1);
}
.support-card .card-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}
.support-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
}
.support-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================
   不動産鑑定士
============================================ */
#appraiser .appraiser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
#appraiser .appraiser-lead {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.9;
  margin-bottom: 20px;
}
.appraiser-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(200,169,81,0.3);
  border-radius: var(--radius);
  padding: 24px;
}
.appraiser-card .card-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200,169,81,0.2);
}
.appraiser-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.appraiser-card ul li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.appraiser-card ul li::before {
  content: '▶';
  position: absolute;
  left: 0;
  font-size: 0.6rem;
  color: var(--gold);
  top: 4px;
}

/* ============================================
   FAQ
============================================ */
#faq .faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-category {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.faq-category:first-child { margin-top: 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--off-white); }
.q-mark {
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.q-text {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  flex: 1;
  line-height: 1.5;
}
.faq-chevron {
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: transform 0.25s;
  flex-shrink: 0;
  margin-top: 4px;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 18px 16px 52px;
  background: var(--off-white);
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-a { display: block; padding-top: 14px; }
.faq-a p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.85;
}
.faq-a p strong { color: var(--text); font-weight: 500; }

/* ============================================
   お問合せ
============================================ */
#contact {
  background: var(--navy-dark);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-tel-block {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid rgba(200,169,81,0.3);
  border-radius: var(--radius);
}
.contact-tel-block .tel-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.contact-tel-block .tel-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}
.contact-tel-block .tel-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.contact-form-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--navy-dark); }
.form-submit {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  width: 100%;
  font-family: var(--font-sans);
}
.form-submit:hover { background: #d4b45a; }
.form-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ============================================
   事務所案内・アクセス
============================================ */
#office {
  background: var(--white);
}
.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.office-table {
  width: 100%;
  border-collapse: collapse;
}
.office-table th,
.office-table td {
  padding: 12px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.office-table th {
  width: 36%;
  color: var(--navy);
  font-weight: 500;
  white-space: nowrap;
}
.office-table td { color: var(--text-muted); }
.office-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.office-map iframe {
  width: 100%;
  height: 280px;
  display: block;
}
.map-access-btn {
  display: block;
  text-align: center;
  padding: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.map-access-btn:hover {
  background: var(--navy-dark);
  color: var(--gold);
}

/* ============================================
   フッター
============================================ */
#footer {
  background: #0a1e2e;
  color: rgba(255,255,255,0.6);
  padding: 32px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
}
.footer-info {
  font-size: 0.8rem;
  line-height: 1.8;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  text-align: center;
}

/* ============================================
   レスポンシブ
============================================ */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-tel { display: none; }
  .hamburger { display: flex; }

  #greeting .greeting-grid,
  #appraiser .appraiser-grid,
  .contact-grid,
  .office-grid { grid-template-columns: 1fr; gap: 28px; }

  #support .support-grid { grid-template-columns: 1fr; }

  .hero-title { font-size: 1.5rem; }

  .section { padding: 52px 0; }
}
