/* まつちかタウン 臨時サイト 共通スタイル（3ページ共通） */
:root {
  --orange: #ea8219;
  --orange-deep: #c96a0c;
  --orange-pale: #fdf0e1;
  --yellow: #ffc740;
  --cream: #f7f3d6;
  --sand: #e8d7aa;
  --ink: #3a2f25;
  --muted: #6f6357;
  --card: #fffdf6;
  --red: #c8341c;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(120, 80, 20, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-deep); }
p, li { word-break: auto-phrase; text-wrap: pretty; }
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- ヘッダー ---------- */
/* 旧サイトのイラストヘッダーを踏襲。空の色は時間帯で変わる（html[data-time]） */
.site-header { position: relative; padding-bottom: 4px; }
.head-visual {
  position: absolute; top: 0; left: 0; right: 0; height: 225px; overflow: hidden; z-index: 0;
  background: linear-gradient(to bottom, #0baad9 0%, #50d4f5 60%);
}
[data-time="morning"] .head-visual { background: linear-gradient(to bottom, #45cfe8 0%, #bef5fc 60%); }
[data-time="evening"] .head-visual { background: linear-gradient(to bottom, #ea8219 0%, #ffc740 60%); }
[data-time="night"] .head-visual { background: linear-gradient(to bottom, #0f317a 5%, #3477d3 60%); }
.head-visual .town { position: absolute; inset: 0; z-index: 5; background: url(../img/head/header.png) repeat-x center bottom; }
.head-visual .stars { display: none; position: absolute; top: 10px; left: 0; right: 0; height: 124px; background: url(../img/head/star.png) repeat-x top center; }
[data-time="night"] .head-visual .stars { display: block; }
[data-time="night"] .head-visual .clouds { display: none; }
.cloud { position: absolute; width: 1800px; height: 124px; background-repeat: repeat-x; background-position: top center; }
.cloud.c1 { top: 5px; left: -30%; z-index: 3; background-image: url(../img/head/cloud1.png); animation: cloud1 70s linear infinite; }
.cloud.c2 { top: 12px; left: -25%; z-index: 2; background-image: url(../img/head/cloud2.png); animation: cloud2 85s linear infinite; }
.cloud.c3 { top: 12px; left: -45%; z-index: 1; background-image: url(../img/head/cloud3.png); animation: cloud3 120s linear infinite; }
@keyframes cloud1 { 0% { transform: translateX(-30%); opacity: 0; } 3%, 98% { opacity: 1; } 100% { transform: translateX(50%); opacity: 0; } }
@keyframes cloud2 { 0% { transform: translateX(-25%); opacity: 0; } 3%, 98% { opacity: 1; } 100% { transform: translateX(50%); opacity: 0; } }
@keyframes cloud3 { 0% { transform: translateX(-45%); opacity: 0; } 1%, 98% { opacity: 1; } 100% { transform: translateX(50%); opacity: 0; } }
/* 観覧車（くるりん）はイラスト内の観覧車の位置に重ねる。イラストは中央基準で 940px 幅に合わせて配置 */
.kururin {
  position: absolute; z-index: 4; left: calc(50% - 433px); bottom: 111px; width: 69px; height: 69px;
  background: url(../img/head/kururin.png) no-repeat; background-size: 100% auto;
  animation: spin 11s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.train {
  position: absolute; z-index: 6; right: calc(50% - 470px); bottom: 72px; width: 70px; height: 53px;
  background: url(../img/head/train.png) no-repeat; animation: train 32s linear infinite;
}
@keyframes train { 0% { transform: translateX(0); opacity: 0; } 3%, 96% { opacity: 1; } 100% { transform: translateX(-900px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cloud, .kururin, .train { animation: none; } }

.head-bar { position: relative; z-index: 10; height: 155px; }
.logo { display: inline-block; margin-top: 8px; }
.logo img { width: 205px; }
.gnav { position: relative; z-index: 10; }
.gnav ul { display: flex; margin: 0; padding: 0; list-style: none; background: #fff; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); overflow: hidden; }
.gnav li { flex: 1; }
.gnav li + li a { border-left: 1px solid #eee; }
.gnav a {
  position: relative; display: block; padding: 10px 8px 12px; text-align: center; line-height: 1.4;
  color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none;
}
.gnav a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 3px; height: 6px; background: #f05a2a; transform: translateX(-50%); }
.gnav .en { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .04em; }
.gnav a:hover { background: var(--orange-pale); }
.gnav a[aria-current="page"] { background: linear-gradient(#f5845a, #f05a2a); color: #fff; }
.gnav a[aria-current="page"] .en { color: #fff; }
.gnav a[aria-current="page"]::after { background: #fff; }

/* ---------- セクション共通 ---------- */
.section { padding: 36px 0 0; }
.section-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 21px; color: var(--orange-deep); }
.card { background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- お知らせ ---------- */
.news { margin: 0; padding: 4px 24px; list-style: none; }
.news li { display: grid; grid-template-columns: 7.5em 1fr; gap: 4px 16px; padding: 16px 0; border-bottom: 1px dashed var(--sand); }
.news li:last-child { border-bottom: 0; }
.news time { font-weight: 700; color: var(--muted); font-size: 14px; padding-top: 2px; }
.news .tag { display: inline-block; margin-right: 8px; padding: 0 10px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.news .tag.event { background: #3f8f5a; }
.news p { margin: 0; }

/* ---------- バナー ---------- */
.banner a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.banner a:hover { opacity: .9; }

/* ---------- ページ案内ボタン ---------- */
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.guide a {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px;
  background: var(--card); border: 2px solid var(--orange); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
}
.guide a:hover { background: var(--orange-pale); }
.guide .ico-wrap { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--orange); color: #fff; }
.guide .ico-wrap .ico { width: 28px; height: 28px; }
.guide strong { display: block; font-size: 19px; color: var(--orange-deep); }
.guide span { font-size: 14px; color: var(--muted); }
.guide .arrow { margin-left: auto; color: var(--orange); }

/* ---------- 情報カード2列 ---------- */
.tel { font-size: 24px; font-weight: 700; letter-spacing: .04em; color: var(--ink); text-decoration: none; }
.caution { font-size: 13px; color: var(--red); }
.small { font-size: 14px; color: var(--muted); }

/* ---------- フッター（地上の街並み → 地下の層） ---------- */
.site-footer { margin-top: 40px; }
.foot-town { height: 150px; background: url(../img/head/footer-town.png) repeat-x center bottom; }
.foot-under {
  --soil: #5a3a20;
  border-top: 6px solid #8a5a2b;
  background: linear-gradient(to bottom, #6a4526 0, var(--soil) 160px);
  color: #f7f3d6;
}
.foot-grid { display: grid; grid-template-columns: 1fr 1.25fr .8fr; gap: 32px 48px; padding-top: 40px; padding-bottom: 36px; }
.foot-logo img { width: 170px; }
.foot-brand p { margin: 14px 0 0; font-size: 14px; line-height: 1.8; color: rgba(247, 243, 214, .8); }
.foot-hours strong { display: block; font-size: 22px; letter-spacing: .04em; color: #fff; }
.foot-office h2 { margin: 0 0 4px; font-size: 15px; letter-spacing: .1em; color: var(--yellow); }
.foot-tels { margin: 0; }
.foot-tels > div { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 2px 16px; padding: 12px 0; border-bottom: 1px dashed rgba(247, 243, 214, .3); }
.foot-tels dt { font-size: 14px; white-space: nowrap; }
.foot-tels dt span { display: block; font-size: 12px; color: rgba(247, 243, 214, .7); }
.foot-tels dd { margin: 0; white-space: nowrap; }
.foot-tels dd a { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.foot-note { margin: 12px 0 0; font-size: 13px; line-height: 1.7; color: rgba(247, 243, 214, .8); }
.foot-note a { color: var(--yellow); }
.foot-nav ul { margin: 0; padding: 0; list-style: none; }
.foot-nav li { border-bottom: 1px solid rgba(247, 243, 214, .15); }
.foot-nav a { display: block; padding: 9px 0; color: #f7f3d6; font-size: 14px; text-decoration: none; }
.foot-nav a::before { content: "›"; margin-right: 8px; color: var(--yellow); }
.foot-nav a:hover { color: var(--yellow); }
.copy { margin: 0; padding: 16px; border-top: 1px solid rgba(247, 243, 214, .15); text-align: center; font-size: 12px; color: rgba(247, 243, 214, .6); }

/* ---------- スマホ ---------- */
@media (max-width: 720px) {
  .head-visual { height: 150px; }
  /* スマホはイラスト全体を 2/3 に縮小して表示。観覧車は位置が合わないため出さない */
  .head-visual .town { background-size: auto 150px; }
  .kururin { display: none; }
  .train { bottom: 48px; width: 47px; height: 35px; background-size: 100% auto; }
  .head-bar { height: 96px; }
  .logo { margin-top: 10px; }
  .logo img { width: 150px; }
  .gnav a { padding: 8px 4px 10px; font-size: 14px; }
  .gnav .en { font-size: 10px; }
    .news { padding: 0 18px; }
  .news li { grid-template-columns: 1fr; gap: 2px; }
  .guide,   .foot-town { height: 100px; background-size: auto 100px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .foot-tels > div { display: block; }
  .foot-nav ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .guide a { padding: 18px; }
  }
.guide span { word-break: auto-phrase; }
@media (max-width: 720px) {
  .gnav .pc-only { display: none; }
}

/* ---------- 下層ページ見出し ---------- */
.page-head { padding: 32px 0 0; }
.page-head h1 { margin: 0 0 6px; font-size: clamp(26px, 5vw, 34px); color: var(--orange-deep); letter-spacing: .06em; }
.page-head .lead { margin: 0 0 18px; color: var(--muted); }
.cat-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cat-nav a {
  display: block; padding: 8px 20px; border: 2px solid var(--orange); border-radius: 999px;
  background: var(--card); color: var(--orange-deep); font-weight: 700; text-decoration: none;
}
.cat-nav a:hover { background: var(--orange); color: #fff; }
.section-title .count { margin-left: 4px; font-size: 14px; font-weight: 400; color: var(--muted); }
[id] { scroll-margin-top: 16px; }

/* ---------- お店一覧 ---------- */
.shop-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
.shop { padding: 20px 22px; }
.shop h3 { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--orange-pale); font-size: 18px; line-height: 1.5; }
.shop dl { margin: 0; font-size: 15px; }
.shop .row { display: grid; grid-template-columns: 5em 1fr; gap: 8px; padding: 3px 0; }
.shop dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
.shop dd { margin: 0; word-break: auto-phrase; }
.shop-tel { font-size: 19px; font-weight: 700; letter-spacing: .03em; color: var(--ink); text-decoration: none; }
.shop-note { display: block; font-size: 13px; color: var(--muted); }
.shop-link { margin: 8px 0 0; font-size: 14px; }
.shop-intro { margin-top: 10px; font-size: 14px; }
.shop-intro summary { cursor: pointer; color: var(--orange-deep); font-weight: 700; }
.shop-intro p { margin: 6px 0 0; color: var(--muted); }
@media (max-width: 720px) {
  .shop-list { grid-template-columns: 1fr; }
  .shop { padding: 18px; }
  .cat-nav li { flex: 1; }
  .cat-nav a { padding: 8px 4px; text-align: center; }
}

/* ---------- アクセス・施設案内 ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sub-title { margin: 28px 0 10px; padding-left: 10px; border-left: 4px solid var(--orange); font-size: 17px; line-height: 1.5; }
.map-embed { overflow: hidden; }
.map-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.map-link { margin: 8px 0 0; font-size: 14px; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-wrap th, .table-wrap td { padding: 12px 14px; border-bottom: 1px solid var(--sand); text-align: center; }
.table-wrap thead th { background: var(--orange-pale); color: var(--orange-deep); font-size: 14px; line-height: 1.5; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap tbody th { text-align: left; white-space: nowrap; }
.route strong { font-size: 22px; color: var(--orange-deep); }
.locker tbody th { white-space: normal; text-align: left; word-break: auto-phrase; }
.locker small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.locker td { width: 16%; }
.locker .price { display: block; font-size: 14px; color: var(--ink); white-space: nowrap; }
.floormap { display: block; padding: 12px; }
.floormap img { width: 100%; }
.facility { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.facility li { padding: 20px 22px; }
.facility h3 { margin: 0 0 6px; font-size: 17px; color: var(--orange-deep); }
.facility h3 span { display: inline-block; margin-left: 10px; font-size: 14px; font-weight: 400; color: var(--muted); }
.facility p { margin: 0; }
@media (max-width: 720px) {
  .page-nav li { flex: 1 1 30%; }
  .page-nav a { font-size: 14px; }
  .map-embed iframe { aspect-ratio: 4 / 3; }
  .facility h3 span { display: block; margin-left: 0; }
  .route strong { font-size: 19px; }
  .table-wrap th, .table-wrap td { padding: 10px 8px; }
}
@media (max-width: 720px) {
  .page-nav ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .page-nav a { padding: 6px 2px; font-size: 13px; }
}

/* ---------- お店の写真 ---------- */
.shop { overflow: hidden; }
.shop-photo { display: block; width: calc(100% + 44px); max-width: none; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: -20px -22px 14px; }
@media (max-width: 720px) {
  .shop-photo { width: calc(100% + 36px); margin: -18px -18px 14px; }
}

/* ---------- トップ: お店スライダー（メインビジュアル） ---------- */
.pickup { padding: 28px 0 4px; }
.pickup-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pickup-head .section-title { margin-bottom: 12px; }
.text-more { display: inline-flex; align-items: center; gap: 2px; margin-bottom: 12px; font-size: 14px; font-weight: 700; text-decoration: none; }
.text-more .ico { width: 18px; height: 18px; }
.slider { position: relative; }
.slider-track {
  display: flex; gap: 16px; margin: 0; padding: 4px 2px 12px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
.slide a {
  display: block; height: 100%; overflow: hidden; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--sand); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; transition: transform .2s;
}
.slide a:hover { transform: translateY(-3px); }
.slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.slide-body { display: block; padding: 14px 16px 16px; }
.slide-body .tag { display: inline-block; padding: 0 10px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; }
.slide-name { display: block; margin-top: 6px; font-size: 17px; line-height: 1.5; }
.slide-hours { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.slider-btn {
  position: absolute; top: calc(50% - 40px); display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: #fff; color: var(--orange-deep); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); cursor: pointer;
}
.slider-btn:hover { background: var(--orange); color: #fff; }
.slider-btn.prev { left: -14px; }
.slider-btn.next { right: -14px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.slider-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: var(--sand); cursor: pointer; }
.slider-dots button[aria-current="true"] { background: var(--orange); }
.pickup-more { margin: 18px 0 0; text-align: center; }
.btn-more {
  display: inline-flex; align-items: center; gap: 4px; padding: 12px 28px; border-radius: 999px;
  background: var(--orange); color: #fff; font-weight: 700; text-decoration: none; box-shadow: var(--shadow);
}
.btn-more:hover { background: var(--orange-deep); }
.btn-more .ico { width: 18px; height: 18px; }

/* ---------- トップ: まつちかタウンとは ---------- */
.about-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
.about-text p { margin: 0 0 12px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--orange-deep); }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.about-photos figure { margin: 0; }
.about-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.about-photos figcaption { margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--muted); }

@media (max-width: 720px) {
  .pickup { padding-top: 20px; }
  .slide { flex-basis: 82%; }
  .slider-btn { display: none; }
  .about-body { grid-template-columns: 1fr; padding: 18px; }
}

/* ---------- スムーススクロール・追従するページ内ボタン・先頭へ戻る ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.page-head .lead { margin-bottom: 0; }
.sticky-nav {
  position: sticky; top: 0; z-index: 50; margin-top: 16px; padding: 10px 0;
  background: var(--cream); border-bottom: 1px solid var(--sand); box-shadow: 0 4px 8px -6px rgba(120, 80, 20, .25);
}
/* 追従ボタンの高さ分だけ、ジャンプ先の見出しを下げる */
main [id] { scroll-margin-top: 84px; }
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: #fff;
  box-shadow: 0 4px 12px rgba(120, 80, 20, .3);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange-deep); }
.to-top .ico { width: 24px; height: 24px; }
/* 長い説明文は文節単位の改行をやめ、通常の折り返しにする */
.facility p, .about-text p, .shop-intro p { word-break: normal; }
@media (max-width: 720px) {
  .sticky-nav { margin-top: 12px; padding: 8px 0; }
  main [id] { scroll-margin-top: 76px; }
  #access ~ [id], #access { scroll-margin-top: 108px; }
}

/* ---------- トップ: 利用時間とお知らせの帯（ヘッダー直下） ---------- */
.info-bar { background: #fff; border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.info-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.info-bar p { margin: 0; }
.info-hours { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.info-hours .ico { color: var(--orange); }
.info-hours .label { font-size: 14px; font-weight: 700; color: var(--orange-deep); }
.info-hours strong { font-size: 24px; letter-spacing: .04em; line-height: 1.2; }
.info-hours .note { font-size: 13px; color: var(--muted); }
/* 臨時運用のお知らせ: ヘッダー直下の赤帯 */
.site-alert { margin-top: 14px; background: var(--red); color: #fff; }
.site-alert .wrap { padding-top: 12px; padding-bottom: 12px; }
.site-alert p { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 17px; font-weight: 700; letter-spacing: .03em; line-height: 1.5; text-align: center; }
.site-alert .ico { flex: none; width: 24px; height: 24px; stroke-width: 2.2; }

/* ---------- トップ: テナント・広告募集（横長の帯） ---------- */
.tenant { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 22px 28px; }
.tenant h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 17px; color: var(--orange-deep); }
.tenant p { margin: 0; }
.tenant-tel { flex: none; text-align: right; }
.tenant-tel .small { margin-top: 2px; }

@media (max-width: 720px) {
  .site-alert { margin-top: 10px; }
  .site-alert p { justify-content: flex-start; font-size: 15px; text-align: left; }
  .info-bar .wrap { flex-direction: column; align-items: flex-start; }
  .info-hours strong { font-size: 22px; }
  .info-hours .note { flex-basis: 100%; }
  .tenant { flex-direction: column; align-items: flex-start; padding: 20px; }
  .tenant-tel { text-align: left; }
}
