/* Asia/Tokyo, 2025-09-20 14:30(UTC+09:00) common.css */
/* ===================================================================
   common.css — unified site‑wide styles
   Last Update: 2025‑08‑20 13:51 JST
   -------------------------------------------------------------------
   ・Base/Reset/Tokens
   ・Layout（Hero / About / Flow / FAQ / Contact / Footer）
   ・Header/Nav & Drawer
   ・Components（To‑Top / Floating CTA）
   ・Scrollable Tables UI（★スワイプヒントを中央重ね表示：幅40%）
   ・Utilities & Responsive
   ※ページ個別 CSS で必要箇所のみ上書き
=================================================================== */

/* ========== 0) Base / Reset / Tokens ========== */
html {
  font-size: 62.5%;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  scroll-behavior: auto;
  scroll-padding-top: var(--fixed-header, 100px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --content-max-width: 1100px;
  --page-gutter: clamp(1rem, 3vw, 2rem);

  --brand: #117713;
  --brand-strong: #0c5d0f;
  --accent-blue: #0075c9;
  --danger: #c50f0f;
  --text: #333;
  --muted: #555;
  --border: #e0e0e0;
  --radius: 0.5rem;
  --focus-ring: 3px solid rgba(0, 117, 201, 0.6);

  --fs-base-min: 1.6rem;
  --fs-base-max: 1.8rem;
  --lh-base: 1.6;
  --fs-h1: clamp(2.4rem, 1.8rem + 2vw, 3.6rem);
  --fs-h2: clamp(2.2rem, 1.7rem + 1.5vw, 3rem);
  --fs-h3: clamp(2rem, 1.6rem + 1vw, 2.4rem);
  --fs-h4: clamp(1.8rem, 1.5rem + 0.8vw, 2.2rem);
  --fs-h5: clamp(1.7rem, 1.5rem + 0.4vw, 2rem);
  --fs-h6: clamp(1.6rem, 1.5rem + 0.2vw, 1.8rem);
  --fs-small: clamp(1.6rem, 1.5rem + 0.2vw, 1.8rem);

  /* Scrollbar（ページで上書き可） */
  --sb-height: 20px;
  --sb-thumb: #ff0101;
  --sb-track: #fbff00;
  --sb-thumb-thickness: 5px;
  --sb-thumb-frame: 3px;

  /* Floating CTA */
  --cta-size: 60px;
  --cta-gap: 1rem;
  --cta-halo: 6px;

  --fab-right: max(1rem, env(safe-area-inset-right));
  --fab-bottom: max(1rem, env(safe-area-inset-bottom));
}

:lang(ja) {
  line-break: strict;
  word-break: normal;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Roboto", "Meiryo", "ヒラギノ角ゴ ProN",
    "Hiragino Kaku Gothic ProN", Arial, sans-serif;
  font-size: clamp(var(--fs-base-min), 1.5rem + 0.3vw, var(--fs-base-max));
  line-height: var(--lh-base);
  color: var(--text);
  background: #fff;
  counter-reset: annotation;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
}
a {
  color: #000;
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
}
a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
a,
.breakable {
  overflow-wrap: anywhere;
}

.main-nav ul,
.drawer ul,
.flow-steps,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ========== 1) Text Utilities ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
}
h1 {
  font-size: var(--fs-h1);
  line-height: 1.25;
  white-space: normal;
}
h2 {
  font-size: var(--fs-h2);
  line-height: 1.3;
  white-space: normal;
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.35;
}
h4 {
  font-size: var(--fs-h4);
  line-height: 1.4;
}
h5 {
  font-size: var(--fs-h5);
  line-height: 1.45;
}
h6 {
  font-size: var(--fs-h6);
  line-height: 1.5;
}

