/* =========================================================
   おしゃべりジグ モイッチョ 公式HP
   公式配色A:
     クリーム: #FFF1E2
     濃紺:     #071B35
     銀灰:     #DCE5EF
     青:       #145BDF (モイッチョ専用アクセント)
     ピンク:   #FF637F (モイッチョ専用アクセント)
   ルール: 太い濃紺線 / フラット塗り / グラデーションなし
   ========================================================= */

:root {
  --cream: #FFF1E2;
  --navy: #071B35;
  --silver: #DCE5EF;
  --blue: #145BDF;
  --pink: #FF637F;
  --white: #FFFFFF;

  --border: 3px solid var(--navy);
  --shadow-navy: 0 6px 0 var(--navy);
  --shadow-cream: 0 6px 0 rgba(7, 27, 53, 0.35);
  --radius-card: 22px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--navy);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.pc-only {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--cream);
  padding-top: 24px;
  position: relative;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.official-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 2.5px solid var(--navy);
  border-radius: var(--radius-pill);
  background-color: var(--white);
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--blue);
  border: 2px solid var(--navy);
}

.badge-sep {
  opacity: 0.4;
}

.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.hero-character {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.moiccho-btn {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.moiccho-btn:focus-visible {
  outline: 3px dashed var(--blue);
  outline-offset: 8px;
  border-radius: 20px;
}

.speech-bubble {
  position: relative;
  display: inline-block;
  padding: 7px 18px;
  margin-bottom: 12px;
  background-color: var(--white);
  border: var(--border);
  border-radius: var(--radius-pill);
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--navy);
  box-shadow: 0 4px 0 var(--navy);
  transition: transform 0.14s ease;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background-color: var(--white);
  border-right: var(--border);
  border-bottom: var(--border);
}

.moiccho-img {
  width: 188px;
  height: auto;
  transition: transform 0.16s ease;
}

.moiccho-btn:hover .moiccho-img {
  transform: translateY(-4px);
}

.moiccho-btn.is-pop .moiccho-img {
  animation: moiccho-hop 0.32s ease;
}

.moiccho-btn.is-pop .speech-bubble {
  animation: bubble-pop 0.28s ease;
}

.tap-hint {
  margin-top: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.55;
  letter-spacing: 0.04em;
}

.hero-copy {
  max-width: 480px;
}

.hero-kicker {
  margin: 0 0 6px;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-title {
  margin: 0 0 14px;
  font-family: "M PLUS Rounded 1c", sans-serif;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.title-sub {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
}

.title-main {
  display: block;
  font-size: 2.7rem;
  font-weight: 900;
  margin-top: 2px;
}

.hero-lead {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.8;
}

/* ---------- Wave Dividers ---------- */
.wave-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 44px;
}

.wave-to-sea {
  background-color: var(--cream);
  margin-top: 12px;
}

.wave-to-land {
  background-color: var(--navy);
}

.wave-fill-sea {
  fill: var(--navy);
}

.wave-fill-land {
  fill: var(--cream);
}

.wave-line {
  fill: none;
  stroke: var(--silver);
  stroke-width: 4;
  stroke-linecap: round;
}

/* ---------- Sea Section (SNS) ---------- */
.section-sea {
  background-color: var(--navy);
  color: var(--cream);
  padding: 36px 0 64px;
  position: relative;
  overflow: hidden;
}

.swimming-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.swimmer {
  position: absolute;
  opacity: 0.22;
}

.swimmer-left {
  top: 28px;
  left: -20px;
  width: 150px;
  transform: scaleX(-1);
  animation: swim-float-left 7s ease-in-out infinite;
}

.swimmer-right {
  bottom: 24px;
  right: -16px;
  width: 145px;
  animation: swim-float-right 8s ease-in-out infinite;
}

.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-header-char {
  margin-top: 56px;
}

.section-en {
  margin: 0 0 4px;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--silver);
}

.section-land .section-en {
  color: var(--blue);
}

.section-title {
  margin: 0 0 8px;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.section-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--silver);
}

.section-desc strong {
  color: var(--cream);
}

/* SNS Cards */
.sns-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sns-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background-color: var(--cream);
  color: var(--navy);
  border: 3px solid var(--navy);
  border-radius: 18px;
  box-shadow: 0 5px 0 #020A16, 0 0 0 2px var(--silver);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.sns-card:hover {
  transform: translateY(-3px);
  background-color: var(--white);
  box-shadow: 0 8px 0 #020A16, 0 0 0 2.5px var(--cream);
}

.sns-card:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #020A16, 0 0 0 2px var(--silver);
}

.sns-card:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

