/*
Theme Name: sagazm-child
Theme URI: https://example.com/
Description: Twenty Twenty-Five child theme for 佐賀財務金融サポート事務所
Author: (Your Name)
Template: twentytwentyfive
Version: 1.0.0
Text Domain: sagazm-child
*/

/* ===================================================
   佐賀財務金融サポート事務所 リニューアル
   Version: 2.2 (Palette & Sections)
   =================================================== */

   :root {
    /* Colors */
    --color-main: #0B2C4A;
    --color-main-dark: #071E33;
    --color-accent: #C9A227;
    --color-accent-dark: #A8841E;
    --color-text: #1F2937;
    --color-bg-light: #F3F6F9;
    --color-white: #ffffff;
    --color-main-soft: rgba(11, 44, 74, 0.08);
    --color-accent-soft: rgba(201, 162, 39, 0.16);

    /* Fonts */
    --font-en: 'Jost', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;

    /* Layout */
    --width-container: 1080px;
    --header-height: 80px;
  }

/* 1. Base Setup */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-size: 16px;
  font-family: var(--font-jp);
  color: var(--color-text);
  line-height: 1.8;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1 {
	font-weight: bold;
}

a {
  color: var(--color-main);
  text-decoration: none;
  transition: opacity 0.3s, color 0.3s;
}
a:hover { opacity: 0.7; }

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  object-fit: cover;
}

ul, ol { list-style: none; padding: 0; margin: 0; }

.container {
  width: 90%;
  max-width: var(--width-container);
  margin: 0 auto;
}

/* スクロールアニメーション */
.js-fadeUp,
.js-fadeIn,
.js-slideLeft,
.js-slideRight,
.js-zoomIn {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.js-fadeUp { transform: translateY(20px); }
.js-fadeIn { transform: none; }
.js-slideLeft { transform: translateX(24px); }
.js-slideRight { transform: translateX(-24px); }
.js-zoomIn { transform: scale(0.97); }

.js-fadeUp.is-visible,
.js-fadeIn.is-visible,
.js-slideLeft.is-visible,
.js-slideRight.is-visible,
.js-zoomIn.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-fadeUp,
  .js-fadeIn,
  .js-slideLeft,
  .js-slideRight,
  .js-zoomIn {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* 2. Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: var(--width-container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-main);
}

/* PC Nav */
.site-nav { display: none; }
@media (min-width: 900px) {
  .site-nav { display: block; }
  .site-nav ul { display: flex; gap: 24px; align-items: center; }
  .site-nav a {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
  }
  .site-nav a:not(.nav-btn-contact)::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s;
  }
  .site-nav a:not(.nav-btn-contact):hover::after { width: 100%; }
}

.nav-btn-contact {
  background: var(--color-main);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem !important;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  z-index: 1001;
}
@media (min-width: 900px) { .hamburger { display: none; } }

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-main);
  margin: 0 auto;
  transition: 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 1000;
  padding-top: 80px;
  transform: translateX(100%);
  transition: transform 0.3s;
}
.drawer.is-open { transform: translateX(0); }
.drawer-nav ul { padding: 20px; text-align: center; gap: 15px; display: flex; flex-direction: column; }
.drawer-nav a { font-weight: 700; display: block; padding: 10px; }
.drawer-btn { background: var(--color-main); color: #fff !important; padding: 12px 40px !important; border-radius: 50px; display: inline-block; }

/* 3. Hero (KV) with Slider */
.kv-section {
  position: relative;
  width: 100%;
  margin-top: var(--header-height);
  margin-bottom: 120px;
}

.kv-slider-wrap {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.kv-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 1;
}
.kv-slide.is-active { opacity: 1; z-index: 2; }

.kv-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgb(255 255 255 / 43%) 50%, rgba(255, 255, 255, 0) 100%);
  z-index: 3;
}

.kv-content {
  position: absolute;
  top: 10%;
  left: 13%;
  transform: translate(-50%, -60%);
  width: 90%;
  max-width: var(--width-container);
  z-index: 4;
}

.kv-copy-box { max-width: 600px; }