.note {
  font-size: var(--fs-small);
  color: #383838;
  margin: 1.6rem 0 0;
}
.note-right {
  font-size: var(--fs-small);
  text-align: right;
  color: #383838;
  margin: 0 0 1rem;
}
sup {
  color: #a50000;
}
sup.white {
  color: #fff;
}
.p-midsize {
  font-size: 1.8rem;
  line-height: var(--lh-base);
  margin-bottom: 0;
}
.txt-right {
  text-align: right;
  margin: 0;
}
.hl-red,
.text-red {
  color: var(--danger);
}
.u-bold {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.nowrap {
  white-space: nowrap;
}
.note-inline {
  color: #a50000;
  font-weight: 700;
}

/* ========== 2) Utility ========== */
.container {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-title,
.section-title2 {
  font-size: 3rem;
  border-left: 8px solid var(--brand);
  padding-left: 1rem;
}
.section-title {
  margin: 3rem 0 3rem;
}
.section-title2 {
  margin: 0;
}

ul,
ol {
  margin: 0;
  margin-left: 1.6em;
  padding: 0;
  list-style: disc outside;
}
li {
  padding-left: 0;
  text-indent: 0;
}
li ul,
li ol {
  margin-left: 1.6em;
}

.copyright {
  display: block;
  text-align: center;
  margin-top: 1.6rem;
  white-space: normal;
}
.copyright .serial {
  display: inline;
  margin-left: 0.5em;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .copyright .serial {
    display: block;
    margin: 0.4rem 0 0;
  }
}

/* ========== 3) Hero ========== */
.hero,
.hero2 {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: var(--content-max-width);
  aspect-ratio: 1100/367;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: center/contain no-repeat;
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: contain;
  transition: background-size 0.3s ease-out;
}
.hero {
  background-image: url("/images/kazaitop.webp");
}
.hero2 {
  background-image: url("/images/kazaitop2.webp");
}
.hero-box,
.hero-box2 {
  max-width: 80%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
  align-items: center;
}
.hero-box2 {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-box h1 {
  font-size: 4rem;
  line-height: 1.3;
  font-weight: 700;
  color: #004728;
}
.hero-box small {
  font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2.2rem);
  font-weight: 500;
  color: #9b0202;
}
.hero2.hero--plain {
  background-image: url("/images/kazaitop2.webp") !important;
  height: auto;
  aspect-ratio: 1100 / 367;
  background-size: contain;
  background-position: left bottom;
  background-repeat: no-repeat;
}
.btn-primary {
  align-self: center;
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 500;
  color: #eeff00;
  background: var(--brand);
  border-radius: 6px;
  transition: 0.25s;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-strong);
}

@media (max-width: 768px) {
  .hero,
  .hero2 {
    aspect-ratio: 1100/367;
  }
  .hero-box {
    max-width: 92%;
    max-height: 90%;
    padding: 1.5rem;
    gap: 1rem;
  }
  .section-title,
  .section-title2 {
    font-size: 2.4rem;
  }
}
@media (max-width: 380px) {
  .hero-box {
    gap: 0.5rem;
    line-height: 1.3;
  }
  .hero-box h1 {
    font-size: clamp(1.7rem, 1.9rem + 1.2vw, 2.2rem);
    line-height: 1.3;
    font-weight: 700;
  }
  .btn-primary {
    padding: 0.5rem 2rem;
    margin-top: 0.4rem;
    font-size: clamp(1.8rem, 1.4rem + 0.8vw, 2.2rem);
  }
}

/* ========== 4) Layout – About / Flow / FAQ / Contact / Footer ========== */
.about {
  margin: 0;
  padding: 0;
}
.about .container > p {
  margin: 0 0 1rem;
}
.flow {
  background: #e8f5ff;
  padding: 4rem 0;
  margin: 0;
}
.flow-steps {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, 150px);
  justify-content: center;
  justify-items: center;
  counter-reset: step;
}
.flow-steps li {
  width: 140px;
  height: 120px;
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.flow-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.4rem;
  height: 2.4rem;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow .section-title {
  margin-bottom: 4rem;
}
@media (max-width: 480px) {
  .flow-steps {
    grid-template-columns: repeat(auto-fill, 140px);
  }
  .flow-steps li {
    width: 140px;
    padding: 2rem;
  }
  .about .container > p {
    margin-bottom: 0;
  }
}

.faq {
  margin: 4rem 0;
}
.faq details {
  border-bottom: 1px solid #ccc;
  padding: 1.6rem 0;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
}
.faq-answer table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.faq-answer th,
.faq-answer td {
  border: 1px solid #999;
  padding: 0.8rem 1rem;
}
.faq-answer th {
  background: #f5f5f5;
  text-align: left;
}
.faq-answer .footnote {
  font-size: var(--fs-small);
  margin-top: 0.8rem;
}

.contact {
  background: #fff5d6;
  padding: 1rem 0 2rem;
  text-align: center;
  margin: 2rem 0;
}
.contact .section-title {
  text-align: left;
}
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}
.contact-card {
  flex: 1 1 48%;
  background: #fff;
  border: 2px solid #117713;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}
.contact-head {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.6rem;
}
.contact-head .contact-hl {
  color: #117713;
  font-size: 2.5rem;
}
.tel a {
  color: #ff0000;
  font-size: 4rem;
  text-decoration: none;
}
.small {
  font-size: 1.4rem;
}
.contact-card p:has(> .tel) {
  margin-block: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.contact-card .tel,
.contact-card .tel a {
  line-height: 1;
  display: inline-block;
}
.contact-card .label,
.contact-card .small {
  line-height: 1;
}

.site-footer {
  background: #117713;
  color: #fff;
  padding: 3rem 0;
  font-size: 1.6rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.footer-links a {
  color: #fff;
}
.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-card {
    flex-basis: 100%;
  }
  .about {
    padding-bottom: 1rem;
  }
}
@media (max-width: 480px) {
  .tel a {
    color: #ff0000;
    font-size: 3rem;
    text-decoration: none;
  }
}

/* ========== 5) Components – To‑Top / Floating CTA ========== */
.to-top {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  background: #117713;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  right: 1rem;
  bottom: 1rem;
  z-index: 1600;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.to-top:hover,
.to-top:focus {
  opacity: 0.8;
}
.to-top:focus-visible {
  outline: 3px solid #fff;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
}

.floating-cta {
  display: none;
}
@media (max-width: 600px) {
  .floating-cta {
    position: fixed;
    right: var(--fab-right);
    bottom: calc(var(--fab-bottom) + var(--cta-size) + var(--cta-gap));
    display: flex;
    flex-direction: column;
    gap: var(--cta-gap);
    z-index: 3000;
    pointer-events: none;
  }
  .floating-cta .cta-btn {
    pointer-events: auto;
    width: var(--cta-size);
    height: var(--cta-size);
    border-radius: 50%;
    font-size: 1.4rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 0 0 var(--cta-halo) #fff, 0 8px 22px rgba(0, 0, 0, 0.25),
      0 2px 6px rgba(0, 0, 0, 0.16);
    transition: opacity 0.2s ease;
  }
  .floating-cta .cta-btn:hover,
  .floating-cta .cta-btn:focus {
    opacity: 0.88;
  }
  .fee-btn {
    background: #0057a4;
  }
  .apply-btn {
    background: #c50f0f;
  }
}

/* ========== 6) Header & Navigation – Main Nav ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 2px solid var(--border);
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 2.5rem 4rem;
  row-gap: 0.4rem;
  column-gap: 2.5rem;
}
.main-nav li {
  position: relative;
}
.main-nav li + li::before,
.main-nav li:first-child::before,
.main-nav li:last-child::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2px;
  height: 2rem;
  background: #c4c4c4;
  transform: translateY(-50%);
}
.main-nav li + li::before,
.main-nav li:first-child::before {
  left: -1.5rem;
}
.main-nav li:last-child::after {
  right: -1.5rem;
}

.main-nav a {
  display: block;
  font-size: 2.5rem;
  color: #333;
  padding: 0.4rem 1rem;
  position: relative;
  transition: 0.25s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 3px;
  background: var(--accent-blue);
  transition: width 0.25s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #e6f3ff;
  color: var(--accent-blue);
  text-decoration: none;
}
.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}

.main-nav a[aria-current="page"],
.drawer a[aria-current="page"] {
  color: #0075c9;
  font-weight: 700;
}
.main-nav a[aria-current="page"]::after,
.drawer a[aria-current="page"]::after {
  width: 100%;
}

/* ハンバーガー */
.menu-toggle {
  position: absolute;
  right: 0.5rem;
  top: 60%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  line-height: 0;
  display: none;
}
.menu-toggle img {
  width: 50px;
  height: auto;
}

/* ★ iOS青枠対策：アイコンボタン（#menu-toggle / #drawer-close） */
.menu-toggle,
.drawer-close {
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle img,
.drawer-close img {
  outline: none;
}
.menu-toggle:focus,
.drawer-close:focus {
  outline: none;
}
@supports selector(:focus-visible) {
  .menu-toggle:focus:not(:focus-visible),
  .drawer-close:focus:not(:focus-visible) {
    outline: none;
  }
  .menu-toggle:focus-visible,
  .drawer-close:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 4px;
    border-radius: 8px;
  }
  .menu-toggle:focus-visible img,
  .drawer-close:focus-visible img {
    outline: none;
  }
}

/* 折返し時の微調整（PC～タブ横） */
@media (max-width: 1100px) and (min-width: 601px) {
  .main-nav ul {
    row-gap: 0.2rem;
  }
  .main-nav a {
    padding-block: 0.1rem;
    line-height: 1.5;
  }
  .main-nav li + li::before,
  .main-nav li:first-child::before,
  .main-nav li:last-child::after {
    height: 2rem;
  }
}

/* 600px 以下はハンバーガー化（JS有効時） */
@media (max-width: 600px) {
  html.has-js .menu-toggle {
    display: block;
  }
  html.has-js .main-nav ul {
    display: none;
  }
}
html.no-js .main-nav ul {
  display: flex;
}
html.no-js .menu-toggle {
  display: none;
}

/* ========== 7) Drawer（スライドメニュー） ========== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s step-end;
  z-index: 1095;
}
.drawer.open + .drawer-backdrop,
.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}

.drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 260px;
  height: 100vh;
  padding: 5rem 2rem max(2rem, env(safe-area-inset-right)) 2rem;
  background: #fff;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  z-index: 1100;
  transition: right 0.3s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.drawer.open {
  right: 0;
}

.drawer ul {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.drawer a {
  display: block;
  font-size: 1.8rem;
  font-weight: 500;
  color: #000;
  padding: 0.6rem 2.4rem 0.6rem 0.2rem;
  position: relative;
  transition: color 0.25s ease, background-color 0.25s ease,
    padding-left 0.25s ease;
  text-decoration: none;
  outline: none;
}
.drawer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 3px;
  background: var(--accent-blue);
  transition: width 0.25s;
}
.drawer a:hover,
.drawer a:focus {
  color: var(--accent-blue);
  background: #e6f3ff;
  padding-left: 0.8rem;
}
.drawer a:hover::after,
.drawer a:focus::after {
  width: 100%;
}
.drawer a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  text-decoration: none;
}

.drawer a::before {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 7px solid currentColor;
  opacity: 0.75;
  pointer-events: none;
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.drawer a:hover::before,
.drawer a:focus::before {
  opacity: 1;
  transform: translateY(-50%) translateX(1px);
}

.drawer ul.drawer-menu {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.drawer ul.drawer-menu li {
  margin: 0;
  padding: 0;
}
.drawer ul.drawer-menu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.2rem;
}
.drawer-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(2rem, env(safe-area-inset-right));
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 0;
}
.drawer-close img {
  width: 50px;
  height: auto;
}
@media (max-width: 600px) {
  .drawer ul.drawer-menu a {
    gap: 1rem;
    padding: 1rem 0.4rem;
  }
}
.drawer.open ~ .to-top,
.drawer.open ~ .to-top.show {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.drawer.open ~ .floating-cta {
  display: none;
}

/* ========== 8) Logo ========== */
.site-logo {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
}
.site-logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* ========== 9) Footnotes / 注記 ========== */
.footnotes,
.footnotes-hosho {
  margin: 1em 0;
  padding-left: 0;
  list-style: none;
  counter-reset: fn;
}
.footnotes li,
.footnotes-hosho li {
  font-size: var(--fs-small);
  position: relative;
  padding-left: 1.8em;
}
.footnotes li::before,
.footnotes-hosho li::before {
  counter-increment: fn;
  content: "＊" counter(fn);
  position: absolute;
  left: 0;
  color: #a50000;
}

.asterisk-note,
.arrow-note {
  font-size: 1.8rem;
  position: relative;
  padding-left: 1.8em;
  line-height: 1.3;
  margin: 0.4rem;
}
.asterisk-note::before {
  content: "※";
  position: absolute;
  left: 0;
  color: #a50000;
}
.arrow-note::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #000;
}

.annotation {
  position: relative;
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 0.8rem 0;
  padding-left: 3.2em;
}
.annotation::before {
  content: "（注）";
  position: absolute;
  left: 0;
  color: #a50000;
}
.annotation-num {
  position: relative;
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 0.8rem 0;
  padding-left: 3.2em;
  counter-increment: annotation;
}
.annotation-num::before {
  content: "（注" counter(annotation) "）";
  position: absolute;
  left: 0;
  color: #a50000;
}

@media (max-width: 480px) {
  .asterisk-note,
  .annotation,
  .annotation-num,
  .arrow-note {
    font-size: 1.5rem;
  }
}

/* ========== 10) Legal Disclaimer ========== */
.disclaimer {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 2rem 4rem;
  font-size: 1.6rem;
  line-height: 2.2rem;
  color: #555;
  max-width: var(--content-max-width);
  margin-inline: auto;
}
.disclaimer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.disclaimer li {
  position: relative;
  padding-left: 2rem;
}
.disclaimer li::before {
  content: "※";
  position: absolute;
  left: 0;
  top: 0.15em;
  line-height: 1;
}

/* ========== 11) Utilities ========== */
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== 12) Agency & Insurer ========== */
.agency-insurer {
  background: #f8f8f8;
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.1;
  user-select: none;
}
.agency-insurer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-inline: auto;
  margin-block-end: 1rem;
}
.agency-insurer .info-block {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.info-block {
  flex: 1 1 320px;
  max-width: 500px;
}
.info-name {
  font-size: var(--fs-small);
  margin: 0;
  font-weight: 400;
}
.info-name::before {
  content: "【";
  margin-right: 0.25em;
}
.info-name::after {
  content: "】";
  margin-left: 0.25em;
}
.info-block address {
  font-style: normal;
  margin: 0;
}
.info-block a {
  font-size: var(--fs-small);
  margin: 0;
  word-break: break-all;
}
.info-block p {
  margin: 0;
}

@media (max-width: 750px) {
  .agency-insurer .container {
    flex-direction: column;
    gap: 0;
  }
  .info-block {
    flex: 1 1 100%;
    max-width: none;
  }
  .info-block .info-name {
    display: inline;
  }
  .info-block h2.info-name,
  .info-block p.info-name {
    margin: 0;
  }
}

/* ========== 13) Index：注釈テーブル / 画像まわり（共通） ========== */
.risk-annotations {
  margin: 0;
  padding: 0 0 2rem;
  background: #fff;
}
.risk-annotations-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
  line-height: 1.6;
}
.risk-annotations-table td {
  padding: 0.3rem 0.8rem;
  border-bottom: 0px solid var(--brand);
  vertical-align: top;
}
.risk-annotations-table .note-marker {
  color: #a50000;
  font-weight: 700;
  white-space: nowrap;
}
.risk-annotations-table .note-marker::before {
  content: "(注";
}
.risk-annotations-table .note-marker::after {
  content: ")";
}