.sns-card-featured {
  box-shadow: 0 6px 0 #020A16, 0 0 0 3px var(--blue);
}

.sns-card-featured:hover {
  box-shadow: 0 9px 0 #020A16, 0 0 0 3px var(--pink);
}

.sns-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: var(--navy);
  color: var(--cream);
  display: grid;
  place-items: center;
  border: 2.5px solid var(--navy);
  transition: background-color 0.14s ease, color 0.14s ease;
}

.sns-icon-yt {
  background-color: var(--blue);
  color: var(--white);
}

.sns-card:hover .sns-icon {
  background-color: var(--blue);
  color: var(--white);
}

.sns-card-featured:hover .sns-icon-yt {
  background-color: var(--pink);
  color: var(--white);
}

.sns-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sns-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sns-name {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.2;
}

.sns-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--silver);
  border: 2px solid var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

.sns-card-featured .sns-tag {
  background-color: var(--pink);
  color: var(--white);
}

.sns-handle {
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.72;
}

.sns-arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid var(--navy);
  background-color: var(--white);
  display: grid;
  place-items: center;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 900;
  font-size: 1rem;
  transition: transform 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}

.sns-card:hover .sns-arrow {
  transform: translateX(3px);
  background-color: var(--navy);
  color: var(--cream);
}

/* ---------- Land Section (About & Characters) ---------- */
.section-land {
  background-color: var(--cream);
  padding: 44px 0 56px;
}

.about-box {
  background-color: var(--white);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-navy);
  padding: 26px 22px;
  text-align: center;
}

.about-text {
  margin: 0 0 14px;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.85;
}

.about-text:last-of-type {
  margin-bottom: 20px;
}

.about-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.about-pills li {
  padding: 5px 14px;
  background-color: var(--cream);
  border: 2.5px solid var(--navy);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Characters */
.char-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.char-card {
  background-color: var(--white);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-navy);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.char-visual {
  width: 176px;
  height: 176px;
  border-radius: 20px;
  background-color: var(--cream);
  border: 2.5px solid var(--navy);
  display: grid;
  place-items: center;
  padding: 12px;
}

.char-visual img {
  max-height: 150px;
  width: auto;
  object-fit: contain;
}

.char-role {
  margin: 0 0 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
}

.char-name {
  margin: 0 0 8px;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
}

.char-desc {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.75;
}

.water-form-note {
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 14px;
  background-color: var(--navy);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.water-form-note img {
  width: 96px;
  height: auto;
}

/* ---------- Footer ---------- */
.wave-footer {
  margin-top: 0;
}

.footer {
  background-color: var(--navy);
  color: var(--cream);
  padding: 20px 0 44px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-jig {
  width: 96px;
  height: auto;
  margin-bottom: 4px;
}

.footer-title {
  margin: 0;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.footer-note {
  margin: 0;
  font-size: 0.76rem;
  color: var(--silver);
  opacity: 0.85;
}

.footer-copy {
  margin: 4px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.8;
}

/* ---------- 404 Page ---------- */
.notfound-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
  background-color: var(--cream);
}

.notfound-card {
  max-width: 440px;
  width: 100%;
  background-color: var(--white);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-navy);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 26px;
  background-color: var(--navy);
  color: var(--cream);
  border: var(--border);
  border-radius: var(--radius-pill);
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 800;
  box-shadow: 0 4px 0 var(--blue);
  transition: transform 0.14s ease;
}

.back-btn:hover {
  transform: translateY(-2px);
}

/* ---------- Animations ---------- */
@keyframes moiccho-hop {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-12px) scale(1.04); }
  70% { transform: translateY(2px) scale(0.98); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes bubble-pop {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes swim-float-left {
  0%, 100% { transform: scaleX(-1) translate(0, 0); }
  50% { transform: scaleX(-1) translate(-14px, 8px); }
}

@keyframes swim-float-right {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-14px, -8px); }
}

/* ---------- Responsive (Tablet / Desktop) ---------- */
@media (min-width: 680px) {
  .pc-only {
    display: inline;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-stage {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 44px;
    text-align: left;
    padding: 8px 0 6px;
  }

  .moiccho-img {
    width: 224px;
  }

  .title-sub {
    font-size: 1.8rem;
  }

  .title-main {
    font-size: 3.3rem;
  }

  .wave-divider svg {
    height: 60px;
  }

  .swimmer-left {
    left: 24px;
    width: 210px;
    opacity: 0.32;
  }

  .swimmer-right {
    right: 24px;
    width: 196px;
    opacity: 0.32;
  }

  .about-box {
    padding: 34px 36px;
  }

  .char-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
