/* 2025-08-30 18:12(UTC+09:00) */
/* === common.css  ============================================== */

/* 0. Base / Reset */
html {
  -webkit-text-size-adjust: 100%;
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--fixed-header, 100px);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Noto Sans JP", "Roboto", "Meiryo", "ヒラギノ角ゴ ProN",
    "Hiragino Kaku Gothic ProN", Arial, sans-serif;
  font-size: 1.8rem;
  line-height: 2.4rem;
  color: #333;
  background: #fff;
  min-width: 390px; /* 既存ゴルフ側を維持 */
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
}
a {
  color: #000;
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
}
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;
}

/* マーカー非表示: 共通ナビ系 */
.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;
}
.note {
  font-size: 1.6rem;
  color: #555;
  margin: 1.6rem 0 0;
}
sup {
  color: #a50000;
}
.p-midsize {
  font-size: 1.8rem;
  line-height: 2.4rem;
  margin-bottom: 0;
}
@media (max-width: 480px) {
  .p-midsize {
    font-size: 1.6rem;
  }
}

/* 2. Root Vars */
:root {
  --content-max-width: 1100px;
}

/* 3. Utility */
.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: 4rem;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-title {
  font-size: 2.4rem;
  border-left: 8px solid #117713;
  padding-left: 1rem;
  margin: 0 0 2.4rem;
}

/* copyright（集約） */
.copyright {
  display: block;
  text-align: center;
  margin-top: 1.6rem;
  text-wrap: pretty;
} /* balanceは不使用 */
.copyright .serial {
  display: inline;
  margin-left: 0.5em;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .copyright .serial {
    display: block;
    margin: 0.4rem 0 0;
  }
}

/* 4. 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: flex-end;
  align-items: center;
  background: center/contain no-repeat;
  background-position: left bottom;
  transition: background-size 0.3s ease-out;
}
.hero {
  background-image: url("/images/golftop.svg");
}
.hero2 {
  background-image: url("/images/golftop2.svg");
}

.hero-box {
  max-width: 80%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.84);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  --hero-offset-pc: 3rem;
  --hero-offset-tablet: 10rem;
  --hero-offset-mobile: 4rem;
  margin-right: var(--hero-offset-pc);
  margin-left: 0;
  align-items: flex-end;
}
.hero-box h1 {
  font-size: 4rem;
  line-height: 1.3;
  color: #004728;
}
.hero-box small {
  font-size: 2.5rem;
  font-weight: 500;
  color: #004728;
}
.hero-box .note--hero {
  display: block;
  font-size: 1.6rem;
  line-height: 1.4;
  color: #555;
  margin: -0.8rem 0 0;
}

.btn-primary {
  align-self: center;
  display: inline-block;
  padding: 1.6rem 4rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #eeff00;
  background: #117713;
  border-radius: 6px;
  transition: 0.25s;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #0c5d0f;
}

/* 900px 以上は中央寄せ（既存維持） */
@media (min-width: 900px) {
  .hero {
    justify-content: center;
  }
  .hero-box {
    margin-right: 0;
    margin-left: 0;
    align-items: center;
    text-align: center;
  }
}
/* 900px 未満のタブレット寄せ（既存維持・数値揃え） */
@media (max-width: 899px) {
  .hero-box {
    margin-right: var(--hero-offset-tablet);
    align-items: center;
  }
  .hero {
    margin-bottom: 0;
  }
  .about {
    padding-top: 0;
    margin-top: -1px;
  }
  .coverage-summary {
    padding-top: 0;
  }
}
/* 600px 未満のSP寄せ（既存維持・数値揃え） */
@media (max-width: 600px) {
  .hero-box {
    margin-right: var(--hero-offset-mobile);
    align-items: center;
  }
}

/* 背景サイズの段階（1199/991/767/575 を近接丸め） */
@media (max-width: 1200px) {
  .hero,
  .hero2 {
    background-size: 110%;
  }
}
@media (max-width: 992px) {
  .hero,
  .hero2 {
    background-size: 120%;
  }
}
@media (max-width: 768px) {
  .hero,
  .hero2 {
    background-size: 140%;
  }
}
@media (max-width: 576px) {
  .hero,
  .hero2 {
    background-size: 130%;
  }
}