.reference-image {
  max-width: var(--content-max-width);
  margin-inline: auto;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}
.reference-image img {
  display: inline-block;
  width: 94%;
  height: auto;
}
.reference-image picture img {
  transition: opacity 0.3s ease;
}
.reference-image:hover picture img {
  opacity: 0.8;
}

.kana-small {
  font-size: 0.7em;
}

/* ========== 14) Responsive – 細かい調整 ========== */
@media (max-width: 480px) {
  .contact-card .tel a {
    font-size: clamp(2.4rem, 8vw, 3rem);
    line-height: 1.2;
    white-space: nowrap;
  }
  .container {
    padding-inline: 1rem;
  }
}

/* ===================================================================
   15) Scrollable Tables – 共通 UI（右端フェード／同期バー）
   =================================================================== */
.table-scroll-wrapper {
  position: relative;
}
.table-scroll-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: var(--sb-height, 50px);
  width: 40px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.table-scroll-wrapper[data-right-visible]::after {
  opacity: 1;
}

.table-scroll-main {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.table-scroll-main::-webkit-scrollbar {
  display: none;
}

.table-scroll-bottom {
  position: sticky;
  bottom: 0;
  height: var(--sb-height, 50px);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--sb-track, #fbff00);
  scrollbar-color: var(--sb-thumb, #ff0101) var(--sb-track, #fbff00);
  margin-top: -1px;
  z-index: 50;
}
.table-scroll-bottom::-webkit-scrollbar:horizontal {
  height: var(--sb-height, 50px);
}
.table-scroll-bottom::-webkit-scrollbar-track:horizontal {
  background: var(--sb-track, #fbff00);
  border-radius: 999px;
}
.table-scroll-bottom::-webkit-scrollbar-thumb:horizontal {
  border-top: calc(
      (var(--sb-height, 50px) - var(--sb-thumb-thickness, 24px)) / 2 -
        var(--sb-offset-y, 0px)
    )
    solid transparent;
  border-bottom: calc(
      (var(--sb-height, 50px) - var(--sb-thumb-thickness, 24px)) / 2 +
        var(--sb-offset-y, 0px)
    )
    solid transparent;
  background-color: var(--sb-thumb, #ff0101);
  background-clip: padding-box;
  border-radius: 999px;
  box-shadow: inset 0 0 0 var(--sb-thumb-frame, 3px) #c50f0f;
}
.table-scroll-bottom::-webkit-scrollbar-thumb:horizontal:hover {
  filter: brightness(0.96);
}
.table-scroll-bottom::-webkit-scrollbar-thumb:horizontal:active {
  filter: brightness(0.9);
}

@media (max-width: 600px) {
  .table-scroll-bottom.mobile-fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin-top: 0;
  }
}

.table-scroll-bottom.global-fixed {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: none;
}
html[data-global-scrollbar-visible] body {
  padding-bottom: var(--sb-height, 50px);
}
@supports (padding: max(0px)) {
  html[data-global-scrollbar-visible] body {
    padding-bottom: max(var(--sb-height, 50px), env(safe-area-inset-bottom));
  }
  .table-scroll-bottom.global-fixed {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.damage-table-wrapper {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--sb-thumb, #ff0101) var(--sb-track, #fbff00);
}
.damage-table-wrapper::-webkit-scrollbar:horizontal {
  height: var(--sb-height, 50px);
}
.damage-table-wrapper::-webkit-scrollbar-track:horizontal {
  background: var(--sb-track, #fbff00);
  border-radius: 999px;
}
.damage-table-wrapper::-webkit-scrollbar-thumb:horizontal {
  border-top: calc(
      (var(--sb-height, 50px) - var(--sb-thumb-thickness, 24px)) / 2 -
        var(--sb-offset-y, 0px)
    )
    solid transparent;
  border-bottom: calc(
      (var(--sb-height, 50px) - var(--sb-thumb-thickness, 24px)) / 2 +
        var(--sb-offset-y, 0px)
    )
    solid transparent;
  background-color: var(--sb-thumb, #ff0101);
  background-clip: padding-box;
  border-radius: 999px;
  box-shadow: inset 0 0 0 var(--sb-thumb-frame, 3px) #c50f0f;
}
.damage-table-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
  opacity: 0;
  transition: opacity 0.3s;
}
.damage-table-wrapper[data-right-visible]::after {
  opacity: 1;
}

/* Swipe Hint overlay */
.table-scroll-wrapper .swipe-hint,
.damage-table-wrapper .swipe-hint {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 60;
  pointer-events: none;
}
.table-scroll-wrapper[data-swipe-hint="on"] .swipe-hint,
.damage-table-wrapper[data-swipe-hint="on"] .swipe-hint {
  display: grid;
}
.swipe-hint__img {
  width: 40%;
  min-width: 140px;
  max-width: 520px;
  height: auto;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: manipulation;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.swipe-hint__img:active {
  transform: scale(0.98);
}

/* 文言入替ユーティリティ（SPのみ） */
.dir-word::before {
  content: attr(data-wide);
}
@media (max-width: 600px) {
  .dir-word::before {
    content: attr(data-narrow);
  }
}

/* ========== 16) Skip Link ========== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: 0.8rem;
  border: 2px solid #000;
  z-index: 2000;
}

/* ========== 17) Footer系ページ用スタイル ========== */
.hero--plain {
  background: #e8f5ff !important;
  background-image: none !important;
  --hero-height: 200px;
  height: var(--hero-height);
  margin-block: 1rem;
}
@media (max-width: 768px) {
  .hero--plain {
    --hero-height: 160px;
  }
}
.date {
  font-size: var(--fs-small);
  color: #555;
  text-align: right;
  margin: 0 0 2.4rem;
}
address.contact {
  font-style: normal;
  margin-top: 3rem;
  padding: 1.6rem;
  background: #f7f7f7;
  border-left: 6px solid #117713;
  line-height: 2.4rem;
}
.section--tight {
  padding-top: 0 !important;
}

#handling .section-title,
#policy .section-title,
#salespolicy .section-title,
#hikakusuishou .section-title,
#profile .section-title {
  border-color: #0057a4;
}
#handling h3,
#policy h3,
#salespolicy h3,
#hikakusuishou h3,
#hikakusuishou h4 {
  font-size: 1.9rem;
  margin: 2.4rem 0 1.2rem;
  color: #0057a4;
}
#handling ul,
#policy ul,
#salespolicy ul,
#hikakusuishou ul,
#hikakusuishou ol {
  margin: 0.4rem 0 1.6rem 1.8em;
  padding: 0;
  list-style: disc outside;
}
.policy-links {
  margin-top: 0.8rem;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
  line-height: 2.4rem;
  margin: 0;
}
.profile-table th,
.profile-table td {
  border: 1px solid #bcd8ef;
  padding: 0.8rem 1rem;
  vertical-align: top;
}
.profile-table th {
  width: 180px;
  background: #e8f5ff;
  font-weight: 700;
}
.profile-table .note {
  font-size: var(--fs-small);
  color: #000;
  margin: 1rem 0 0;
}

/* ========== 18) Motion reduction ========== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  .hero,
  .main-nav a,
  .main-nav a::after,
  .drawer,
  .drawer-backdrop,
  .drawer a,
  .drawer a::after,
  .to-top,
  .floating-cta .cta-btn,
  .table-scroll-wrapper::after,
  .damage-table-wrapper::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
@media (max-width: 899px) {
  .hero {
    margin-bottom: 0;
  }
  .about,
  .risk-matrix {
    padding-top: 0;
    margin-top: -1px;
  }
  .coverage-summary {
    padding-top: 0;
  }
}

/* ===================================================================
   Contact（#contact.contact）— 超コンパクト版
   =================================================================== */
#contact .contact-card p {
  margin: 1rem 0;
  line-height: 1.3;
}
@media (max-width: 600px) {
  #contact.contact {
    padding: 2rem 0 0.8rem;
  }
  #contact .contact-cards {
    gap: 2rem;
  }
  #contact .contact-card {
    padding: 1rem;
  }
  #contact .contact-card p {
    margin: 0.5rem 0;
    line-height: 1.25;
  }
}

