/* =====================================================================
   SHIKA PHOTO LIBRARY  ―  志賀町公式フォトライブラリー
   style.css  Ver1.2
   写真を主役に／余白を広く／影は最小限／角丸16px
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* 色 ―― 白の代わりに、わずかに温かみのあるアイボリーを基調にする。
     写真の白飛びが目立たず、紺のアクセントが締まって見える。 */
  --bg:            #FDFCFA;
  --bg-soft:       #F4F1EC;
  --bg-tint:       #EEEAE2;
  --line:          #E7E2D9;
  --line-soft:     #EFEBE4;

  --ink:           #1F2937;
  --ink-sub:       #5C6672;
  --ink-mute:      #8E97A1;

  --accent:        #0B4F82;
  --accent-dark:   #083A61;
  --accent-soft:   #ECF2F7;
  --navy:          #0C2A45;

  --radius:        16px;
  --radius-sm:     12px;
  --radius-pill:   999px;

  --shadow-card:   0 1px 2px rgba(28, 32, 26, .04);
  --shadow-float:  0 8px 28px rgba(28, 32, 26, .10);

  --container:     1200px;
  --header-h:      76px;
  --section-gap:   96px;
  --card-gap:      32px;

  --ease:          cubic-bezier(.22, .61, .36, 1);
  --fade:          .4s;
  --hover-scale:   1.03;

  /* 書体 ―― 欧文は Jost（幾何学サンセリフ）、和文は Noto Sans JP。
     Jost に和文グリフが無いため、日本語は自動的に Noto Sans JP に落ちる。 */
  --font: "Jost", "Noto Sans JP", -apple-system, BlinkMacSystemFont,
          "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px; line-height: 1.9;
  letter-spacing: .02em;
  color: var(--ink); background: var(--bg);
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 欧文だけを Jost で組みたい箇所 */
.en { font-family: "Jost", sans-serif; font-weight: 500; }

/* =====================================================================
   Header
   ===================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.header__inner {
  width: min(100% - 48px, var(--container)); margin-inline: auto;
  display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo__mark {
  width: 36px; height: 36px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .7);
  display: grid; place-items: center; color: #fff;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.logo__mark svg { width: 18px; height: 18px; }
.logo__text { line-height: 1.35; color: #fff; transition: color .3s var(--ease); }
.logo__en {
  display: block; font-family: "Jost", sans-serif;
  font-size: 15px; font-weight: 500; letter-spacing: .17em;
}
.logo__ja { display: block; font-size: 9.5px; font-weight: 400; letter-spacing: .16em; opacity: .78; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 22px; }
.nav__link {
  position: relative; font-size: 12.5px; font-weight: 500; letter-spacing: .06em;
  color: rgba(255, 255, 255, .92); padding-block: 6px; white-space: nowrap;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__search, .header__fav {
  position: relative;
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--radius-pill); color: #fff;
  transition: background .2s var(--ease), color .3s var(--ease);
}
.header__search:hover, .header__fav:hover { background: rgba(255, 255, 255, .18); }
.header__search svg, .header__fav svg { width: 19px; height: 19px; }
.header__fav.has-items { color: #ff8a9a; }
.header__fav-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px;
  background: #e0455a; color: #fff; font-size: 9.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  box-shadow: 0 0 0 2px var(--bg);
}
.burger { display: none; width: 38px; height: 38px; place-items: center; color: #fff; }
.burger svg { width: 22px; height: 22px; }

.header.is-scrolled {
  background: rgba(253, 252, 250, .96);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-scrolled .logo__text, .header.is-scrolled .burger,
.header.is-scrolled .header__search, .header.is-scrolled .header__fav { color: var(--ink); }
.header.is-scrolled .nav__link { color: var(--ink-sub); }
.header.is-scrolled .nav__link:hover { color: var(--accent); }
.header.is-scrolled .logo__mark { background: var(--accent); border-color: var(--accent); color: #fff; }
.header.is-scrolled .header__search:hover, .header.is-scrolled .header__fav:hover { background: var(--accent-soft); color: var(--accent); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero { position: relative; isolation: isolate; }
.hero__media {
  position: relative; width: 100%;
  height: min(56.25vw, 84vh); min-height: 460px; overflow: hidden;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* 複数枚あるときはスライドショー：重ねて置いて、透明度でクロスフェードする */
.hero__media .hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__media .hero__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero__media .hero__slide { transition: none; }
}
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }

