/* ============================================
   Ｔ高原司法書士事務所 — 共通スタイル
   ディープインディゴ + アンバーゴールド
   ============================================ */

:root {
  --indigo: #2b2e4a;
  --indigo-deep: #1f2238;
  --indigo-soft: #3d4163;
  --amber: #b89461;
  --amber-deep: #9b7a4a;
  --ivory: #f8f5ef;
  --paper: #fdfbf6;
  --line: #d8d2c4;
  --text: #2a2a2a;
  --text-muted: #6b6b6b;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 251, 246, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-en {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--indigo);
  letter-spacing: 0.08em;
}

.logo-jp {
  font-family: "Noto Serif JP", serif;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav a {
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  color: var(--indigo);
  letter-spacing: 0.1em;
  position: relative;
  padding: 4px 0;
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--amber);
}

.nav .tel {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  color: var(--amber);
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  min-height: 92vh;
  background: var(--indigo);
  color: var(--ivory);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 80px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(184, 148, 97, 0.08) 100%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-label {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--amber);
  letter-spacing: 0.15em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-label::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--amber);
}

.hero-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.45;
  letter-spacing: 0.04em;
  margin-bottom: 48px;
}

.hero-title em {
  font-style: normal;
  color: var(--amber);
  font-weight: 600;
}

.hero-sub {
  font-size: 17px;
  line-height: 2.1;
  max-width: 580px;
  color: rgba(248, 245, 239, 0.85);
  margin-bottom: 56px;
}

.hero-meta {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(184, 148, 97, 0.3);
  max-width: 720px;
}

.hero-meta-item {
  font-family: "Noto Serif JP", serif;
}

.hero-meta-label {
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.hero-meta-value {
  font-size: 15px;
  color: var(--ivory);
  line-height: 1.6;
}

/* ============================================
   Sections (Common)
   ============================================ */

.section {
  padding: 120px 40px;
}

.section-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.section-label {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 15px;
  color: var(--amber);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.section-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(28px, 3.8vw, 44px);
  color: var(--indigo);
  line-height: 1.45;
  margin-bottom: 60px;
  letter-spacing: 0.03em;
}

.section-title em {
  font-style: normal;
  color: var(--amber);
}

.section-light {
  background: var(--paper);
}

.section-dark {
  background: var(--indigo);
  color: var(--ivory);
}

.section-dark .section-title {
  color: var(--ivory);
}

.section-cream {
  background: var(--ivory);
}

/* ============================================
   Page Header (sub pages)
   ============================================ */

.page-header {
  background: var(--indigo);
  color: var(--ivory);
  padding: 200px 40px 100px;
}

.page-header-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.page-header-en {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--amber);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.page-header-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: 0.05em;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 36px;
  font-family: "Noto Serif JP", serif;
  font-size: 15px;
  letter-spacing: 0.1em;
  border: 1px solid var(--amber);
  color: var(--amber);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn::after {
  content: "→";
  font-family: "Playfair Display", serif;
  transition: transform 0.3s ease;
}

.btn:hover {
  background: var(--amber);
  color: var(--white);
  opacity: 1;
}

.btn:hover::after {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--amber);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
}

.btn-light {
  border-color: var(--ivory);
  color: var(--ivory);
}

.btn-light:hover {
  background: var(--ivory);
  color: var(--indigo);
}

/* ============================================
   Cards (Services)
   ============================================ */

.cards-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--paper);
  padding: 56px 40px;
  position: relative;
  transition: background 0.3s ease;
}

.card:hover {
  background: var(--white);
}

.card-num {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 22px;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.card-title {
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--indigo);
  margin-bottom: 20px;
  line-height: 1.55;
}

.card-body {
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-muted);
}

/* ============================================
   Strengths (3 columns)
   ============================================ */

.strengths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.strength {
  text-align: left;
}

.strength-icon {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 56px;
  color: var(--amber);
  margin-bottom: 24px;
  display: inline-block;
}

.strength-title {
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--indigo);
  margin-bottom: 16px;
  line-height: 1.5;
}

.section-dark .strength-title {
  color: var(--ivory);
}

.strength-body {
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-muted);
}

.section-dark .strength-body {
  color: rgba(248, 245, 239, 0.75);
}

/* ============================================
   Profile (代表メッセージ)
   ============================================ */

.profile {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.profile-aside {
  border-top: 1px solid var(--amber);
  padding-top: 24px;
}

.profile-name-en {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--amber);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.profile-name {
  font-family: "Noto Serif JP", serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--indigo);
  margin-bottom: 8px;
}

