/* =========================================================
   この場所を、なくしたくない。｜あるふぁ
   style.css v1.0
   水彩風 / 水色＋白 / スマホファースト
========================================================= */

/* ------------------------------
   01. 変数
------------------------------ */
:root {
  --color-main: #7ecfe6;
  --color-main-dark: #45aac6;
  --color-main-soft: #dff7fb;
  --color-main-pale: #f4fcfe;
  --color-accent: #8fe0ee;

  --color-text: #35525c;
  --color-heading: #247996;
  --color-muted: #6d8790;
  --color-white: #ffffff;

  --color-border: rgba(126, 207, 230, 0.34);
  --color-glass: rgba(255, 255, 255, 0.76);

  --shadow-soft: 0 12px 35px rgba(91, 166, 190, 0.18);
  --shadow-card: 0 8px 24px rgba(91, 166, 190, 0.13);
  --shadow-strong: 0 20px 60px rgba(54, 142, 168, 0.22);

  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  --header-height: 72px;
  --container-width: 1080px;

  --ease-main: cubic-bezier(.2, .8, .2, 1);
}

/* ------------------------------
   02. リセット・基本
------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family:
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    system-ui,
    sans-serif;
  line-height: 1.9;
  background:
    radial-gradient(circle at 12% 8%, rgba(126, 207, 230, 0.22), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(206, 241, 249, 0.55), transparent 30%),
    linear-gradient(180deg, #f8fdff 0%, #ffffff 45%, #f2fbfd 100%);
  overflow-x: hidden;
}

body.is-lightbox-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button,
.btn {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(69, 170, 198, 0.45);
  outline-offset: 4px;
}

/* ------------------------------
   03. 共通レイアウト
------------------------------ */
.container {
  width: min(100% - 32px, var(--container-width));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 72px 0;
}

.section::before {
  content: "";
  position: absolute;
  inset: 20px 12px auto;
  height: 120px;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(126, 207, 230, 0.12), transparent 60%);
  filter: blur(12px);
  z-index: -1;
}

.section .container {
  position: relative;
}

#intro-section .container,
#message-section .container,
#support-section .container,
#ehon-section .container,
#letter-section .container,
#movie-section .container,
#faq-section .container,
#download-section .container,
#banner-section .container {
  padding: 30px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.72));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

/* ------------------------------
   04. タイポグラフィ
------------------------------ */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--color-heading);
  line-height: 1.32;
  letter-spacing: 0.04em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 7vw, 2.45rem);
  text-align: center;
}

.section-label {
  width: fit-content;
  margin: 0 auto 8px;
  padding: 3px 13px;
  border-radius: var(--radius-pill);
  color: #34869b;
  background: rgba(223, 247, 251, 0.95);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-description {
  max-width: 720px;
  margin: 0 auto 24px;
  color: var(--color-muted);
  text-align: center;
}

.section p {
  font-size: 1rem;
}

/* ------------------------------
   05. ボタン
------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  line-height: 1.4;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.22s var(--ease-main),
    box-shadow 0.22s var(--ease-main),
    background 0.22s var(--ease-main),
    opacity 0.22s var(--ease-main);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(91, 166, 190, 0.24);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-primary {
  color: var(--color-white);
  background: linear-gradient(135deg, #57c3df, #8fe0ee);
}

.btn-secondary {
  color: #397d92;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

/* ------------------------------
   06. 固定ナビ
------------------------------ */
#header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(126, 207, 230, 0.25);
  backdrop-filter: blur(16px);
}

.navbar {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: min(100% - 12px, 720px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 18px;
  color: #427889;
  font-size: 1.1rem;
  line-height: 1.15;
  transition:
    background 0.24s var(--ease-main),
    transform 0.24s var(--ease-main),
    color 0.24s var(--ease-main);
}

.nav-item span {
  margin-top: 3px;
  font-size: 0.73rem;
  font-weight: 800;
}

.nav-item:hover,
.nav-item:focus-visible {
  color: #2381a0;
  background: rgba(126, 207, 230, 0.14);
  transform: translateY(-2px);
}

.nav-item.support {
  color: #2381a0;
  background: rgba(126, 207, 230, 0.13);
}

/* ------------------------------
   07. ヒーロー
------------------------------ */
.hero-section {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 72px 18px 56px;
  overflow: hidden;
  isolation: isolate;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(242, 251, 253, 0.92)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.18), rgba(126, 207, 230, 0.15));
  z-index: -1;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 1.25s ease,
    transform 6.5s ease;
}

