@charset "utf-8";
/* CSS Document */

/*
Header: 80px height (PC), no menu, full-height CTA button
Fonts: 税理士法人= Noto Serif JP, MATT= Noto Sans JP
Hero section with responsive scaling
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;600;700;900&family=Noto+Serif+JP:wght@700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Allura&display=swap');

:root {
  --c-blue: #1a237e;
  --c-text: #333;
  --c-cta: #fb8c00;
  --shadow: 0 2px 12px rgba(0,0,0,.04);
  --wrap: 1200px;
}

/* ===============================
   Base
================================*/
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--c-text);
  line-height: 1.6;
}
.container {
  width: min(92%, var(--wrap));
  margin-inline: auto;
}

/* PC用：改行を表示 */
.pc-only {
  display: inline;
}

/* スマホ（640px以下）：改行を非表示にし、右寄せに */
@media (max-width: 640px) {
  .pc-only {
    display: none;
  }
}


/* ===============================
   Header
================================*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: var(--shadow);
  height: 80px;
}
.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

/* ===== 左側（ロゴ） ===== */
.header-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  line-height: 1;
  margin: 0;
  padding: 0;
}

/* 半固定スケール（税理士法人／MATT） */
.logo-serif {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 700;
  color: var(--c-blue);
  line-height: 1;
}
.logo-sans {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 700;
  color: var(--c-blue);
  letter-spacing: 0.02em;
  position: relative;
  top: 0.1em; /* MATTのベースライン補正 */
}
.logo-sub {
  margin-top: 0.3em;
  font-size: clamp(12px, 1.2vw, 16px);
  color: var(--c-text);
  line-height: 1.3;
}

/* ===== 右側（電話・CTA） ===== */
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  position: relative;
}
.header-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  position: relative;
  top: 1px;
}
.header-info .catch {
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--c-text);
  letter-spacing: 0.02em;
}
.header-info .tel {
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 800;
  color: var(--c-blue);
  text-decoration: none;
  line-height: 1;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background .2s ease, box-shadow .2s ease, color .2s ease;
}
.header-info .tel:hover,
.header-info .tel:focus-visible {
  background: #eef0fb;
  color: var(--c-blue);
  box-shadow: 0 0 0 2px rgba(26,35,126,.1) inset;
  text-decoration: none;
  outline: none;
}

/* ===== CTAボタン（角丸なし・半固定） ===== */
.header-cta .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-cta);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0;
  height: 80px;
  line-height: 1;
  transition: background .15s ease, box-shadow .15s ease;
  font-size: clamp(16px, 1.6vw, 24px);
  padding-inline: clamp(20px, 3vw, 36px);
}
.header-cta .btn:hover {
  background: #f57c00;
}
.header-cta .btn:active {
  background: #ef6c00;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.08);
}
.header-cta .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(251,140,0,.25);
}

/* ===============================
   Hero Section
================================*/
.hero {
  position: relative;
  background: url('../images/hiro.png') no-repeat center right 30%;
  background-size: cover;
  color: #000;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 600px;
}
.hero-text {
  padding-left: 2%;
}

/* ===== コピー部分 ===== */
.hero-copy {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;
  color: #1a237e;
  margin: 0 0 25px;
  line-height: 1.3;
  /* 白い縁取り（4方向にシャドウ） */
  text-shadow:
    1px 1px 0 #fff,
   -1px 1px 0 #fff,
    1px -1px 0 #fff,
   -1px -1px 0 #fff;
}
.hero-copy .t1 { font-size: clamp(28px, 4vw, 54px); vertical-align: baseline; }
.hero-copy .t2 { font-size: clamp(36px, 5.5vw, 77px); vertical-align: baseline; }
.hero-copy .t3 { font-size: clamp(30px, 4.8vw, 64px); display:block; vertical-align: baseline; }

/* ===== チェックリスト ===== */
.hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 3%;
  transform: rotate(-1.8deg);
}
.hero-list li {
  font-size: clamp(18px, 2.2vw, 40px);
  font-weight: 800;
  margin-bottom: 8px;
  padding-left: 1em;
  position: relative;
}
.hero-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #000;
  font-size: 0.9em;
}

/* ===============================
   Breakpoints
================================*/

/* 991px以下 */
@media only screen and (max-width: 991px) {
  .hero-inner {
    width: 92%;
    min-height: 520px;
  }
}