.kv-sub {
  color: var(--color-main);
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kv-sub::before {
  content: "";
  width: 30px;
  height: 3px;
  background: var(--color-accent);
}

.kv-title {
/*   width: max-content; */
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--color-text);
}
.kv-title .highlight {
  color: var(--color-main);
  background: linear-gradient(transparent 65%, #E6EEF5 65%);
}

.kv-lead { margin-bottom: 30px; font-weight: 500; color: #555; }

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  text-align: center;
}
.btn-primary { background: var(--color-main); color: #fff; }
.btn-primary:hover { background: var(--color-main-dark); color: #fff; opacity: 1; }
.btn-shadow { box-shadow: 0 10px 20px rgba(11, 44, 74, 0.22); }
.btn-outline { border: 1px solid var(--color-main); color: var(--color-main); background: #fff; }
.btn-white-border { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-white-border:hover { background: #fff; color: var(--color-main); }
.btn-white-shadow {
  background: #fff;
  border: 1px solid #ddd;
  color: var(--color-text);
  padding: 12px 40px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.btn-white-shadow:hover { background: #f9f9f9; transform: translateY(-2px); }

/* Quick Access Cards */
.quick-access {
  position: absolute;
  bottom: -70px;
  left: 0;
  right: 0;
  transform: translate(-50%, 50%);
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: 90%;
  max-width: var(--width-container);
}

.quick-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s;
  min-height: 160px;
  border-bottom: 3px solid transparent;
}
.quick-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--color-main);
}

.quick-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: var(--color-main);
}
.quick-icon svg { width: 24px; height: 24px; }

.quick-info .en {
  display: block;
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: #999;
  font-weight: 600;
  margin-bottom: 4px;
}
.quick-info .jp { display: block; font-weight: 700; color: var(--color-main); font-size: 1rem; }

.quick-arrow {
  margin-top: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  position: relative;
}
.quick-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
}
.quick-card:hover .quick-arrow { background: var(--color-accent); }
.quick-card:hover .quick-arrow::after { border-color: #fff; }

/* 4. Common Section */
.section { padding: 80px 0; }

.center-head { text-align: center; margin-bottom: 50px; }
.en-title {
  display: block;
  font-family: var(--font-en);
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.section-title {
  font-size: 2rem;
  color: var(--color-main);
  font-weight: 700;
  margin: 0 0 16px;
}
.head-lead { font-size: 0.95rem; color: #666; }

/* 5. About (Diagonal White) */
.section-diagonal-white {
  position: relative;
  background: #fff;
  margin: 60px 0;
  padding: 100px 0;
  clip-path: polygon(0 50px, 100% 0, 100% calc(100% - 50px), 0 100%);
}
.section-grid { display: flex; align-items: center; gap: 60px; }
.section-text { flex: 1; }
.section-head-left { margin-bottom: 24px; }
.section-head-left .section-title { font-size: 1.8rem; margin: 0; }
.section-media { flex: 1; }
.section-media img {
  border-radius: 12px;
  box-shadow: 20px 20px 0 rgba(11, 44, 74, 0.12);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* 6. Services */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-5px); }
.card-img { width: 100%; height: 180px; background: #eee; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
  font-size: 1.1rem;
  color: var(--color-main);
  margin-bottom: 12px;
  font-weight: 700;
  border-bottom: 2px solid var(--color-bg-light);
  padding-bottom: 10px;
}
.arrow-link {
  margin-top: auto;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-right: 30px;
}
.arrow-link::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateY(-50%);
}

.arrow-link::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}

/* 7. Strength (Background Image + Overlay) */
.section-strength {
  position: relative;
  padding: 140px 0 120px;
  color: #fff;
  margin-top: -80px;
  z-index: 1;
  clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 calc(100% - 50px));
}

.strength-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/strength.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.strength-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 44, 74, 0.88);
  z-index: -1;
}