.hero-img.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  width: min(100%, 860px);
  margin-inline: auto;
  padding: 34px 20px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-xl);
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.hero-kicker {
  width: fit-content;
  margin: 0 auto 14px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  color: #327f94;
  background: rgba(223, 247, 251, 0.95);
  font-size: 0.83rem;
  font-weight: 900;
}

.hero-content h1 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 12vw, 4.8rem);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.75);
}

.hero-lead {
  margin-bottom: 26px;
  color: #315966;
  font-size: clamp(1rem, 4.4vw, 1.35rem);
  font-weight: 800;
}

.hero-buttons {
  display: grid;
  gap: 12px;
}

.scroll-down {
  display: inline-grid;
  place-items: center;
  margin-top: 28px;
  width: 44px;
  height: 44px;
  color: #389bb9;
  font-size: 2rem;
  line-height: 1;
  animation: floatArrow 1.65s ease-in-out infinite;
}

@keyframes floatArrow {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

/* ------------------------------
   08. あるふぁについて
------------------------------ */
.about-section .container {
  text-align: center;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0 26px;
}

.about-card {
  position: relative;
  overflow: hidden;
  padding: 24px 18px;
  border: 1px solid rgba(126, 207, 230, 0.36);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(126, 207, 230, 0.20), transparent 36%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 26px rgba(91, 166, 190, 0.14);
}

.about-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(126, 207, 230, 0.12);
}

.about-icon {
  margin-bottom: 8px;
  font-size: 2.1rem;
  line-height: 1;
}

.about-label {
  margin-bottom: 4px;
  color: #4f8798;
  font-size: 0.95rem;
  font-weight: 900;
}

.about-number {
  margin-bottom: 0;
  color: var(--color-heading);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.25;
}

.area-card {
  text-align: center;
}

.area-list {
  color: #35525c;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.8;
}

.area-list p {
  margin: 0 0 4px;
}

.area-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-list li {
  display: inline-block;
  margin: 4px 3px 0;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: #347a90;
  background: rgba(223, 247, 251, 0.95);
  font-size: 0.88rem;
}

.about-text {
  max-width: 760px;
  margin: 0 auto;
  color: #466975;
  text-align: left;
}
/* ------------------------------
   09. 画像カルーセル
------------------------------ */
.image-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  width: min(100%, 760px);
  margin: 0 auto 14px;
}

.carousel-image {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  border-radius: 24px;
  border: 1px solid rgba(126, 207, 230, 0.28);
  background: var(--color-white);
  box-shadow: 0 12px 30px rgba(91, 166, 190, 0.18);
  cursor: zoom-in;
  user-select: none;
  transition:
    opacity 0.22s var(--ease-main),
    transform 0.22s var(--ease-main),
    box-shadow 0.22s var(--ease-main);
}

.carousel-image:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 40px rgba(91, 166, 190, 0.25);
}

.carousel-image.is-changing {
  opacity: 0.35;
  transform: scale(0.985);
}

.carousel-nav {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: var(--color-white);
  background: linear-gradient(135deg, #6dccdf, #98e4ee);
  box-shadow: var(--shadow-card);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  display: grid;
  place-items: center;
  transition:
    transform 0.2s var(--ease-main),
    box-shadow 0.2s var(--ease-main),
    opacity 0.2s var(--ease-main);
}

.carousel-nav:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 14px 28px rgba(91, 166, 190, 0.26);
}

.carousel-nav:active {
  transform: scale(0.96);
}

.carousel-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-top: 4px;
}

.carousel-status span {
  min-width: 78px;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  color: #347a90;
  background: rgba(223, 247, 251, 0.9);
  font-weight: 900;
  text-align: center;
}

.carousel-hint {
  max-width: 680px;
  margin: 14px auto 0;
  color: #6d8790;
  font-size: 0.88rem;
  text-align: center;
}

/* ------------------------------
   10. 動画
------------------------------ */
.video-wrapper {
  position: relative;
  width: min(100%, 820px);
  margin: 0 auto 20px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at center, rgba(126, 207, 230, 0.25), rgba(255, 255, 255, 0.8)),
    #dff7fb;
  box-shadow: var(--shadow-soft);
}

#youtube-thumbnail,
#youtube-player,
#youtube-player iframe {
  width: 100%;
  height: 100%;
}

#youtube-thumbnail {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