/* 768px以下（767pxも含む） */
@media only screen and (max-width: 768px) {
  /* ===== Header ===== */
  .site-header {
    height: auto !important;
  }
  .hero {
    position: relative;
    background-position: center right 20%;
    background-size: cover;
  }
  .header-inner {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
    padding: 12px 0 !important;
    height: auto !important;
  }
  .header-left {
    align-items: center !important;
    justify-content: center !important;
  }
  .logo {
    justify-content: center;
  }
  .header-right {
    display: none !important;
  }

  /* ===== Hero ===== */
  .hero {
    min-height: 480px;
  }
  .hero-inner {
    align-items: flex-end;
    width: 92%;
  }
  .hero-text {
    padding: 20px !important;
    background: rgba(255,255,255,0.7) !important;
  }
}

/* 640px以下 */
@media only screen and (max-width: 640px) {
  .hero-copy {
    line-height: 1.35;
  }
  .hero-list {
    transform: none;
  }
}

/* 420px以下 */
@media only screen and (max-width: 420px) {
  .hero-list li {
    font-size: 14px;
  }
}


/* =========================================
   スマホ専用固定CTA（SVGアイコン版）
========================================= */

/* 初期は非表示 */
.sp-cta-fixed {
  display: none;
}

/* スマホ表示（768px以下） */
@media (max-width: 768px) {
  .sp-cta-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 999;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
  }

  .sp-cta-btn {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: clamp(15px, 4vw, 18px);
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s ease;
  }

  /* SVGアイコン設定 */
  .sp-cta-btn svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    transition: stroke .2s ease;
  }

  /* 左（電話）ボタン */
  .sp-cta-btn.call {
    background: var(--c-blue);
  }
  .sp-cta-btn.call:hover {
    background: #0e1650;
  }

  /* 右（お問い合わせ）ボタン */
  .sp-cta-btn.contact {
    background: var(--c-cta);
  }
  .sp-cta-btn.contact:hover {
    background: #f57c00;
  }

  /* 押下時 */
  .sp-cta-btn:active svg {
    stroke: #fff;
    opacity: 0.85;
  }

  /* ボタンが被らないように余白 */
  body {
    padding-bottom: 72px; /* CTA高さ分 */
  }

  /* PC用header-rightは非表示 */
  .header-right {
    display: none !important;
  }
}



/* ============ Troubles Section ============ */
.troubles {
  padding: clamp(32px, 6vw, 72px) 0;
}
.troubles-inner {
  width: min(92%, var(--wrap));
  margin-inline: auto;
}
.troubles-title {
  margin: 0 0 clamp(24px, 4vw, 40px);
  text-align: center;
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
  color: var(--c-blue);
  font-size: clamp(24px, 3.2vw, 40px);
}

/* 共通：カード形状＆配置微調整 */
.trouble-item{
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: visible; /* ← はみ出しを見せる */
}

