/* ===== 下書き（/teracart/）共通：導線と「押せる見た目」 2026-10-05 =====
   本番と共用の /css/style.css は変えない。下書きのページだけがこれを読む。
   決めごと：
   - 文中リンク＝サンゴ色（濃いめ）＋下線。リンクの色は押せない文字に使わない
   - カード＝枠＋白地＋右の矢印、ホバーで持ち上がる。カード全体が1つのリンク
   - ボタン＝style.css の .btn（紺の四角）／.btn.ghost（枠だけ）／.btn.coral
   - 飾りのラベルは紺の細字（サンゴ色にしない）
*/
:root { --link: #c0533d; }

/* ----- 文中リンク ----- */
:where(main) a:where(:not([class])) {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 700;
}
:where(main) a:where(:not([class])):hover { text-decoration-thickness: 2px; color: #a0412d; }
a:focus-visible, button:focus-visible { outline: 3px solid #f2bcab; outline-offset: 2px; border-radius: 4px; }

/* ----- ヘッダー：今いるページに下線、ホバーで下線 ----- */
.header-nav a.text-link { position: relative; }
.header-nav a.text-link:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 5px; }
.header-nav a.text-link[aria-current="page"] { color: var(--navy); font-weight: 700; }
.header-nav a.text-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--coral); border-radius: 2px;
}
.header-nav .btn { background: var(--coral); }
.header-nav .btn:hover { background: #c85f49; }
/* 狭い画面：ダウンロードは≡の外に出して常に見せる */
.hdr-dl { display: none; }
@media (max-width: 600px) {
  .hdr-dl {
    display: inline-block; margin-left: auto; background: var(--coral); color: #fff; text-decoration: none;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; padding: 7px 12px; border-radius: 4px; white-space: nowrap;
  }
  .site-header .inner .nav-toggle { margin-left: 4px; }
  .header-nav .btn { display: none !important; } /* 外に出したので≡の中では重ねない */
  .header-nav a.text-link[aria-current="page"]::after { display: none; }
  .header-nav a.text-link[aria-current="page"] { background: var(--cream); }
  .header-nav a.text-link { border-bottom: 1px solid var(--line); }
  .brand { font-size: 1.15rem; gap: 8px; }
  .brand img { width: 34px; height: 34px; }
}

/* ----- パンくず（ナビのすぐ下。最後の段は今のページでリンクにしない） ----- */
.crumb { background: #fff; border-bottom: 1px solid var(--line); }
.crumb ol {
  max-width: 1080px; margin: 0 auto; padding: 9px 24px; list-style: none;
  display: flex; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; font-size: 13px; line-height: 1.6;
  scrollbar-width: none;
}
.crumb ol::-webkit-scrollbar { display: none; }
.crumb li { display: flex; align-items: center; }
.crumb li + li::before { content: ">"; color: #a9b3b8; margin: 0 9px; }
.crumb a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.crumb a:hover { text-decoration-thickness: 2px; }
.crumb [aria-current="page"] { color: var(--ink-soft); }

/* ----- ボタン ----- */
.btn { border-radius: 4px; }
.btn.coral { background: var(--coral); }
.btn.coral:hover { background: #c85f49; }
.btn .arr, .go .arr { display: inline-block; margin-left: 6px; transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.center { text-align: center; }

/* ----- カード（全体が1つのリンク） ----- */
.cardlink {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: inherit; position: relative;
  box-shadow: 0 2px 6px rgba(30, 61, 79, .06);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cardlink:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(30, 61, 79, .14); border-color: var(--coral-soft); }
.go { margin-top: auto; color: var(--link); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 2px; }
.cardlink:hover .go .arr { transform: translateX(4px); }
.arr-c {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--coral); color: #fff; font-weight: 700; flex: 0 0 auto; transition: transform .2s;
}
.cardlink:hover .arr-c { transform: translateX(3px); }

/* 地図カード：上が「地図を見る」、同じ枠の中の下の段に「記事で読む」 */
.mgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
@media (min-width: 820px) { .mgrid { grid-template-columns: repeat(4, 1fr); gap: 18px; } .mgrid.five { grid-template-columns: repeat(5, 1fr); } }
.mcard { display: flex; flex-direction: column; }
.mcard .cardlink { flex: 1; overflow: hidden; }
.mcard .cardlink img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 13px 13px 0 0; }
.mcard .b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.mcard h3 { font-size: 15px; line-height: 1.45; color: var(--navy); margin: 0; }
.mcard p { font-size: 13px; line-height: 1.65; color: var(--ink-soft); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard .go { font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.mcard .go .arr { text-decoration: none; }
@media (max-width: 819px) { .mcard p { -webkit-line-clamp: 3; } }
/* 記事のあるカード：枠の中の下の段に「記事で読む →」（カード全体が1つの箱に見えるように） */
.mcard.ws { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 2px 6px rgba(30, 61, 79, .06); transition: transform .2s, box-shadow .2s, border-color .2s; }
.mcard.ws .cardlink { border: 0; box-shadow: none; border-radius: 14px 14px 0 0; }
/* 地図カードはカード全体を浮かせない。押した所だけが反応する（2026-10-05 4回目） */
.mcard .cardlink:hover { transform: none; box-shadow: 0 2px 6px rgba(30, 61, 79, .06); }
.mcard.ws .cardlink:hover { box-shadow: none; }
.mcard .cardlink:hover { background: var(--cream); }
.mcard .cardlink:hover h3 { color: var(--link); }
.mcard .sub { border-top: 1px solid var(--line); }
.mcard .sub a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 13.5px; font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: 3px; border-radius: 0 0 13px 13px; }
.mcard .sub a:hover { background: var(--cream); }
.mcard .sub a:hover .arr { transform: translateX(4px); }
.mcard .sub .arr { display: inline-block; margin-left: 6px; text-decoration: none; transition: transform .2s; }

/* 入口カード（作り方・イベント・料金など）：題＋一言＋右の矢印 */
.ggrid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
@media (min-width: 820px) { .ggrid { grid-template-columns: repeat(2, 1fr); gap: 16px; } .ggrid.three { grid-template-columns: repeat(3, 1fr); } }
.gcard { flex-direction: row; align-items: center; gap: 14px; padding: 16px 16px 16px 18px; }
.gcard .tx { flex: 1; min-width: 0; }
.gcard b { display: block; color: var(--navy); font-size: 16.5px; line-height: 1.45; margin-bottom: 3px; }
.gcard span.d { display: block; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.gcard .no { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 26px; line-height: 1; flex: 0 0 auto; width: 30px; text-align: center; }
.gcard .for { display: inline-block; font-size: 12px; color: var(--navy); background: var(--cream); border-radius: 4px; padding: 0 7px; margin-bottom: 4px; }

/* ----- 前へ／次へ（作り方の詳細ページの下） ----- */
.pager { padding: 44px 0 52px; background: #fff; border-top: 1px solid var(--line); }
.pager .pg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pager .cardlink { padding: 14px 16px; gap: 2px; }
.pager .cardlink small { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; letter-spacing: .06em; }
.pager .cardlink b { font-size: 15.5px; color: var(--navy); line-height: 1.5; }
.pager .next { text-align: right; align-items: flex-end; }
.pager .toc { margin-top: 18px; text-align: center; }
.pager .empty { visibility: hidden; }
.pager .where { text-align: center; font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; }

/* ----- 飾りのラベル：リンク色を使わない ----- */
.n-label, .h-label { color: var(--navy) !important; opacity: .7; }

/* ----- フッター：サイトマップ型 ----- */
.site-footer { text-align: left; padding: 44px 24px 36px; }
.fmap { max-width: 1080px; margin: 0 auto 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
@media (min-width: 820px) { .fmap { grid-template-columns: repeat(4, 1fr); } }
.fmap h2 { font-size: 13px; letter-spacing: .1em; color: var(--navy); margin: 0 0 8px; font-weight: 700; }
.fmap ul { list-style: none; margin: 0; padding: 0; }
.fmap li { margin: 0 0 6px; line-height: 1.5; }
.fmap a { font-size: 13.5px; color: var(--ink-soft); text-decoration: underline; text-decoration-color: #cfc5be; text-underline-offset: 3px; }
.fmap a:hover { color: var(--navy); text-decoration-color: currentColor; }
.site-footer .footer-social, .site-footer .footer-brand, .site-footer .copyright { justify-content: center; text-align: center; }
.site-footer .footer-social { margin-bottom: 18px; }

/* 作り方の入口：「公開に必要な4つ」は押せないので、ボタンに見える丸い箱をやめる */
.h-need li { background: none !important; border: 0 !important; padding: 2px 8px !important; }