.profile-title {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.profile-body p {
  margin-bottom: 1.6em;
  line-height: 2.1;
  font-size: 15.5px;
}

.profile-body p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Info Table
   ============================================ */

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid var(--line);
}

.info-table th,
.info-table td {
  padding: 22px 0;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}

.info-table th {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  color: var(--indigo);
  width: 220px;
  letter-spacing: 0.1em;
}

.info-table td {
  color: var(--text);
  line-height: 1.85;
}

/* ============================================
   Flow Steps
   ============================================ */

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-step {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 60px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.flow-step:last-child {
  border-bottom: none;
}

.flow-num {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 64px;
  color: var(--amber);
  line-height: 1;
}

.flow-content h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--indigo);
  margin-bottom: 16px;
}

.flow-content p {
  font-size: 15px;
  line-height: 2;
  color: var(--text-muted);
}

/* ============================================
   Contact
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-card {
  background: var(--white);
  padding: 56px 48px;
  border-top: 3px solid var(--amber);
}

.contact-card-label {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--amber);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.contact-card-title {
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--indigo);
  margin-bottom: 28px;
}

.contact-card-value {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  color: var(--indigo);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.contact-card-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================
   Form
   ============================================ */

.form {
  max-width: 720px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  color: var(--indigo);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.form-label span {
  color: var(--amber);
  font-size: 11px;
  margin-left: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.8;
}

.form-submit {
  text-align: center;
  margin-top: 48px;
}

/* ============================================
   CTA Band
   ============================================ */

.cta-band {
  background: var(--indigo-deep);
  color: var(--ivory);
  padding: 100px 40px;
  text-align: center;
}

.cta-en {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 16px;
  color: var(--amber);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.cta-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.cta-body {
  font-size: 15px;
  line-height: 2;
  color: rgba(248, 245, 239, 0.8);
  max-width: 580px;
  margin: 0 auto 48px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--indigo-deep);
  color: rgba(248, 245, 239, 0.75);
  padding: 80px 40px 32px;
  border-top: 1px solid rgba(184, 148, 97, 0.2);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(184, 148, 97, 0.2);
}

.footer-brand .logo-en {
  color: var(--ivory);
  font-size: 26px;
}

.footer-brand .logo-jp {
  color: var(--amber);
  margin-top: 8px;
  font-size: 12px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 2;
  margin-top: 20px;
}

.footer-col h4 {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--amber);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 13px;
  letter-spacing: 0.05em;
}

.footer-bottom {
  font-size: 12px;
  color: rgba(248, 245, 239, 0.5);
  letter-spacing: 0.1em;
  text-align: center;
}

/* ============================================
   Inheritance Page Specific
   ============================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 80px;
}

.feature {
  border-top: 2px solid var(--amber);
  padding-top: 28px;
}

.feature-num {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--amber);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.feature h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--indigo);
  margin-bottom: 18px;
  line-height: 1.55;
}

.feature p {
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-muted);
}

.case-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-item {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
}

.case-item:last-child {
  border-right: none;
}

.case-num {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--amber);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}

.case-item h4 {
  font-family: "Noto Serif JP", serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--indigo);
  margin-bottom: 14px;
  line-height: 1.6;
}

.case-item p {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-muted);
}

/* ============================================
   Services Page
   ============================================ */

.service-block {
  margin-bottom: 100px;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--amber);
}

.service-block-num {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 32px;
  color: var(--amber);
}

.service-block-title {
  font-family: "Noto Serif JP", serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--indigo);
}

.service-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.service-item h4 {
  font-family: "Noto Serif JP", serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--indigo);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.service-item p {
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-muted);
}

.service-items-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 960px) {
  .header-inner {
    padding: 16px 24px;
  }

  .nav {
    display: none;
  }

  .nav.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    padding: 100px 24px 60px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 24px;
  }

  .section {
    padding: 80px 24px;
  }

  .cards-4,
  .strengths,
  .profile,
  .contact-grid,
  .feature-grid,
  .case-list,
  .service-items,
  .service-items-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .case-item:last-child {
    border-bottom: none;
  }

  .flow-step {
    grid-template-columns: 80px 1fr;
    gap: 24px;
  }

  .flow-num {
    font-size: 44px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .info-table th {
    width: 130px;
    font-size: 13px;
  }

  .info-table td {
    font-size: 14px;
  }

  .page-header {
    padding: 140px 24px 60px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 40px;
  }

  .card,
  .contact-card {
    padding: 36px 24px;
  }
}
