/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #002060;
  --navy-light: #003080;
  --gold:    #b8960c;
  --gray-dark: #333333;
  --gray-mid:  #666666;
  --gray-light: #f4f4f6;
  --white:   #ffffff;
  --border:  #d8d8d8;
  --font-serif: 'Noto Serif JP', 'Yu Mincho', '游明朝', serif;
  --font-sans:  'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --max-w: 1100px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.8;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.section { padding: 96px 0; }
.bg-light { background: var(--gray-light); }

/* ===== セクションヘッダー ===== */
.section-header { text-align: center; margin-bottom: 60px; }

.section-en {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--navy);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-line {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 24px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--gray-mid);
  line-height: 1.9;
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-hero {
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-hero:hover { background: var(--gold); color: var(--white); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-light); }

.btn-outline {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { flex-shrink: 0; }
.logo-ja {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.logo-en {
  display: block;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--gray-mid);
}

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

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gray-dark);
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--navy);
  transition: width var(--transition);
}
.nav-link:hover::after { width: 100%; }

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 2px;
  font-size: 0.8rem;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--navy-light); }

.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(--navy);
  transition: all var(--transition);
}

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
}
.hero-bg {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,20,70,0.82) 0%,
    rgba(0,20,70,0.75) 40%,
    rgba(0,20,70,0.40) 65%,
    rgba(0,20,70,0.08) 80%,
    rgba(0,20,70,0.00) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  padding-top: 72px;
}

.hero-sub {
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.55;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.hero-lead {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  line-height: 2;
  margin-bottom: 44px;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.4);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== 安心ポイント帯 ===== */
.trust-bar {
  background: var(--navy);
  padding: 28px 0;
}
.trust-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.92);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}
.trust-icon {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
}

/* ===== 事務所について ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: center;
}

.about-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.about-text p {
  color: var(--gray-mid);
  font-size: 0.93rem;
  line-height: 2;
  margin-bottom: 16px;
}

.about-image img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 8px 8px 32px rgba(0,0,0,0.12);
}

/* ===== サービスカード ===== */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.service-card {
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.service-card-img {
  height: 200px;
  overflow: hidden;
}
.service-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.04); }

.service-card-body { padding: 28px 24px 32px; }

.service-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
}

.service-desc {
  font-size: 0.87rem;
  color: var(--gray-mid);
  line-height: 1.9;
  margin-bottom: 20px;
}

.service-price { display: flex; flex-direction: column; gap: 4px; }
.price-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gray-mid);
}
.price-value {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
}
.price-note { font-size: 0.72rem; color: var(--gray-mid); }

/* 料金CTAのみ */
.fee-cta-wrap {
  text-align: center;
  margin-top: 8px;
}

/* ===== プロフィール ===== */
.profile-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: start;
}

.profile-image {
  position: relative;
}
.profile-image img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 8px 8px 32px rgba(0,0,0,0.12);
}

.profile-name-card {
  background: var(--navy);
  color: var(--white);
  padding: 20px 24px;
  margin-top: -2px;
}
.profile-name-ja {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.profile-name-title {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8);
}

.profile-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.profile-text p {
  font-size: 0.93rem;
  color: var(--gray-mid);
  line-height: 2;
  margin-bottom: 16px;
}

.profile-career {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.profile-career h4 {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.profile-career ul { display: flex; flex-direction: column; gap: 8px; }
.profile-career li {
  font-size: 0.88rem;
  color: var(--gray-mid);
  padding-left: 16px;
  position: relative;
}
.profile-career li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-size: 0.75rem;
}

/* ===== 契約の流れ ===== */

.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 56px;
}

