:root {
  --color-blue: #62d2d0;
  --color-blue-deep: #31b4b4;
  --color-blue-soft: #dff8f7;
  --color-cream: #fffaf0;
  --color-yellow: #ffe985;
  --color-yellow-soft: #fff4bc;
  --color-pink: #ffdbe6;
  --color-pink-deep: #ff9eba;
  --color-brown: #6b3a00;
  --color-ink: #3f352c;
  --color-muted: #766a61;
  --color-white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(56, 151, 151, 0.16);
  --shadow-card: 0 14px 34px rgba(84, 104, 104, 0.12);
  --radius-large: 30px;
  --radius-medium: 22px;
  --radius-small: 14px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.8;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 233, 133, 0.24) 0 110px, transparent 112px),
    radial-gradient(circle at 88% 38%, rgba(255, 219, 230, 0.34) 0 130px, transparent 132px),
    linear-gradient(180deg, #f9ffff 0%, #fffdf7 46%, #f3ffff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 4px;
}

/* 画面には出さず、スクリーンリーダーには伝えるための共通クラスです。 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ヘッダーは常に上部へ置き、公式サイトらしい安心感を出します。 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(49, 180, 180, 0.14);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(100% - 40px, var(--max-width));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-brown);
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--color-white);
  background: var(--color-blue-deep);
  border: 4px solid var(--color-white);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(49, 180, 180, 0.25);
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-brown);
  font-size: 0.95rem;
  font-weight: 700;
}

.global-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.global-nav a:hover {
  color: #175f60;
  background: var(--color-blue-soft);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-blue-soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-brown);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* セクション共通の余白です。大きめの余白で、やさしい世界観を作ります。 */
.section {
  padding: 92px 0;
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.section-heading-left {
  text-align: left;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 34px;
  margin-bottom: 8px;
  padding: 5px 16px;
  color: #187676;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  background: var(--color-blue-soft);
  border-radius: 999px;
}

.section h2 {
  margin: 0;
  color: var(--color-brown);
  font-size: 2.2rem;
  line-height: 1.35;
}

/* ファーストビューは水色を広く使い、最初に世界観が伝わる構成にしています。 */
.hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 70px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 40%),
    var(--color-blue);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 58px;
  background: var(--color-cream);
  clip-path: ellipse(72% 72% at 50% 100%);
  z-index: -1;
}

.hero-inner {
  width: min(100% - 40px, 930px);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-title-image {
  width: min(620px, 86vw);
  margin-bottom: 18px;
  filter: drop-shadow(0 14px 20px rgba(23, 109, 109, 0.16));
}

.hero-lead {
  max-width: 760px;
  margin: 0 0 26px;
  color: var(--color-white);
  font-size: 1.18rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(24, 118, 118, 0.2);
}

.hero-visual {
  width: min(760px, 100%);
  display: grid;
  place-items: center;
  margin-top: 4px;
}

.hero-visual img {
  width: min(680px, 100%);
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(82, 92, 92, 0.12));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: var(--color-white);
  background: var(--color-brown);
  box-shadow: 0 12px 26px rgba(107, 58, 0, 0.22);
}

.button-primary:hover {
  background: #7e4707;
  box-shadow: 0 16px 30px rgba(107, 58, 0, 0.28);
}

.button-secondary {
  color: var(--color-brown);
  background: var(--color-white);
  box-shadow: 0 12px 26px rgba(42, 111, 111, 0.16);
}

.button-secondary:hover {
  background: var(--color-yellow-soft);
}

/* おにぎり装飾は実画像を使い、主役を邪魔しない透明度で散らしています。 */
.section-with-rice {
  position: relative;
  overflow: hidden;
}