#youtube-thumbnail::before {
  content: "▶";
  position: absolute;
  inset: 0;
  width: 84px;
  height: 84px;
  margin: auto;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  color: var(--color-white);
  font-size: 2rem;
  background: rgba(126, 207, 230, 0.82);
  box-shadow: 0 12px 28px rgba(54, 142, 168, 0.28);
  transition:
    transform 0.25s var(--ease-main),
    background 0.25s var(--ease-main);
}

#youtube-thumbnail:hover::before {
  transform: scale(1.08);
  background: rgba(69, 170, 198, 0.88);
}

#youtube-player {
  position: relative;
  z-index: 1;
}

/* ------------------------------
   11. 想い
------------------------------ */
.message-section .container,
.support-section .container,
.download-section .container {
  text-align: center;
}

.message-section p,
.support-section p,
.download-section p {
  margin-bottom: 0;
}

.message-section .container {
  background:
    radial-gradient(circle at 12% 12%, rgba(126, 207, 230, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.72));
}

/* ------------------------------
   12. FAQ
------------------------------ */
#faq-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 18px rgba(91, 166, 190, 0.08);
}

.faq-question {
  position: relative;
  width: 100%;
  padding: 18px 50px 18px 18px;
  border: 0;
  color: #2f788c;
  background: transparent;
  font-size: 1rem;
  font-weight: 900;
  text-align: left;
}

.faq-question::after {
  content: "＋";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-white);
  background: linear-gradient(135deg, #6dccdf, #98e4ee);
  transform: translateY(-50%);
  font-size: 1rem;
  line-height: 1;
  transition:
    transform 0.25s var(--ease-main),
    background 0.25s var(--ease-main);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  color: var(--color-muted);
  transition:
    max-height 0.28s var(--ease-main),
    padding 0.28s var(--ease-main);
}

.faq-answer p {
  margin: 0;
}

.faq-item.is-open .faq-question::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.faq-item.is-open .faq-answer {
  max-height: 240px;
  padding: 0 18px 18px;
}

/* ------------------------------
   13. 応援・ダウンロード
------------------------------ */
#support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 52px;
  margin: 26px auto 0;
  padding: 15px 28px;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--color-white);
  background: linear-gradient(135deg, #5fc6df, #9ae6ef);
  font-size: 1rem;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.24s var(--ease-main),
    box-shadow 0.24s var(--ease-main),
    opacity 0.24s var(--ease-main);
}

#support-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(91, 166, 190, 0.26);
}

#support-button:active {
  transform: translateY(-1px) scale(0.98);
}

.download-buttons {
  display: grid;
  gap: 12px;
  width: min(100%, 520px);
  margin: 26px auto 0;
}

.download-section .container {
  background:
    radial-gradient(circle at 82% 14%, rgba(126, 207, 230, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.72));
}

/* ------------------------------
   14. バナーリンク
------------------------------ */
.banner-section .container {
  text-align: center;
  background:
    radial-gradient(circle at 16% 18%, rgba(126, 207, 230, 0.16), transparent 34%),
    radial-gradient(circle at 82% 82%, rgba(143, 224, 238, 0.15), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.74));
}

.banner-links {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.site-banner {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 22px 24px;
  border-radius: 26px;
  border: 1px solid rgba(126, 207, 230, 0.34);
  color: #2f788c;
  background:
    radial-gradient(circle at 14% 20%, rgba(255,255,255,.92), transparent 36%),
    linear-gradient(135deg, rgba(223,247,251,.96), rgba(255,255,255,.92));
  box-shadow: var(--shadow-card);
  text-align: left;
  transition:
    transform 0.24s var(--ease-main),
    box-shadow 0.24s var(--ease-main);
}

.site-banner::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -36px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(126, 207, 230, 0.18);
}

.site-banner::after {
  content: "→";
  position: absolute;
  right: 24px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-white);
  background: linear-gradient(135deg, #6dccdf, #98e4ee);
  font-weight: 900;
}

.site-banner span {
  position: relative;
  color: #5b93a4;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-banner strong {
  position: relative;
  padding-right: 44px;
  color: #247996;
  font-size: clamp(1.05rem, 4.4vw, 1.35rem);
  line-height: 1.45;
}

.site-banner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.instagram-banner {
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.95), transparent 34%),
    linear-gradient(135deg, #fff7fb, #e5f9fd 72%);
}

.homepage-banner {
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.95), transparent 34%),
    linear-gradient(135deg, #f2fbfd, #ffffff 72%);
}
/* ------------------------------
   15. フッター
------------------------------ */