/* イラスト */
.trouble-illust {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

/* スマホではカード幅に応じて縮小 */
@media only screen and (max-width: 640px) {
  .trouble-illust {
    width: clamp(72px, 24%, 120px);
  }
}


/* テキスト：中央より少し上に */
.trouble-text{
  position: relative;
  z-index: 2;
  margin: 0;
  text-align: center;
  color: #fff;
  font-weight: 800;
  line-height: 1.35;
  font-size: clamp(14px, 1.8vw, 20px);
  padding: 0 clamp(10px, 1.2vw, 16px);
  transform: translateY(-40%); /* ← 上寄せ */
}

/* ===== 配色（PC 4列・段ごと反転） ===== */
.troubles-grid{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(4,1fr);
  gap: clamp(16px, 2.2vw, 28px);
}
.trouble-item:nth-child(4n + 1){ background:#fb8c00; }
.trouble-item:nth-child(4n + 2){ background:#ef6c00; }
.trouble-item:nth-child(4n + 3){ background:#fb8c00; }
.trouble-item:nth-child(4n + 4){ background:#ef6c00; }
/* 2段目反転 */
.trouble-item:nth-child(8n + 5){ background:#ef6c00; }
.trouble-item:nth-child(8n + 6){ background:#fb8c00; }
.trouble-item:nth-child(8n + 7){ background:#ef6c00; }
.trouble-item:nth-child(8n + 8){ background:#fb8c00; }

/* ===== 768px以下：2列（段ごと反転を維持） ===== */
@media (max-width: 768px){
  .troubles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 配色パターン（2列×段ごと反転） */
  .trouble-item:nth-child(4n + 1){ background-color: #fb8c00; }
  .trouble-item:nth-child(4n + 2){ background-color: #ef6c00; }
  .trouble-item:nth-child(4n + 3){ background-color: #ef6c00; }
  .trouble-item:nth-child(4n + 4){ background-color: #fb8c00; }

  /* テキストサイズの調整（中間域で少し大きく） */
  .trouble-text {
    font-size: clamp(15px, 2.6vw, 19px);
    transform: translateY(-30%); /* 上寄せ具合は維持 */
  }
}

/* ===== 640px以下も2列のまま（SP2列指定） ===== */
@media (max-width: 640px){
  .troubles-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
    margin-inline: auto;
  }
  .trouble-text {
    font-size: clamp(14px, 3.6vw, 18px); /* ← 小さくなりすぎないよう修正 */
  }
}

/* ===== 420px以下：最小スマホ域 ===== */
@media (max-width: 420px){
  .trouble-text {
    font-size: clamp(13px, 4.4vw, 16px);
  }
}





/* ===============================
   Solution Section
================================ */
.solution {
  background: #f7f7f7;
  padding: 0 0 clamp(60px, 8vw, 100px);
}

/* 見出し部分 */
.solution-head {
  background: var(--c-blue);
  color: #fff;
  text-align: center;
  padding: clamp(30px, 5vw, 50px) 10px;
  position: relative;
}
.solution-head h2 {
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
  font-size: clamp(24px, 3vw, 40px);
  margin: 0;
}
.solution-head::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 16px solid var(--c-blue);
}
/* 上向きの白い▼（追加） */
.solution-head::before {
  content: "";
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 16px solid #fff; /* ← 上側の白い三角 */
}

/* コンテンツ部分 */
.solution-inner {
  width: min(92%, var(--wrap));
  margin: clamp(50px, 6vw, 80px) auto 0;
  display: flex;
  flex-direction: column;
  gap: clamp(15px, 2vw, 25px);
}

/* 各ボックス */
.solution-item {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #fff;
  border-radius: 12px;
  padding: clamp(24px, 3vw, 32px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* 画像部分 */
.solution-img {
  flex: 0 0 32%;
}
.solution-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* テキスト部分 */
.solution-text {
  flex: 1;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--c-text);
}

/* 見出しの小ポイント */
/* 手書き風「point」バッジ */
.point-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(30px, 8vw, 60px);   /* 横幅 */
  height: clamp(30px, 8vw, 60px);  /* 高さも同じにして円形に */
  background: #fb8c00;             /* オレンジ */
  border-radius: 50%;              /* 真円に */
  transform: rotate(-12deg);        /* 少し傾ける */
  margin-right: 12px;
  vertical-align: middle;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

.point-badge span {
  font-family: "Allura", cursive;
  color: #1a237e;
  font-size: clamp(24px, 4.2vw, 34px);
  line-height: 1;
  letter-spacing: .02em;
  transform: rotate(6deg) translateY(-2%);
  -webkit-text-stroke: .4px rgba(26,35,126,.2);
}


/* 見出しと横並びにする場合（任意） */
.solution-text .solution-heading{
  font-size: clamp(18px, 2vw, 22px);
  display: inline;
  font-weight: 700;
  color: var(--c-blue);
}

.solution-text p {
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.8;
  margin: 0;
}

/* ======= レスポンシブ ======= */
@media (max-width: 991px) {
  .solution-item {
    flex-direction: column;
    text-align: left;
    gap: 24px;
  }
  .solution-img {
    width: 100%;
  }
  .solution-text {
    width: 100%;
  }
}




/* ===== CTA ===== */
.cta-section{
  padding: clamp(56px,8vw,96px) 0;
  background:#fff;
}
.cta-wrap{
  width:min(92%, 1200px);
  margin:0 auto;
}

/* タイトル */
.cta-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: clamp(8px,1.8vw,16px);
  margin:0 0 clamp(28px,4vw,44px);
  line-height:1;
}
.cta-title span{
  font-family:"Noto Sans JP", sans-serif;
  font-weight:700;
  color:#1a237e;
  font-size: clamp(22px,3.2vw,36px);
}
.cta-mark-img{
  display:block;
  height: clamp(26px,3.2vw,44px);
  width:auto;
}

/* 中央３カラムレイアウト */
.cta-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: clamp(16px,3vw,48px);
}
.cta-illust{
  display:block;
  width: clamp(120px,18%,190px);
  height:auto;
  flex:0 0 auto;
}

/* 中央スタック */
.cta-center{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: clamp(14px,2.4vw,20px);
  min-width: clamp(300px, 50vw, 400px);   /* ←ボタン幅の基準 */
}

/* オレンジボタン */
.cta-btn{
  display:inline-block;
  width:100%;
  max-width: 400px;
  padding: clamp(14px,1.6vw,18px) clamp(28px,4vw,60px);
  background:#fb8c00;
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size: clamp(18px,2vw,24px);
  border-radius: 40px;
  text-align:center;
  box-shadow: 0 2px 0 rgba(0,0,0,.06);
  transition: background .2s ease;
}
.cta-btn:hover{ background:#ef6c00; }

/* 電話ボタン（薄グレーの丸角） */
.cta-tel{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:100%;
  max-width: 400px;
  padding: clamp(12px,1.4vw,16px) clamp(20px,3vw,36px);
  background:#f1f1f3;
  border-radius: 40px;
  text-decoration:none;
  color:#1a237e;
  font-weight:800;
  font-size: clamp(20px,2.4vw,28px);
}
.cta-tel-icon{
  width: clamp(22px,2.6vw,32px);
  height:auto;
  display:block;
}

/* 注意書き */
.cta-note{
  margin: clamp(8px,1.4vw,12px) 0 0;
  font-size: clamp(12px,1.4vw,14px);
  color:#333;
}

/* スマホではCTAセクションを非表示 */
@media (max-width: 768px) {
  .cta-section {
    display: none;
  }
}



/* ===== 相続登記セクション ===== */
.registry {
  background: #fb8c00;
  padding: 80px 0 100px;
  color: #fff;
}

/* タイトル全体 */
.registry-head {
  text-align: center;
  color: #fff;
  margin-bottom: clamp(28px, 5vw, 48px);
}

/* 上段「税理士法人 MATT の」 */
.ttl-line1 {
  margin: 0 0 6px;
  line-height: 1;
  white-space: nowrap;
}

/* Serif部分（税理士法人・の） */
.ttl-line1 .ttl-serif {
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: 0.05em;
}

/* Sans部分（MATT） */
.ttl-line1 .ttl-matt {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: 38px; /* PC固定 */
  letter-spacing: 0.05em;
  display: inline-block;
  position: relative;
  top: -2px; /* ベースライン調整 */
}

/* 下段「相続登記」 */
.ttl-line2 {
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
  font-size: clamp(32px, 4.6vw, 56px);
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

/* スマホ用調整 */
@media (max-width: 640px) {
  .ttl-line1 .ttl-serif {
    font-size: clamp(18px, 4vw, 22px);
  }
  .ttl-line1 .ttl-matt {
    font-size: clamp(26px, 6vw, 30px);
  }
  .ttl-line2 {
    font-size: clamp(28px, 7vw, 34px);
  }
}


/* ===== カード ===== */
.registry-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.registry-card {
  width: 300px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  text-align: center;
  padding: 34px 20px 38px;
  color: #333;
}

/* アイコン */
.card-icon {
  width: 78px;
  height: auto;
  margin: 0 auto 14px;
}
.card-icon img {
  width: 100%;
  height: auto;
  display: block;
}

/* タイトル */
.card-title {
  font-size: clamp(18px, 1.6vw, 20px);  /* 可変にする */
  white-space: nowrap;
  font-weight: 700;
  color: #fb8c00;
  margin-bottom: 14px;
}

/* テキスト */
.card-text {
  font-size: 14px;
  line-height: 1.8;
  color: #222;
}

/* ===== レスポンシブ ===== */
@media (max-width: 991px) {
  .registry-card { width: 280px; }
}
@media (max-width: 640px) {
  .registry-grid { flex-direction: column; align-items: center; }
  .registry-card { width: 90%; max-width: 320px; }
}





/* ===== Danger Section ===== */
.danger-sec{
  background:#1a237e;
  color:#fff;
  padding: clamp(64px,10vw,120px) 0 clamp(56px,8vw,96px);
}
.danger-sec .container{ width:min(92%, 1200px); margin-inline:auto; }

/* 上段：⚠️＋タイトル */
.danger-head{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: clamp(20px,4vw,60px);
  position: relative;
  padding: 20px 0;
  margin-bottom: clamp(18px,3vw,28px);
}
/* ⚠️ アイコン：タイトルと高さを揃える */
.warn-icon{
  width: clamp(60px, 8vw, 120px);   /* PC時は120px固定に近い */
  height: auto;
  flex-shrink: 0;
}

/* タイトル本体（上下ラインを疑似要素で） */
.danger-title{
  margin:0;
  font-family:"Noto Sans JP", sans-serif;
  font-weight:900;
  font-size: 135px; /* ← PC固定 */
  letter-spacing:.06em;
  color:#fb8c00;
  line-height:1.05;
  position:relative;
  padding: 12px 30px;
}
.danger-title::before,
.danger-title::after{
  content:"";
  position:absolute;
  left:-10%;
  right:-10%;
  height:6px;
  background:#fb8c00;
}
.danger-title::before{ top:0; }
.danger-title::after{ bottom:0; }

/* サブ見出し */
.danger-sub{
  margin: 0 0 clamp(20px,3.6vw,36px);
  text-align:center;
  font-family:"Noto Serif JP", serif;
  font-weight:900;
  color:#fb8c00;
  font-size: 48px;  /* ← PCでは固定 */
  letter-spacing:.04em;
}

/* 白ボックス（強調） */
.danger-callout{
  background:#fff;
  border-radius: 22px;
  width: min(92%, 720px);
  margin: 0 auto clamp(32px,5vw,56px);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.danger-callout p{
  margin:0;
  padding: clamp(18px,3.4vw,26px) clamp(20px,3.2vw,28px);
  color:#1a237e;
  text-align:center;
  font-weight:700;
  font-size: clamp(14px,2vw,18px);
  line-height:1.9;
}
.hl-num{ color:#fb8c00; font-weight:900; font-size: 1.5em; vertical-align: baseline;}
.hl-word{ color:#fb8c00; font-weight:900; font-size: 1.5em; vertical-align: baseline;}

/* 本文 */
.danger-body{
  width: min(92%, 880px);
  margin: 0 auto;
  font-size: clamp(13px,1.6vw,16px);
  line-height: 2;
  opacity:.98;
}
.danger-body p{ margin:0; }


/* スマホ用：縮小対応 */
@media (max-width: 991px){
  .danger-title{ font-size: clamp(72px,10vw,100px); }
  .danger-sub{ font-size: clamp(28px,4vw,36px); }
}
/* ブレイクポイント：768/640/420 */
@media (max-width: 768px){
  .danger-title::before, .danger-title::after{ left:-4%; right:-4%; height:5px; }
  .warn-icon{ width: 72px; }
}
@media (max-width: 640px){
  .danger-head{ gap:16px; }
  .warn-icon{ width: 56px; }
  .danger-title{
    font-size: clamp(32px,8vw,72px);
    padding: 10px 15px;
  }
  .danger-sub{ font-size: clamp(22px,5vw,28px); }
  .danger-title::before, .danger-title::after{ height:4px; }
}
@media (max-width: 420px){
  .warn-icon{ width: 44px; }
}




/* ===== Expert Section ===== */
:root{
  --navy:#1a237e;
  --orange:#ef6c00; /* カード色 */
  --cream:#fbf4db;  /* 背景色 */
  --wrap:1200px;
}

.expert-sec{
  position: relative;
  background: var(--cream);
  padding: clamp(60px,8vw,100px) 0 clamp(70px,9vw,110px);
}
.expert-wrap{ width:min(92%, var(--wrap)); margin-inline:auto; }

/* 上部のネイビー▽（中央） */
.expert-notch{
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 40px;
}
.expert-notch::before{
  content:"";
  position:absolute; inset:0;
  background: var(--navy);
  clip-path: polygon(0 0,100% 0,50% 100%);
  border-radius: 8px;
}

/* 見出し */
.expert-head.precise{
  text-align:center;
  margin: 0 0 clamp(8px,1.5vw,14px);
}

/* 上段：「“相続税の専門家”」 */
.ttl-main{
  display:inline-flex;
  align-items:flex-end;
  gap: .08em;                     /* 句読点の空き感を再現 */
  margin:0 0 10px 0;
  font-family:"Noto Serif JP", serif;
  font-weight:900;
  color:#ef6c00;                  /* 見出しのオレンジ */
  font-size: clamp(30px, 6.2vw, 60px); /* 画像比に近い大きさ */
  line-height: .95;               /* 行間をタイトに */
  letter-spacing: -0.01em;        /* わずかに詰める */
  /* エッジをくっきり（対応ブラウザで効く） */
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke: .4px rgba(0,0,0,.05);
  text-rendering: optimizeLegibility;
}

/* 引用符を少し大きく・下に寄せる */
.ttl-main .quote-l,
.ttl-main .quote-r{
  font-size: 1.08em;
  line-height: .8;
  position: relative;
  top: .06em;                     /* ベースライン微調整 */
}

/* 本文：「である我々にお任せください！」 */
.ttl-sub{
  margin: clamp(2px, .6vw, 6px) 0 0; /* 上段に寄せて重ね気味に */
  font-family:"Noto Serif JP", serif;
  font-weight:900;
  color:#222;                     /* 画像に合わせて黒 */
  font-size: clamp(18px, 3.2vw, 36px);
  letter-spacing: .01em;
  line-height: 1.2;
}

/* イラスト */
.expert-illust{
  display:flex; justify-content:center;
  margin: clamp(8px,2vw,18px) 0 clamp(26px,4vw,40px);
}
.expert-illust img{
  width: min(520px, 70%);
  height: auto;
  display: block;
}
/* カード（2列×2 → SP1列） */
.expert-grid{
  list-style:none; padding:0; margin:0;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px,2.6vw,28px);
}
.feature{
  background: var(--orange);
  color:#fff;
  border-radius: 28px;
  min-height: 144px;
  display:grid;
  grid-template-columns: 96px 1fr;
  align-items:center;
  gap: 14px;
  padding: 22px 12%;
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
}
/* アイコン画像をカード内でフィット */
.feature-ico{
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}
.feature-ico img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}
.feature-txt{
  margin:0;
  font-weight:800;
  font-size: clamp(16px,2vw,20px);
  line-height:1.6;
}
/* 画像と重ねたいときは上端を少し持ち上げる（任意） */
@media (min-width: 992px){
  .expert-head.precise{ margin-bottom: -100px; }
}

/* ===== Breakpoints ===== */
@media (max-width: 768px){
  .expert-grid{ grid-template-columns: 1fr; }
  .feature{
    grid-template-columns: 72px 1fr;
    min-height: 120px;
  }
}


/* =========================================
   損をします！ セクション
========================================= */
.loss-sec {
  background: #1a237e;
  color: #fff;
  padding: clamp(60px, 8vw, 120px) 0;
  text-align: center;
}

.loss-wrap {
  width: min(92%, 1200px);
  margin-inline: auto;
}

/* 見出し帯 */
.loss-head {
  background-color: #fb8c00;
  padding: 24px 0;
  border-top: 8px solid #1a237e;
  border-bottom: 8px solid #1a237e;
  position: relative;
  overflow: hidden;
}

/* 斜線ストライプ */
.loss-head::before,
.loss-head::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    #1a237e 0 8px,
    #fb8c00 8px 16px
  );
}
.loss-head::before {
  top: 0;
}
.loss-head::after {
  bottom: 0;
}

/* タイトル本体 */
.loss-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 26px);
  position: relative;
  z-index: 1;
}

.alert-icon {
  width: clamp(50px, 6vw, 90px);
  height: auto;
  flex-shrink: 0;
}

.loss-ttl {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;
  color: #1a237e;
  font-size: clamp(64px, 8vw, 140px);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.02em;
}

/* ====== レスポンシブ ====== */
@media (max-width: 768px) {
  .loss-head {
    padding: 16px 0;
  }
  .loss-ttl {
    font-size: clamp(40px, 10vw, 70px);
  }
  .alert-icon {
    width: clamp(36px, 8vw, 60px);
  }
}


/* リード文 */
.loss-lead {
  margin: 50px 0 40px;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.8;
  font-weight: 600;
}

.loss-lead .em {
  color: #fb8c00;
}

/* グラフ＋テキストの横並び */
.loss-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(40px, 5vw, 80px);
  margin-top: 60px;
  flex-wrap: wrap; /* スマホでは縦並びに */
}

/* グラフ */
.loss-chart {
  flex: 0 0 340px;
  max-width: 360px;
}
.loss-chart img {
  width: 100%;
  height: auto;
  display: block;
}

/* テキスト部分 */
.loss-text {
  flex: 1;
  color: #fff;
  text-align: left;
  line-height: 2;
  font-size: clamp(14px, 2vw, 17px);
}
.loss-text p {
  margin-bottom: 1.8em;
}
.loss-text .em-orange {
  color: #fb8c00;
  font-weight: 700;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .loss-lead {
    font-size: 15px;
  }
  .loss-content {
    flex-direction: column;
    align-items: center;
  }
  .loss-chart {
    max-width: 280px;
  }
  .loss-text {
    text-align: left;
  }
}



/* =========================================
   FAQ セクション
========================================= */

/* 背景全体 */
.faq-sec {
  background: #ffffff;
  padding: 100px 20px;
}

/* タイトル */
.faq-ttl {
  font-family: "Noto Serif JP", serif;
  text-align: center;
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 900;
  color: #333333;
  margin-bottom: 60px;
}

/* ラッパー */
.faq-wrap {
  max-width: 780px;
  margin: 0 auto;
}

/* 各項目 */
.faq-item {
  background: #f5f5f5;
  border-radius: 50px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* 質問ボタン */
.faq-q {
  width: 100%;
  background: #f5f5f5;
  border: none;
  outline: none;
  text-align: left;
  padding: 20px 60px 20px 70px;
  position: relative;
  font-size: clamp(15px, 2.3vw, 20px);
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Qアイコン → 背景なしに変更 */
.faq-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: #333333;
  font-weight: 700;
  font-size: clamp(22px, 2vw, 48px);
  background: none;  /* 背景なし */
  width: auto;
  height: auto;
}

/* ▼アイコン */
.faq-toggle {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  border-right: 3px solid #333333;
  border-bottom: 3px solid #333333;
  transition: transform 0.3s;
}

/* 回答 */
.faq-a {
  display: none;
  padding: 20px 60px 30px 70px;
  background: #ffffff;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.8;
  position: relative;
  border-top: 1px solid #ddd;
}

/* Aアイコン */
.faq-a-icon {
  position: absolute;
  left: 30px;
  top: 20px;
  color: #1a237e;
  font-weight: 700;
  font-size: clamp(22px, 2vw, 48px);
}

/* 開いたとき */
.faq-item.active .faq-a {
  display: block;
}
.faq-item.active .faq-toggle {
  transform: translateY(-50%) rotate(-135deg);
}




/* =========================================
   料金表 セクション
========================================= */

.price-sec {
  background: #f8f8f8;
  padding: 100px 20px;
  text-align: center;
}

.price-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.price-ttl {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(26px, 4vw, 48px);
  color: #333;
  margin-bottom: 20px;
}

/* 24px固定（PC） */
.price-sub {
  font-size: clamp(16px, 3vw, 24px);
  color: #333;
  margin-bottom: 40px;
}

.price-table {
  background: #fff;
  padding: 0;
  border: 4px solid #cccccc;
  border-radius: 2px;
  overflow-x: auto;
}

.price-table table {
  width: 100%;
  border-collapse: collapse;
}

/* th = 24px */
.price-table th {
  background: #1a237e;
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 18px 10px;
  border: 2px solid #ccc;
  font-size: clamp(18px, 2.5vw, 24px);
}

/* td = 20px */
.price-table td {
  background: #fff;
  padding: 18px 10px;
  border: 2px solid #ccc;
  text-align: center;
  color: #1a237e;
  font-weight: 600;
  font-size: clamp(16px, 2.2vw, 20px);
}

/* レスポンシブ */
@media (max-width: 767px) {
  .price-sec {
    padding: 60px 10px;
  }

  .price-sub {
    font-size: 16px;
  }

  .price-table th {
    font-size: 18px;
  }

  .price-table td {
    font-size: 15px;
  }

  .price-table th,
  .price-table td {
    padding: 14px 6px;
  }
}



/* =========================================
   ご契約の流れ セクション
========================================= */

.flow-sec {
  background: #fff;
  padding: 100px 20px;
}

.flow-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.flow-ttl {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(26px, 4vw, 48px);
  text-align: center;
  color: #333;
  margin-bottom: 60px;
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 各ステップボックス */
.flow-item {
  display: grid;
  grid-template-columns: 180px 220px 1fr; /* ← 左カラムを広くした */
  align-items: center;
  gap: 40px;
  background: #f5f5f5;
  border-radius: 16px;
  padding: 30px 40px;
}

/* 左側（番号とタイトル） */
.flow-left{text-align: center;}
.flow-left .num {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: 48px;
  color: #333;
  margin-bottom: 8px;
}

.flow-left .title {
  font-weight: 900;
  font-size: 24px;
  color: #333;
}

.flow-left span {
  font-size: 13px;
  color: #333;
}

/* イラスト */
/* flow画像の個別サイズ調整 */
.flow-img img {
  display: block;
  height: auto;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* 01 お問い合わせ */
.flow-item:nth-child(1) .flow-img img {
  height: 115px;
}

/* 02 面談 */
.flow-item:nth-child(2) .flow-img img {
  height: 130px;
}

/* 03 お見積りの作成 */
.flow-item:nth-child(3) .flow-img img {
  height: 160px;
}

/* 04 ご契約 */
.flow-item:nth-child(4) .flow-img img {
  height: 100px;
}


/* 説明文 */
.flow-text p {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}

/* スマホ対応 */
@media (max-width: 767px) {
  .flow-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
    padding: 30px 20px;
  }

  .flow-item:nth-child(1) .flow-img img { height: 90px; }
  .flow-item:nth-child(2) .flow-img img { height: 100px; }
  .flow-item:nth-child(3) .flow-img img { height: 120px; }
  .flow-item:nth-child(4) .flow-img img { height: 80px; }

  .flow-left .num {
    font-size: 26px;
  }

  .flow-left .title {
    font-size: 16px;
  }

  .flow-text p {
    font-size: 14px;
    line-height: 1.8;
  }
}



/* =========================================
   company セクション
========================================= */
.company-sec {
  background: #f9f9f9;
  padding: clamp(60px, 8vw, 100px) 5%;
  color: #333;
}
.company-wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.company-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 80px;
}

.company-img img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.company-desc {
  line-height: 1.9;
  max-width: 640px;
}

.company-desc h2 {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 32px);
  color: #111;
  line-height: 1.6;
  margin-bottom: 24px;
}

.company-desc h2 span {
  color: #111;
}

.company-desc p {
  font-size: 16px;
  color: #333;
  margin-bottom: 24px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.company-table th,
.company-table td {
  padding: 14px 18px;
  font-size: 16px;
  vertical-align: middle;
  border-bottom: 1px solid #ddd;
}

.company-table th {
  background: #f5f5f5;
  color: #333;
  width: 35%;
  font-weight: 600;
  text-align: left;
}

.company-table td {
  background: #fff;
  color: #333;
  font-weight: 400;
  line-height: 1.8;
}

.company-table a {
  color: #1a237e; /* MATTカラーのネイビーに統一 */
  text-decoration: none;
}

.company-table a:hover {
  text-decoration: underline;
}

/* スマホ対応 */
@media (max-width: 767px) {
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .company-table th {
    background: #f5f5f5;
    font-weight: 700;
  }

  .company-table td {
    background: #fff;
  }
}

/* ====== 税理士紹介部分 ====== */

.staff-block {
  margin-top: clamp(80px, 10vw, 120px);
}

.staff-ttl {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: #222;
}

.staff-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(40px, 8vw, 120px);
}

.staff-item {
  max-width: 420px;
  text-align: center;
}

.staff-img img {
  width: 100%;
  height: auto;
  max-width: 340px;
  border-radius: 0;
  margin-bottom: 16px;
}

.staff-name {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 26px;
  color: #333;
  margin-bottom: 4px;
}

.staff-ruby {
  font-size: 14px;
  color: #666;
  margin-bottom: 18px;
}

.staff-info ul {
  text-align: left;
  font-size: 14.5px;
  line-height: 1.9;
  color: #222;
  list-style-type: disc;
  list-style-position: outside;
  margin: 0 auto;
  display: inline-block;
  padding-left: 1.2em;
}

.staff-info ul li {
  margin-bottom: 6px;
}

@media (max-width: 767px) {
  .staff-wrap {
    flex-direction: column;
    align-items: center;
  }
  .staff-img img {
    max-width: 280px;
  }
}

@media (max-width: 767px) {
  .company-head {
    grid-template-columns: 1fr;
  }
  .company-img {
    order: 2;
  }
  .company-desc {
    order: 1;
  }
}



/* =========================================
   contact セクション
========================================= */

.contact-sec {
  background: #fff;
  padding: clamp(60px, 8vw, 100px) 5%;
  text-align: center;
}
.contact-wrap {
  max-width: 800px;
  margin: 0 auto;
}
.contact-sec h2 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(26px, 3vw, 48px);
  font-weight: 700;
  color: #111;
  margin-bottom: 40px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label,
.form-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.req {
  background: #e53935;
  color: #fff;
  font-size: 12px;
  border-radius: 3px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-size: 15px;
  color: #333;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

.form-choice,
.form-checkbox {
  background: #f8f8f8;
  padding: 14px;
  border-radius: 4px;
}

.form-choice label,
.form-checkbox label {
  display: inline-block;
  margin-right: 20px;
  font-weight: 400;
  color: #333;
}

.form-checkbox label {
  display: block;
  margin-bottom: 6px;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 6px;
  accent-color: #1a237e; /* MATTのネイビーカラー */
}

.privacy {
  font-size: 13px;
  text-align: center;
  color: #666;
  margin-top: 20px;
}

.form-btn {
  text-align: center;
  margin-top: 30px;
}

.form-btn button {
  background: #1a237e;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  padding: 10px 60px;
  cursor: pointer;
  transition: 0.3s ease;
}

.form-btn button:hover {
  opacity: 0.9;
}

/* スマホ対応 */
@media (max-width: 767px) {
  .contact-form {
    max-width: 100%;
  }

  .form-btn button {
    width: 100%;
    border-radius: 30px;
  }
}


/* =========================================
   footer
========================================= */
.site-footer {
  background-color: #1a237e; /* MATTのネイビーカラー */
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 12px 0;
  line-height: 1.5;
}

.site-footer p {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  letter-spacing: 0.5px;
}