.flow-step {
  flex: 1;
  background: var(--white);
  padding: 32px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.step-number {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 300;
  color: var(--navy);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.step-desc {
  font-size: 0.83rem;
  color: var(--gray-mid);
  line-height: 1.9;
}

.flow-arrow {
  flex-shrink: 0;
  color: var(--navy);
  font-size: 1.5rem;
  opacity: 0.3;
  margin-top: 48px;
}

.flow-cta {
  text-align: center;
}
.flow-cta p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 24px;
  letter-spacing: 0.06em;
}

/* ===== お問い合わせ ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 24px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--gray-dark);
  letter-spacing: 0.04em;
}

.required {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.93rem;
  color: var(--gray-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,32,96,0.08);
}
.form-input.error,
.form-select.error,
.form-textarea.error { border-color: #c0392b; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

.form-error {
  font-size: 0.78rem;
  color: #c0392b;
  display: none;
}
.form-error.visible { display: block; }

.form-check-group { flex-direction: row; align-items: center; flex-wrap: wrap; }
.form-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--gray-mid);
}
.form-check-label input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}
.link-inline { color: var(--navy); text-decoration: underline; }

.form-submit { text-align: center; margin-top: 8px; }
.btn-submit { padding: 16px 64px; font-size: 1rem; }

/* 問い合わせ情報 */
.contact-info {
  background: var(--gray-light);
  padding: 36px 28px;
}
.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.06em;
}
.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 20px;
}
.info-list dt {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.info-list dd {
  font-size: 0.85rem;
  color: var(--gray-mid);
  line-height: 1.8;
}

/* 送信完了 */
.form-success {
  display: none;
  text-align: center;
  padding: 80px 40px;
}
.form-success.visible { display: block; }
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.form-success p { font-size: 0.93rem; color: var(--gray-mid); line-height: 2; }

/* ===== フッター ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  gap: 40px;
}

.footer-logo-ja {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.footer-logo-en {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: flex-end;
}
.footer-nav a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}
.footer-privacy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}
.footer-privacy:hover { color: var(--white); }

/* ===== ページトップ ===== */
.page-top {
  position: fixed;
  bottom: 36px; right: 36px;
  width: 48px; height: 48px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 2px;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), background var(--transition);
  z-index: 900;
}
.page-top.visible { opacity: 1; pointer-events: all; }
.page-top:hover { background: var(--navy-light); }

/* ===== フェードインアニメーション ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== レスポンシブ ===== */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
  /* ヒーロー タブレット調整 */
  .hero-bg { object-position: 75% center; }
  .hero-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
  .hero-content { padding: 0 32px; padding-top: 72px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { max-width: 480px; margin: 0 auto; }
  .service-cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto 48px; }
  .fee-section { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-image { max-width: 320px; }
  .flow-steps { flex-direction: column; gap: 0; margin-bottom: 40px; }
  .flow-arrow { display: none; }
  /* カードをタイムライン形式に変換 */
  .flow-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0 0;
    position: relative;
  }
  /* 縦の繋がり線 */
  .flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -12px;
    width: 2px;
    background: rgba(0,32,96,0.18);
  }
  .step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    letter-spacing: 0;
  }
  .step-body {
    flex: 1;
    background: var(--white);
    padding: 14px 18px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 16px;
  }
  .step-title { font-size: 0.93rem; margin-bottom: 6px; }
  .step-desc { font-size: 0.82rem; line-height: 1.8; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-nav ul { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  .nav { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); padding: 24px 0; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: center; gap: 20px; }
  .hamburger { display: flex; }
  .trust-list { gap: 20px; justify-content: flex-start; }
  .section { padding: 64px 0; }
  .section-title { font-size: 1.6rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-top { bottom: 20px; right: 20px; }

  /* ヒーロー SP調整 */
  .hero {
    height: 100svh;
    min-height: 600px;
    align-items: center;
  }
  .hero-bg {
    object-position: 72% top;
  }
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0,20,70,0.10) 0%,
      rgba(0,20,70,0.25) 35%,
      rgba(0,20,70,0.72) 65%,
      rgba(0,10,50,0.88) 100%
    );
  }
  .hero-content {
    padding: 80px 20px 0;
  }
  .hero-sub {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
  }
  .hero-title {
    font-size: clamp(1.65rem, 6.5vw, 2.2rem);
    line-height: 1.6;
    margin-bottom: 20px;
  }
  .hero-lead {
    font-size: 0.85rem;
    line-height: 1.9;
    margin-bottom: 32px;
  }
  .hero-lead br { display: none; }
  .btn-hero {
    padding: 13px 32px;
    font-size: 0.9rem;
    margin-top: 120px;
  }
  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .hero-bg { object-position: 75% top; }
}