/* ヒーロー内文字サイズ（従来 850/500 を 768/480 に整理） */
@media (max-width: 768px) {
  .hero-box {
    max-width: 100%;
    max-height: 100%;
    padding: 1rem;
    gap: 0.8rem;
  }
  .hero-box h1 {
    font-size: 2.3rem;
  }
  .hero-box small {
    font-size: 1.8rem;
  }
  .hero-box .note--hero {
    margin: -0.4rem 0 0;
    font-size: 1.4rem;
  }
  .btn-primary {
    font-size: 1.6rem;
    padding: 1.2rem 3rem;
  }
}
@media (max-width: 480px) {
  .hero-box {
    max-width: 100%;
    max-height: 100%;
    padding: 0.3em;
    gap: 0.2rem;
  }
  .hero-box h1 {
    font-size: 2rem;
  }
  .hero-box small {
    font-size: 1.6rem;
  }
  .hero-box .note--hero {
    margin: 0.4rem 0 0;
    font-size: 1.3rem;
  }
  .btn-primary {
    font-size: 1.8rem;
    padding: 0.6rem;
    margin: 0;
    border-radius: 6px;
  }
}

/* 5. Layout – About / Flow / FAQ / Contact / Footer */
.about {
  background: #fff;
  padding: 3rem 0 1.5rem;
  margin: 0;
}
.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 #117713;
  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: #117713;
  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;
  }
}

.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: 1.6rem;
  margin-top: 0.8rem;
}

.contact {
  background: #fff5d6;
  padding: 4rem 0;
  text-align: center;
  margin: 4rem 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;
}
.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;
  }
}

/* 6. Components – to-top */
.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;
}

/* 7. Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 2px solid #e0e0e0;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 2.5rem 4rem;
  row-gap: 0.8rem;
  column-gap: 4rem;
}
.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: 1.8rem;
  background: #c4c4c4;
  transform: translateY(-50%);
}
.main-nav li + li::before,
.main-nav li:first-child::before {
  left: -2rem;
}
.main-nav li:last-child::after {
  right: -2rem;
}
.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: #0075c9;
  transition: width 0.25s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #e6f3ff;
  color: #0075c9;
}
.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}

/* ハンバーガー */
.menu-toggle {
  position: absolute;
  right: 1rem;
  top: 60%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  line-height: 0;
  display: none;
}
.menu-toggle img {
  width: 45px;
  height: auto;
  transition: transform 0.2s;
}

/* 8. Drawer（transform型スライド） */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 170px;
  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;
  transform: translateX(210px);
  transition: transform 0.3s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.drawer.open {
  right: 0;
  transform: translateX(0);
}

/* Drawer リスト＆リンク */
.drawer ul {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  margin: 1rem 0 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;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease,
    padding-left 0.25s ease;
  outline: none;
  text-wrap: pretty;
}
.drawer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 3px;
  background: #0075c9;
  transition: width 0.25s;
}
.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,
.drawer a:focus {
  color: #0075c9;
  background: #e6f3ff;
  padding-left: 0.8rem;
}
.drawer a:hover::after,
.drawer a:focus::after {
  width: 100%;
}
.drawer a:hover::before,
.drawer a:focus::before {
  opacity: 1;
  transform: translateY(-50%) translateX(1px);
}

/* Drawer 閉じるボタン */
.drawer-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 0;
}
.drawer-close img {
  width: 40px;
  height: 40px;
}