.hero__body {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h);
}
.hero__inner {
  width: min(100% - 48px, var(--container)); margin-inline: auto; color: #fff;
  transition: color .4s var(--ease);
}
.hero__title { text-shadow: 0 2px 30px rgba(0, 0, 0, .28); }
.hero__title-main {
  display: inline-block;
  font-family: "Klee One", cursive;
  font-size: clamp(30px, 4.4vw, 58px); font-weight: 600;
  line-height: 1.15; letter-spacing: .02em;
  transform: rotate(-4deg); transform-origin: left bottom;
}
.hero__title-sub {
  display: block; white-space: pre-line;
  margin-top: 14px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(18px, 2.3vw, 27px); font-weight: 500;
  line-height: 1.65; letter-spacing: .04em;
}
.hero__sub { margin-top: 24px; line-height: 1.9; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.hero__sub-en {
  font-family: "Jost", sans-serif;
  font-size: 13px; font-weight: 400; letter-spacing: .34em;
}
.hero__sub-ja { font-size: 12px; font-weight: 400; letter-spacing: .18em; opacity: .88; }

/* 検索ボックス：高さ72px／角丸16px */
.searchbox {
  display: flex; align-items: center; gap: 10px;
  margin-top: 32px; max-width: 560px; height: 72px;
  background: var(--bg); border-radius: var(--radius);
  padding: 8px 8px 8px 24px; box-shadow: var(--shadow-float);
}
.searchbox__icon { color: var(--ink-mute); display: grid; place-items: center; }
.searchbox__icon svg { width: 20px; height: 20px; }
.searchbox__input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font: inherit; font-size: 15px; letter-spacing: .04em; color: var(--ink);
}
.searchbox__input::placeholder { color: var(--ink-mute); letter-spacing: .06em; }
.searchbox__btn {
  flex-shrink: 0; height: 56px; padding-inline: 32px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: .18em;
  border-radius: var(--radius-sm);
  transition: background .25s var(--ease);
}
.searchbox__btn:hover { background: var(--accent-dark); }

/* 人気のタグ */
.herotags { margin-top: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.herotags__label {
  font-size: 11px; font-weight: 500; letter-spacing: .2em;
  color: rgba(255, 255, 255, .82); margin-right: 6px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}
.herotag {
  font-size: 12px; font-weight: 400; letter-spacing: .06em; color: #fff;
  padding: 6px 16px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .38);
  backdrop-filter: blur(6px);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.herotag:hover { background: var(--bg); color: var(--accent); border-color: var(--bg); }

.hero__caption {
  position: absolute; left: 0; right: 0; bottom: 22px; z-index: 1;
  width: min(100% - 48px, var(--container)); margin-inline: auto;
  display: flex; justify-content: flex-end; align-items: center; gap: 6px;
  font-size: 11.5px; letter-spacing: .08em; color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}
.hero__caption svg { width: 13px; height: 13px; }

/* 明るい写真がスライドに来たときは、白文字だと読みにくいため濃紺の文字に切り替える
   （JS側が写真の明るさを測って .hero に is-light-photo を付け外しする）。 */
.hero.is-light-photo .hero__inner { color: var(--navy); }
.hero.is-light-photo .hero__title { text-shadow: 0 1px 20px rgba(255, 255, 255, .55); }
.hero.is-light-photo .hero__sub { text-shadow: 0 1px 12px rgba(255, 255, 255, .6); }
.hero.is-light-photo .herotags__label {
  color: rgba(12, 42, 69, .82); text-shadow: 0 1px 10px rgba(255, 255, 255, .6);
}
.hero.is-light-photo .herotag {
  color: var(--navy);
  background: rgba(255, 255, 255, .55);
  border-color: rgba(12, 42, 69, .28);
}
.hero.is-light-photo .herotag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.hero.is-light-photo .hero__caption {
  color: rgba(12, 42, 69, .82); text-shadow: 0 1px 10px rgba(255, 255, 255, .6);
}

/* =====================================================================
   Section
   ===================================================================== */
.section { padding-block: var(--section-gap); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-top: 0; }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 36px;
}
.section__eyebrow {
  display: block; font-family: "Jost", sans-serif;
  font-size: 11px; font-weight: 500; letter-spacing: .3em;
  color: var(--accent); margin-bottom: 10px;
}
.section__title { font-size: 23px; font-weight: 700; letter-spacing: .1em; line-height: 1.6; }
.section__lead { margin-top: 8px; font-size: 13px; letter-spacing: .05em; color: var(--ink-sub); }
.section__more {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--ink-sub);
  padding-bottom: 4px;
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.section__more:hover { color: var(--accent); gap: 12px; }
.section__more svg { width: 15px; height: 15px; }

/* =====================================================================
   人気のスポット（3:2）
   ===================================================================== */
.spot-grid { display: grid; gap: var(--card-gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spot-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card);
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.spot-card:hover { box-shadow: var(--shadow-float); border-color: var(--bg-tint); }
.spot-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.spot-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.spot-card:hover .spot-card__media img { transform: scale(var(--hover-scale)); }
.spot-card__body { padding: 18px 20px 20px; }
.spot-card__name {
  font-size: 15.5px; font-weight: 700; letter-spacing: .05em; line-height: 1.6;
  min-height: 3.2em;   /* 2行分を確保して、カード間でエリア名の高さを揃える */
}
.spot-card__area {
  display: flex; align-items: center; gap: 6px;
  margin-top: 9px; font-size: 12px; letter-spacing: .08em; color: var(--ink-sub);
}
.spot-card__area svg { width: 13px; height: 13px; }
.spot-card__count {
  margin-top: 4px; font-size: 11.5px; letter-spacing: .1em; color: var(--ink-mute);
}

/* =====================================================================
   おすすめシーン（写真カード）
   ===================================================================== */
.scene-grid { display: grid; gap: 20px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
#genreGrid.scene-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.scene-card {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1;
  border-radius: var(--radius); overflow: hidden; padding: 0;
  transition: transform .45s var(--ease), box-shadow .35s var(--ease);
}
.scene-card:hover { transform: scale(var(--hover-scale)); box-shadow: var(--shadow-float); }
.scene-card img { width: 100%; height: 100%; object-fit: cover; }
.scene-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 34, .62), rgba(10, 22, 34, .06) 66%);
  transition: background .35s var(--ease);
}
.scene-card:hover::after { background: linear-gradient(to top, rgba(10, 22, 34, .70), rgba(10, 22, 34, .14) 66%); }
.scene-card__label {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 1;
  text-align: center; color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .14em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}

