/* ============================================
   海小屋YMD スタイルシート

   色や文字の大きさは、下の「色の設定」で
   まとめて変えられます
   ============================================ */

/* 日本語を文節の切れ目で改行する。Chrome以外では無視されるだけなので安全 */
body { word-break: auto-phrase; }


/* --------------------------------------------
   色の設定（ここを変えるとページ全体の色が変わります）
   -------------------------------------------- */
:root {
  --navy:      #0b3c5d;  /* 濃い青。見出しなどに使う */
  --sea:       #0d8ecf;  /* 海の青。ボタンやアイコンに使う */
  --sea-dark:  #0a72a8;  /* 海の青の濃いほう。ボタンを押した時に使う */
  --sky:       #e8f5fb;  /* うすい水色。背景に使う */
  --sand:      #f7f4ee;  /* 砂の色 */
  --text:      #21343f;  /* 本文の文字色 */
  --text-thin: #5d707c;  /* 少し薄い文字色 */
  --line:      #d8e4ea;  /* 区切り線の色 */
  --white:     #ffffff;

  --radius: 12px;                    /* 角の丸み */
  --shadow: 0 6px 20px rgba(11, 60, 93, 0.10);  /* 影 */
}


/* --------------------------------------------
   全体の基本設定
   -------------------------------------------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--sea-dark); }

/* キーボードで操作している人に、今どこを選んでいるか分かるようにする */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 3px;
}

/* 中身の横幅をそろえるための箱 */
.container {
  width: min(100% - 40px, 1080px);
  margin-inline: auto;
}


/* --------------------------------------------
   見出しの共通設定
   -------------------------------------------- */
.section {
  padding: 72px 0;
}

.section--tint {
  background: var(--sky);
}

.section__title {
  font-size: 28px;
  line-height: 1.5;
  color: var(--navy);
  margin: 0 0 12px;
  padding-bottom: 14px;
  position: relative;
}

/* 見出しの下の短い青い線 */
.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--sea);
}

.section__title--mt { margin-top: 64px; }

.section__lead {
  margin: 20px 0 32px;
  color: var(--text-thin);
}


/* --------------------------------------------
   ボタン
   -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  line-height: 1.4;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.btn--line {
  background: var(--sea);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn--line:hover {
  background: var(--sea-dark);
  transform: translateY(-2px);
}

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

.btn--ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 17px;
}

.btn__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}


/* --------------------------------------------
   ヘッダー
   -------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

/* スクロールすると影が付く（script.jsで切り替えています） */
.header.is-scrolled {
  box-shadow: 0 2px 12px rgba(11, 60, 93, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: bold;
}

.logo__mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--sea);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.logo__text { font-size: 18px; }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__list {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
}

.nav__list a:hover { color: var(--sea-dark); }

.nav__cta { font-size: 14px; padding: 10px 18px; }

/* スマートフォン用メニューボタン（パソコンでは隠す） */
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.menu-btn__bar {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}


/* --------------------------------------------
   セクション1: ファーストビュー
   -------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  /* 写真の縦横が合わない場合でも、間延びせず切り取って表示する */
  object-fit: cover;
  opacity: 0.45;
}

.hero__body {
  position: relative;
  padding: 96px 0 88px;
  color: var(--white);
  max-width: 1080px;
}

.hero__sub {
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.hero__title {
  font-size: clamp(38px, 8vw, 68px);
  line-height: 1.25;
  margin: 0 0 20px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero__lead {
  max-width: 620px;
  margin: 0 0 24px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.hero__points li {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: bold;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}


/* --------------------------------------------
   セクション2: 悩み・選ばれる理由
   -------------------------------------------- */
.worry-list,
.reason-list,
.item-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.worry {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--line);
}

.worry__title {
  font-size: 17px;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.6;
}

.worry p { margin: 0; font-size: 15px; color: var(--text-thin); }

.reason {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.reason__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--sea);
  margin-bottom: 16px;
}

.reason__icon svg { width: 30px; height: 30px; }

.reason__title {
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.6;
}

.reason p { margin: 0; font-size: 15px; }


/* --------------------------------------------
   セクション3: アイテム
   -------------------------------------------- */
.item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.item__title {
  font-size: 18px;
  color: var(--navy);
  margin: 20px 20px 8px;
}

.item p {
  margin: 0 20px 16px;
  font-size: 15px;
  color: var(--text-thin);
}

.item__tag {
  display: inline-block;
  margin: 0 20px 20px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--sea-dark);
  font-size: 13px;
  font-weight: bold;
}