/* Drawer開時、背面のフローティングUIは隠す */
.drawer.open ~ .to-top,
.drawer.open ~ .to-top.show {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.drawer.open ~ .floating-cta {
  display: none;
}

/* 長いドメインの折返し（右はみ出し防止） */
.agency-insurer .info-block p,
.agency-insurer .info-block address {
  overflow-wrap: anywhere;
  word-break: break-word;
}
@supports not (overflow-wrap: anywhere) {
  .agency-insurer .info-block p,
  .agency-insurer .info-block address {
    word-break: break-all;
  }
}

/* 9. Responsive Tweaks – Header */
@media (max-width: 900px) {
  .main-nav ul {
    row-gap: 0.6rem;
    column-gap: 2.4rem;
  }
}
@media (max-width: 600px) {
  .menu-toggle {
    display: block;
  }
  .main-nav ul {
    display: none;
  }
}

/* 10. Logo */
.site-logo {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
}
.site-logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* 11. Footnotes / Asterisks */
.footnotes,
.footnotes-hosho {
  margin: 1em 0;
  padding-left: 0;
  list-style: none;
  counter-reset: fn;
}
.footnotes li,
.footnotes-hosho li {
  font-size: 1.6rem;
  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 {
  font-size: 1.6rem;
  position: relative;
  padding-left: 1.8em;
  line-height: 1.1;
}
.asterisk-note::before {
  content: "※";
  position: absolute;
  left: 0;
  color: #a50000;
}
.arrow-note {
  font-size: 1.8rem;
  position: relative;
  padding-left: 1.8em;
  line-height: 1.1;
}
.arrow-note::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #000;
}

/* 12. 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;
}

/* 13. Utilities */
[hidden] {
  display: none !important;
}
.u-bold {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.txt-right {
  text-align: right;
  margin: 0;
}
article.coverage-item {
  margin-bottom: 0.5em;
}
.blue-bullets {
  margin-left: 0;
  padding-left: 0;
  list-style: disc outside;
}
.date {
  font-size: 1.6rem;
  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;
}

/* 14. Agency & Insurer */
.agency-insurer {
  background: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  padding: 1rem 0;
  color: #555;
  font-size: 1.6rem;
  line-height: 1.1;
  user-select: none;
}
.agency-insurer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
}
.info-block {
  flex: 1 1 320px;
  max-width: 500px;
}
.info-name {
  font-size: 1.6rem;
  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: 1.6rem;
  margin: 0;
  word-break: break-all;
}
.info-block p {
  margin: 0;
}
@media (max-width: 768px) {
  .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;
  }
}

/* 15. Floating CTA（max-width:600 の分散を統合） */
.floating-cta {
  display: none;
}
@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;
    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;
  }
  .fee-btn {
    background: #0057a4;
  }
  .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;
  }
}

/* 16. WEBサポート ボタンの外部マーク条件表示（既存維持） */
.contact-card--support .btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 320px);
  padding: 1rem 2rem;
  border: 2px solid #0057a4;
  border-radius: 4px;
  background: #0057a4;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.contact-card--support .btn-contact:hover,
.contact-card--support .btn-contact:focus {
  opacity: 0.9;
  text-decoration: none;
}
.btn-contact.external::after {
  content: none;
}
.btn-contact[target="_blank"].external::after {
  content: "↗";
  margin-left: 0.4em;
  line-height: 1;
}

/* 17. 参考図版（共通） */
.reference-image {
  max-width: var(--content-max-width);
  margin-inline: auto;
  text-align: center;
  margin-top: 0;
  margin-bottom: 2rem;
}
.reference-image img {
  display: inline-block;
  width: 100%;
  height: auto;
}
.reference-image picture img {
  transition: opacity 0.3s ease;
}
.reference-image:hover picture img {
  opacity: 0.8;
}

/* 18. Mobile-only 改行 */
.br-sp {
  display: none;
}
@media (max-width: 600px) {
  .br-sp {
    display: inline;
  }
}

/* 19. Landscape phone 用（ナビを強制ハンバーガー） */
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .menu-toggle {
    display: block;
  }
  .main-nav ul {
    display: none;
  }
}

/* ====== Hover underline 無効化（明示） ====== */
.main-nav a:hover,
.main-nav a:focus,
.drawer a:hover,
.drawer a:focus {
  text-decoration: none;
}

/* 20. Hero（単色プレーン） */
.hero--plain {
  background: #e8f5ff !important;
  background-image: none !important;
  --hero-height: 200px;
  height: var(--hero-height);
  margin-block: 1rem;
}
@media (max-width: 900px) {
  .hero--plain {
    --hero-height: 160px;
  }
}