.rice-decoration {
  position: absolute;
  width: 74px;
  height: 66px;
  display: block;
  background: url("assets/onigiri.png") center / contain no-repeat;
  filter: drop-shadow(0 12px 18px rgba(49, 180, 180, 0.12));
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

.rice-decoration-hero-1 {
  top: 78px;
  left: 5%;
  transform: rotate(-18deg);
}

.rice-decoration-hero-2 {
  right: 8%;
  bottom: 132px;
  transform: scale(0.86) rotate(22deg);
}

.rice-decoration-hero-3 {
  top: 44%;
  left: 87%;
  transform: scale(0.58) rotate(-32deg);
}

.rice-decoration-hero-4 {
  left: 17%;
  bottom: 86px;
  transform: scale(0.5) rotate(36deg);
}

.rice-decoration-hero-5 {
  top: 18%;
  right: 23%;
  transform: scale(0.42) rotate(-8deg);
  opacity: 0.3;
}

.rice-decoration-news-1 {
  top: 74px;
  left: 7%;
  transform: scale(0.56) rotate(28deg);
}

.rice-decoration-news-2 {
  right: 6%;
  bottom: 44px;
  transform: scale(0.74) rotate(-24deg);
}

.rice-decoration-section-1 {
  top: 84px;
  left: 4%;
  transform: scale(0.7) rotate(14deg);
}

.rice-decoration-section-2 {
  right: 7%;
  bottom: 70px;
  transform: scale(0.86) rotate(-18deg);
}

.rice-decoration-section-3 {
  right: 17%;
  top: 34px;
  transform: scale(0.48) rotate(38deg);
  opacity: 0.3;
}

.rice-decoration-contents-1 {
  left: 9%;
  bottom: 36px;
  transform: scale(0.54) rotate(-34deg);
}

.rice-decoration-contents-2 {
  top: 62px;
  right: 11%;
  transform: scale(0.66) rotate(18deg);
}

.rice-decoration-contact-1 {
  top: 52px;
  left: 10%;
  transform: scale(0.62) rotate(24deg);
}

.rice-decoration-contact-2 {
  right: 12%;
  bottom: 40px;
  transform: scale(0.52) rotate(-28deg);
}

.news-section {
  background: var(--color-cream);
}

.card-grid,
.news-grid,
.character-grid {
  display: grid;
  gap: 22px;
}

.news-grid {
  grid-template-columns: repeat(3, 1fr);
}

.info-card,
.character-card,
.contact-card {
  background: var(--color-white);
  border: 1px solid rgba(49, 180, 180, 0.12);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
}

.info-card {
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #176d6d;
  font-size: 0.86rem;
  font-weight: 900;
  background: var(--color-blue-soft);
  border-radius: 50%;
}

.card-icon-pink {
  color: #9a405a;
  background: var(--color-pink);
}

.card-icon-yellow {
  color: #785300;
  background: var(--color-yellow-soft);
}

.info-card h3,
.character-card h3 {
  margin: 0;
  color: var(--color-brown);
  line-height: 1.45;
}

.info-card p,
.character-card p {
  color: var(--color-muted);
}

.info-card p {
  margin: 12px 0 22px;
}

.news-card {
  overflow: hidden;
  padding: 0;
}

.news-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #eefafa 100%);
  border-bottom: 1px solid rgba(49, 180, 180, 0.1);
}

.news-image {
  width: 100%;
  height: 100%;
  padding: 14px;
  object-fit: contain;
}

