/*
 * Theme Name: Adachi Gyouseisyo Child
 * Template:   cocoon-master
 * Version:    1.0
 * Description: 安達行政書士事務所 Cocoon子テーマ
 */

/* ============================================================
   Google Fonts 読み込み
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ============================================================
   カラー変数（サイト全体で使う色）
   ============================================================ */
:root {
  --navy:       #0d2340;
  --navy-mid:   #1a3a5c;
  --gold:       #b8860b;
  --gold-light: #d4a017;
  --cream:      #faf8f4;
  --border:     #e0dbd0;
  --text:       #1a1a1a;
  --text-mid:   #444444;
  --text-light: #777777;
}

/* ============================================================
   ベース：フォント・背景
   ============================================================ */
body {
  font-family: 'Noto Sans JP', sans-serif !important;
  background-color: var(--cream) !important;
  color: var(--text);
}

/* ============================================================
   ヘッダー（Cocoonのsite-header）
   ============================================================ */
#header {
  background-color: var(--navy) !important;
  border-bottom: none !important;
}

#header .site-name-text,
#header .site-name a {
  color: #ffffff !important;
  font-family: 'Noto Serif JP', serif !important;
  font-size: 18px !important;
}

#header .site-name-sub {
  color: var(--gold-light) !important;
  font-size: 12px !important;
}

/* ============================================================
   グローバルナビ（Cocoon nav）
   ============================================================ */
#navi {
  background-color: var(--navy) !important;
}

.navi-in > ul > li > a,
.navi-in > ul > li > span {
  color: rgba(255,255,255,0.85) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 18px 16px !important;
  border-bottom: 3px solid transparent !important;
  transition: all 0.2s !important;
}

.navi-in > ul > li > a:hover,
.navi-in > ul > li.current-menu-item > a {
  color: #ffffff !important;
  border-bottom-color: var(--gold-light) !important;
  background: transparent !important;
}

/* ============================================================
   トップページ：ヒーローセクション（固定ページまたはブロック使用時）
   ============================================================ */

/* ヒーローラッパー：各ページのトップに配置するブロック */
.hero-block {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1e4a6e 100%);
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 40px,
    rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 80px
  );
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(184,134,11,0.2);
  border: 1px solid rgba(212,160,23,0.5);
  color: var(--gold-light);
  font-size: 12px;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.hero-block h1,
.hero-block .hero-h1 {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.55 !important;
  margin-bottom: 18px !important;
}

.hero-block .hero-h1 em,
.hero-block h1 em {
  color: var(--gold-light);
  font-style: normal;
}

.hero-block .hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  line-height: 1.95;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   ボタン
   ============================================================ */
.btn-primary,
.wp-block-button.is-style-primary .wp-block-button__link {
  background-color: var(--gold) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 14px 34px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 3px !important;
  cursor: pointer;
  transition: background 0.2s !important;
  text-decoration: none !important;
  display: inline-block;
}

.btn-primary:hover,
.wp-block-button.is-style-primary .wp-block-button__link:hover {
  background-color: var(--gold-light) !important;
}

.btn-outline,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.45) !important;
  padding: 14px 34px !important;
  font-size: 15px !important;
  border-radius: 3px !important;
  text-decoration: none !important;
  display: inline-block;
  transition: background 0.2s !important;
}

.btn-outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255,255,255,0.12) !important;
}

/* ============================================================
   実績バー（Stats Bar）
   ============================================================ */
.stats-bar {
  background: #ffffff;
  border-top: none;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.stats-bar .stat-item {
  padding: 24px 36px;
  text-align: center;
  border-right: 1px solid var(--border);
  min-width: 140px;
}

.stats-bar .stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.stat-num span {
  font-size: 14px;
  color: var(--text-mid);
  font-family: 'Noto Sans JP', sans-serif;
}

.stat-label {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ============================================================
   セクション共通
   ============================================================ */
.section-inner,
.content-area {
  max-width: 900px !important;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title,
.entry-title {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  margin-bottom: 14px !important;
  line-height: 1.55 !important;
}

/* ============================================================
   お悩みリスト
   ============================================================ */
.worry-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: 6px;
  padding: 28px 32px;
  margin-bottom: 28px;
}

.worry-box ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.worry-box ul li {
  padding: 10px 0 10px 28px !important;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 15px;
  position: relative;
}

.worry-box ul li:last-child {
  border-bottom: none;
}

.worry-box ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}

/* ============================================================
   強み（選ばれる理由）カード
   ============================================================ */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.strength-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: 28px 24px;
}

.strength-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}

.strength-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.strength-text {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.85;
}

/* ============================================================
   サービスカードグリッド
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 18px;
  text-align: center;
}

.service-icon {
  font-size: 30px;
  margin-bottom: 12px;
}

.service-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.55;
}

.service-price {
  font-size: 12px;
  color: var(--gold);
  margin-top: 8px;
  font-weight: 700;
}

/* ============================================================
   ご依頼の流れ
   ============================================================ */
.flow-steps {
  display: flex;
  flex-direction: column;
}

.flow-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

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

.step-num {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--navy);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ============================================================
   CTAバンド（お問い合わせ誘導）
   ============================================================ */
.cta-band {
  background: var(--navy);
  padding: 60px 24px;
  text-align: center;
}

.cta-band h2 {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 22px !important;
  color: #ffffff !important;
  margin-bottom: 10px !important;
}

