/* ===============================
   おおもと資産税 税理士事務所
   共通スタイルシート
================================== */

:root {
  --green-dark: #2e6b45;
  --green-main: #3f9463;
  --green-light: #eef7f1;
  --green-accent: #57a878;

  --orange-dark: #ca5c00;
  --orange-main: #ff5f00;
  --orange-light: #FFDA9B;
  --orange-accent: #EC7437;

/*  --gold: #b98d3e; */
  --gold: #FF8D3E;
  --text-main: #26302b;
  --text-sub: #5a6560;
  --white: #ffffff;
  --border: #dbe6de;
  --shadow: 0 4px 16px rgba(30, 86, 49, 0.08);
}

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@500;700;900&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 500;
  color: var(--text-main);
  background: var(--white);
  line-height: 1.85;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-sub);
  letter-spacing: 0.1em;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--green-dark);
  border-bottom-color: var(--green-main);
}

.header-contact {
  font-size: 0.85rem;
  text-align: right;
  color: var(--text-sub);
}

.header-contact strong {
  color: var(--green-dark);
  font-size: 1.05rem;
  display: block;
}

.header-contact .contact-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-light);
  border: 1px solid var(--green-accent);
  border-radius: 20px;
  padding: 2px 10px;
  margin-bottom: 4px;
}

.header-contact .contact-orangebadge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--orange-dark);
  background: var(--orange-light);
  border: 1px solid var(--orange-accent);
  border-radius: 20px;
  padding: 2px 10px;
  margin-bottom: 4px;
}



/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(46, 107, 69, 0.82) 0%, rgba(63, 148, 99, 0.72) 100%),
    url("images/hero-bg.jpg") center / cover no-repeat;
  color: var(--white);
  padding: 84px 0 76px;
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--green-light);
  font-weight: 600;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.5;
  font-weight: 700;
}

.hero p {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.page-hero {
  background: var(--green-light);
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
}

.page-hero h1 {
  font-size: 1.9rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--text-sub);
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.breadcrumb a {
  color: var(--green-main);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background: #a67a2f;
  box-shadow: var(--shadow);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-secondary {
  background: var(--green-main);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--green-dark);
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}

.section-light {
  background: var(--green-light);
}

.section-title {
  font-size: 1.7rem;
  color: var(--green-dark);
  text-align: center;
  margin-bottom: 8px;
  font-weight: 700;
}

.section-sub {
  text-align: center;
  color: var(--text-sub);
  max-width: 640px;
  margin: 0 auto 44px;
}

.eyebrow {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--green-main);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- Cards / Grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 26px;
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.card-top .icon-badge {
  margin-bottom: 0;
  flex-shrink: 0;
}

.card-top h3 {
  margin: 0;
  display: flex;
  align-items: center;
  min-height: 52px;
  line-height: 1.2;
  transform: translateY(4px);
}

.card h3 {
  color: var(--green-dark);
  font-size: 1.12rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-sub);
  font-size: 0.92rem;
}

.service-card p {
  position: relative;
  z-index: 0;
  color: #000000;
  padding: 16px 26px 28px;
  margin: 0 -26px -32px;
}

.service-card p::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--heading-bg) center / cover no-repeat;
  opacity: 0.18;
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- Strengths list ---------- */
.strength-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

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

.strength-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-accent);
  min-width: 48px;
}