.news-image-missing {
  padding: 24px;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

.news-card-body {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.4;
}

.news-category {
  padding: 4px 10px;
  color: #176d6d;
  background: var(--color-blue-soft);
  border-radius: 999px;
}

.news-card h3 {
  margin: 0;
  color: var(--color-brown);
  line-height: 1.45;
}

.news-card p {
  margin: 12px 0 22px;
  color: var(--color-muted);
}

.news-loading,
.news-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  color: var(--color-muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(49, 180, 180, 0.12);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
}

.small-button {
  margin-top: auto;
  padding: 8px 16px;
  color: #176d6d;
  font-size: 0.9rem;
  font-weight: 800;
  background: var(--color-blue-soft);
  border-radius: 999px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.small-button:hover {
  background: var(--color-yellow-soft);
  transform: translateY(-2px);
}

.characters-section {
  background:
    linear-gradient(180deg, #fffaf0 0%, #f6ffff 100%);
}

.character-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(4, 1fr);
}

.character-card {
  padding: 24px 22px 26px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.character-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(84, 104, 104, 0.16);
}

.character-avatar {
  width: 150px;
  height: 150px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--color-blue-soft);
  border: 8px solid var(--color-white);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(49, 180, 180, 0.08), 0 12px 24px rgba(49, 180, 180, 0.13);
}

.character-avatar-yellow {
  background: var(--color-yellow-soft);
}

.character-avatar-pink {
  background: var(--color-pink);
}

.character-avatar-cream {
  background: #fff7e3;
}

.character-avatar img {
  width: 116%;
  height: 116%;
  object-fit: contain;
}

.character-card p {
  margin: 10px 0 0;
  font-size: 0.95rem;
}

.contents-section {
  background: var(--color-white);
}

.content-link-grid {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.content-link {
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  color: var(--color-brown);
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #f0ffff 100%);
  border: 1px solid rgba(49, 180, 180, 0.14);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.content-link:hover {
  transform: translateY(-4px);
  border-color: rgba(49, 180, 180, 0.34);
  box-shadow: 0 18px 38px rgba(84, 104, 104, 0.16);
}

.content-link span {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #176d6d;
  font-size: 0.82rem;
  font-weight: 900;
  background: var(--color-blue-soft);
  border: 4px solid var(--color-white);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(49, 180, 180, 0.14);
}

.content-link:nth-child(2n) span {
  color: #9a405a;
  background: var(--color-pink);
}

.content-link:nth-child(3n) span {
  color: #785300;
  background: var(--color-yellow-soft);
}

.instagram-embed-area {
  max-width: 560px;
  margin: 28px auto 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8ffff 100%);
  border: 1px solid rgba(49, 180, 180, 0.14);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
}

.instagram-profile-embed {
  width: min(100%, 540px) !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.instagram-profile-embed a {
  color: #176d6d;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.instagram-fallback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 16px;
  padding: 10px 20px;
  color: #176d6d;
  font-weight: 900;
  background: var(--color-blue-soft);
  border-radius: 999px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.instagram-fallback-button:hover {
  background: var(--color-yellow-soft);
  transform: translateY(-2px);
}

.sns-section {
  padding-top: 58px;
  background: linear-gradient(180deg, #ffffff 0%, #e9fbfa 100%);
}

.sns-inner {
  padding: 46px 24px 54px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(49, 180, 180, 0.12);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
}

.sns-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.sns-buttons a {
  min-width: 112px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: #176d6d;
  font-weight: 900;
  background: var(--color-white);
  border: 2px solid var(--color-blue-soft);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(49, 180, 180, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.sns-buttons a:hover {
  transform: translateY(-5px);
  background: var(--color-yellow-soft);
  box-shadow: 0 16px 30px rgba(49, 180, 180, 0.18);
}

.contact-section {
  background: var(--color-cream);
}

.contact-inner {
  max-width: 900px;
}

.contact-card {
  padding: 40px;
  text-align: center;
}

.contact-card p {
  max-width: 640px;
  margin: 0 auto 26px;
  color: var(--color-muted);
  font-size: 1.03rem;
}

.site-footer {
  color: var(--color-white);
  background: var(--color-blue-deep);
}

.footer-inner {
  width: min(100% - 40px, var(--max-width));
  min-height: 126px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
  font-weight: 800;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-nav a {
  opacity: 0.92;
}

.footer-nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* タブレット幅ではカード数を減らし、読みやすい密度に調整します。 */
@media (max-width: 980px) {
  .global-nav {
    font-size: 0.88rem;
  }

  .section {
    padding: 76px 0;
  }

  .news-grid,
  .character-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-link-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホではハンバーガーメニューに切り替え、タップしやすいサイズを保ちます。 */
@media (max-width: 760px) {
  body.nav-open {
    overflow: hidden;
  }

  .header-inner {
    width: min(100% - 28px, var(--max-width));
    min-height: 66px;
  }

  .site-logo {
    font-size: 0.95rem;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .menu-toggle {
    display: block;
  }

  .global-nav {
    position: fixed;
    top: 66px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 4px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(49, 180, 180, 0.16);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  .global-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .global-nav a {
    padding: 13px 14px;
  }

  .section-inner,
  .hero-inner,
  .footer-inner {
    width: min(100% - 28px, var(--max-width));
  }

  .section {
    padding: 64px 0;
  }

  .section h2 {
    font-size: 1.72rem;
  }

  .hero {
    padding: 46px 0 68px;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-visual {
    margin-top: 0;
  }

  .hero-visual img {
    max-height: 320px;
  }

  .news-grid,
  .character-grid,
  .content-link-grid {
    grid-template-columns: 1fr;
  }

  .content-link {
    min-height: 92px;
  }

  .contact-card {
    padding: 24px;
    border-radius: 24px;
  }

  .footer-inner {
    padding: 30px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .instagram-embed-area {
    padding: 18px;
  }

  .sns-buttons {
    display: grid;
    width: 100%;
  }

  .button,
  .sns-buttons a {
    width: 100%;
  }

  .hero-title-image {
    width: 92vw;
  }

  .character-avatar {
    width: 132px;
    height: 132px;
  }

  .rice-decoration {
    opacity: 0.4;
  }
}

/* 動きを抑えたい設定のユーザーには、アニメーションを最小限にします。 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
