@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ---------- Tokens (Figma styles) ---------- */
:root {
  --c-bg: #078891;          /* logo_color */
  --c-green: #00818a;       /* BASIC_color/GRE_Basic */
  --c-pink: #f1095d;        /* BASIC_color/PINK_Basic */
  --c-pink-title: #e11b5a;
  --c-text: #3f3f3f;        /* font/GR_dark */
  --c-text-2: #6c6c6c;      /* font/secondary */
  --c-white: #fff;
  --radius-card: 5px;
  --radius-pill: 30px;
  --container: 1210px;
  --gutter: 30px;
  --font: 'Noto Sans JP', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
}
.site-logo img { width: 241px; height: auto; } /* ロゴ＋アイコン一体の書き出し想定 (182+gap+50) */
.search {
  position: relative;
  width: 357px;
  max-width: 100%;
}
.search input {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 20px;
  padding: 0 16px 0 51px;
  font: 16px/22px var(--font);
  color: var(--c-text);
  background: var(--c-white);
  filter: drop-shadow(0 0 2.5px rgba(0,0,0,.2));
}
.search input::placeholder { color: var(--c-text-2); }
.search input:focus { outline: 2px solid var(--c-pink); outline-offset: 0; }
.search .search-icon {
  position: absolute; left: 16px; top: 11px; width: 20px; height: 20px; pointer-events: none; z-index: 1;
}

/* ---------- Tag filter ---------- */
.tag-filter { margin-top: 50px; }
.tag-row {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.tag-btn {
  border: 1px solid transparent;
  background: var(--c-white);
  color: var(--c-text);
  border-radius: var(--radius-pill);
  padding: 5px 20px;
  font: 400 15px/18px var(--font);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.tag-btn:hover { background: #e6f4f5; }
.tag-btn.is-active { color: var(--c-green); font-weight: 700; }
.tag-btn:focus-visible { outline: 2px solid var(--c-pink); outline-offset: 2px; }

/* 小項目の行：大項目選択時に表示 */
.sub-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,.5);
}
.sub-row[hidden] { display: none; }
.sub-row .tag-btn {
  background: rgba(255,255,255,.3);
  border-color: var(--c-white);
  color: var(--c-white);
}
.sub-row .tag-btn:hover { background: rgba(255,255,255,.45); }
.sub-row .tag-btn.is-active { background: var(--c-white); color: var(--c-green); }

/* ---------- Grid ---------- */
.spot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px var(--gutter);
}

/* ---------- Featured (おすすめ枠) ---------- */
.featured { margin-top: 30px; }
.featured .spot-grid { row-gap: var(--gutter); }
.f-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 280 / 320;
  padding: 20px 19px;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.f-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform .4s;
}
.f-card:hover img { transform: scale(1.04); }
.f-card__box {
  position: relative;
  background: var(--c-white);
  padding: 10px;
  box-shadow: 3px 3px 0 rgba(0,0,0,.5);
  font-size: 16px;
}
.f-card__title {
  margin: 0;
  color: var(--c-pink-title);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.f-card__desc {
  margin: 6px 0 0;
  line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- About (SPOTとは？) ---------- */
.about {
  position: relative;
  max-width: 677px;
  margin: 60px auto;
  background: var(--c-white);
  border-radius: 10px;
  padding: 19px 150px 22px 24px;
}
.about__title {
  margin: 0 0 18px;
  text-align: center;
  margin-right: -126px; /* キャラ分を除いた中央揃えを箱全体の中央に */
  color: var(--c-pink-title);
  font: 700 20px/22px var(--font);
}
.about__text { margin: 0; font-size: 16px; line-height: 1.3; }
.about__actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.btn-pink {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-pink); color: var(--c-white);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font: 500 20px/22px var(--font);
  white-space: nowrap;
  transition: opacity .15s;
}
.btn-pink:hover { opacity: .85; }
.about__chara {
  position: absolute; right: 25px; top: 27px; width: 116px; height: auto;
}

/* ---------- List card ---------- */
.list-head {
  display: flex; align-items: baseline; gap: 16px;
  color: var(--c-white); margin: 40px 0 24px;
}
.list-head[hidden] { display: none; }
.list-head__title { margin: 0; font: 700 18px/1.4 var(--font); }
.list-head__count { font-size: 14px; opacity: .85; margin-right: auto; }
.clear-link { background: none; border: 0; color: var(--c-white); text-decoration: underline; font-size: 14px; padding: 0; }

.card__link { display: block; }
.card__img {
  aspect-ratio: 280 / 320;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: rgba(255,255,255,.15);
}
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card__link:hover .card__img img { transform: scale(1.04); }
.card__title {
  margin: 20px 0 0 5px;
  color: var(--c-white);
  font: 700 18px/1.2 var(--font);
  min-height: 2.4em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-all;
}
.card__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 21px; }
.card__tag {
  border: 1px solid var(--c-white);
  background: rgba(255,255,255,.3);
  color: var(--c-white);
  border-radius: var(--radius-pill);
  padding: 6px 20px;
  font: 400 15px/18px var(--font);
  white-space: nowrap;
}
.card__tag:hover { background: rgba(255,255,255,.5); }