/* ============================================================
   chuijikou.css — 追加調整
   ============================================================ */
@media (max-width: 600px) {
  #caution .notice-table thead th:first-child {
    width: clamp(110px, 30vw, 140px) !important;
  }
  #caution .notice-table th[scope="row"] {
    min-width: clamp(110px, 32vw, 150px);
    white-space: normal;
    white-space: normal;
  }
}
#caution .notice-table tbody tr:nth-child(even) td {
  background: #f7faff;
}
#caution .payment-table thead th {
  background: #e9f2ff;
}
#caution .payment-table .col-head {
  background: #e6effb;
}
#caution .payment-table .col-sub {
  background: #f3f7fe;
}
#caution .payment-table .row-head {
  background: #f5f7fa;
}
#caution .payment-table td {
  background: #fff;
}
#caution .note {
  background: #fffaf0;
  border-left: 5px solid #f3c742;
  padding: 0.6rem 0.8rem;
  margin-top: 0.6rem;
  white-space: normal;
}

/* ===================================================================
   19) 端末・表示条件に応じた追加上書き
   =================================================================== */
@media (max-width: 600px) {
  .floating-cta {
    position: fixed;
    z-index: 1500;
    right: 1rem;
    bottom: 8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
  }
  .floating-cta .cta-btn {
    pointer-events: auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    transition: opacity 0.2s ease;
  }
  .floating-cta .cta-btn:hover,
  .floating-cta .cta-btn:focus {
    opacity: 0.8;
  }
  .floating-cta .fee-btn {
    background: #01325e;
  }
  .floating-cta .apply-btn {
    background: #c50f0f;
  }
  .floating-cta .menu-btn {
    background: #ecebe8;
  }
  .floating-cta .menu-btn img {
    width: 44px;
    height: 44px;
    display: block;
    margin: 0;
    object-fit: contain;
  }
}