.strength-item h3 {
  color: var(--green-dark);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.strength-item p {
  color: var(--text-sub);
  font-size: 0.92rem;
}

/* ---------- Profile ---------- */
.profile-block {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-photo {
  width: 220px;
  height: 220px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.profile-info {
  flex: 1;
  min-width: 260px;
}

.profile-info h2 {
  color: var(--green-dark);
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.profile-role {
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin-top: 18px;
}

.timeline li {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

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

.timeline .year {
  min-width: 90px;
  font-weight: 700;
  color: var(--green-main);
}

/* ---------- Table (pricing) ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  margin-bottom: 40px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
  /* 表ごとに列幅がずれないよう固定 */
  table-layout: fixed;
}

/* 「料金目安」列の幅を全表で統一 */
.price-table th:last-child,
.price-table td:last-child {
  width: 26%;
}

.price-table caption {
  text-align: left;
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1.1rem;
  padding: 18px 22px 4px;
  background: var(--green-light);
}

.price-table th,
.price-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.94rem;
}

.price-table thead th {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 700;
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

.price-note {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-top: -28px;
  margin-bottom: 40px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}

.contact-card {
  background: var(--green-light);
  border-radius: 8px;
  padding: 34px;
}

.contact-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-label {
  min-width: 88px;
  font-weight: 700;
  color: var(--green-dark);
  font-size: 0.9rem;
}

.contact-value {
  font-size: 0.96rem;
  color: var(--text-main);
}

.map-placeholder {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  min-height: 260px;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  display: block;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}

.cta-banner h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #234d30;
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-grid p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-grid > div > a {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Blog ---------- */
.blog-card {
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(30, 86, 49, 0.16);
}

.blog-card .read-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--green-main);
  font-weight: 700;
  font-size: 0.85rem;
}

.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-hero-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.article-container h2 {
  color: var(--green-dark);
  font-size: 1.28rem;
  margin: 34px 0 14px;
}

.article-container p {
  color: var(--text-main);
  margin-bottom: 16px;
}

.article-container ul {
  margin: 0 0 18px 22px;
  color: var(--text-main);
}

.article-container li {
  margin-bottom: 8px;
}

.article-note {
  background: var(--green-light);
  border-radius: 8px;
  padding: 20px 22px;
  margin-top: 36px;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.back-link {
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 30px;
  color: var(--green-main);
  font-weight: 700;
  font-size: 0.88rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  /* ヘッダーをコンパクトに（1段目：ロゴ＋電話／2段目：メニューを横1行） */
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 8px;
  }
  .brand {
    order: 1;
    gap: 10px;
  }
  .brand-logo {
    width: 36px;
    height: 36px;
  }
  .brand-name {
    font-size: 0.98rem;
  }
  .brand-sub {
    display: none;
  }
  .header-contact {
    order: 2;
  }
  .header-contact .contact-badge {
    font-size: 0.62rem;
    padding: 1px 8px;
    margin-bottom: 2px;
  }
  .header-contact strong {
    font-size: 0.95rem;
  }
  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar {
    display: none;
  }
  .main-nav ul {
    flex-wrap: nowrap;
    gap: 16px;
  }
  .main-nav a {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 4px 2px;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  section {
    padding: 48px 0;
  }
  .container {
    padding: 0 18px;
  }
  .profile-block {
    flex-direction: column;
  }
  .profile-photo {
    width: 100%;
    height: 180px;
  }
  /* スマホでは余白を詰め、料金列を少し広めに */
  .price-table th,
  .price-table td {
    padding: 14px 12px;
    font-size: 0.88rem;
  }
  .price-table caption {
    padding: 16px 12px 4px;
    font-size: 1rem;
  }
  .price-table th:last-child,
  .price-table td:last-child {
    width: 33%;
  }
}

/* 小さめのスマホ向け微調整 */
@media (max-width: 420px) {
  .brand-name {
    font-size: 0.88rem;
  }
  .brand-logo {
    width: 32px;
    height: 32px;
  }
  .header-contact strong {
    font-size: 0.88rem;
  }
  .main-nav ul {
    gap: 14px;
  }
  .hero h1 {
    font-size: 1.42rem;
  }
}

/* ===============================
   画面に追従する「無料相談する」ボタン
================================== */
.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange-main);
  color: var(--white);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  padding: 16px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.floating-cta::before {
  content: "✉";
  font-size: 1.05rem;
}

.floating-cta:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

@media (max-width: 860px) {
  /* スマホでは画面下部に横幅いっぱいのバーとして表示 */
  .floating-cta {
    left: 16px;
    right: 16px;
    bottom: 14px;
    padding: 15px 20px;
    font-size: 1rem;
  }
  /* 追従ボタンでフッターが隠れないよう余白を確保 */
  body {
    padding-bottom: 84px;
  }
}

/* ===============================
   相続税申告 ランディングページ用
================================== */

/* ヒーロー（LP用） */
.lp-hero {
  --lp-hero-bg: url("images/heading-souzokuzei-shinkoku.jpg");
  background:
    linear-gradient(135deg, rgba(46, 107, 69, 0.88) 0%, rgba(63, 148, 99, 0.78) 100%),
    var(--lp-hero-bg) center / cover no-repeat;
  color: var(--white);
  padding: 76px 0 68px;
  text-align: center;
}

.lp-hero h1 {
  font-size: 2.1rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.lp-hero .lp-hero-lead {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.94);
  max-width: 640px;
  margin: 0 auto 26px;
}

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

/* お悩みチェックリスト */
.worry-list {
  list-style: none;
  max-width: 680px;
  margin: 0 auto;
}

.worry-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green-accent);
  border-radius: 6px;
  padding: 14px 18px 14px 44px;
  margin-bottom: 12px;
  position: relative;
  font-size: 0.96rem;
  box-shadow: var(--shadow);
}

.worry-list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  color: var(--green-main);
  font-weight: 700;
}

/* 期限の注意喚起 */
.deadline-box {
  background: #fff8ec;
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 30px 28px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.deadline-box h3 {
  color: #8a6420;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.deadline-months {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 22px;
  margin-bottom: 14px;
}

.deadline-box p {
  color: var(--text-main);
  font-size: 0.94rem;
  margin-bottom: 8px;
}

.deadline-box p:last-child {
  margin-bottom: 0;
}

/* 申告の流れ（ステップ） */
.step-list {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding: 0 0 30px 66px;
  border-left: 2px solid var(--green-accent);
  margin-left: 22px;
}

.step-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -23px;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-main);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item h3 {
  color: var(--green-dark);
  font-size: 1.08rem;
  margin-bottom: 6px;
  padding-top: 9px;
}

.step-item p {
  color: var(--text-sub);
  font-size: 0.92rem;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 46px 18px 52px;
  font-weight: 700;
  color: var(--green-dark);
  font-size: 0.98rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "Q";
  position: absolute;
  left: 20px;
  color: var(--green-main);
  font-weight: 700;
}

.faq-item summary::after {
  content: "＋";
  position: absolute;
  right: 20px;
  color: var(--green-main);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 22px 20px 52px;
  color: var(--text-main);
  font-size: 0.93rem;
  position: relative;
}

.faq-answer::before {
  content: "A";
  position: absolute;
  left: 20px;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}

/* LP内の料金表を少しコンパクトに */
.lp-price-note {
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.86rem;
  color: var(--text-sub);
  text-align: center;
}

@media (max-width: 860px) {
  .lp-hero {
    padding: 52px 0 46px;
  }
  .lp-hero h1 {
    font-size: 1.5rem;
  }
  .lp-hero-buttons .btn {
    width: 100%;
  }
  .step-item {
    padding-left: 54px;
    margin-left: 18px;
  }
  .step-item::before {
    width: 38px;
    height: 38px;
    left: -20px;
    font-size: 0.95rem;
  }
  .deadline-box {
    padding: 24px 18px;
  }
  .faq-item summary {
    padding: 16px 40px 16px 46px;
    font-size: 0.93rem;
  }
  .faq-answer {
    padding: 0 18px 18px 46px;
  }
}