.text-white { color: #fff !important; }
.text-accent { color: var(--color-accent) !important; }

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}
.strength-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 30px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
.strength-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 10px;
}
.strength-head .num {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.strength-head h3 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.strength-cta { text-align: center; }

/* 8. Flow */
.flow-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.flow-item {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
@media (min-width: 900px) {
  .flow-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -15px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #ccc;
    border-right: 2px solid #ccc;
    transform: translateY(-50%) rotate(45deg);
    z-index: 1;
  }
}
.flow-num {
  display: inline-block;
  background: var(--color-bg-light);
  color: var(--color-main);
  font-family: var(--font-en);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.flow-cta-box { text-align: center; }

/* 9. New News Section */
.section-news-new {
  padding: 100px 0;
  background: #fff;
}
.news-grid-new {
  margin: 0 auto 80px;
  display: flex;
  gap: 60px;
}
.news-head {
  width: 300px;
  flex-shrink: 0;
}
.news-head .en-title { font-size: 2rem; color: #333; margin-bottom: 0; line-height: 1; }
.news-head .section-title { font-size: 2.2rem; margin-bottom: 20px; }
.title-line { width: 50px; height: 3px; background: linear-gradient(to right, var(--color-accent) 50%, var(--color-main) 50%); margin-bottom: 20px; }
.news-desc { font-size: 0.9rem; margin-bottom: 30px; }

.news-body { flex: 1; }
.news-row {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  color: var(--color-text);
  gap: 20px;
}
.news-row:hover { background: #fcfcfc; }
.news-meta { display: flex; align-items: center; gap: 15px; width: 220px; flex-shrink: 0; }
.news-date { font-family: var(--font-en); font-weight: 700; }
.news-label { font-size: 0.75rem; padding: 4px 10px; color: #fff; border-radius: 4px; font-weight: 700; }
.label-info { background: rgba(11, 44, 74, 0.10); color: var(--color-main); }
.label-important { background: #fce8e6; color: #d32f2f; }

.news-title-text { flex: 1; font-weight: 500; }
.news-icon-arrow {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-main);
  position: relative;
}
.news-icon-arrow::after {
  content: ""; position: absolute; top: 50%; left: 45%;
  width: 6px; height: 6px; border-top: 2px solid #fff; border-right: 2px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}
.news-btn-sp { display: none; margin-top: 20px; text-align: center; }


/* 10. Additional Sections (Access / All-in-One / Consultation) */
.section-access {
  background: var(--color-bg-light);
}
.access-grid {
  display: flex;
  gap: 60px;
  align-items: center;
}
.access-info {
  width: 360px;
  flex-shrink: 0;
}
.access-address {
  font-weight: 700;
  color: var(--color-main);
  margin: 16px 0;
}
.access-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.access-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 14px;
}
.access-map { flex: 1; }
.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  background: #fff;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.section-allinone { background: #fff; }
.allinone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.aio-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}
.aio-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--color-main);
}
.aio-icon svg { width: 26px; height: 26px; }
.aio-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--color-main);
  font-weight: 700;
}
.aio-card p { margin: 0; color: #555; font-size: 0.9rem; }
.allinone-cta { text-align: center; margin-top: 34px; }

.section-consult { background: var(--color-bg-light); }
.consult-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.consult-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.consult-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.consult-icon svg { width: 22px; height: 22px; }
.consult-body h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--color-main);
  font-weight: 700;
}
.consult-body p { margin: 0; color: #555; font-size: 0.9rem; }
.consult-cta { text-align: center; margin-top: 34px; }

/* 11. Footer */
.site-footer {
  background: var(--color-main-dark); color: #fff; padding: 60px 0 20px;
  margin-bottom: 70px;
}
.footer-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-col h3 { font-size: 1.1rem; border-left: 3px solid var(--color-accent); padding-left: 10px; margin-bottom: 20px; }
.footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.75rem; opacity: 0.6; }

/* 12. Fixed CTA */
.fixed-cta {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--color-main);
  padding: 12px 0; z-index: 999;
  transform: translateY(100%); transition: transform 0.5s;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}
.fixed-cta.is-visible { transform: translateY(0); }
.fixed-cta-inner { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; max-width: var(--width-container); margin: 0 auto; }
.fixed-cta-text { font-weight: 700; color: var(--color-main); font-size: 0.9rem; margin: 0; }
.fixed-cta-tel { font-size: 1.2rem; margin-left: 5px; }
.fixed-cta-actions { display: flex; gap: 10px; }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }

/* ===================================================
   Mobile Optimization (Tight & Clean)
   =================================================== */
   @media (max-width: 768px) {
    .kv-title { font-size: 1.8rem; margin-bottom: 16px; }
    .section-title { font-size: 1.6rem; }

    /* Access / All-in-One / Consultation */
    .access-grid { flex-direction: column; gap: 22px; align-items: stretch; }
    .access-info { width: 100%; }
    .access-cta { flex-direction: column; }
    .access-cta .btn { width: 100%; }

    .kv-slider-wrap { height: 800px; clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
    .kv-content { top: 0%; left: 5%; transform: translate(-50%, -50%); width: 90%; }
    .kv-copy-box { text-align: left; }

    .quick-access {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      top: 330px;
      width: 94%;
    }
    .quick-card { min-height: auto; padding: 15px 5px; }
    .quick-icon { width: 40px; height: 40px; margin-bottom: 8px; }
    .quick-icon svg { width: 20px; height: 20px; }
    .quick-info .jp { font-size: 0.85rem; }

    .section { padding: 60px 0; }
    .section-diagonal-white, .section-strength {
      clip-path: polygon(0 20px, 100% 0, 100% calc(100% - 20px), 0 100%);
      padding: 60px 0;
    }
    .section-strength { padding-top: 100px; margin-top: -60px; clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 calc(100% - 20px)); }

    .section-grid { flex-direction: column; gap: 30px; }
    .strength-grid { grid-template-columns: 1fr; gap: 20px; }
    .flow-list { grid-template-columns: 1fr; gap: 15px; }

    .news-grid-new { flex-direction: column; gap: 30px; }
    .news-head { width: 100%; text-align: left; }
    .news-btn-pc { display: none; }
    .news-btn-sp { display: block; }

    .news-row { flex-direction: column; align-items: flex-start; gap: 8px; position: relative; }
    .news-meta { width: 100%; }
    .news-icon-arrow { position: absolute; right: 0; top: 20px; }

    .fixed-cta-inner { flex-direction: column; gap: 10px; }
    .fixed-cta-text { font-size: 0.8rem; }
  }

/* ===================================================
   Sub Pages Additions (Lower Pages)
   Version: 1.0
   NOTE: 追記のみ（トップ既存CSSは変更しない）
   =================================================== */

/* Common: Narrow container */
.narrow {
  max-width: 860px;
}