/* =====================================================================
   目的で写真を探す（用途・雰囲気のプルダウン検索）
   ===================================================================== */
.purpose-finder {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 32px;
}
.purpose-finder__field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; }
.purpose-finder__field label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--ink-sub);
}
.purpose-finder__field select {
  width: 100%; padding: 13px 16px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 14.5px; color: var(--ink); cursor: pointer;
  transition: border-color .2s var(--ease);
}
.purpose-finder__field select:focus { outline: none; border-color: var(--accent); }
.purpose-finder__btn {
  flex: 0 0 auto; padding: 14px 28px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .08em;
  transition: background .25s var(--ease);
}
.purpose-finder__btn:hover { background: var(--accent-dark); }

/* =====================================================================
   写真から探す（3列 / 360x280）
   ===================================================================== */
.photo-grid { display: grid; gap: var(--card-gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-card {
  position: relative;
  display: block; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card);
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
/* あとで見る（お気に入り）ボタン：写真カードの右上に重ねて表示 */
.favbtn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: var(--radius-pill); border: 0; cursor: pointer;
  background: rgba(20, 24, 30, .38); color: #fff;
  backdrop-filter: blur(4px);
  transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.favbtn svg { width: 18px; height: 18px; }
.favbtn:hover { transform: scale(1.08); }
.favbtn.is-active { background: #fff; color: #e0455a; }
.favbtn.is-active svg { fill: currentColor; }
.photo-card:hover { box-shadow: var(--shadow-float); border-color: var(--bg-tint); }
.photo-card__media { aspect-ratio: 9 / 7; overflow: hidden; background: var(--bg-soft); }
.photo-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.photo-card:hover .photo-card__media img { transform: scale(var(--hover-scale)); }
.photo-card__body { padding: 18px 20px 20px; }
.photo-card__title { font-size: 15px; font-weight: 700; letter-spacing: .05em; line-height: 1.65; }
.photo-card__area {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px; font-size: 12px; letter-spacing: .08em; color: var(--ink-sub);
}
.photo-card__area svg { width: 13px; height: 13px; }
.photo-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.tag {
  font-size: 11px; font-weight: 400; letter-spacing: .08em; color: var(--accent);
  background: var(--accent-soft); padding: 4px 12px; border-radius: var(--radius-pill);
}
.photo-card__flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #fff;
  background: rgba(184, 108, 24, .88); padding: 4px 10px;
  border-radius: var(--radius-pill); backdrop-filter: blur(4px);
}

/* =====================================================================
   四季折々の志賀町
   ===================================================================== */
.season { background: var(--navy); color: #fff; padding-block: 84px; }
.season__eyebrow {
  display: block; text-align: center; font-family: "Jost", sans-serif;
  font-size: 11px; font-weight: 500; letter-spacing: .3em;
  color: rgba(255, 255, 255, .58); margin-bottom: 12px;
}
.season__title {
  text-align: center; font-size: 23px; font-weight: 700;
  letter-spacing: .14em; text-wrap: balance;
}
.season__lead {
  text-align: center; margin-top: 12px; margin-bottom: 38px;
  font-size: 13px; letter-spacing: .06em; color: rgba(255, 255, 255, .66);
}
.season__grid { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.season-card {
  position: relative; display: block; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden;
  transition: transform .45s var(--ease);
}
.season-card:hover { transform: scale(var(--hover-scale)); }
.season-card img { width: 100%; height: 100%; object-fit: cover; }
.season-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 22, 36, .62), rgba(8, 22, 36, .04) 64%);
}
.season-card__label { position: absolute; left: 20px; bottom: 16px; z-index: 1; line-height: 1.35; }
.season-card__ja { display: block; font-size: 23px; font-weight: 700; letter-spacing: .16em; }
.season-card__en {
  display: block; font-family: "Jost", sans-serif;
  font-size: 10.5px; font-weight: 400; letter-spacing: .3em; opacity: .85;
}

/* =====================================================================
   お問い合わせ
   ===================================================================== */
.contact { padding-block: var(--section-gap); background: var(--bg-soft); }
.contact__head { text-align: center; margin-bottom: 36px; }
.contact__head .section__eyebrow { text-align: center; }
.contact__title { font-size: 23px; font-weight: 700; letter-spacing: .12em; }
.contact__lead { margin-top: 12px; font-size: 13px; letter-spacing: .05em; color: var(--ink-sub); }
.contact__panel {
  max-width: 760px; margin-inline: auto;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.contact__frame { width: 100%; min-height: 620px; border: 0; display: block; }
.contact__placeholder { padding: 44px 32px; text-align: center; }
.contact__placeholder p { font-size: 13.5px; color: var(--ink-sub); }
.contact__placeholder code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; background: var(--bg-soft); padding: 2px 7px; border-radius: 5px;
}
.contact__mail {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: .1em;
  transition: background .25s var(--ease);
}
.contact__mail:hover { background: var(--accent-dark); }
.contact__note { margin-top: 20px; text-align: center; font-size: 12px; letter-spacing: .04em; color: var(--ink-mute); }

/* =====================================================================
   Footer
   ===================================================================== */
.footer { background: var(--accent-dark); color: rgba(255, 255, 255, .9); padding-block: 48px 28px; }
.footer__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; padding-bottom: 28px;
}
.footer .logo__mark { background: rgba(255, 255, 255, .14); }
.footer__primary { display: flex; flex-wrap: wrap; gap: 12px; }
.footer__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .24);
  font-size: 13px; font-weight: 500; letter-spacing: .1em; color: #fff;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.footer__btn:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .48); }
