/* ============================================
   Rapid法律事務所 — 共通スタイル
   全ページ共通のCSS（トークン/リセット/タイポ/
   コンテナ/ボタン/ヘッダー/CTA/フッター/page-hero等）
   index.html を正として統一
   ============================================ */

/* ============================================
   CSS RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-gray-700);
  background: var(--bg-gold-gradient);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--color-gold);
  color: var(--color-black);
}

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* === Primary === */
  --color-gold: #EDBE44;
  --color-gold-hover: #D4A82E;
  --color-gold-dark: #B8960F;
  --color-gold-light: #F5D87A;

  /* === Dark === */
  --color-black: #333333;
  --color-black-soft: #3D3D3D;
  --color-black-card: #444444;

  /* === Light (gold gradient bg) === */
  --color-white: #FFFFFF;
  --color-offwhite: #F0E6C6;
  --color-cream: #F5EDD0;

  /* === Gold Background Gradient === */
  --bg-gold-gradient: linear-gradient(135deg, #EDE2BA 0%, #F8F0D8 100%);
  --bg-gold-light: linear-gradient(135deg, #EDE2BA 0%, #F8F0D8 100%);

  /* === Gray Scale === */
  --color-gray-700: #1A1A1A;
  --color-gray-500: #666666;
  --color-gray-400: #999999;
  --color-gray-300: #CCCCCC;
  --color-gray-100: #EEEEEE;

  /* === Shadows === */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  --shadow-gold: 0 4px 20px rgba(237, 190, 68, 0.3);

  /* === Spacing === */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-30: 120px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, .display-text {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  padding: 16px 32px;
  background-color: var(--color-gold);
  color: var(--color-black);
  border-radius: 4px;
}

.btn--primary:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  opacity: 1;
}

.btn--primary:active {
  background-color: var(--color-gold-dark);
  transform: translateY(0);
}

.btn--secondary {
  padding: 14px 28px;
  background-color: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  border-radius: 4px;
}

.btn--secondary:hover {
  background-color: var(--color-gold);
  color: var(--color-black);
  transform: translateY(-2px);
  opacity: 1;
}

.btn--secondary:active {
  background-color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
}

.btn--ghost {
  padding: 14px 28px;
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.btn--ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  opacity: 1;
}

.btn--ghost:active {
  background-color: rgba(237, 190, 68, 0.1);
}

.btn__arrow {
  transition: transform 0.3s ease;
}

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

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  margin-bottom: 48px;
}

.section-header__label-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-header__line {
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--color-gold);
}

.section-header__label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.section-header__title {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.section--dark .section-header__title {
  color: var(--color-white);
}

.section--light .section-header__title {
  color: var(--color-black);
}

/* ============================================
   PHOTO FRAMES
   ============================================ */
.photo-frame--rect {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.photo-frame--rect .photo-frame__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #2a2a2a 0%, #1a1a1a 30%, #333 60%, #222 100%);
}

.photo-frame--circle {
  border-radius: 50%;
  overflow: hidden;
  width: 160px;
  height: 160px;
}

.photo-frame--circle .photo-frame__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3a3a3a 0%, #1a1a1a 50%, #2a2a2a 100%);
}

/* ============================================
   GOLD DIVIDER
   ============================================ */
.gold-divider {
  width: 60px;
  height: 3px;
  background-color: var(--color-gold);
  margin: 24px 0;
}

.gold-divider--center {
  margin-left: auto;
  margin-right: auto;
}

.gold-divider--full {
  width: 100%;
  height: 1px;
  background-color: rgba(237, 190, 68, 0.3);
}

/* ============================================
   ICON CONTAINER
   ============================================ */