/* Drawer width unification */
.drawer {
  position: fixed;
  top: 0;
  right: -210px;
  width: 190px;
  height: 100vh;
  padding: 5rem 2rem max(2rem, env(safe-area-inset-right)) 2rem;
  background: #fff;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  z-index: 1100;
  transition: right 0.3s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 1rem;
  }
  .disclaimer {
    padding-inline: 1rem;
  }
}
@media (max-width: 767.98px) {
  html {
    font-size: 58.5%;
  }
}
@media (max-width: 599.98px) {
  html {
    font-size: 56.25%;
  }
}
@media (max-width: 374.98px) {
  html {
    font-size: 53.125%;
  }
}
@media (max-width: 767.98px) {
  input,
  select,
  textarea {
    font-size: max(16px, 1.6rem);
  }
  .btn-submit,
  .btn-testmail {
    font-size: max(16px, 1.6rem);
  }
}
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .menu-toggle {
    display: block;
  }
  .main-nav ul {
    display: none;
  }
}

/* ===================================================================
   20) Global Scrollbar — iOS互換＆上寄せ
   =================================================================== */
#global-scrollbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--sb-track, #fbff00);
}
#global-scrollbar .global-scroll-ind {
  position: absolute;
  top: 0;
  transform: none;
  height: var(--sb-thumb-thickness, 24px);
  border-radius: 999px;
  background: var(--sb-thumb, #ff0101);
  box-shadow: inset 0 0 0 var(--sb-thumb-frame, 3px) #c50f0f;
  pointer-events: none;
}
.table-scroll-bottom,
.damage-table-wrapper {
  --sb-offset-y: calc(
    (var(--sb-height, 50px) - var(--sb-thumb-thickness, 24px)) / 2
  );
}
.thumb-top #global-scrollbar .global-scroll-ind {
  top: 0;
  transform: none;
}
.thumb-top .table-scroll-bottom,
.thumb-top .damage-table-wrapper {
  --sb-offset-y: calc(
    (var(--sb-height, 50px) - var(--sb-thumb-thickness, 24px)) / 2
  );
}
/* Scrollbar size x3（値のみ上書き） */
:root {
  --sb-height: 20px;
  --sb-thumb-thickness: 15px;
}
/* Asia/Tokyo, 2025-09-20 15:10(UTC+09:00) common.css — add local fake thumb */
.table-scroll-bottom .local-scroll-ind {
  position: absolute;
  top: 0;
  left: 0;
  height: var(--sb-thumb-thickness, 24px);
  border-radius: 999px;
  background: var(--sb-thumb, #ff0101);
  box-shadow: inset 0 0 0 var(--sb-thumb-frame, 3px) #c50f0f;
  pointer-events: none;
  display: none; /* 必要時のみ JS が block にする */
}
.faq-lite summary {
  letter-spacing: 0.05em; /* 横方向の文字間隔 */
  line-height: 1.8; /* 縦方向の行間 */
  padding: 0.4em 0; /* 上下の余白も確保 */
  cursor: pointer; /* FAQ感を出すためカーソル変更 */
}

/* === 横向きスマホ（ランドスケープ）専用：全体スクロール化 + フローティングメニュー表示 === */
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  /* 1) ヘッダー固定を一時解除 → ページ全体（ロゴ含む）がスクロールする */
  .site-header {
    position: static; /* 既定: sticky を横向きスマホのみ無効化 */
  }

  /* アンカー位置の余白も不要になるため padding を0に */
  html {
    scroll-padding-top: 0 !important;
  }

  /* 2) フローティングメニュー群を横向きでも表示（600px超の端末に対応） */
  .floating-cta {
    position: fixed;
    z-index: 1500;
    right: 1rem;
    bottom: 8rem;
    display: flex; /* ← 横向きでも表示 */
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
  }
  .floating-cta .cta-btn {
    pointer-events: auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    transition: opacity 0.2s ease;
  }
  .floating-cta .cta-btn:hover,
  .floating-cta .cta-btn:focus {
    opacity: 0.8;
  }

  .floating-cta .menu-btn {
    background: #ecebe8;
  }
  .floating-cta .menu-btn img {
    width: 44px;
    height: 44px;
    display: block;
    margin: 0;
    object-fit: contain;
  }
  .floating-cta .fee-btn {
    background: #0057a4;
  }
  .floating-cta .apply-btn {
    background: #c50f0f;
  }
}