/* Page Hero (Lower Pages) */
.page-hero {
  margin-top: var(--header-height);
  padding: 78px 0 56px;
  background:
  radial-gradient(1200px 500px at 10% 10%, var(--color-accent-soft) 0%, rgba(255,255,255,0) 60%),
  linear-gradient(180deg, var(--color-main-soft) 0%, #fff 70%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.page-kicker {
  margin: 0 0 10px;
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-size: 0.95rem;
}

.page-title {
  margin: 0 0 12px;
  color: var(--color-main);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.35;
}

.page-lead {
  margin: 0;
  color: #4b5563;
  max-width: 62ch;
}

/* Breadcrumbs (optional) */
.breadcrumbs {
  margin-top: 18px;
  font-size: 0.85rem;
  color: #6b7280;
}
.breadcrumbs a { color: #6b7280; }
.breadcrumbs a:hover { color: var(--color-main); opacity: 1; }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.6; }

/* Section variants */
.section-alt {
  background: var(--color-bg-light);
}

/* Bullet list */
.bullet-list {
  margin: 18px 0 0;
  padding: 0;
}
.bullet-list li {
  position: relative;
  padding-left: 20px;
  margin: 10px 0;
  color: #374151;
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}

/* Feature grid (旧: tax-fin-grid) */
.tax-fin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.tax-col {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}
.tax-heading {
  margin: 0 0 10px;
  color: var(--color-main);
  font-size: 1.05rem;
  font-weight: 800;
  border-left: 3px solid var(--color-accent);
  padding-left: 10px;
}
.tax-col p { margin: 0 0 10px; color: #4b5563; }
.tax-col .bullet-list { margin-top: 10px; }

/* Vertical steps */
.flow-steps {
  margin: 0;
  padding: 0;
}
.flow-steps--vertical {
  display: grid;
  gap: 14px;
}
.flow-steps--vertical > li {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 18px 18px 18px 18px;
  box-shadow: 0 5px 14px rgba(0,0,0,0.03);
}
.flow-steps--vertical h3 {
  margin: 0 0 6px;
  color: var(--color-main);
  font-size: 1.05rem;
}
.flow-steps--vertical p {
  margin: 0;
  color: #4b5563;
}

/* Info table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}
.info-table th,
.info-table td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }
.info-table th {
  width: 170px;
  background: rgba(11, 44, 74, 0.04);
  color: var(--color-main);
  text-align: left;
  font-weight: 800;
}

/* Notes */
.note {
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.7;
}

/* CTA section (lower pages) */
.section-cta {
  text-align: center;
}
.section-cta-bg {
  position: relative;
  color: #fff;
  background-image:
  linear-gradient(90deg, rgba(7, 30, 51, 0.92) 0%, rgba(11, 44, 74, 0.78) 55%, rgba(11, 44, 74, 0.55) 100%),
  url('images/cta.jpg');
  background-size: cover;
  background-position: center;
}
.section-cta-bg .section-title { color: #fff; }
.section-cta-bg p { color: rgba(255,255,255,0.9); }
.section-cta-bg .btn-outline {
  border-color: rgba(255,255,255,0.9);
  color: #fff;
  background: transparent;
}
.section-cta-bg .btn-outline:hover {
  background: #fff;
  color: var(--color-main);
  opacity: 1;
}

/* Contact form */
.contact-form {
  margin-top: 22px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--color-main);
  margin-bottom: 8px;
}
.required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-main);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 10px;
  padding: 12px 12px;
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
  background: #fff;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(201, 162, 39, 0.75);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
}
.form-actions { margin-top: 18px; text-align: center; }
.form-actions .btn { width: min(420px, 100%); }
.wpcf7 .wpcf7-submit.btn {
  padding: 21px 35px;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 50px;
  background: none;            /* 色は .btn-primary 等に任せる */
  line-height: 1;              /* input特有のズレ対策 */
  cursor: pointer;
  display: inline-flex;        /* .btn と完全一致 */
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

/* hover/focus が効かない環境があるので input 版も明示しておく */
.wpcf7 .wpcf7-submit.btn-primary {
  background: var(--color-main);
  color: #fff;
}
.wpcf7 .wpcf7-submit.btn-primary:hover {
  background: var(--color-main-dark);
  color: #fff;
  opacity: 1;
}

/* 影も input に確実に当てる */
.wpcf7 .wpcf7-submit.btn-shadow {
  box-shadow: 0 10px 20px rgba(11, 44, 74, 0.22);
}

/* フォーカスリング（キーボード操作時の見た目も整える） */
.wpcf7 .wpcf7-submit.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18), 0 10px 20px rgba(11, 44, 74, 0.22);
}

/* 送信中/無効化の見た目（任意だけど運用的におすすめ） */
.wpcf7 form.submitting .wpcf7-submit,
.wpcf7 .wpcf7-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* Simple cards */
.simple-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.simple-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}
.simple-card h3 {
  margin: 0 0 8px;
  color: var(--color-main);
  font-size: 1.05rem;
}
.simple-card p { margin: 0; color: #4b5563; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 44, 74, 0.08);
  color: var(--color-main);
}
.badge--gold {
  background: var(--color-accent-soft);
  color: var(--color-main);
}

/* FAQ (details) */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.faq-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 5px 14px rgba(0,0,0,0.03);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--color-main);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  float: right;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-right: 2px solid var(--color-main);
  border-bottom: 2px solid var(--color-main);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item .faq-body {
  margin-top: 10px;
  color: #4b5563;
}

/* News archive */
.section-news {
  background: #fff;
}
.news-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.news-item a {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 5px 14px rgba(0,0,0,0.03);
  background: #fff;
}
.news-item a:hover { opacity: 1; transform: translateY(-1px); }
.news-item .news-date {
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--color-main);
  width: 110px;
  flex-shrink: 0;
}
.news-item .news-title {
  color: #111827;
  font-weight: 700;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: var(--color-main);
  font-weight: 800;
}
.page-link:hover { opacity: 1; background: rgba(11, 44, 74, 0.05); }
.page-current {
  background: var(--color-main);
  border-color: var(--color-main);
  color: #fff;
}
.page-ellipsis {
  border: none;
  background: transparent;
  color: #6b7280;
}