.footer-section {
  padding: 56px 0 96px;
  text-align: center;
  color: #4d7480;
  background:
    linear-gradient(
      180deg,
      rgba(242,251,253,0),
      rgba(223,247,251,.85)
    );
}

.footer-name{
  font-size:1.25rem;
  font-weight:900;
  color:#247996;
  margin-bottom:8px;
}

.footer-section p{
  margin:6px 0;
}

.footer-section a{
  color:#2f788c;
  font-weight:700;
}

.footer-section a:hover{
  text-decoration:underline;
}


/* ------------------------------
   16. Lightbox
------------------------------ */

.lightbox{
  position:fixed;
  inset:0;
  z-index:9999;

  display:none;
  align-items:center;
  justify-content:center;

  padding:72px 18px 32px;

  background:rgba(22,42,54,.82);
  backdrop-filter:blur(10px);

  opacity:0;
  transition:.25s;
}

.lightbox.is-open{
  display:flex;
  opacity:1;
}

#lightbox-image{

  max-width:min(96vw,1100px);
  max-height:86vh;

  border-radius:22px;

  background:#fff;

  box-shadow:
  0 22px 70px rgba(0,0,0,.35);

  animation:zoomIn .25s ease;
}

@keyframes zoomIn{

  from{

    transform:scale(.92);

    opacity:0;

  }

  to{

    transform:scale(1);

    opacity:1;

  }

}


.lightbox-close,
.lightbox-nav{

  position:absolute;

  border:0;

  border-radius:999px;

  color:#347a90;

  background:rgba(255,255,255,.93);

  cursor:pointer;

  box-shadow:
  0 10px 30px rgba(0,0,0,.25);

  transition:.2s;

}

.lightbox-close{

  top:18px;
  right:18px;

  width:48px;
  height:48px;

  font-size:2rem;

}

.lightbox-close:hover{

  transform:rotate(90deg);

}

.lightbox-nav{

  top:50%;

  transform:translateY(-50%);

  width:56px;
  height:56px;

  font-size:2.5rem;

}

.lightbox-prev{

  left:18px;

}

.lightbox-next{

  right:18px;

}

.lightbox-nav:hover{

  transform:
  translateY(-50%)
  scale(1.08);

}



/* ------------------------------
   17. Toast
------------------------------ */

.toast{

  position:fixed;

  left:50%;
  bottom:24px;

  z-index:10000;

  width:min(calc(100% - 32px),520px);

  padding:14px 20px;

  border-radius:18px;

  color:#2f788c;

  background:
  rgba(255,255,255,.95);

  border:1px solid var(--color-border);

  box-shadow:var(--shadow-soft);

  text-align:center;

  font-weight:800;

  opacity:0;

  pointer-events:none;

  transform:
  translate(-50%,20px);

  transition:.28s;

}

.toast.show{

  opacity:1;

  transform:
  translate(-50%,0);

}



/* ------------------------------
   18. Fade Animation
------------------------------ */

.fade-in{

  opacity:0;

  transform:
  translateY(28px);

  transition:

    opacity .8s ease,

    transform .8s ease;

}

.fade-in.is-visible{

  opacity:1;

  transform:
  translateY(0);

}



/* ------------------------------
   19. Hover Animation
------------------------------ */

.about-card,
.site-banner,
.btn,
.carousel-image{

  transition:
  transform .25s,
  box-shadow .25s;

}

.about-card:hover{

  transform:
  translateY(-6px);

  box-shadow:
  0 18px 40px rgba(91,166,190,.20);

}

.carousel-image:hover{

  transform:
  scale(1.01);

}

.btn:active{

  transform:
  scale(.98);

}



/* ------------------------------
   20. Scroll Down Animation
------------------------------ */

.scroll-down{

  animation:
  scrollFloat
  1.8s ease-in-out infinite;

}

@keyframes scrollFloat{

  0%{

    transform:
    translateY(0);

  }

  50%{

    transform:
    translateY(10px);

  }

  100%{

    transform:
    translateY(0);

  }

}



/* ------------------------------
   21. Respect Motion
------------------------------ */