.hero--offset-right {
  --hero-box-shift-x: clamp(55%, 6vw, 8%);
}
.hero--offset-right .hero-box,
.hero--offset-right .hero-box2 {
  transform: translateX(var(--hero-box-shift-x));
}
@media (max-width: 768px) {
.hero--offset-right {
  --hero-box-shift-x: clamp(35%, 6vw, 8%);
}
.hero--offset-right .hero-box,
.hero--offset-right .hero-box2 {
  transform: translateX(var(--hero-box-shift-x));
}
}
/* hero 見出しの白縁（stroke優先＋shadowフォールバック） */
.hero-box h1 {
  /* 1) WebKit系（Chrome/Edge/Safari 等） */
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
  /* 2) フォールバック（Firefox など） */
  text-shadow:
    1px 1px 0 #fff,  -1px 1px 0 #fff,
    1px -1px 0 #fff, -1px -1px 0 #fff,
    0 2px 0 #fff,     2px 0 0 #fff,
    0 -2px 0 #fff,   -2px 0 0 #fff;
}

/* stroke 太さをSPで少し細く（任意） */
@media (max-width: 480px) {
  .hero-box h1 {
    -webkit-text-stroke: 1.5px #fff;
    text-shadow:
      1px 1px 0 #fff,  -1px 1px 0 #fff,
      1px -1px 0 #fff, -1px -1px 0 #fff;
  }
}
