/* =========================================================
   Maru Crew 全国路上ライブ航海日誌
   整理済み・スマホ対応CSS
   ========================================================= */

:root {
  --ink: #4b2e1e;
  --pink: #e83470;
  --blue: #07577c;
  --paper: #fffaf0;
  --line: #d8c5a4;
  --shadow: 0 5px 16px rgba(86, 58, 30, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  background: linear-gradient(#d9f1fa, #f7fbfd 35%, #d9f1fa);
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(75, 46, 30, 0.12);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--ink);
  font-size: 18px;
  text-decoration: none;
}

.menu-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 24px;
  cursor: pointer;
}

.drawer {
  position: absolute;
  top: 58px;
  right: 14px;
  width: 220px;
  display: none;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.drawer.open {
  display: grid;
}

.drawer a {
  padding: 12px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.drawer a:last-child {
  border-bottom: 0;
}

/* ---------- 共通 ---------- */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 14px 0;
}

.paper {
  border: 2px solid var(--line);
  border-radius: 10px;
  background-color: rgba(255, 250, 240, 0.96);
  background-image: radial-gradient(rgba(117, 80, 43, 0.05) 1px, transparent 1px);
  background-size: 10px 10px;
  box-shadow: var(--shadow);
}

.section-block {
  margin: 14px 0;
  padding: 16px;
}

.single-card {
  padding: 18px;
}

/* ---------- ファーストビュー ---------- */

.hero {
  position: relative;
  min-height: 720px;
  margin: 0 -14px 14px;
  overflow: hidden;
  background: linear-gradient(150deg, #dff5ff 0 58%, #f9f1dc 58%);
}

.hero-photo {
  height: 360px;
  background: url("assets/hero-singer.png") center 30% / cover no-repeat;
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

.hero-copy {
  position: absolute;
  top: 28px;
  left: 18px;
  width: 67%;
  padding: 18px 18px 14px;
  transform: rotate(-1deg);
}

.hero-copy h1 {
  margin: 6px 0;
  font-size: clamp(36px, 8vw, 48px);
  line-height: 1.05;
  text-shadow: 2px 2px #fff;
}

.hero-copy h1 span {
  font-size: 1.15em;
}

.eyebrow {
  margin: 0;
  font-size: 18px;
}

.sub {
  margin: 4px 0;
}

.hero-map {
  position: absolute;
  top: 265px;
  left: 4%;
  width: 92%;
  height: 390px;
  padding: 8px;
  transform: rotate(1deg);
}

.location,
.next {
  position: absolute;
  z-index: 2;
  padding: 8px 18px;
  border-radius: 5px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.location {
  top: 8px;
  left: 39%;
}

.next {
  right: 2%;
  bottom: 20%;
}

.location strong,
.next strong {
  display: block;
  color: var(--blue);
  font-size: 20px;
}

.japan-map {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.replaceable-map {
  display: block;
  width: min(92%, 760px);
  height: 82%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 5px 3px rgba(76, 104, 0, 0.18));
}

.map-label {
  position: absolute;
  right: 18%;
  bottom: 3px;
  font-size: 24px;
  text-align: center;
}

.goal-note {
  position: absolute;
  bottom: 22px;
  left: 3%;
  padding: 14px 16px;
  line-height: 1.8;
  transform: rotate(-2deg);
}

/* ---------- 実績 ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px;
  margin-bottom: 14px;
}

.stats div {
  padding: 8px;
  text-align: center;
  border-right: 1px dashed #b79f7a;
}

.stats div:last-child {
  border-right: 0;
}

.stats span {
  font-size: 24px;
}

.stats small {
  display: block;
}

.stats strong {
  display: block;
  font-size: 24px;
}

.stats em {
  font-size: 13px;
  font-style: normal;
}

/* ---------- 応援パス ---------- */

.ribbon {
  width: max-content;
  max-width: 90%;
  margin: -28px auto 18px;
  padding: 8px 30px;
  color: #fff;
  background: var(--pink);
  clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 12px;
}

.support h2 {
  margin: 0;
  font-size: 28px;
}

.price {
  color: var(--pink);
}

.price strong {
  font-size: 76px;
  line-height: 1;
}

.price span {
  font-size: 30px;
}

.mini-stickers {
  display: flex;
}

.mini-stickers img {
  width: 70px;
  height: 70px;
  margin-left: -10px;
  border-radius: 50%;
  object-fit: cover;
}

.cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  padding: 15px;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(#ef3b77, #d92361);
  box-shadow: 0 4px 0 #b71e50;
  font-size: 26px;
  text-decoration: none;
}

.note {
  font-size: 12px;
  text-align: center;
}

/* ---------- セクション見出し ---------- */

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-title h2 {
  width: max-content;
  max-width: 75%;
  margin: 0;
  padding: 7px 20px;
  color: #fff;
  background: var(--blue);
  clip-path: polygon(0 0, 94% 0, 100% 50%, 94% 100%, 0 100%);
}

.section-title.dark h2 {
  background: #343434;
}

.section-title.brown h2 {
  background: #6c431f;
}

/* ---------- アコーディオン ---------- */

.toggle-button {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid #9b8060;
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.toggle-button:hover {
  background: #fff7e8;
}

.toggle-button:active {
  transform: translateY(1px);
}

.toggle-button:focus-visible {
  outline: 3px solid rgba(232, 52, 112, 0.3);
  outline-offset: 2px;
}

.collapsible-content {
  overflow: hidden;
}

.collapsible-content.is-opening {
  animation: contentOpen 0.35s ease both;
}

.collapsible-content.is-closing {
  animation: contentClose 0.28s ease both;
}

@keyframes contentOpen {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes contentClose {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.accordion-summary {
  margin: 6px 4px 2px;
  color: #6a5039;
  line-height: 1.8;
}

.accordion-summary strong {
  color: var(--pink);
  font-size: 1.25em;
}

.preview-list {
  margin-bottom: 0;
}

.collapsible-card .collapsible-content {
  padding-top: 10px;
}

/* ---------- 航海日誌・曲・Crew ---------- */

.journal-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: center;
  gap: 18px;
}

.journal-layout img {
  width: 100%;
  height: 190px;
  border-radius: 8px;
  object-fit: cover;
}

.journal-layout p {
  line-height: 1.9;
}

.song-list {
  columns: 2;
  margin: 10px 0;
  padding: 0;
  font-size: 18px;
  list-style: none;
}

.song-list li {
  padding: 9px;
  border-bottom: 1px dashed #cbb793;
}

.crew-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
}

.crew-list p {
  padding: 8px;
  border-bottom: 1px dashed #cbb793;
}

/* ---------- 全国制覇マップ ---------- */

.map-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
}

.legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
}

.legend .pink,
.legend .pin {
  background: var(--pink);
}

.legend .pin {
  border-radius: 50%;
}

.legend .gray {
  background: #aaa;
}

.big-map {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.replaceable-progress-map {
  display: block;
  width: min(96%, 760px);
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 5px 4px rgba(88, 37, 53, 0.12));
}

.big-map strong {
  font-size: 25px;
  text-align: center;
}

.big-map b {
  color: var(--pink);
  font-size: 54px;
}

/* ---------- ステッカー ---------- */

.sticker-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sticker-row figure {
  margin: 0;
  text-align: center;
}

.sticker-row img,
.secret div {
  width: 100%;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.secret div {
  display: grid;
  place-items: center;
  color: #fff;
  background: #aaa;
  font-size: 28px;
}

/* ---------- ロードマップ ---------- */

.road-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.road-track article {
  min-width: 150px;
  padding: 10px;
  border: 1px solid #d3c2a5;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.road-track article div {
  padding: 5px;
  border-radius: 20px;
  color: #fff;
  background: var(--pink);
}

.road-track .locked div {
  background: #555;
}

.road-track .final {
  background: #ffd4e2;
}

.road-track > span {
  font-size: 34px;
}

/* ---------- フッター ---------- */

footer {
  padding: 34px 18px 40px;
  background: linear-gradient(transparent, #caebf7);
  text-align: center;
}

footer p {
  color: var(--blue);
  font-size: 20px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #111;
  text-decoration: none;
}

/* =========================================================
   スマホ表示
   ========================================================= */

@media (max-width: 700px) {
  main {
    padding-right: 8px;
    padding-left: 8px;
  }

  .hero {
    min-height: 775px;
    margin-right: -8px;
    margin-left: -8px;
  }

  /* タイトルBOX：文字サイズを保ちつつ、BOXを小さく中央配置 */
  .hero-copy {
    top: 75px;
    left: 50%;
    width: 76%;
    padding: 14px 16px 12px;
    transform: translateX(-50%) rotate(-1deg);
  }

  .hero-copy h1 {
    font-size: 30px;
    line-height: 1.05;
  }

  .hero-copy h1 span {
    font-size: 1.15em;
  }

  .eyebrow {
    font-size: 17px;
  }

  .sub {
    font-size: 14px;
    white-space: nowrap;
  }

  .hero-map {
    top: 285px;
    left: 1%;
    width: 98%;
    height: 430px;
  }

  .location {
    left: 34%;
  }

  .next {
    right: 1%;
    bottom: 18%;
  }

  .replaceable-map {
    width: 96%;
    height: 84%;
  }

  .map-label {
    right: 8%;
    bottom: 6px;
    font-size: 19px;
  }

  .goal-note {
    bottom: 8px;
    font-size: 13px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats div:nth-child(2) {
    border-right: 0;
  }

  .stats div:nth-child(-n + 2) {
    border-bottom: 1px dashed #b79f7a;
  }

  .support-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mini-stickers {
    justify-content: center;
  }

  .section-title h2 {
    max-width: 72%;
    padding: 7px 14px;
    font-size: 18px;
  }

  .toggle-button {
    padding: 7px 10px;
    font-size: 12px;
  }

  .journal-layout {
    grid-template-columns: 1fr;
  }

  .journal-layout img {
    height: 230px;
  }

  .song-list {
    columns: 1;
  }

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

  .map-section {
    grid-template-columns: 1fr;
  }

  .legend {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    font-size: 12px;
  }

  .big-map {
    min-height: 360px;
  }

  .replaceable-progress-map {
    width: 100%;
    max-height: 390px;
  }

  .sticker-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 390px) {
  .hero-copy {
    width: 80%;
    padding-right: 13px;
    padding-left: 13px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .eyebrow {
    font-size: 16px;
  }

  .sub {
    font-size: 13px;
  }
}

/* =========================================================
   2026-08-08 スマホ版 最終調整
   添付の修正指示に合わせた上書き設定
   ========================================================= */
@media (max-width: 700px) {

  /* 1. タイトルBOX：中央ではなく左寄せ、BOXを小さく、背景を少し透過 */
  .hero-copy {
    top: 62px !important;
    left: 5% !important;
    width: 64% !important;
    max-width: 310px !important;
    padding: 11px 13px 10px !important;
    transform: rotate(-1deg) !important;
    background-color: rgba(255, 250, 240, 0.84) !important;
    backdrop-filter: blur(1px);
  }

  .hero-copy h1 {
    margin: 4px 0 !important;
    font-size: 30px !important;
    line-height: 1.04 !important;
  }

  .hero-copy .eyebrow {
    margin: 0 0 3px !important;
    font-size: 14px !important;
  }

  .hero-copy .sub {
    margin: 3px 0 0 !important;
    font-size: 11px !important;
    white-space: nowrap;
  }

  /* 2. 地図エリア：下の説明文が被らないように高さと位置を調整 */
  .hero {
    min-height: 800px !important;
  }

  .hero-map {
    top: 282px !important;
    left: 1.5% !important;
    width: 97% !important;
    height: 430px !important;
    padding-bottom: 54px !important;
  }

  .japan-map {
    height: 100% !important;
    padding-bottom: 30px !important;
  }

  .replaceable-map {
    width: 98% !important;
    height: 80% !important;
    object-position: center 44% !important;
  }

  .map-label {
    right: 7% !important;
    bottom: 18px !important;
    font-size: 18px !important;
    line-height: 1.45 !important;
  }

  .goal-note {
    z-index: 4 !important;
    bottom: 18px !important;
    left: 3% !important;
    max-width: 46% !important;
    padding: 10px 12px !important;
    font-size: 11px !important;
    line-height: 1.65 !important;
  }

  /* 3. 歌った曲：スマホでは3段表示 */
  #songs .preview-list,
  #songs .collapsible-content .song-list {
    columns: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  #songs .song-list li {
    width: 100% !important;
    padding: 8px 5px !important;
  }

  /* 4. 応援Crew：スマホでは3段表示 */
  #crew .crew-list,
  #crew .preview-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  #crew .crew-list p {
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 5px !important;
  }

  /* 5. ロードマップ：BOXを小さくして3個見える */
  .road-track {
    gap: 5px !important;
    padding: 2px 0 8px !important;
    scroll-snap-type: x proximity;
  }

  .road-track article {
    flex: 0 0 calc((100% - 32px) / 3) !important;
    min-width: 0 !important;
    padding: 7px 5px !important;
    scroll-snap-align: start;
  }

  .road-track article h3 {
    min-height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 6px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  .road-track article div {
    padding: 4px 3px !important;
    font-size: 10px !important;
  }

  .road-track > span {
    flex: 0 0 6px !important;
    width: 6px !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }

  /* 6. フッター：小さくしてメイン文を1行表示 */
  footer {
    padding: 20px 8px 24px !important;
  }

  footer .footer-message {
    margin: 0 auto 5px !important;
    font-size: clamp(10px, 3.1vw, 14px) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
.socials a svg {
  width: 18px;
  height: 18px;
  display: block;
}


  footer small {
    display: block;
    font-size: 9px !important;
    line-height: 1.4 !important;
  }

  .socials {
    gap: 12px !important;
    margin-top: 11px !important;
  }

  .socials a {
    width: 34px !important;
    height: 34px !important;
    font-size: 14px !important;
  }

  .socials a svg {
    width: 19px !important;
    height: 19px !important;
  }
}

@media (max-width: 390px) {
  .hero-copy {
    left: 4% !important;
    width: 66% !important;
  }

  .hero-copy h1 {
    font-size: 28px !important;
  }

  .hero-copy .eyebrow {
    font-size: 13px !important;
  }

  .hero-copy .sub {
    font-size: 10px !important;
  }

  .goal-note {
    max-width: 48% !important;
    font-size: 10px !important;
  }
}

/* =========================================================
   2026-08-08 スマホ版 地図ラベル最終調整 v2
   ・現在地をもっと左へ
   ・次の目的地を現在地の真下へ
   ========================================================= */
@media (max-width: 700px) {

  /* 現在地 */
  .location {
    top: 18px !important;
    left: 6% !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 6 !important;
  }

  /* 次の目的地：現在地の下へ */
  .next {
    top: 118px !important;
    left: 6% !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 6 !important;
  }

  /* 地図本体を少し右へ寄せてラベルと干渉しにくくする */
  .replaceable-map {
    width: 96% !important;
    height: 80% !important;
    object-position: 58% 46% !important;
  }

  /* 中央メッセージを右下へ寄せ、次の目的地BOXと重ならないようにする */
  .map-label {
    right: 5% !important;
    bottom: 22px !important;
    max-width: 46% !important;
    font-size: 18px !important;
    line-height: 1.45 !important;
    text-align: center !important;
  }

  /* 「この旅のゴールは」BOXは地図BOX内の左下で安定表示 */
  .goal-note {
    left: 3% !important;
    bottom: 72px !important;
    max-width: 44% !important;
    z-index: 5 !important;
  }
}

@media (max-width: 390px) {
  .location,
  .next {
    left: 4% !important;
  }

  .next {
    top: 112px !important;
  }

  .map-label {
    right: 3% !important;
    max-width: 48% !important;
    font-size: 17px !important;
  }
}

/* =========================================================
   2026-08-08 スマホ版 余白調整 v3
   地図セクション下と「走行距離」セクションの間隔を短縮
   ========================================================= */
@media (max-width: 700px) {

  /* 地図セクション全体の縦余白を短縮 */
  .hero {
    min-height: 730px !important;
    margin-bottom: 8px !important;
  }

  /* 地図BOXの高さを少しだけ圧縮 */
  .hero-map {
    height: 410px !important;
  }

  /* 「この旅のゴールは」BOXは少し上で固定 */
  .goal-note {
    bottom: 50px !important;
  }

  /* 実績BOXを地図セクションへ近づける */
  .stats {
    margin-top: 0 !important;
  }
}

@media (max-width: 390px) {
  .hero {
    min-height: 720px !important;
  }
}


/* =========================================================
   2026-08-08 「みんなで 日本を一周しよう！」位置調整 v8
   PC・スマホ共通：地図下のメッセージを下方向へ移動
   ========================================================= */
.map-label {
  transform: translateY(48px) !important;
}

@media (max-width: 768px) {
  .map-label {
    transform: translateY(42px) !important;
  }
}

/* =========================================================
   2026-08-08 「みんなで 日本を一周しよう！」位置調整 v9
   PC・スマホともに v8 よりさらに下へ移動
   ========================================================= */
.map-label {
  transform: translateY(20px) !important;
}

@media (max-width: 768px) {
  .map-label {
    transform: translateY(40px) !important;
  }
}