.empty {
  color: var(--c-white); text-align: center; padding: 60px 0; font-size: 16px;
}

/* ---------- Load more (Figma: もっと見る) ---------- */
.more { display: flex; justify-content: center; margin: 60px 0 0; }
.more[hidden] { display: none; }
.btn-more {
  border: 2px solid var(--c-white);
  border-radius: var(--radius-pill);
  padding: 5px;
  background: transparent;
  transition: background .15s;
}
.btn-more__inner {
  display: flex; align-items: center;
  background: var(--c-white); color: var(--c-green);
  border-radius: var(--radius-pill);
  padding: 10px 15px 10px 20px;
  font: 400 20px/22px var(--font);
}
.btn-more__inner img { width: 24px; height: 24px; }
.btn-more:hover { background: rgba(255,255,255,.25); }
.btn-more:focus-visible { outline: 2px solid var(--c-pink); outline-offset: 2px; }

/* ---------- Header tools (検索 + 言語) ---------- */
.header-tools { display: flex; align-items: center; gap: 20px; }
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 11px;
  background: #e3e3e3; color: var(--c-text-2);
  border-radius: 10px;
  filter: drop-shadow(0 0 2.5px rgba(0,0,0,.2));
  font: 400 20px/22px var(--font);
}

/* ---------- Footer（共通） ---------- */
.site-footer {
  display: flex; flex-direction: column; align-items: center; gap: 35px;
  color: var(--c-white); text-align: center;
  padding: 120px 0 40px;
}
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: flex; align-items: center; justify-content: center; gap: 35px; }
.footer-tagline { margin: 0; font-size: 16px; }
.footer-logo { display: block; } /* 画像に上下左右の余白込み（240x95） */
.footer-logo img { width: 240px; height: auto; }
.footer-links { display: flex; gap: 20px; justify-content: center; font-size: 16px; line-height: 1.5; }
.footer-legal { display: flex; align-items: center; gap: 10px; }
.footer-legal small { font-size: 16px; }
.footer-legal__links { display: flex; gap: 23px; font-size: 14px; }
.footer-legal__links .grp { display: flex; gap: 23px; }
.sp-only { display: none; }

/* ---------- Back button（SPOT一覧に戻る） ---------- */
.back-btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--c-white); border-radius: 20px;
  padding: 6px 20px 6px 10px;
  color: var(--c-white);
  font: 700 20px/1.2 var(--font);
  transition: background .15s;
}
.back-btn img { width: 24px; height: 24px; }
.back-btn:hover { background: rgba(255,255,255,.15); }

/* ---------- 作成方法ページ ---------- */
.howto-top { margin-top: 30px; }
.howto-hero {
  position: relative;
  height: 316px;
  margin-top: 20px;
}
.howto-hero h1 { margin: 0; }
.howto-hero__title {
  display: block;
  width: 492px; height: auto;
  margin: 0 auto;
}
.howto-badge {
  position: absolute; top: 35px;
  display: flex; align-items: center; justify-content: center;
  width: 191px; height: 191px;
  border: 3px solid var(--c-white); border-radius: 50%;
  background: #fad348; color: #006197;
  font-weight: 700; line-height: 1.2; text-align: center;
  margin: 0;
}
.howto-badge--left { left: 136px; font-size: 22px; }
.howto-badge--right { right: 136px; font-size: 32px; }

