/* ===========================
   松本税理士事務所 — style.css
   =========================== */

:root {
  --navy:       #1A2F5A;
  --navy-mid:   #243F73;
  --navy-light: #2E5090;
  --gold:       #B89A60;
  --gold-light: #D4B880;
  --text:       #222222;
  --text-light: #777777;
  --white:      #FFFFFF;
  --bg-light:   #F4F6FA;
  --border:     #DEE3EE;
  --radius:     3px;
  --transition: 0.3s ease;
  --shadow:     0 2px 20px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.85;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.bg-light { background: var(--bg-light); }

/* --- スクロール出現 --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- セクションヘッド --- */
.section-head { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 16px;
  color: var(--navy);
}
.section-desc { color: var(--text-light); font-size: 0.9rem; max-width: 520px; margin: 0 auto; }

/* --- ボタン --- */
.btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
}
.btn-outline-white {
  display: inline-block;
  padding: 15px 40px;
  background: transparent;
  color: var(--white);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  border: 1.5px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-outline-navy {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: var(--navy);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  border: 1.5px solid var(--navy);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ===========================
   ヘッダー
   =========================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}
#header.scrolled {
  background: var(--white);
  box-shadow: 0 1px 12px rgba(0,0,0,0.1);
}
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px; height: 40px;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lato', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background var(--transition);
}
#header.scrolled .logo-mark { background: var(--navy); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.logo-sub {
  font-family: 'Lato', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
#header.scrolled .logo-main { color: var(--navy); }
#header.scrolled .logo-sub { color: var(--text-light); }

.nav ul { display: flex; gap: 28px; align-items: center; }
.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.88);
  transition: color var(--transition);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }
#header.scrolled .nav a { color: var(--text); }
#header.scrolled .nav a:hover { color: var(--navy); }

.nav .nav-btn {
  padding: 9px 22px;
  background: var(--gold);
  color: var(--white);
  border-radius: 0;
  font-weight: 500;
  transition: background var(--transition), transform var(--transition);
}
.nav .nav-btn:hover { background: var(--gold-light); transform: none; }
.nav .nav-btn::after { display: none; }
#header.scrolled .nav .nav-btn { color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px; height: 18px;
  background: none; border: none;
  cursor: pointer; padding: 0;
}
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
#header.scrolled .hamburger span { background: var(--text); }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===========================
   ヒーロー
   =========================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(20,35,70,0.82) 40%, rgba(20,35,70,0.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 40px 80px;
  max-width: 700px;
  margin-left: max(40px, calc(50vw - 530px));
  color: var(--white);
}
.hero-sub {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  opacity: 0;
}
.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 24px;
  opacity: 0;
}
.hero-desc {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 2;
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
  opacity: 0;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; }

.fade-seq { animation: fadeUp 0.9s ease forwards; }
.hero-sub  { animation-delay: 0.3s; }
.hero-content h1 { animation-delay: 0.6s; }
.hero-desc { animation-delay: 0.9s; }
.hero-btns { animation-delay: 1.15s; }
.hero-stats { animation-delay: 1.4s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* カウンター */
.hero-stats {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: center;
  gap: 0;
  opacity: 0;
}
.stat-item {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 36px 20px;
  border-right: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Lato', sans-serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
}
.stat-unit { font-size: 1.1rem; color: var(--gold-light); }
.stat-item p { font-size: 0.78rem; color: rgba(255,255,255,0.6); letter-spacing: 0.12em; margin-top: 6px; }

/* ===========================
   事務所について
   =========================== */
.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: center;
}
.about-img { position: relative; }
.about-img img { aspect-ratio: 4/5; object-fit: cover; }
.about-img-label {
  position: absolute;
  bottom: 0; left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 16px 24px;
}
.label-role { font-size: 0.72rem; letter-spacing: 0.12em; color: var(--gold-light); }
.label-name { font-size: 1.1rem; font-weight: 500; margin-top: 4px; }
.about-text .section-label { display: block; margin-bottom: 12px; }
.about-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--navy);
  margin-bottom: 20px;
}
.about-text .lead { font-size: 1rem; font-weight: 500; margin-bottom: 14px; }
.about-text p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; line-height: 1.9; }
.about-profile { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 24px; }
.about-profile dl { display: flex; flex-direction: column; gap: 12px; }
.profile-row { display: flex; gap: 20px; font-size: 0.85rem; }
.profile-row dt { min-width: 56px; color: var(--gold); font-weight: 500; }
.profile-row dd { color: var(--text-light); }

/* ===========================
   サービス
   =========================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: var(--navy-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.service-icon {
  width: 48px; height: 48px;
  color: var(--navy);
  margin-bottom: 20px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.5;
}
.service-card p { font-size: 0.86rem; color: var(--text-light); line-height: 1.9; }

/* ===========================
   選ばれる理由
   =========================== */
.strength-section {
  position: relative;
  padding: 96px 0;
}
.strength-bg { position: absolute; inset: 0; }
.strength-bg img { width: 100%; height: 100%; object-fit: cover; }
.strength-overlay {
  position: absolute; inset: 0;
  background: rgba(20,35,70,0.85);
}
.strength-section .container { position: relative; z-index: 1; }
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.strength-item {
  color: var(--white);
  padding: 40px 32px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  transition: background var(--transition);
}
.strength-item:hover { background: rgba(255,255,255,0.08); }
.strength-num {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 16px;
}
.strength-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.strength-item p { font-size: 0.86rem; color: rgba(255,255,255,0.72); line-height: 1.9; }

