/* よしか旅タイプ診断 — スタイル
   palette: 深緑 #1F3A2D / 清流ブルー #3B6E8F / 金 #C4A661 / 生成り #F5F2EC / 墨 #1A1815 */

:root {
  --green: #1F3A2D;
  --green-2: #244538;
  --blue: #3B6E8F;
  --gold: #C4A661;
  --cream: #F5F2EC;
  --ink: #1A1815;
  --mincho: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; }

.wrap { max-width: 26.5rem; margin: 0 auto; padding: 0 1.5rem; }
.mincho { font-family: var(--mincho); }
.en { font-family: 'Shippori Mincho', serif; letter-spacing: .22em; text-transform: uppercase; }

.screen { animation: fadein .45s ease both; min-height: 100dvh; }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 共通パーツ ---------- */
.btn-primary {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  width: 100%; background: #fff; color: var(--green);
  border-radius: 999px; padding: 1.15rem 1.45rem;
  font-family: var(--mincho); font-size: 1.02rem; font-weight: 600; letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-primary:active { transform: scale(.98); }
.btn-outline {
  display: block; width: 100%; text-align: center;
  border: 2px solid var(--green); color: var(--green);
  border-radius: 999px; padding: .95rem 1.4rem;
  font-family: var(--mincho); font-size: 1rem; letter-spacing: .08em;
  transition: background .2s ease;
  text-decoration: none;
}
.btn-outline:active { background: rgba(31,58,45,.06); }
.gold-line { width: 3rem; height: 1px; background: var(--gold); }

/* ---------- トップ ---------- */
.top {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(165deg, #1F3A2D 0%, #1F3A2D 34%, #295168 70%, #3B6E8F 100%);
  display: flex; flex-direction: column;
}
.top .texture {
  position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: radial-gradient(circle at 20% 30%, #fff .6px, transparent .8px);
  background-size: 36px 36px;
}
.top .mountains { position: absolute; top: 0; left: 0; width: 100%; height: 70px; opacity: .22; }
.top .inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; padding-top: 3.4rem; padding-bottom: 3rem; }
.top .loc { display: flex; justify-content: space-between; font-size: .64rem; letter-spacing: .3em; opacity: .7; text-transform: uppercase; }
.top .hero { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2.6rem 0 2rem; }
.top .lead-en { font-style: italic; font-size: .9rem; letter-spacing: .18em; opacity: .78; margin-bottom: 1rem; }
.top h1 { font-family: var(--mincho); font-weight: 600; font-size: 2.05rem; line-height: 1.5; letter-spacing: .05em; }
.top h1 .accent { color: var(--gold); }
.top .sub { margin-top: 1.4rem; font-family: var(--mincho); font-size: 1.02rem; line-height: 2; opacity: .96; }
.top .note { margin-top: .9rem; font-size: .8rem; line-height: 1.9; opacity: .74; }
.top .meta { display: flex; justify-content: center; gap: .8rem; align-items: center; font-size: .68rem; letter-spacing: .2em; opacity: .72; margin-top: 1.1rem; }
.top .meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.6); }
.top .credit { text-align: center; font-size: .62rem; letter-spacing: .12em; opacity: .5; margin-top: .9rem; }
.top .where {
  margin-top: 1.6rem; padding: .9rem 1.1rem; border-left: 2px solid var(--gold);
  background: rgba(255,255,255,.07); border-radius: 0 12px 12px 0;
  font-size: .78rem; line-height: 1.9; opacity: .92;
}