.cta-band p {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  margin-bottom: 6px;
}

.cta-tel {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  margin: 14px 0 6px;
}

.cta-hours {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  margin-bottom: 24px;
}

/* ============================================================
   料金カード
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.pricing-card.featured {
  border: 2px solid var(--navy);
}

.pricing-header {
  background: var(--cream);
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.pricing-card.featured .pricing-header {
  background: var(--navy);
}

.pricing-label-small {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.pricing-card.featured .pricing-label-small {
  color: var(--gold-light);
}

.pricing-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}

.pricing-card.featured .pricing-name {
  color: #ffffff;
}

.pricing-badge {
  display: inline-block;
  background: var(--gold);
  color: #ffffff;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pricing-body {
  padding: 20px 24px;
}

.pricing-amount {
  font-family: 'Noto Serif JP', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
}

.pricing-amount span {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 400;
  font-family: 'Noto Sans JP', sans-serif;
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-mid);
  margin-top: 8px;
  line-height: 1.78;
}

/* ============================================================
   注意事項ボックス
   ============================================================ */
.notice-box {
  background: #fff8e8;
  border: 1px solid #e8d48a;
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 28px;
}

.notice-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: #7a5500;
  margin-bottom: 12px;
}

.notice-box ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.notice-box ul li {
  font-size: 13px;
  color: #5a3f00;
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.75;
}

.notice-box ul li::before {
  content: '※';
  position: absolute;
  left: 0;
}

/* ============================================================
   よくある質問（FAQ）
   ============================================================ */
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.faq-q-mark {
  background: var(--navy);
  color: #ffffff;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.faq-a {
  padding: 0 20px 18px 60px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.85;
}

/* ============================================================
   お問い合わせページ
   ============================================================ */
.contact-split {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 240px;
}

.contact-tel-card {
  background: var(--navy);
  border-radius: 8px;
  padding: 26px;
  text-align: center;
  margin-bottom: 20px;
}

.contact-tel-label {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  margin-bottom: 10px;
}

.contact-tel-num {
  color: var(--gold-light);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.contact-tel-hours {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  margin-top: 8px;
}

.contact-free-note {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 20px;
}

.area-tag {
  display: inline-block;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-mid);
  margin: 3px 3px 3px 0;
}

.contact-form-wrap {
  flex: 1;
  min-width: 300px;
}

/* Cocoon標準フォームへの上書き */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.contact-page input[type="text"],
.contact-page input[type="tel"],
.contact-page input[type="email"],
.contact-page textarea {
  width: 100% !important;
  padding: 11px 14px !important;
  border: 1px solid var(--border) !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  background: #ffffff !important;
  margin-bottom: 4px;
  transition: border-color 0.2s;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--navy) !important;
  outline: none !important;
}

.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  background: var(--navy) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 14px 32px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  width: 100% !important;
  transition: background 0.2s !important;
}

.wpcf7-form input[type="submit"]:hover {
  background: var(--navy-mid) !important;
}

/* ============================================================
   プロフィールページ
   ============================================================ */
.profile-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.profile-photo {
  width: 200px;
  min-width: 200px;
  border-radius: 6px;
  overflow: hidden;
}

.profile-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.profile-info .profile-role {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.profile-info .profile-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.profile-message-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 28px 32px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 2;
  margin-top: 32px;
}

.timeline-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin-top: 32px;
}

.timeline-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.timeline-item {
  display: flex;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.timeline-year {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  min-width: 65px;
  padding-top: 2px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.78;
}

.license-band {
  background: var(--navy);
  border-radius: 8px;
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.license-band .license-text {
  color: #ffffff;
}

.license-band .license-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.license-band .license-text p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

/* ============================================================
   フッター
   ============================================================ */
#footer {
  background-color: var(--navy) !important;
  color: rgba(255,255,255,0.6) !important;
  text-align: center;
  padding: 32px 24px !important;
}

#footer a,
#footer .footer-title {
  color: rgba(255,255,255,0.85) !important;
  font-size: 14px !important;
}

.footer-copy {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  margin-top: 8px;
}

/* ============================================================
   Cocoon デフォルト上書き（余白・アイキャッチなど）
   ============================================================ */

/* 記事タイトルの装飾を削除 */
.entry-title {
  border-left: none !important;
  padding-left: 0 !important;
}

/* サイドバーを非表示にしたい場合（固定ページ向け）*/
.is-page .sidebar {
  display: none;
}

/* パンくずリストの色 */
.breadcrumb-item a,
.breadcrumb {
  color: var(--text-light) !important;
  font-size: 12px;
}

/* ============================================================
   レスポンシブ（スマホ対応）
   ============================================================ */
@media (max-width: 767px) {
  .hero-block {
    padding: 60px 20px 56px;
  }

  .hero-block h1,
  .hero-block .hero-h1 {
    font-size: 22px !important;
  }

  .stats-bar {
    flex-wrap: wrap;
  }

  .stats-bar .stat-item {
    width: 50%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .strengths-grid,
  .services-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .contact-split {
    flex-direction: column;
  }

  .profile-layout {
    flex-direction: column;
  }

  .profile-photo {
    width: 100%;
    min-width: unset;
  }

  .cta-tel {
    font-size: 24px;
  }

  .faq-a {
    padding-left: 20px;
  }

  .section-inner,
  .content-area {
    padding: 40px 16px;
  }
}
