/* ===== 変数 ===== */
:root {
  --primary: #1a5276;
  --primary-light: #2980b9;
  --primary-dark: #0e3a54;
  --accent: #27ae60;
  --accent-light: #2ecc71;
  --text: #2c3e50;
  --text-light: #5d6d7e;
  --bg: #ffffff;
  --bg-light: #f8fafb;
  --bg-dark: #1a2332;
  --border: #e8ecef;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 8px;
}

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

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent); }

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

ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #219a52; color: #fff; }
.btn--outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn--outline:hover { background: #fff; color: var(--primary); }
.btn--full { width: 100%; }

/* ===== セクションタイトル ===== */
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  text-align: center;
  margin-bottom: 48px;
  color: var(--primary);
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
}
.section-title--light { color: #fff; }
.section-title--light::after { background: rgba(255,255,255,0.5); }

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: all 0.3s;
}
.header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.header__logo { display: flex; flex-direction: column; }
.header__logo-main {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.header__logo-sub { font-size: 11px; color: var(--text-light); }

.header__nav-list { display: flex; gap: 28px; align-items: center; }
.header__nav-link { font-size: 14px; color: var(--text); font-weight: 500; }
.header__nav-link:hover { color: var(--accent); }
.header__nav-link--cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius);
}
.header__nav-link--cta:hover { background: #219a52; }

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding-top: 72px;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="20" cy="80" r="50" fill="rgba(39,174,96,0.05)"/></svg>');
  background-size: cover;
}
.hero__content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  color: #fff;
}
.hero__sub {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.hero__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}
.hero__desc {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== 特徴 ===== */
.features { padding: 0; margin-top: -40px; position: relative; z-index: 10; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card__icon { font-size: 36px; margin-bottom: 16px; }
.feature-card__title { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.feature-card__text { font-size: 14px; color: var(--text-light); }

/* ===== 事務所紹介 ===== */
.about { padding: 100px 0 80px; }
.about__content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about__heading {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 20px;
}
.about__text p { margin-bottom: 16px; font-size: 15px; color: var(--text-light); }
.about__info { display: flex; gap: 24px; margin-top: 28px; }
.about__info-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-light);
  padding: 16px 20px;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.about__info-label { font-size: 12px; color: var(--text-light); }
.about__info-value { font-size: 18px; font-weight: 700; color: var(--primary); }
.about__image-placeholder {
  background: var(--bg-light);
  border-radius: var(--radius);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
  border: 2px dashed var(--border);
}

/* ===== 業務案内 ===== */
.services { padding: 80px 0; background: var(--bg-light); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  transition: all 0.3s;
  border-top: 3px solid transparent;
}
.service-card:hover { border-top-color: var(--accent); transform: translateY(-2px); }
.service-card__number {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 8px;
}
.service-card__title { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.service-card__text { font-size: 13px; color: var(--text-light); }

/* ===== 対応業種 ===== */
.industries { padding: 60px 0; background: var(--primary); }
.industries__desc { text-align: center; color: rgba(255,255,255,0.7); margin-bottom: 32px; }
.industries__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tag {
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
}

/* ===== スタッフ ===== */
.staff { padding: 80px 0; }
.staff-card--main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-bottom: 48px;
  align-items: start;
}
.staff-card__photo-placeholder {
  background: var(--bg-light);
  border-radius: var(--radius);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
  border: 2px dashed var(--border);
}
.staff-card__role {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 8px;
}
.staff-card__name {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 4px;
}
.staff-card__name-en { display: block; font-size: 13px; color: var(--text-light); font-weight: 400; }
.staff-card__title { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.staff-card__career h4 { font-size: 14px; color: var(--primary); margin-bottom: 8px; }
.staff-card__career ul { list-style: none; }
.staff-card__career li {
  font-size: 13px;
  color: var(--text-light);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}
.staff-card__career li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 10px;
}
.staff-card__message { font-size: 14px; color: var(--text-light); margin-top: 16px; line-height: 1.8; }

.staff__sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.staff-card--sub {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius);
}
.staff-card--sub .staff-card__photo-placeholder {
  width: 100px;
  height: 100px;
  min-width: 100px;
  border-radius: 50%;
}
.staff-card--sub .staff-card__name { font-size: 18px; }

/* ===== アクセス ===== */
.access { padding: 80px 0; background: var(--bg-light); }
.access__content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.access__table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.access__table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  width: 120px;
  border-bottom: 1px solid var(--border);
}
.access__table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.access__directions h3 { font-size: 16px; color: var(--primary); margin-bottom: 12px; }
.access__directions li {
  font-size: 14px;
  color: var(--text-light);
  padding: 6px 0;
  list-style: none;
}
.access__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 400px; }
.access__map iframe { display: block; width: 100%; height: 100%; min-height: 400px; }
.email-svg { height: 18px; width: auto; vertical-align: middle; }
.phone-svg { height: 18px; width: auto; vertical-align: middle; user-select: none; }
.phone-svg--footer { height: 16px; }
.phone-call-btn {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 12px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  vertical-align: middle;
  transition: background 0.2s;
}
.phone-call-btn:hover { background: var(--primary-dark, #154360); color: #fff; }

/* ===== 提携先 ===== */
.partners { padding: 60px 0; }
.partners__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.partner-card {
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
}
.partner-card h3 { font-size: 15px; color: var(--primary); margin-bottom: 8px; }
.partner-card p { font-size: 13px; color: var(--text-light); }

/* ===== インターネット会計 ===== */
.internet-accounting { padding: 80px 0; }
.ia__lead {
  font-size: 17px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.8;
}
.ia__text p { font-size: 15px; color: var(--text-light); margin-bottom: 16px; }
.ia__benefits { margin-top: 40px; }
.ia__benefits h3 { font-size: 20px; color: var(--primary); margin-bottom: 24px; text-align: center; }
.ia__benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ia__benefit {
  display: flex;
  gap: 16px;
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius);
  align-items: flex-start;
}
.ia__benefit-number {
  min-width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}
.ia__benefit h4 { font-size: 15px; color: var(--primary); margin-bottom: 4px; }
.ia__benefit p { font-size: 13px; color: var(--text-light); }

@media (max-width: 768px) {
  .ia__benefits-grid { grid-template-columns: 1fr; }
}

/* ===== アカオニテング通信 ===== */
.newsletter { padding: 60px 0; }
.newsletter__desc { text-align: center; color: var(--text-light); margin-bottom: 32px; }
.newsletter__list { max-width: 700px; margin: 0 auto; }
.newsletter__item {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.newsletter__date { font-size: 13px; color: var(--text-light); min-width: 80px; }
.newsletter__link { font-size: 14px; color: var(--primary); }
.newsletter__link:hover { color: var(--accent); }
.newsletter__item--hidden { display: none; }
.newsletter__item--hidden.is-show { display: flex; }
.newsletter__more-wrap { text-align: center; margin-top: 20px; }
.newsletter__more {
  background: var(--primary);
  color: #fff;
  padding: 10px 28px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}
.newsletter__more:hover { background: var(--primary-dark); }
/* 旧サイトへのバックナンバー誘導ボタン。展開ボタン(青)と役割を区別するため緑(accent)系にする */
.newsletter__backnumber-wrap { text-align: center; margin-top: 24px; }
/* 旧サイト誘導ボタンは青(primary)。サイト内展開ボタンを廃止し、これ1つに集約した */
.newsletter__backnumber { line-height: 1.5; background: var(--primary); color: #fff; }
.newsletter__backnumber:hover { background: var(--primary-dark); color: #fff; }
/* 補足文は主文より小さく、2段目に改行表示する */
.newsletter__backnumber-note { display: block; font-size: 12px; font-weight: 400; opacity: 0.9; margin-top: 2px; }

/* ===== ご相談の流れ ===== */
.flow { padding: 80px 0; background: var(--bg-light); }
.flow__steps { max-width: 700px; margin: 0 auto; }
.flow__step {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  align-items: flex-start;
}
.flow__step-number {
  min-width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}
.flow__step-content h3 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.flow__step-content p { font-size: 14px; color: var(--text-light); }
.btn--small {
  display: inline-block;
  padding: 8px 16px;
  font-size: 13px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  margin-top: 8px;
}
.btn--small:hover { background: var(--primary-dark); color: #fff; }

/* ===== お問い合わせ ===== */
.contact { padding: 80px 0; background: var(--primary); }
.contact__desc { text-align: center; color: rgba(255,255,255,0.8); margin-bottom: 40px; }
.contact__content { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.contact__phone { text-align: center; }
.contact__phone-label { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 8px; }
.contact__phone-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.contact__phone-hours { color: rgba(255,255,255,0.6); font-size: 13px; }

.contact__form { background: #fff; padding: 36px; border-radius: var(--radius); }
.form__group { margin-bottom: 20px; }
.form__label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form__required { color: #e74c3c; font-size: 12px; }
.form__input, .form__textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: border 0.3s;
}
.form__input:focus, .form__textarea:focus { outline: none; border-color: var(--accent); }

/* ===== フッター ===== */
.footer { padding: 48px 0 24px; background: var(--bg-dark); color: rgba(255,255,255,0.7); }
.footer__inner { display: flex; justify-content: space-between; align-items: start; margin-bottom: 32px; }
.footer__logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  color: #fff;
  margin-bottom: 12px;
}
.footer__info p { font-size: 13px; line-height: 1.8; }
.footer__info a { color: rgba(255,255,255,0.7); }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer__nav a:hover { color: #fff; }
.footer__copy { text-align: center; font-size: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 72px;
    right: -280px;
    width: 260px;
    bottom: auto;
    background: #ffffff;
    z-index: 999;
    padding: 24px 0;
    border-radius: 0 0 0 12px;
    box-shadow: -4px 4px 20px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
  }
  .header__nav.is-open { right: 0; }
  .header.is-menu-open { background: #ffffff !important; backdrop-filter: none !important; }
  .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
  }
  .header__nav-link {
    font-size: 15px;
    display: block;
    padding: 14px 28px;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }
  .header__nav-link:hover { background: #f8fafb; }
  .header__nav-link--cta {
    margin: 16px 20px 0;
    text-align: center;
    width: auto;
    border-bottom: none;
  }
  .header__hamburger { display: flex; }
  .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); }

  .hero { min-height: 500px; }
  .hero__title { font-size: 28px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; }

  .features__grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 24px 20px; }

  .about__content { grid-template-columns: 1fr; }
  .about__info { flex-direction: column; }
  .about__image { order: -1; }

  .services__grid { grid-template-columns: 1fr 1fr; }

  .staff-card--main { grid-template-columns: 1fr; }
  .staff__sub-grid { grid-template-columns: 1fr; }

  .access__content { grid-template-columns: 1fr; }

  .partners__grid { grid-template-columns: 1fr; }

  .contact__content { grid-template-columns: 1fr; }
  .contact__phone { margin-bottom: 20px; }

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

@media (max-width: 480px) {
  .hero__title { font-size: 24px; }
  .services__grid { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
}