/* Post */
.post-meta {
  margin: 10px 0 0;
  color: #6b7280;
  font-weight: 700;
}
.post-content h2 {
  margin: 26px 0 10px;
  color: var(--color-main);
  font-size: 1.35rem;
}
.post-content h3 {
  margin: 20px 0 8px;
  color: var(--color-main);
  font-size: 1.1rem;
}
.post-content p { color: #374151; }
.post-content ul { margin: 12px 0 0; padding-left: 20px; }
.post-content li { margin: 6px 0; color: #374151; }
.post-nav { margin-top: 26px; text-align: center; }

/* Mobile adjustments for lower pages */
@media (max-width: 768px) {
  .page-hero { padding: 58px 0 46px; }
  .page-title { font-size: 1.75rem; }
  .info-table th { width: 120px; }
  .news-item a { flex-direction: column; align-items: flex-start; gap: 8px; }
  .news-item .news-date { width: auto; }
  .contact-form { padding: 18px; }
}
/* ===================================================
   Yearly Advisory Teaser (Top: Under Services)
   NOTE: 追記のみ
   =================================================== */

   .advisor-teaser{
    margin-top: 44px;
  }

  .advisor-box{
    display: flex;
    gap: 26px;
    align-items: stretch;
    background:
    radial-gradient(900px 320px at 10% 0%, var(--color-accent-soft) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(11,44,74,0.03) 0%, #fff 55%);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.05);
  }

  .advisor-left{
    flex: 1;
    min-width: 0;
  }

  .advisor-title{
    margin: 6px 0 10px;
    font-size: 1.35rem;
    color: var(--color-main);
    font-weight: 800;
  }

  .advisor-lead{
    margin: 0 0 14px;
    color: #4b5563;
  }

  .advisor-points{
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
  }

  .advisor-points li{
    position: relative;
    padding-left: 22px;
    color: #374151;
  }

  .advisor-points li::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-accent-soft);
  }

  .advisor-actions{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
  }

  .advisor-note{
    margin-top: 10px;
    font-size: 0.85rem;
    color: #6b7280;
  }

  .advisor-right{
    width: 340px;
    flex-shrink: 0;
  }

  .advisor-card{
    height: 100%;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.04);
  }

  .advisor-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    background: var(--color-accent-soft);
    color: var(--color-main);
    margin: 0 0 10px;
  }

  .advisor-card-title{
    margin: 0 0 10px;
    color: var(--color-main);
    font-size: 1.05rem;
    font-weight: 800;
    border-left: 3px solid var(--color-accent);
    padding-left: 10px;
  }

  .advisor-check{
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
  }

  .advisor-check li{
    position: relative;
    padding-left: 22px;
    color: #374151;
    font-size: 0.95rem;
  }

  .advisor-check li::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 10px;
    height: 10px;
    transform: translateY(-50%) rotate(45deg);
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
  }

  .advisor-mini-cta{
    margin-top: 14px;
    text-align: right;
  }

  @media (max-width: 768px){
    .advisor-box{
      flex-direction: column;
      padding: 18px;
    }
    .advisor-right{
      width: 100%;
    }
    .advisor-actions .btn{
      width: 100%;
    }
  }
/* ===================================================
   Advisory Teaser: 右カラム撤去 → 左をメインに
   追記のみ
   =================================================== */

   .advisor-box{
    /* 1カラム化 */
    display: block;
    padding: 32px;
    width: 90%;
    margin: 0 auto;
  }

  .advisor-left{
    max-width: 980px; /* 長文が横に伸びすぎないように */
  }

  .advisor-right{
    display: none !important; /* 念のため残ってても非表示 */
  }

/* 箇条書きを少し見やすく */
.advisor-points{
  margin-top: 10px;
  gap: 12px;
}

.advisor-actions{
  margin-top: 22px;
}

/* SP */
@media (max-width: 768px){
  .advisor-box{
    padding: 18px;
  }
  .advisor-left{
    max-width: 100%;
  }
}