.footer__btn svg { width: 16px; height: 16px; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 12px; letter-spacing: .06em; }
.footer__links a { color: rgba(255, 255, 255, .74); transition: color .25s var(--ease); }
.footer__links a:hover { color: #fff; }
.footer__copy {
  font-family: "Jost", sans-serif;
  font-size: 11.5px; letter-spacing: .1em; color: rgba(255, 255, 255, .58);
}

/* =====================================================================
   検索オーバーレイ・結果
   ===================================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 22, 34, .5); backdrop-filter: blur(4px);
  display: grid; place-items: start center; padding: 13vh 24px 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.overlay.is-open { opacity: 1; visibility: visible; }
.overlay__panel {
  width: min(100%, 660px); background: var(--bg); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-float);
  transform: translateY(-10px); transition: transform .25s var(--ease);
}
.overlay.is-open .overlay__panel { transform: none; }
.overlay .searchbox {
  margin-top: 0; max-width: none; box-shadow: none;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.overlay__hint {
  margin-top: 20px; font-size: 11px; font-weight: 500;
  color: var(--ink-sub); letter-spacing: .2em;
}
.tagchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tagchip {
  font-size: 12px; letter-spacing: .06em; padding: 7px 16px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent); font-weight: 500;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.tagchip:hover { background: var(--accent); color: #fff; }

.results__count { font-size: 13px; letter-spacing: .06em; color: var(--ink-sub); margin-bottom: 24px; }
.results__sub {
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  color: var(--ink-sub); margin: 40px 0 18px;
}
.results__empty { padding: 60px 0; text-align: center; color: var(--ink-mute); font-size: 14px; }

/* =====================================================================
   Fade In（0.4秒）
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--fade) var(--ease), transform var(--fade) var(--ease);
}

/* =====================================================================
   Tablet
   ===================================================================== */
@media (max-width: 1024px) {
  :root { --section-gap: 72px; --card-gap: 24px; }
  .container, .header__inner, .hero__inner, .hero__caption { width: min(100% - 40px, var(--container)); }
  .nav__list { gap: 22px; }
  .nav__link { font-size: 12px; letter-spacing: .06em; }
  .spot-grid, .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-grid, #genreGrid.scene-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =====================================================================
   Mobile
   ===================================================================== */
@media (max-width: 767px) {
  :root { --header-h: 62px; --section-gap: 56px; --card-gap: 16px; }
  body { font-size: 14px; line-height: 1.85; }
  .container, .header__inner, .hero__inner, .hero__caption { width: calc(100% - 32px); }

  .nav, .header__search, .header__fav { display: none; }
  .burger { display: grid; margin-left: auto; }
  .logo__en { font-size: 13.5px; letter-spacing: .13em; }

  .hero__media { height: min(140vw, 88vh); min-height: 520px; }
  .hero__media::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .3) 38%, rgba(0, 0, 0, .55) 100%);
  }
  .hero__body { justify-content: flex-end; padding-bottom: 74px; }
  .hero__title-main { font-size: clamp(32px, 10vw, 46px); }
  .hero__title-sub { margin-top: 10px; font-size: 16px; line-height: 1.55; }
  .hero__sub { margin-top: 16px; }
  .hero__sub-en { letter-spacing: .24em; }
  .searchbox { margin-top: 22px; max-width: none; height: 60px; padding: 6px 6px 6px 18px; }
  .searchbox__btn { height: 48px; padding-inline: 22px; font-size: 13px; letter-spacing: .12em; }
  .herotags { margin-top: 16px; gap: 7px; }
  .herotags__label { width: 100%; margin-bottom: 3px; }
  .herotag { font-size: 11.5px; padding: 5px 13px; }
  .hero__caption { bottom: 14px; }

  .section__head { margin-bottom: 24px; }
  .section__title { font-size: 18px; letter-spacing: .08em; }
  .section__eyebrow { font-size: 10px; letter-spacing: .26em; margin-bottom: 8px; }
  .spot-card__body, .photo-card__body { padding: 14px 15px 16px; }
  .spot-card__name { font-size: 13.5px; min-height: 3.2em; }
  .photo-card__title { font-size: 13.5px; }
  .photo-card__tags { gap: 5px; margin-top: 9px; }
  .tag { font-size: 10.5px; padding: 3px 10px; }
  .scene-grid, #genreGrid.scene-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .scene-card__label { font-size: 12px; letter-spacing: .1em; bottom: 10px; }
  .purpose-finder { flex-direction: column; align-items: stretch; padding: 20px; }
  .purpose-finder__btn { width: 100%; }

  .season { padding-block: 52px; }
  .season__title { font-size: 17px; letter-spacing: .1em; }
  .season__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .season-card__ja { font-size: 19px; }

  .contact__title { font-size: 18px; }
  .contact__frame { min-height: 720px; }
  .contact__placeholder { padding: 32px 20px; }

  .footer { padding-block: 34px 22px; }
  .footer__primary { width: 100%; flex-direction: column; gap: 10px; }
  .footer__btn { width: 100%; justify-content: center; padding: 13px 12px; font-size: 12.5px; }
  .footer__links { gap: 12px 18px; font-size: 11.5px; }

  .overlay { padding-top: 9vh; }
  .overlay__panel { padding: 20px; }
}