/* ===========================
   料金プラン
   =========================== */
.price-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.plan-card {
  border: 1px solid var(--border);
  padding: 40px 32px;
  position: relative;
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}
.plan-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.plan-recommended {
  border: 2px solid var(--navy);
  transform: scale(1.02);
}
.plan-recommended:hover { transform: scale(1.02) translateY(-4px); }
.plan-badge {
  position: absolute;
  top: -1px; right: 24px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
}
.plan-head { text-align: center; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.plan-type { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; color: var(--text-light); margin-bottom: 16px; }
.plan-price { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.plan-from { font-size: 0.75rem; color: var(--text-light); margin-right: 4px; }
.plan-num {
  font-family: 'Lato', sans-serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
}
.plan-unit { font-size: 1rem; color: var(--text-light); }
.plan-tax { font-size: 0.72rem; color: var(--text-light); margin-top: 6px; }
.plan-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.plan-list li {
  font-size: 0.86rem;
  padding-left: 16px;
  position: relative;
  color: var(--text);
}
.plan-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 1px;
  background: var(--gold);
}
.plan-card .btn-primary,
.plan-card .btn-outline-navy { display: block; text-align: center; width: 100%; }

/* ===========================
   アクセス
   =========================== */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.access-map { aspect-ratio: 4/3; }
.access-map iframe { width: 100%; height: 100%; border: none; }
.access-info dl { display: flex; flex-direction: column; gap: 20px; }
.info-row { display: flex; gap: 24px; font-size: 0.88rem; }
.info-row dt { min-width: 72px; color: var(--gold); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; padding-top: 2px; }
.info-row dd { line-height: 1.85; color: var(--text); }
.info-row dd small { font-size: 0.78rem; color: var(--text-light); }
.info-row dd a { color: var(--navy); border-bottom: 1px solid var(--border); }
.access-btn { margin-top: 32px; text-align: center; display: block; }

/* ===========================
   フォーム
   =========================== */
.contact-form { max-width: 720px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.05em; margin-bottom: 8px; color: var(--navy); }
.required { font-size: 0.7rem; color: #C0392B; margin-left: 6px; font-weight: 400; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  border-radius: var(--radius);
  transition: border-color var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { resize: vertical; }
.form-submit { text-align: center; margin-top: 8px; }
.form-note { text-align: center; font-size: 0.74rem; color: var(--text-light); margin-top: 14px; }

/* ===========================
   フッター
   =========================== */
footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 48px 24px 32px; }
.footer-inner { max-width: 1140px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-logo-main { display: block; font-size: 1.1rem; font-weight: 700; color: var(--white); letter-spacing: 0.08em; }
.footer-logo-sub { display: block; font-family: 'Lato', sans-serif; font-size: 0.62rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.4); margin-top: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; }
.footer-nav a { font-size: 0.78rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-nav a:hover { color: var(--white); }
.footer-address { font-size: 0.76rem; color: rgba(255,255,255,0.4); }
.footer-sns {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.sns-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  transition: background var(--transition), border-color var(--transition);
}
.sns-icon-link:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.45);
}
.sns-icon-link img {
  width: 18px; height: 18px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.6;
  transition: opacity var(--transition);
}
.sns-icon-link:hover img { opacity: 1; }
.copyright { font-size: 0.7rem; color: rgba(255,255,255,0.28); letter-spacing: 0.08em; }

/* ===========================
   レスポンシブ
   =========================== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img img { aspect-ratio: 3/2; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .strength-grid { grid-template-columns: 1fr; gap: 20px; }
  .price-plans { grid-template-columns: 1fr; }
  .plan-recommended { transform: none; }
  .access-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  #header { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right var(--transition);
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  }
  .nav.open { right: 0; }
  .nav ul { flex-direction: column; gap: 24px; text-align: center; }
  .nav a { color: var(--text); font-size: 0.95rem; }
  .hero-content { padding: 100px 24px 60px; margin-left: 0; max-width: 100%; }
  .hero-stats { flex-wrap: wrap; }
  .stat-item { min-width: 160px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .service-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===========================
   Google Forms 埋め込み
   =========================== */
.google-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
  min-height: 900px;
  position: relative;
  overflow: hidden;
}
.google-form-wrapper iframe {
  display: block;
  width: 100%;
  border: none;
}

/* フォームURL未設定時のプレースホルダー */
.form-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  min-height: 480px;
  background: var(--bg-light);
  text-align: center;
  gap: 20px;
}
.form-placeholder-icon { color: var(--navy); opacity: 0.4; }
.form-placeholder-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}
.form-placeholder-desc {
  font-size: 0.86rem;
  color: var(--text-light);
  max-width: 440px;
  line-height: 1.9;
}
.form-placeholder-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  margin-top: 8px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text);
  text-align: left;
}
.step-num {
  width: 24px; height: 24px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .google-form-wrapper { min-height: 700px; }
  .form-placeholder { padding: 40px 20px; }
}