.howto-card {
  position: relative; z-index: 1;     /* タイトル画像の下端に重ねる */
  margin-top: -54px;
  background: var(--c-white);
  border-radius: 30px;
  padding: 70px 16px;
}
.howto-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 362px);
  justify-content: center;
  gap: 60px 70px;
}
.howto-steps li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; }
.howto-step { display: flex; flex-direction: column; gap: 42px; width: 362px; }
.howto-step__img { width: 100%; height: auto; aspect-ratio: 1; }
.howto-step__body { display: flex; align-items: center; gap: 15px; }
.howto-step__num {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--c-green); color: var(--c-white);
  font: 700 48px/1 var(--font);
}
.howto-step__text { flex: 1; margin: 0; color: #000; font-size: 16px; line-height: 1.45; }
.howto-bottom { margin-top: 50px; }

.app-dl { display: none; text-align: center; }
.app-dl__title { margin: 0 0 23px; color: var(--c-white); font: 700 20px/1.2 var(--font); }
.app-dl__badges { display: flex; justify-content: center; gap: 8px; }
.app-dl__badges { align-items: center; }
.app-dl__badges img { width: auto; height: 46px; } /* バッジは言語ごとに縦横比が違うため高さで揃える */

/* ---------- Static pages ---------- */
.page { background: var(--c-white); border-radius: 10px; padding: 48px; margin: 30px auto 0; max-width: 880px; }
.page h1 { color: var(--c-pink-title); font-size: 26px; margin: 0 0 24px; }
.page h2 { color: var(--c-green); font-size: 20px; margin: 40px 0 12px; }
.page p, .page li { line-height: 1.8; }
.page .placeholder-box {
  border: 2px dashed #c9d9da; border-radius: 8px; color: var(--c-text-2);
  padding: 40px; text-align: center; margin: 16px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .spot-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1180px) {
  .howto-badge--left { left: 0; }
  .howto-badge--right { right: 0; }
}
@media (max-width: 820px) {
  .spot-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .featured .spot-grid { row-gap: 16px; }
  .site-header { flex-direction: column; align-items: flex-start; padding-top: 24px; }
  .header-tools { width: 100%; gap: 12px; }
  .search { flex: 1; width: auto; }
  .tag-filter { margin-top: 28px; }
  .about { padding: 20px; }
  .about__title { margin-right: 0; }
  .about__text { margin-right: 96px; font-size: 14px; }
  .about__chara { width: 80px; right: 12px; top: 56px; }
  .about__actions { flex-direction: column; gap: 12px; }
  .btn-pink { font-size: 17px; }
  .card__title { font-size: 16px; margin-top: 12px; }
  .card__tags { gap: 6px; margin-top: 12px; }
  .card__tag { padding: 4px 12px; font-size: 13px; }
  .f-card { padding: 10px; }
  .f-card__box { font-size: 13px; padding: 8px; }
  .page { padding: 28px 20px; }

  /* フッター（SP：縦積み） */
  .site-footer { padding-top: 100px; }
  .footer-top { flex-direction: column-reverse; gap: 35px; }
  .footer-links { flex-direction: column; gap: 0; }
  .footer-legal { flex-direction: column; gap: 35px; }
  .footer-legal__links { flex-direction: column; align-items: center; gap: 10px; }
  .pc-only { display: none; }
  .sp-only { display: inline; }
  .footer-links .u { text-decoration: underline; }

  /* 作成方法（SP） */
  .site-header--center { align-items: center; padding-top: 70px; }
  .howto-top { display: none; }
  .howto-badge { display: none; }
  .howto-hero { height: auto; margin-top: 23px; }
  .howto-hero__title { width: 374px; max-width: 100%; }
  .howto-card { margin: -33px -6px 0; padding: 25px 0; }
  .howto-steps { grid-template-columns: minmax(0, 362px); row-gap: 40px; }
  .howto-step { width: 100%; }
  .howto-bottom { margin-top: 40px; text-align: center; }
  .app-dl { display: block; margin-top: 71px; }
  .howto-page .site-footer { padding-top: 102px; }
}
/* 作成方法ページ：戻るボタン〜フッターの間隔（PC 50px） */
@media (min-width: 821px) {
  .howto-page .site-footer { padding-top: 50px; }
}

/* ---------- 言語切替（JA / EN） ---------- */
a.lang { transition: background .15s; }
a.lang:hover { background: #d4d4d4; }
a.lang:focus-visible { outline: 2px solid var(--c-pink); outline-offset: 2px; }

/* 英語ページ：黄色い丸の文字量に合わせてサイズ調整 */
html[lang="en"] .howto-badge--left { font-size: 19px; }
html[lang="en"] .howto-badge--right { font-size: 24px; }

/* ---------- SPOTを作成してみる ---------- */
.create {
  display: flex; align-items: center; justify-content: space-between; gap: 62px;
  margin-top: 30px;
}
.create-card {
  flex: 0 1 953px;
  background: var(--c-white);
  border-radius: 30px;
  padding: 80px clamp(30px, 9vw, 129px) 80px clamp(30px, 9vw, 130px);
}
.create-card__title {
  margin: 0 0 39px;
  color: var(--c-pink);
  font: 700 36px/1.2 var(--font);
}
.create-card__body { display: flex; gap: 50px; }
.create-card__main { flex: 1; max-width: 395px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.create-card__text { margin: 0; color: #000; font-size: 16px; line-height: 1.5; }
.create-card__badges { display: flex; gap: 38px; align-items: center; }
.create-card__badges img { width: auto; height: 62px; }
.create-card__links { display: none; list-style: none; margin: 0; padding: 0; }
.create-card__qr { flex: none; width: 249px; height: 249px; }
.create-card__qr img { width: 100%; height: 100%; }
.create-chara { flex: none; width: 191px; height: auto; }

@media (max-width: 1100px) {
  .create { justify-content: center; }
  .create-chara { display: none; }
}
@media (max-width: 820px) {
  .create { flex-direction: column; gap: 30px; margin-top: 23px; }
  .create-card { flex: none; width: auto; align-self: stretch; margin: 0 -6px; padding: 30px; }
  .create-card__title { font-size: 30px; margin-bottom: 19px; }
  .create-card__body { display: block; }
  .create-card__main { max-width: none; }
  .create-card__badges, .create-card__qr { display: none; }
  .create-card__links { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; width: max-content; margin: 0 auto; }
  .create-card__links a { display: flex; align-items: center; gap: 14px; color: #006197; font: 500 20px/1.5 var(--font); }
  .create-card__links img { width: 18px; height: 22px; }
  .create-chara { display: block; width: 159px; }
}