/* --- mobile drawer --- */
.drawer {
  position: fixed; inset: 0; z-index: 150; background: rgba(10, 22, 34, .5);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel {
  position: absolute; inset: 0 0 0 auto; width: min(82%, 320px);
  background: var(--bg); padding: 20px; display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%); transition: transform .3s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close { align-self: flex-end; width: 38px; height: 38px; display: grid; place-items: center; }
.drawer__close svg { width: 20px; height: 20px; }
.drawer__link {
  padding: 15px 6px; font-size: 14px; font-weight: 500; letter-spacing: .08em;
  border-bottom: 1px solid var(--line);
}

@media print { .header, .overlay, .drawer { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   スポット一覧 / スポット詳細  ―  Ver1.3
   ===================================================================== */

/* --- 下層ページ共通のヘッダー（写真の上に乗らないので最初から白） --- */
.header--solid {
  position: sticky; background: var(--bg); box-shadow: 0 1px 0 var(--line);
}
.header--solid .logo__text, .header--solid .burger, .header--solid .header__search, .header--solid .header__fav { color: var(--ink); }
.header--solid .nav__link { color: var(--ink-sub); }
.header--solid .nav__link:hover { color: var(--accent); }
.header--solid .logo__mark { background: var(--accent); border-color: var(--accent); color: #fff; }
.header--solid .header__search:hover, .header--solid .header__fav:hover { background: var(--accent-soft); color: var(--accent); }

/* --- パンくず --- */
.breadcrumb {
  padding-block: 20px 0;
  font-size: 11.5px; letter-spacing: .08em; color: var(--ink-mute);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.breadcrumb a { color: var(--ink-sub); transition: color .25s var(--ease); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: "/"; margin-right: 9px; color: var(--line); }
.breadcrumb li { display: flex; align-items: center; }

/* --- ページ見出し --- */
.pagehead { padding-block: 56px 40px; text-align: center; }
.pagehead__eyebrow {
  display: block; font-family: "Jost", sans-serif;
  font-size: 11px; font-weight: 500; letter-spacing: .3em; color: var(--accent); margin-bottom: 12px;
}
.pagehead__title { font-size: 27px; font-weight: 700; letter-spacing: .12em; }
.pagehead__lead { margin-top: 14px; font-size: 13.5px; letter-spacing: .05em; color: var(--ink-sub); }

/* --- エリア絞り込み --- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filter {
  font-size: 13px; font-weight: 500; letter-spacing: .1em;
  padding: 9px 22px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-sub);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.spot-card.is-hidden { display: none; }

/* --- 詳細ヒーロー --- */
.spothero { position: relative; }
.spothero__media { position: relative; width: 100%; height: min(45vw, 62vh); min-height: 340px; overflow: hidden; }
.spothero__media img { width: 100%; height: 100%; object-fit: cover; }
.spothero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 20, 32, .68), rgba(8, 20, 32, .12) 62%);
}
.spothero__body {
  position: absolute; left: 0; right: 0; bottom: 34px; z-index: 1;
  width: min(100% - 48px, var(--container)); margin-inline: auto; color: #fff;
}
.spothero__area {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: .1em; color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}
.spothero__area svg { width: 13px; height: 13px; }
.spothero__title {
  margin-top: 10px; font-size: clamp(26px, 3.4vw, 42px); font-weight: 700;
  letter-spacing: .1em; line-height: 1.4; text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.spothero__kana {
  display: block; margin-top: 8px; font-size: 11.5px; font-weight: 400;
  letter-spacing: .24em; opacity: .8;
}

/* --- 本文 + 基本情報 --- */
.spotbody { padding-block: 72px; }
.spotbody__grid {
  display: grid; gap: 56px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start;
}
.spotbody__catch {
  font-size: 19px; font-weight: 700; letter-spacing: .08em; line-height: 1.85;
  color: var(--accent); margin-bottom: 26px;
}
.spotbody__text p { margin-bottom: 22px; }
.spotbody__text p:last-child { margin-bottom: 0; }
.spotbody__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

.infobox {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
}
.infobox__title {
  font-family: "Jost", sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: .26em; color: var(--accent); margin-bottom: 18px;
}
.infobox__row { padding-block: 12px; border-top: 1px solid var(--line); }
.infobox__row:first-of-type { border-top: 0; padding-top: 0; }
.infobox__label { font-size: 11px; letter-spacing: .14em; color: var(--ink-mute); }
.infobox__value { margin-top: 4px; font-size: 13px; line-height: 1.8; }
.infobox__map {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  padding: 11px 20px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  font-size: 12.5px; font-weight: 500; letter-spacing: .1em;
  transition: background .25s var(--ease);
}
.infobox__map:hover { background: var(--accent-dark); }
.infobox__map svg { width: 15px; height: 15px; }
.infobox__source { margin-top: 18px; font-size: 11px; line-height: 1.9; color: var(--ink-mute); }
.infobox__source a { color: var(--ink-sub); text-decoration: underline; text-underline-offset: 3px; }
.infobox__source a:hover { color: var(--accent); }

/* --- 写真グリッド（4列） --- */
.gallery { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery__item {
  position: relative; display: block; width: 100%; padding: 0;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm);
  background: var(--bg-soft); cursor: zoom-in;
  transition: transform .45s var(--ease), box-shadow .35s var(--ease);
}
.gallery__item:hover { transform: scale(var(--hover-scale)); box-shadow: var(--shadow-float); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__cap {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: 26px 12px 11px; color: #fff;
  font-size: 11.5px; letter-spacing: .04em; text-align: left;
  background: linear-gradient(to top, rgba(8, 20, 32, .78), rgba(8, 20, 32, 0));
  opacity: 0; transition: opacity .3s var(--ease);
}
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; }

/* --- ライトボックス --- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6, 14, 24, .94);
  display: grid; grid-template-rows: 1fr auto; place-items: center;
  padding: 64px 24px 28px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { display: grid; place-items: center; max-width: 100%; max-height: 100%; }
.lightbox__img {
  max-width: min(100%, 1200px); max-height: calc(100vh - 150px);
  width: auto; height: auto; border-radius: var(--radius-sm);
  transform: scale(.98); transition: transform .3s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__bar {
  margin-top: 18px; display: flex; align-items: center; gap: 18px;
  color: rgba(255, 255, 255, .88);
}
.lightbox__cap { font-size: 12.5px; letter-spacing: .06em; }
.lightbox__count {
  font-family: "Jost", sans-serif; font-size: 12px; letter-spacing: .16em;
  color: rgba(255, 255, 255, .55);
}
.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: var(--radius-pill); color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  transition: background .25s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .26); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__btn--prev { left: 24px; }
.lightbox__btn--next { right: 24px; }
.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--radius-pill); color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  transition: background .25s var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close svg { width: 18px; height: 18px; }

/* --- 関連スポット --- */
.related { background: var(--bg-soft); padding-block: var(--section-gap); }

@media (max-width: 1024px) {
  .spotbody__grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .breadcrumb, .spothero__body { width: min(100% - 40px, var(--container)); }
}
@media (max-width: 767px) {
  .pagehead { padding-block: 36px 28px; }
  .pagehead__title { font-size: 20px; }
  .filters { gap: 8px; margin-bottom: 30px; }
  .filter { font-size: 12px; padding: 8px 16px; }
  .spothero__media { height: min(72vw, 52vh); min-height: 260px; }
  .spothero__body { bottom: 22px; width: calc(100% - 32px); }
  .spothero__title { font-size: 22px; letter-spacing: .06em; }
  .spotbody { padding-block: 44px; }
  .spotbody__catch { font-size: 16px; margin-bottom: 20px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery__cap { opacity: 1; font-size: 10.5px; padding: 18px 9px 8px; }
  .lightbox { padding: 56px 12px 20px; }
  .lightbox__btn { width: 40px; height: 40px; }
  .lightbox__btn--prev { left: 8px; }
  .lightbox__btn--next { right: 8px; }
  .lightbox__bar { flex-direction: column; gap: 6px; text-align: center; }
  .breadcrumb, .spothero__body { width: calc(100% - 32px); }
}

/* =====================================================================
   写真詳細 / 検索結果  ―  Ver1.4
   ===================================================================== */

/* --- 写真詳細 --- */
.photoview { padding-block: 40px 72px; }
.photoview__grid {
  display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start;
}
.photoview__stage {
  background: var(--bg-tint); border-radius: var(--radius);
  display: grid; place-items: center; overflow: hidden;
}
.photoview__stage img { width: 100%; height: auto; display: block; }

.photometa__eyebrow {
  font-family: "Jost", sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: .26em; color: var(--accent);
}
.photometa__title {
  margin-top: 12px; font-size: 22px; font-weight: 700;
  letter-spacing: .06em; line-height: 1.6;
}
.photometa__rows { margin-top: 22px; }
.photometa__row { padding-block: 12px; border-top: 1px solid var(--line); }
.photometa__label { font-size: 11px; letter-spacing: .14em; color: var(--ink-mute); }
.photometa__value { margin-top: 4px; font-size: 13.5px; line-height: 1.8; }
.photometa__value a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.photometa__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }

.dlbtn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 26px; padding: 17px 20px;
  background: var(--accent); color: #fff; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 500; letter-spacing: .1em;
  transition: background .25s var(--ease);
}
.dlbtn:hover { background: var(--accent-dark); }
.dlbtn[disabled] { opacity: .55; cursor: progress; }
.dlbtn svg { width: 17px; height: 17px; }
.dlbtn--contact { background: #b86c18; }
.dlbtn--contact:hover { background: #9c5b12; }
.dlnote { margin-top: 12px; font-size: 11.5px; line-height: 1.85; color: var(--ink-mute); }

.sharebar { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.sharebar__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--ink-sub); }
.sharebar__list { display: flex; gap: 10px; margin-top: 10px; }
.sharebtn {
  position: relative;
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--radius-pill); background: var(--bg-soft); color: var(--ink-sub);
  transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.sharebtn svg { width: 18px; height: 18px; }
.sharebtn:hover { transform: translateY(-2px); }
.sharebtn--x:hover { background: #000; color: #fff; }
.sharebtn--line:hover { background: #06C755; color: #fff; }
.sharebtn--facebook:hover { background: #1877F2; color: #fff; }
.sharebtn--instagram:hover { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); color: #fff; }
.sharebtn--instagram.is-done::after {
  content: "コピーしました"; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 11px; letter-spacing: .05em;
  padding: 5px 10px; border-radius: 6px; white-space: nowrap;
}
.sharebar__note { margin-top: 10px; font-size: 11px; line-height: 1.8; color: var(--ink-mute); }

/* --- 利用規約の同意モーダル --- */
.modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10, 22, 34, .55); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  width: min(100%, 560px); max-height: 86vh; overflow-y: auto;
  background: var(--bg); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-float);
  transform: translateY(-10px); transition: transform .25s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__title { font-size: 17px; font-weight: 700; letter-spacing: .1em; }
.modal__terms {
  margin-top: 18px; padding: 18px 20px; max-height: 200px; overflow-y: auto;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 12.5px; line-height: 1.95; color: var(--ink-sub);
}
.modal__terms li { margin-bottom: 9px; padding-left: 1.1em; text-indent: -1.1em; }
.modal__terms li:last-child { margin-bottom: 0; }
.modal__lang {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px;
  margin-top: 16px; padding: 12px 14px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13px;
}
.modal__lang-label { font-weight: 700; color: var(--ink-sub); margin-right: 4px; }
.modal__lang-opt { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.modal__lang-opt input { accent-color: var(--accent); }
.modal__lang-opt input:disabled { opacity: .4; cursor: not-allowed; }
.modal__lang-opt--omit {
  flex-basis: 100%; margin-top: 8px; padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--ink-mute);
}
.modal__check {
  display: flex; align-items: flex-start; gap: 11px;
  margin-top: 20px; font-size: 13.5px; cursor: pointer;
}
.modal__check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.modal__actions { display: flex; gap: 12px; margin-top: 24px; }
.modal__btn {
  flex: 1; padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; letter-spacing: .08em; text-align: center;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.modal__btn--ghost { border: 1px solid var(--line); color: var(--ink-sub); }
.modal__btn--ghost:hover { border-color: var(--ink-mute); }
.modal__btn--primary { background: var(--accent); color: #fff; }
.modal__btn--primary:hover { background: var(--accent-dark); }
.modal__btn--primary[disabled] { opacity: .4; cursor: not-allowed; }

/* --- 管理者ページへの合言葉モーダル --- */
.admingate__lead { margin-top: 8px; font-size: 13px; color: var(--ink-sub); }
.admingate__input {
  width: 100%; margin-top: 16px; padding: 13px 16px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; letter-spacing: .04em; background: var(--bg-soft); color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.admingate__input:focus { outline: none; border-color: var(--accent); background: var(--bg); }
.admingate__error { margin-top: 10px; font-size: 12.5px; color: #B3261E; }

/* --- 検索結果 --- */
.searchpage { padding-block: 40px var(--section-gap); }
.searchpage .searchbox {
  margin: 0 auto 26px; max-width: 620px; height: 64px;
  border: 1px solid var(--line); box-shadow: none; background: var(--bg-soft);
}
.searchmeta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.searchmeta__count { font-size: 13.5px; letter-spacing: .05em; color: var(--ink-sub); }
.searchmeta__count strong { font-family: "Jost", sans-serif; font-size: 20px; color: var(--ink); margin-inline: 4px; }
.searchmeta__reset { font-size: 12px; letter-spacing: .1em; color: var(--ink-sub); text-decoration: underline; text-underline-offset: 4px; }
.searchmeta__reset:hover { color: var(--accent); }

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; }
.pager__btn {
  min-width: 42px; height: 42px; padding-inline: 12px;
  display: grid; place-items: center; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg);
  font-family: "Jost", sans-serif; font-size: 13px; letter-spacing: .06em; color: var(--ink-sub);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.pager__btn:hover:not([disabled]):not(.is-active) { border-color: var(--accent); color: var(--accent); }
.pager__btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager__btn[disabled] { opacity: .35; cursor: not-allowed; }
.pager__btn svg { width: 15px; height: 15px; }
.pager__gap { color: var(--ink-mute); padding-inline: 4px; }

@media (max-width: 1024px) {
  .photoview__grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767px) {
  .photoview { padding-block: 20px 44px; }
  .photometa__title { font-size: 18px; }
  .modal__panel { padding: 22px; }
  .modal__actions { flex-direction: column-reverse; }
  .searchpage .searchbox { height: 56px; padding-left: 16px; }
  .searchmeta__count strong { font-size: 17px; }
  .pager { gap: 6px; margin-top: 32px; }
  .pager__btn { min-width: 38px; height: 38px; font-size: 12px; }
}

/* ライトボックスから写真詳細ページへ */
.lightbox__link {
  font-size: 12.5px; font-weight: 500; letter-spacing: .08em;
  color: #fff; padding: 8px 18px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lightbox__link:hover { background: #fff; color: var(--accent); }

/* =====================================================================
   規約・FAQ などの文書ページ  ―  Ver1.5
   ===================================================================== */
.doc { padding-block: 8px var(--section-gap); }
.doc__inner { max-width: 780px; margin-inline: auto; }
.doc__updated {
  font-family: "Jost", sans-serif; font-size: 11.5px; letter-spacing: .1em;
  color: var(--ink-mute); text-align: center; margin-bottom: 48px;
}
.doc__intro {
  padding: 22px 24px; margin-bottom: 44px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 13.5px; line-height: 1.95; color: var(--ink-sub);
}
.instagram-embed { display: flex; justify-content: center; }
.doc h2 {
  margin: 52px 0 18px; padding-bottom: 14px;
  font-size: 17px; font-weight: 700; letter-spacing: .1em;
  border-bottom: 1px solid var(--line);
}
.doc h2:first-of-type { margin-top: 0; }
.doc h3 {
  margin: 30px 0 12px; font-size: 14.5px; font-weight: 700; letter-spacing: .08em; color: var(--accent);
}
.doc p { margin-bottom: 18px; font-size: 14px; line-height: 2; }
.doc p:last-child { margin-bottom: 0; }
.doc ul, .doc ol { margin: 0 0 20px; padding-left: 0; }
.doc li {
  position: relative; margin-bottom: 11px; padding-left: 1.5em;
  font-size: 14px; line-height: 1.95;
}
.doc ul > li::before {
  content: ""; position: absolute; left: .45em; top: .85em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.doc ol { counter-reset: n; }
.doc ol > li { counter-increment: n; }
.doc ol > li::before {
  content: counter(n) "."; position: absolute; left: 0; top: 0;
  font-family: "Jost", sans-serif; font-weight: 500; color: var(--accent);
}
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc__note {
  margin-top: 12px; padding: 16px 20px;
  background: var(--accent-soft); border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.9;
}
.doc__table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 13.5px; }
.doc__table th, .doc__table td {
  padding: 13px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.85;
}
.doc__table th { background: var(--bg-soft); font-weight: 700; letter-spacing: .06em; width: 32%; }
.doc__contact {
  margin-top: 52px; padding: 28px 30px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.doc__contact h2 { margin-top: 0; border: 0; padding-bottom: 0; }
.doc__contact p { margin-bottom: 8px; font-size: 13.5px; }

/* FAQ */
.faq__item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); margin-bottom: 12px; overflow: hidden;
}
.faq__q {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 22px; cursor: pointer; list-style: none;
  font-size: 14.5px; font-weight: 700; letter-spacing: .04em; line-height: 1.7;
  transition: background .2s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--bg-soft); }
.faq__q::before {
  content: "Q"; font-family: "Jost", sans-serif; font-weight: 600;
  color: var(--accent); flex-shrink: 0; line-height: 1.7;
}
.faq__q::after {
  content: ""; margin-left: auto; flex-shrink: 0;
  width: 9px; height: 9px; margin-top: 6px;
  border-right: 1.8px solid var(--ink-mute); border-bottom: 1.8px solid var(--ink-mute);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); }
.faq__a {
  display: flex; gap: 14px; padding: 0 22px 22px;
  font-size: 13.5px; line-height: 2; color: var(--ink-sub);
}
.faq__a::before {
  content: "A"; font-family: "Jost", sans-serif; font-weight: 600;
  color: var(--ink-mute); flex-shrink: 0;
}
.faq__a a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq__group { margin-bottom: 44px; }

/* 404 */
.notfound { padding-block: 96px; text-align: center; }
.notfound__code {
  font-family: "Jost", sans-serif; font-size: clamp(64px, 12vw, 120px);
  font-weight: 500; letter-spacing: .1em; color: var(--accent); line-height: 1;
}
.notfound__title { margin-top: 20px; font-size: 20px; font-weight: 700; letter-spacing: .1em; }
.notfound__lead { margin-top: 16px; font-size: 13.5px; line-height: 2; color: var(--ink-sub); }
.notfound__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.notfound__btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500; letter-spacing: .08em;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.notfound__btn--primary { background: var(--accent); color: #fff; }
.notfound__btn--primary:hover { background: var(--accent-dark); }
.notfound__btn--ghost { border: 1px solid var(--line); color: var(--ink-sub); }
.notfound__btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 767px) {
  .doc h2 { margin-top: 40px; font-size: 15.5px; }
  .doc p, .doc li { font-size: 13.5px; }
  .doc__table { font-size: 12.5px; }
  .doc__table th, .doc__table td { padding: 10px 12px; }
  .doc__table th { width: 36%; }
  .doc__contact { padding: 20px; }
  .faq__q { padding: 16px 16px; font-size: 13.5px; }
  .faq__a { padding: 0 16px 18px; font-size: 13px; }
  .notfound { padding-block: 60px; }
}

/* メールアドレスのコピーボタン（メールソフトが未設定の環境向け） */
.copybtn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 10px; padding: 5px 13px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--bg); color: var(--ink-sub);
  font-size: 11.5px; letter-spacing: .06em;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.copybtn:hover { border-color: var(--accent); color: var(--accent); }
.copybtn.is-done { background: var(--accent); border-color: var(--accent); color: #fff; }