.items-note {
  margin-top: 32px;
  background: var(--sand);
  border-radius: var(--radius);
  padding: 28px;
}

.items-note__title {
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 10px;
}

.items-note p { margin: 0 0 18px; }


/* --------------------------------------------
   セクション4: ご利用の流れ・アクセス
   -------------------------------------------- */
.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  counter-reset: none;
}

.flow {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.flow__num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sea);
  color: var(--white);
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 12px;
}

.flow__title {
  font-size: 17px;
  color: var(--navy);
  margin: 0 0 8px;
}

.flow p { margin: 0; font-size: 15px; color: var(--text-thin); }

.access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 32px;
}

.access__media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

.access__dl { margin: 0; }

.access__dl dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  color: var(--navy);
  margin-top: 20px;
}

.access__dl dt:first-child { margin-top: 0; }

.access__dl dd {
  margin: 4px 0 0 30px;
}

.access__icon {
  display: inline-grid;
  place-items: center;
  color: var(--sea);
}

.access__icon svg { width: 22px; height: 22px; }

.access__note {
  margin-top: 24px;
  font-size: 15px;
  color: var(--text-thin);
}


/* --------------------------------------------
   セクション5: よくある質問・問い合わせ
   -------------------------------------------- */
.faq {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  font-weight: bold;
  color: var(--navy);
  list-style: none;
}

/* ブラウザが標準で付ける三角の印を消す */
.faq__item summary::-webkit-details-marker { display: none; }

.faq__mark {
  flex-shrink: 0;
  color: var(--sea);
  transition: transform 0.2s;
}

.faq__mark svg { width: 22px; height: 22px; display: block; }

/* 開いているときは印を上向きにする */
.faq__item[open] .faq__mark { transform: rotate(180deg); }

.faq__item p {
  margin: 0;
  padding: 0 4px 22px;
  color: var(--text-thin);
}

.cta {
  margin-top: 64px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
}

.cta__title {
  font-size: 26px;
  margin: 0 0 14px;
  line-height: 1.5;
}

.cta__lead {
  max-width: 620px;
  margin: 0 auto 28px;
}

.cta__note {
  margin: 18px 0 0;
  font-size: 14px;
  opacity: 0.85;
}


/* --------------------------------------------
   フッター
   -------------------------------------------- */
.footer {
  background: var(--sand);
  padding: 40px 0;
  text-align: center;
}

.footer__name {
  font-weight: bold;
  color: var(--navy);
  font-size: 18px;
  margin: 0 0 8px;
}

.footer__text {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--text-thin);
}

.footer__copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-thin);
}


/* ============================================
   タブレット向け（画面の横幅が900px以下）
   ============================================ */
@media (max-width: 900px) {

  .worry-list,
  .reason-list,
  .item-list {
    grid-template-columns: 1fr 1fr;
  }

  .flow-list {
    grid-template-columns: 1fr 1fr;
  }

  .access {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   スマートフォン向け（画面の横幅が680px以下）
   ============================================ */
@media (max-width: 680px) {

  .section { padding: 56px 0; }
  .section__title { font-size: 24px; }
  .section__title--mt { margin-top: 48px; }

  /* メニューボタンを出す */
  .menu-btn { display: block; }

  /* メニューは普段隠しておき、ボタンで開く */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    display: none;
  }

  .nav.is-open { display: flex; }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__list a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav__cta {
    margin-top: 16px;
    justify-content: center;
  }

  /* メニューが開いているときはボタンをバツ印にする */
  .menu-btn.is-open .menu-btn__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn.is-open .menu-btn__bar:nth-child(2) { opacity: 0; }
  .menu-btn.is-open .menu-btn__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__body { padding: 64px 0 56px; }

  .hero__actions .btn { width: 100%; }

  /* 縦に1つずつ並べる */
  .worry-list,
  .reason-list,
  .item-list,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .items-note { padding: 24px 20px; }
  .items-note .btn { width: 100%; }

  .cta { padding: 36px 20px; }
  .cta__title { font-size: 22px; }
  .cta .btn { width: 100%; }
}


/* 動きを減らす設定にしている人には、アニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