.icon-container {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(237, 190, 68, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section--dark .icon-container {
  background: rgba(237, 190, 68, 0.15);
}

.section--gold .icon-container {
  background: rgba(13, 13, 13, 0.1);
}

.icon-container svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section--gold .icon-container svg {
  stroke: var(--color-black);
}

.icon-container--lg {
  width: 80px;
  height: 80px;
}

.icon-container--lg svg {
  width: 36px;
  height: 36px;
}

/* ============================================
   SECTION VARIANTS
   ============================================ */
/* Section base padding (hero以外の全セクション共通) */
.section--dark,
.section--light,
.section--cream,
.section--gold {
  padding: 96px 0;
  border-top: 1px solid #333333;
  border-bottom: 1px solid #333333;
}

.section--dark {
  background: var(--color-black);
  color: var(--color-white);
}

.section--light {
  background: var(--bg-gold-gradient);
  color: var(--color-gray-700);
}

.section--cream {
  background: var(--bg-gold-light);
  color: var(--color-gray-700);
}

.section--gold {
  background: var(--color-gold);
  color: var(--color-black);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
/* セクション要素の場合: ボーダーは常時表示、中身だけフェードイン */
section.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

section.reveal-on-scroll > .container {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.reveal-on-scroll.revealed > .container {
  opacity: 1;
  transform: translateY(0);
}

/* セクション以外の要素の場合: 従来通り全体フェードイン */
.reveal-on-scroll:not(section) {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed:not(section) {
  opacity: 1;
  transform: translateY(0);
}

.stagger-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-on-scroll.revealed .stagger-child {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll.revealed .stagger-child:nth-child(1) { transition-delay: 0s; }
.reveal-on-scroll.revealed .stagger-child:nth-child(2) { transition-delay: 0.1s; }
.reveal-on-scroll.revealed .stagger-child:nth-child(3) { transition-delay: 0.2s; }
.reveal-on-scroll.revealed .stagger-child:nth-child(4) { transition-delay: 0.3s; }
.reveal-on-scroll.revealed .stagger-child:nth-child(5) { transition-delay: 0.4s; }
.reveal-on-scroll.revealed .stagger-child:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-black);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease;
}

.header--scrolled {
  background: rgba(51, 51, 51, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo img {
  height: 28px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-gold);
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.header__phone:hover {
  color: var(--color-gold);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s ease;
}

.header__hamburger.is-open {
  display: flex;
}

.header__hamburger.is-open span {
  background: var(--color-white);
}

.header__hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-gold);
  z-index: 999;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mobile-nav.is-open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav__header {
  margin-bottom: 40px;
}

.mobile-nav__logo {
  display: inline-block;
  margin-bottom: 12px;
}

.mobile-nav__message {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(13, 13, 13, 0.5);
  letter-spacing: 0.04em;
}

.mobile-nav__links {
  margin-bottom: 40px;
}

.mobile-nav__link {
  display: block;
  padding: 14px 0;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-nav__link:hover,
.mobile-nav__link--active {
  color: rgba(13, 13, 13, 0.6);
}

.mobile-nav__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  text-decoration: none;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  background: var(--color-black);
  padding: 96px 0;
}

.cta__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta__icon {
  margin-bottom: 32px;
}

.cta__headline {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.cta__sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cta__phone-number {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.02em;
}

.cta__phone-info {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 32px;
}

.cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-black);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2.5fr 1.5fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer__logo {
  display: block;
  margin-bottom: 16px;
}

.footer__logo img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__about-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 280px;
}

.footer__heading {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li {
  margin-bottom: 10px;
}

.footer__link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--color-gold);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer__practice-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
}

.footer__copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   PAGE HERO (トップ以外の下層ページ共通)
   ============================================ */
.page-hero {
  background: var(--color-black);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero__label-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.page-hero__line {
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--color-gold);
}

.page-hero__label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.page-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.page-hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

.page-hero__icon {
  margin: 0 auto var(--space-8);
}

/* Decorative corner accents */
.page-hero__corner {
  position: absolute;
  width: 80px;
  height: 80px;
}

.page-hero__corner--tl {
  top: 100px;
  left: 40px;
  border-top: 2px solid rgba(237, 190, 68, 0.2);
  border-left: 2px solid rgba(237, 190, 68, 0.2);
}

.page-hero__corner--tr {
  top: 100px;
  right: 40px;
  border-top: 2px solid rgba(237, 190, 68, 0.2);
  border-right: 2px solid rgba(237, 190, 68, 0.2);
}

.page-hero__corner--bl {
  bottom: 40px;
  left: 40px;
  border-bottom: 2px solid rgba(237, 190, 68, 0.2);
  border-left: 2px solid rgba(237, 190, 68, 0.2);
}

.page-hero__corner--br {
  bottom: 40px;
  right: 40px;
  border-bottom: 2px solid rgba(237, 190, 68, 0.2);
  border-right: 2px solid rgba(237, 190, 68, 0.2);
}

/* ============================================
   RESPONSIVE: TABLET (<= 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .section--dark,
  .section--light,
  .section--cream,
  .section--gold {
    padding: 64px 0;
  }

  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .section-header__title { font-size: 32px; }
  .cta__headline { font-size: 32px; }
  .cta__phone-number { font-size: 28px; }

  .page-hero {
    padding: 140px 0 64px;
  }
  .page-hero__title {
    font-size: 42px;
  }
  .page-hero__corner {
    width: 60px;
    height: 60px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header__nav { display: none; }
  .header__phone span { display: none; }
  .header__hamburger { display: flex; }
}

/* ============================================
   RESPONSIVE: MOBILE (<= 767px)
   ============================================ */
@media (max-width: 767px) {
  .section--dark,
  .section--light,
  .section--cream,
  .section--gold {
    padding: 48px 0;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 18px; }
  .section-header__title { font-size: 26px; }

  .page-hero {
    padding: 120px 0 48px;
  }
  .page-hero__title {
    font-size: 32px;
  }
  .page-hero__subtitle {
    font-size: 14px;
  }
  .pc-only {
    display: none;
  }
  .page-hero__corner {
    display: none;
  }

  .cta__headline { font-size: 26px; }
  .cta__phone-number { font-size: 24px; }
  .cta__buttons { flex-direction: column; align-items: center; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mobile-nav__link {
    padding: 12px 20px;
  }
  .mobile-nav__phone {
    padding: 16px 20px 4px;
  }
}