@media (prefers-reduced-motion:reduce){

*{

animation:none!important;

transition:none!important;

scroll-behavior:auto!important;

}

}
/* ------------------------------
   22. PC・タブレット調整
------------------------------ */
@media (min-width: 640px) {
  .about-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .area-card {
    grid-column: span 2;
  }

  .download-buttons {
    grid-template-columns: repeat(2, 1fr);
    width: min(100%, 720px);
  }

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

@media (min-width: 720px) {
  .section {
    padding: 96px 0;
  }

  #intro-section .container,
  #message-section .container,
  #support-section .container,
  #ehon-section .container,
  #letter-section .container,
  #movie-section .container,
  #faq-section .container,
  #download-section .container,
  #banner-section .container {
    padding: 48px;
  }

  .hero-content {
    padding: 52px 44px;
  }

  .hero-buttons {
    width: fit-content;
    margin-inline: auto;
    grid-template-columns: repeat(4, auto);
  }

  .nav-item span {
    font-size: 0.82rem;
  }

  .image-carousel {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 18px;
  }

  .carousel-nav {
    width: 54px;
    height: 54px;
    font-size: 1.1rem;
  }

  .carousel-image {
    max-width: 680px;
  }
}

@media (min-width: 920px) {
  .about-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .area-card {
    grid-column: span 1;
  }

  .about-card {
    min-height: 190px;
  }

  .about-text {
    text-align: center;
  }

  .site-banner {
    min-height: 136px;
    padding: 28px 30px;
  }
}

/* ------------------------------
   23. スマホ調整
------------------------------ */
@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container-width));
  }

  .section {
    padding: 64px 0;
  }

  h2 {
    margin-bottom: 16px;
  }

  .section-description {
    margin-bottom: 20px;
    font-size: 0.95rem;
  }

  .nav-inner {
    width: min(100% - 8px, 720px);
    gap: 4px;
  }

  .nav-item {
    min-height: 50px;
    border-radius: 16px;
    font-size: 1rem;
  }

  .nav-item span {
    font-size: 0.68rem;
  }

  .hero-section {
    padding: 58px 14px 48px;
  }

  .hero-content {
    padding: 30px 16px;
    border-radius: 28px;
  }

  .hero-buttons {
    gap: 10px;
  }

  .btn {
    min-height: 46px;
    padding: 11px 16px;
    font-size: 0.94rem;
  }

  .image-carousel {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .carousel-image {
    border-radius: 20px;
  }

  .carousel-hint {
    font-size: 0.82rem;
  }

  .video-wrapper {
    border-radius: 20px;
  }

  #youtube-thumbnail::before {
    width: 68px;
    height: 68px;
    font-size: 1.65rem;
  }

  .download-buttons {
    width: min(100%, 420px);
  }

  .site-banner {
    min-height: 108px;
    padding: 20px 18px;
    border-radius: 22px;
  }

  .site-banner::after {
    right: 18px;
    bottom: 16px;
  }

  .footer-section {
    padding-bottom: 88px;
  }

  .lightbox {
    padding: 70px 8px 26px;
  }

  #lightbox-image {
    max-width: 94vw;
    max-height: 80vh;
    border-radius: 18px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 22px, var(--container-width));
  }

  #intro-section .container,
  #message-section .container,
  #support-section .container,
  #ehon-section .container,
  #letter-section .container,
  #movie-section .container,
  #faq-section .container,
  #download-section .container,
  #banner-section .container {
    padding: 26px 14px;
    border-radius: 24px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 13vw, 3.2rem);
  }

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

  .image-carousel {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 6px;
  }

  .carousel-nav {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  .carousel-status span {
    font-size: 0.9rem;
  }

  .faq-question {
    padding: 16px 46px 16px 14px;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding-inline: 14px;
  }

  .faq-item.is-open .faq-answer {
    padding: 0 14px 16px;
  }
}

@media (max-width: 360px) {
  .nav-item span {
    font-size: 0.62rem;
  }

  .hero-section {
    padding-inline: 10px;
  }

  .btn {
    font-size: 0.9rem;
  }
}

/* ------------------------------
   24. 印刷・安全対策
------------------------------ */
@media print {
  #header,
  .hero-buttons,
  .carousel-nav,
  .scroll-down,
  .toast,
  .lightbox {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    padding: 28px 0;
  }

  .container {
    width: 100%;
  }
}

/* ------------------------------
   25. 最終微調整
------------------------------ */
html {
  scroll-padding-top: calc(var(--header-height) + 12px);
}

main {
  overflow: hidden;
}

.carousel-image,
.hero-img,
#lightbox-image {
  -webkit-user-drag: none;
}

.image-carousel button,
.lightbox button,
#support-button {
  touch-action: manipulation;
}