:root {
  --bg: #e1dcd3; /* spillthebeans.png の背景色に合わせる */
  --ink: #332a20;
  --ink-soft: #5f5749;  /* 対 --bg で 5.2:1（WCAG AA）*/
  --bean: #85511f;      /* 対 --bg で 4.8:1（WCAG AA）*/
  --sea: #3a635e;       /* 対 --bg で 4.9:1（WCAG AA）*/
  --card: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Zen Maru Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* 言語切り替え：非表示側は描画前から消えているのでちらつかない */
html[lang="ja"] [data-l="en"],
html[lang="en"] [data-l="ja"] { display: none; }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

/* メインビジュアル（背景色が同じなのでそのまま溶け込ませる）*/
.logo {
  display: block;
  width: min(92vw, 640px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1200 / 725;
  margin: 1.6rem auto 0;
  animation: pop 0.9s ease both;
}

.about {
  margin-top: 2.8rem;
  max-width: 36em;
  font-size: clamp(0.88rem, 2.3vw, 1rem);
  letter-spacing: 0.08em;
  line-height: 2.1;
  animation: pop 0.9s 0.3s ease both;
}
.about p + p { margin-top: 1.1rem; }
.about-quote {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  letter-spacing: 0.08em;
  color: var(--bean);
}
.sp-br { display: none; }
@media (max-width: 600px) {
  .sp-br { display: inline; }
}

.tagline {
  margin-top: 2.2rem;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  letter-spacing: 0.35em;
  color: var(--ink-soft);
  animation: pop 0.9s 0.4s ease both;
}

.open-card {
  margin-top: 2.6rem;
  background: var(--card);
  border-radius: 28px;
  padding: 2rem 2.8rem;
  box-shadow: 0 10px 30px rgba(51, 42, 32, 0.08);
  animation: pop 0.9s 0.5s ease both;
}
.open-note {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 3.6vw, 1.7rem);
  letter-spacing: 0.1em;
}
.open-note strong { color: var(--bean); }

.section-title {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  letter-spacing: 0.4em;
  text-transform: lowercase;
  color: var(--bean);
  margin-bottom: 1.4rem;
}
.location {
  margin-top: 3.2rem;
  font-size: 0.92rem;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  line-height: 2;
  animation: pop 0.9s 0.7s ease both;
}
.location .sea-note { color: var(--sea); }
.location a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.25s;
}
.location a:hover { color: var(--ink); }

.map {
  width: min(100%, 560px);
  margin-top: 1.6rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(51, 42, 32, 0.1);
  animation: pop 0.9s 0.75s ease both;
}
.map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.insta {
  margin-top: 3.4rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: pop 0.9s 0.78s ease both;
}
.insta[hidden] { display: none; }
/* 投稿が1〜2件でも中央に収まるよう flex で組む */
.insta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: min(100%, 460px);
}
.insta-grid a {
  display: block;
  flex: 0 0 calc((100% - 20px) / 3);
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 6px 18px rgba(51, 42, 32, 0.1);
  transition: translate 0.25s, box-shadow 0.25s;
}
.insta-grid a:hover {
  translate: 0 -3px;
  box-shadow: 0 10px 24px rgba(51, 42, 32, 0.16);
}
.insta-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
/* いいね数・コメント数（写真の上に重ねず、下の白帯に置いて可読性を確保）*/
.insta-meta {
  display: flex;
  gap: 0.66rem;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.2rem;
  font-size: 0.7rem;
  line-height: 1;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.insta-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}
.insta-meta svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  flex: none;
}
/* 動画・複数枚投稿の目印 */
.insta-grid .badge {
  position: absolute;
  top: 7px;
  right: 8px;
  font-size: 0.72rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.sns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.2rem;
  animation: pop 0.9s 0.85s ease both;
}
.sns a {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  transition: background 0.25s, color 0.25s, translate 0.25s;
}
.sns a:hover {
  background: var(--ink);
  color: var(--bg);
  translate: 0 -2px;
}

footer {
  text-align: center;
  padding: 1.6rem;
  font-family: "Fredoka", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}
.lang-switch {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.9rem;
}
.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Fredoka", "Zen Maru Gothic", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  padding: 0.2rem 0.3rem;
  transition: color 0.25s;
}
.lang-switch button:hover { color: var(--ink); }
html[lang="ja"] .lang-switch button[data-lang="ja"],
html[lang="en"] .lang-switch button[data-lang="en"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .logo, .about, .tagline, .open-card,
  .insta, .location, .map, .sns { animation: none; }
}