/* ---------- 質問 ---------- */
.quiz { background: var(--cream); padding-top: 1.4rem; padding-bottom: 3rem; }
.quiz-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.quiz-back { font-size: .8rem; color: var(--green); opacity: .75; padding: .4rem .6rem .4rem 0; letter-spacing: .08em; }
.quiz-count { font-size: .72rem; letter-spacing: .25em; color: var(--blue); }
.progress { height: 3px; background: rgba(31,58,45,.12); border-radius: 999px; overflow: hidden; margin-bottom: 2.2rem; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--green), var(--blue)); border-radius: 999px; transition: width .4s ease; }
.quiz-en { font-size: .66rem; letter-spacing: .3em; color: var(--blue); text-transform: uppercase; margin-bottom: .7rem; }
.quiz h2 { font-family: var(--mincho); font-size: 1.42rem; font-weight: 600; line-height: 1.65; color: var(--green); margin-bottom: 1.8rem; white-space: pre-line; }
.opt {
  display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid rgba(31,58,45,.1); border-radius: 18px;
  padding: 1.05rem 1.15rem; margin-bottom: .85rem;
  font-size: .92rem; line-height: 1.6; color: var(--ink);
  box-shadow: 0 3px 12px rgba(31,58,45,.05);
  transition: transform .12s ease, border-color .15s ease, background .15s ease;
}
.opt:active { transform: scale(.98); }
.opt.selected { border-color: var(--green); background: #eef3ee; }
.opt .mark {
  flex: none; width: 1.55rem; height: 1.55rem; border-radius: 50%;
  border: 1.5px solid rgba(31,58,45,.28); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-family: var(--mincho);
}
.opt.selected .mark { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- 結果 ---------- */
.result { background: var(--cream); padding-bottom: 3.5rem; }
.result-hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(165deg, #1F3A2D 0%, #244538 52%, #2f5b75 100%);
}
.result-hero .texture {
  position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: radial-gradient(circle at 20% 30%, #fff .6px, transparent .8px);
  background-size: 34px 34px;
}
.result-hero .inner { position: relative; z-index: 2; padding-top: 2.8rem; padding-bottom: 3rem; }
.result-hero .eyebrow { display: flex; justify-content: space-between; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; opacity: .8; margin-bottom: 1.8rem; }
.result-hero .icon { font-size: 3.6rem; line-height: 1; margin-bottom: 1.2rem; }
.result-hero .type-label { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; opacity: .72; margin-bottom: .5rem; }
.result-hero h1 { font-family: var(--mincho); font-weight: 600; font-size: 1.98rem; line-height: 1.4; letter-spacing: .02em; margin-bottom: 1.1rem; }
.result-hero .catch { font-family: var(--mincho); font-size: 1.12rem; color: var(--gold); margin: 1.1rem 0 1rem; }
.result-hero .desc { font-size: .92rem; line-height: 2; color: rgba(255,255,255,.94); }
.result-hero .duration {
  display: inline-block; margin-top: 1.3rem; font-size: .74rem; letter-spacing: .1em;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .32rem .9rem;
}
.shared-banner {
  background: var(--gold); color: #3a2e12; text-align: center;
  font-size: .8rem; padding: .7rem 1rem; line-height: 1.6;
}

.sec { padding-top: 2.8rem; }
.sec-eyebrow { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--blue); margin-bottom: .45rem; }
.sec h2 { font-family: var(--mincho); font-size: 1.42rem; font-weight: 600; color: var(--green); }
.sec .gold-line { margin-top: .8rem; margin-bottom: 1.5rem; }

.first-label {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--green); color: #fff; border-radius: 999px;
  font-size: .74rem; letter-spacing: .12em; padding: .4rem 1rem; margin-bottom: .8rem;
}
.first-label .star { color: var(--gold); }

.spot-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(31,58,45,.07);
  box-shadow: 0 5px 20px rgba(31,58,45,.08);
  margin-bottom: 1.3rem;
}
.spot-card.hero-card { box-shadow: 0 10px 32px rgba(31,58,45,.14); }
.spot-photo { position: relative; aspect-ratio: 4 / 3; background: #e9e5dc; overflow: hidden; }
.spot-photo img { width: 100%; height: 100%; object-fit: cover; }
.spot-photo .badge, .spot-ph .badge {
  position: absolute; top: .8rem; left: .8rem;
  background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(4px);
  font-size: .68rem; letter-spacing: .18em; border-radius: 999px; padding: .28rem .75rem;
}
.spot-photo .cat, .spot-ph .cat {
  position: absolute; top: .8rem; right: .8rem;
  background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(4px);
  font-size: .64rem; letter-spacing: .1em; border-radius: 999px; padding: .28rem .75rem;
}
.spot-ph {
  position: relative; aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
}
.spot-ph .emoji { font-size: 3.4rem; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
.spot-ph .ph-note {
  color: rgba(255,255,255,.85); font-size: .66rem; letter-spacing: .22em;
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: .22rem .8rem;
}
.spot-credit { font-size: .62rem; opacity: .55; padding: .35rem .95rem 0; }
.spot-body { padding: 1.15rem 1.25rem 1.3rem; }
.spot-body h3 { font-family: var(--mincho); font-size: 1.24rem; font-weight: 600; color: var(--ink); line-height: 1.5; }
.spot-catch { font-family: var(--mincho); font-size: .95rem; color: var(--blue); margin: .25rem 0 .7rem; }
.spot-desc { font-size: .86rem; line-height: 1.95; opacity: .85; }
.why-box {
  margin-top: .9rem; border-radius: 14px; padding: .85rem 1rem;
  background: rgba(196,166,97,.12); border-left: 2.5px solid var(--gold);
}
.why-box .why-label { font-size: .64rem; letter-spacing: .22em; color: #8a6c2a; margin-bottom: .25rem; }
.why-box p { font-size: .82rem; line-height: 1.85; color: #5c4a20; }
.spot-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.pill {
  font-size: .7rem; border: 1px solid rgba(31,58,45,.18); color: var(--green);
  border-radius: 999px; padding: .24rem .7rem;
}
.pill.blue { border-color: rgba(59,110,143,.3); color: var(--blue); }
.spot-more { margin-top: .9rem; }
.spot-more summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-size: .76rem; color: var(--green); letter-spacing: .06em;
  border-top: 1px solid rgba(31,58,45,.1); padding: .7rem 0 .2rem; cursor: pointer;
}
.spot-more summary::-webkit-details-marker { display: none; }
.spot-more .chev { transition: transform .2s; opacity: .6; }
.spot-more[open] .chev { transform: rotate(180deg); }
.spot-more .more-inner { padding-top: .6rem; font-size: .8rem; line-height: 1.9; }
.spot-more .more-inner .lbl { font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; opacity: .5; margin-top: .6rem; }
.caution {
  margin-top: .7rem; background: rgba(196,166,97,.1); border-radius: 12px; padding: .6rem .85rem;
  font-size: .76rem; color: #705a2b; line-height: 1.8;
}
.map-btn {
  margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; background: var(--blue); color: #fff; text-decoration: none;
  border-radius: 999px; padding: .85rem; font-size: .85rem; letter-spacing: .08em;
  transition: opacity .2s;
}
.map-btn:active { opacity: .85; }

/* モデルコース */
.course-card {
  background: #fff; border-radius: 20px; padding: 1.4rem 1.35rem 1.5rem;
  border: 1px solid rgba(31,58,45,.07); box-shadow: 0 5px 20px rgba(31,58,45,.06);
}
.course-tabs { display: flex; gap: .5rem; margin-bottom: 1.2rem; }
.course-tab {
  flex: 1; text-align: center; border-radius: 999px; padding: .55rem;
  font-family: var(--mincho); font-size: .88rem; letter-spacing: .1em;
  border: 1.5px solid rgba(31,58,45,.16); color: var(--green);
  transition: background .2s, color .2s;
}
.course-tab.active { background: var(--green); color: #fff; border-color: var(--green); }
.course-step { display: flex; gap: .95rem; position: relative; padding-bottom: 1.25rem; }
.course-step:last-child { padding-bottom: 0; }
.course-step::before {
  content: ''; position: absolute; left: 1.52rem; top: 2rem; bottom: 0;
  width: 1px; background: rgba(31,58,45,.15);
}
.course-step:last-child::before { display: none; }
.course-time {
  flex: none; width: 3.1rem; height: 1.7rem; margin-top: .1rem;
  background: rgba(59,110,143,.1); color: var(--blue); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; letter-spacing: .05em; z-index: 1; position: relative;
}
.course-title { font-family: var(--mincho); font-size: .98rem; font-weight: 600; color: var(--ink); line-height: 1.5; }
.course-desc { font-size: .78rem; opacity: .7; line-height: 1.7; }
.course-hint { margin-top: 1.2rem; font-size: .74rem; color: #705a2b; background: rgba(196,166,97,.12); border-radius: 12px; padding: .65rem .9rem; line-height: 1.8; }

/* シェア */
.share-card {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, #1F3A2D, #2c5142); border-radius: 20px;
  padding: 1.5rem 1.35rem 1.6rem;
}
.share-card .bg-icon { position: absolute; right: -1.2rem; top: -1.6rem; font-size: 7rem; opacity: .07; }
.share-card .inner { position: relative; z-index: 1; }
.share-card .eyebrow { font-size: .64rem; letter-spacing: .35em; text-transform: uppercase; opacity: .7; margin-bottom: .7rem; }
.share-card h3 { font-family: var(--mincho); font-size: 1.14rem; margin-bottom: .8rem; }
.share-card .copy { font-size: .8rem; line-height: 1.9; opacity: .88; margin-bottom: 1.1rem; }
.share-main {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; background: #fff; color: var(--green); border-radius: 999px;
  padding: .95rem; font-family: var(--mincho); font-size: .96rem; font-weight: 600; letter-spacing: .1em;
  margin-bottom: .7rem; transition: transform .15s;
}
.share-main:active { transform: scale(.98); }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.share-sub {
  text-align: center; font-size: .78rem; letter-spacing: .08em; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: .7rem .5rem; transition: background .2s;
}
.share-sub:active { background: rgba(255,255,255,.24); }
.share-toast {
  margin-top: .8rem; text-align: center; font-size: .72rem; letter-spacing: .1em;
  background: rgba(255,255,255,.12); border-radius: 999px; padding: .5rem;
}

/* 他のタイプ */
.types-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.type-chip {
  background: #fff; border: 1.5px solid rgba(31,58,45,.1); border-radius: 16px;
  padding: .9rem .8rem; text-align: left;
  display: flex; flex-direction: column; gap: .2rem;
  box-shadow: 0 3px 10px rgba(31,58,45,.05); transition: transform .12s;
}
.type-chip:active { transform: scale(.97); }
.type-chip.current { border-color: var(--gold); background: rgba(196,166,97,.1); }
.type-chip .t-icon { font-size: 1.4rem; }
.type-chip .t-name { font-family: var(--mincho); font-size: .82rem; font-weight: 600; color: var(--green); line-height: 1.5; }
.type-chip .t-tag { font-size: .62rem; opacity: .55; }

/* ---------- スポットいちらん ---------- */
.spots-link {
  display: block; width: 100%; text-align: center; color: #fff;
  font-size: .78rem; letter-spacing: .1em; opacity: .82;
  text-decoration: underline; text-underline-offset: 3px;
  padding: .8rem 0 .1rem;
}
.cat-head {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--mincho); font-size: 1.06rem; font-weight: 600; color: var(--green);
  margin: 1.6rem 0 .7rem; padding-top: .4rem;
}
.cat-head .cat-count {
  font-family: var(--sans); font-size: .66rem; color: var(--blue);
  border: 1px solid rgba(59,110,143,.35); border-radius: 999px; padding: .06rem .5rem;
}
.cat-card {
  display: flex; align-items: stretch; gap: .8rem;
  background: #fff; border: 1px solid rgba(31,58,45,.08); border-radius: 16px;
  padding: .55rem; margin-bottom: .6rem;
  box-shadow: 0 2px 8px rgba(31,58,45,.05);
}
.cat-thumb {
  position: relative; flex: none; width: 5.4rem; height: 5.4rem;
  border-radius: 12px; overflow: hidden; background: #e9e5dc;
}
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; }
.cat-credit {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.55); color: #fff; font-size: .5rem; line-height: 1.3;
  padding: .12rem .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: .12rem; }
.cat-name { font-family: var(--mincho); font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.45; }
.cat-catch { font-size: .72rem; color: var(--blue); line-height: 1.5; }
.cat-meta { font-size: .62rem; opacity: .55; }
.cat-map {
  flex: none; align-self: center; width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(59,110,143,.1); border-radius: 50%; text-decoration: none; font-size: 1rem;
}

.foot-note { margin-top: 2.6rem; text-align: center; font-size: .68rem; line-height: 2; opacity: .5; }
.foot-brand { margin-top: 1rem; text-align: center; font-size: .62rem; letter-spacing: .28em; opacity: .4; }
.ig-link { display: flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; }

@media (min-width: 480px) {
  .top h1 { font-size: 2.4rem; }
}
