/* =============================================
   むーらくぎ LP — moujonjon
   ============================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 62.5%;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  color: #1a3c6e;
  overflow-x: hidden;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ======================
   W2 Vendor Overrides
   ====================== */
.global-header,
.l-header,
.p-header,
.p-product-list__category-title { display: none; }

.global-contents__inner {
  width: 100% !important;
  padding: 0 !important;
}

#tblLayout { width: 100% !important; }

table { border-collapse: collapse; margin: 0; padding: 0; }
td, th { padding: 0; margin: 0; }

main + div { display: none; }

/* ======================
   Responsive Utilities
   ====================== */
.sp-only { display: block; }
.pc-only { display: none; }

@media (min-width: 768px) {
  .sp-only { display: none; }
  .pc-only { display: block; }
}

/* ======================
   LP Wrapper
   ====================== */
.lp-wrap {
  width: 100%;
  max-width: var(--lp-max-width);
  margin: 0 auto;
  overflow: hidden;
  background: var(--lp-bg-main);
  box-shadow: var(--lp-shadow-wrap);
}

@media (min-width: 640px) {
  .lp-wrap {
    max-width: var(--lp-max-width-pc);
  }
}


:root {
  --sky: #4eb5e5;
  --sky-pale: #eef6fb;
  --navy: #1a3c6e;
  --navy-deep: #0f2549;
  --mint: #5dcabc;
  --mint-light: #c8efe9;
  --coral: #e87070;
  --warm: #f7f3ef;
  --white: #ffffff;
  --border: #cde3f0;
  --text-sub: #5a7898;

  /* Breakpoints (reference values — cannot be used directly in @media) */
  --bp-sm: 480px;
  --bp-md: 680px;
  --bp-lg: 960px;
}

.pc-only {
  display: none;
}
.sp-only {
  display: block;
}
@media (min-width: 680px) {
  .pc-only {
    display: block;
  }
  .sp-only {
    display: none;
  }
}

/* ---- Scroll Animation ---- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 {
  transition-delay: 0.1s;
}
.fade-up.delay-2 {
  transition-delay: 0.2s;
}
.fade-up.delay-3 {
  transition-delay: 0.32s;
}

/* ---- Wave background utility ---- */
.wave-bg-white {
  background: var(--white);
}
.wave-bg-pale {
  background: var(--sky-pale);
}
.wave-bg-warm {
  background: var(--warm);
}

/* =============================================
   FIXED BACKGROUND (parallax layer)
   ============================================= */
.fixed-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #c2e8f5;
  overflow: hidden;
  pointer-events: none;
}

/* Floating circles */
.fixed-bg__deco span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.14;
  animation: float 6s ease-in-out infinite;
}
.fixed-bg__deco span:nth-child(1) {
  width: 200px;
  height: 200px;
  background: #4eb5e5;
  top: 5%;
  left: -5%;
  animation-duration: 7s;
}
.fixed-bg__deco span:nth-child(2) {
  width: 130px;
  height: 130px;
  background: #5dcabc;
  top: 15%;
  right: 3%;
  animation-duration: 5.5s;
  animation-delay: 1s;
}
.fixed-bg__deco span:nth-child(3) {
  width: 90px;
  height: 90px;
  background: #f9d64a;
  bottom: 22%;
  left: 6%;
  animation-duration: 8s;
  animation-delay: 2s;
}
.fixed-bg__deco span:nth-child(4) {
  width: 70px;
  height: 70px;
  background: #e87070;
  bottom: 32%;
  right: 5%;
  animation-duration: 6.5s;
  animation-delay: 0.5s;
}
.fixed-bg__deco span:nth-child(5) {
  width: 220px;
  height: 220px;
  background: #fff;
  top: 55%;
  left: 52%;
  animation-duration: 9s;
  animation-delay: 1.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.03);
  }
}

/* CSS clouds */
.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50px;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}
.cloud-1 {
  width: 110px;
  height: 40px;
  top: 10%;
  left: 6%;
  animation: drift 14s linear infinite;
}
.cloud-1::before {
  width: 55px;
  height: 55px;
  top: -24px;
  left: 14px;
}
.cloud-1::after {
  width: 38px;
  height: 38px;
  top: -15px;
  left: 50px;
}

.cloud-2 {
  width: 150px;
  height: 50px;
  top: 25%;
  right: 7%;
  animation: drift 18s linear infinite reverse;
}
.cloud-2::before {
  width: 65px;
  height: 65px;
  top: -30px;
  left: 20px;
}
.cloud-2::after {
  width: 48px;
  height: 48px;
  top: -20px;
  left: 68px;
}

.cloud-3 {
  width: 85px;
  height: 32px;
  bottom: 20%;
  right: 14%;
  animation: drift 12s linear infinite;
}
.cloud-3::before {
  width: 42px;
  height: 42px;
  top: -18px;
  left: 10px;
}
.cloud-3::after {
  width: 30px;
  height: 30px;
  top: -12px;
  left: 42px;
}

@keyframes drift {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(26px);
  }
  100% {
    transform: translateX(0);
  }
}

/* ---- Site Content (scrollable) ---- */
.site-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 20px auto;
  /* background: #ffffff78; */
  border-radius: 76px;
}

/* =============================================
   WAVE DIVIDER
   ============================================= */
.wave-divider {
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg {
  display: block;
  width: 100%;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: transparent;
  position: relative;
}

.hero__kv-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
}

/* 不可視スペーサー：コンテナの高さを kv.jpg に合わせる */
.hero__kv-sizer {
  display: block;
  width: 100%;
  visibility: hidden;
}

/* 各レイヤー：その場でふんわり浮かび上がる（translateY なし） */
.kv-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  animation: kv-fade-in 1.1s ease forwards;
  animation-delay: calc(var(--d) * 0.6s + 0.15s);
}

@keyframes kv-fade-in {
  to {
    opacity: 1;
  }
}

/* =============================================
   HERO INTRO OVERLAY
   ============================================= */
.hero--intro {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  background: #c2e8f5;
  overflow: hidden;
}

/* オーバーレイ内では kv-wrap がビューポート全体を占有する */
.hero--intro .hero__kv-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  line-height: 0;
}

/* サイザーはレイアウト不要なので非表示 */
.hero--intro .hero__kv-sizer {
  display: none;
}

/* 各レイヤーをビューポートいっぱいに object-fit: contain で表示 */
.hero--intro .kv-layer {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 退場：中心から円が広がって消える（アイリスアウト） */
@property --intro-r {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

@keyframes hero-intro-exit {
  from { --intro-r: 0%;   }
  to   { --intro-r: 150%; }
}

.hero--intro.is-exiting {
  animation: hero-intro-exit 1.4s ease-in-out forwards;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--intro-r), black calc(var(--intro-r) + 8%));
  mask-image: radial-gradient(circle at 50% 50%, transparent var(--intro-r), black calc(var(--intro-r) + 8%));
  pointer-events: none;
}

/* =============================================
   共通 Typography
   ============================================= */
.section-sub {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-align: center;
  color: var(--sky);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.04em;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  background: var(--white);
  padding: 60px 24px;
}
.about__inner {
  max-width: 960px;
  margin: 0 auto;
  counter-reset: about-step;
}

.about__name-explain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px auto;
  flex-wrap: wrap;
  max-width: 540px;
}
.name-pill {
  background: var(--sky-pale);
  border: 1px solid var(--border);
  color: var(--navy);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.4rem);
  padding: 10px 20px;
  border-radius: 20px;
  text-align: center;
}
.name-pill small {
  display: block;
  font-size: 0.72em;
  font-weight: 400;
  opacity: 0.7;
}
.name-pill.highlight {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
}
.name-plus {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--sky);
}

.about__copy {
  text-align: center;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 2;
  color: var(--text-sub);
  max-width: 500px;
  margin: 0 auto 56px;
}

/* KV ブロック（モバイル: 1カラム、装飾番号付き） */
.about__kv {
  counter-increment: about-step;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
  padding: 32px 24px;
  background: var(--sky-pale);
  border-radius: 28px;
  align-items: center;
}
.about__kv::before {
  content: "0" counter(about-step);
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 5.5rem;
  font-weight: 900;
  color: var(--sky);
  opacity: 0.1;
  line-height: 1;
  letter-spacing: -0.06em;
  pointer-events: none;
}
.about__kv--reverse {
  background: var(--mint-light);
}
.about__kv--reverse::before {
  color: var(--mint);
}

/* 画像：正円トリミング＋リング装飾（iOS Safari 完全対応）
   - padding-top: 100% で確実な正方形（aspect-ratio 非対応 iOS も含む）
   - transform: translateZ(0) で overflow+border-radius クリップを強制
   - box-shadow は overflow: hidden に影響されないためコンテナに置く */
.about__kv-img {
  width: 68%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  transform: translateZ(0); /* iOS Safari: GPU合成でクリップを正常化 */
  box-shadow:
    0 10px 32px rgba(78, 181, 229, 0.22),
    0 0 0 5px rgba(255, 255, 255, 0.85);
}
.about__kv-img::before {
  content: '';
  display: block;
  padding-top: 100%; /* 1:1 アスペクト比（全 iOS バージョン対応） */
}
.about__kv-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: block;
}
.about__kv--reverse .about__kv-img {
  box-shadow:
    0 10px 32px rgba(93, 202, 188, 0.22),
    0 0 0 5px rgba(255, 255, 255, 0.7);
}

/* テキストブロック（モバイル: センタリング） */
.about__text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.about__kv-heading {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.55;
}
.about__kv-body {
  font-size: 1.2rem;
  color: var(--text-sub);
  line-height: 1.95;
}

/* =============================================
   FEATURES — 3つのポイント
   ============================================= */
.features {
  background: var(--sky-pale);
  padding: 60px 20px;
}
.features__inner {
  max-width: 960px;
  margin: 0 auto;
}

/* モバイル: 1カラム */
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}

/* カード: flexで画像を先頭に並べ替え */
.feature-card {
  background: var(--white);
  border-top: 3px solid transparent;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.22s,
    box-shadow 0.22s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(78, 181, 229, 0.13);
}
.feature-card:nth-child(1) { border-top-color: var(--sky); }
.feature-card:nth-child(2) { border-top-color: var(--mint); }
.feature-card:nth-child(3) { border-top-color: var(--coral); }

/* 画像を order: -1 で最上部へ、aspect-ratio で高さを確保 */
.feature-card__img {
  order: -1;
  width: 100%;
  background: var(--sky-pale);
}
.feature-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-card__num {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sky);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 20px 24px 0;
  text-align: center;
}
.feature-card:nth-child(2) .feature-card__num { color: var(--mint); }
.feature-card:nth-child(3) .feature-card__num { color: var(--coral); }

.feature-card__title {
  font-size: clamp(1.4rem, 2vw, 1.6rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.55;
  padding: 10px 24px 24px;
  text-align: center;
}
.feature-card__body {
  font-size: 1.2rem;
  color: var(--text-sub);
  line-height: 1.85;
  padding: 0 24px 24px;
}

/* =============================================
   MATERIAL — 綿100%
   ============================================= */
.material {
  background: var(--white);
  padding: 88px 20px 0;
}
.material__inner {
  max-width: 840px;
  margin: 0 auto;
}

.material__grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 48px;
}

/* モバイル: 1カラムの罫線 */
.material-item {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-bottom: none;
}
.material-item:last-child {
  border-bottom: 1px solid var(--border);
}

.material-item__title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 3px solid var(--sky);
}
.material-item__text {
  font-size: 1.2rem;
  color: var(--text-sub);
  line-height: 1.85;
  padding-left: 15px;
}

/* =============================================
   STYLING — コーデ提案
   ============================================= */
.styling {
  background: var(--warm);
  padding: 88px 20px;
}
.styling__inner {
  max-width: 960px;
  margin: 0 auto;
}

.styling__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 52px;
}

.style-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition:
    border-color 0.22s,
    transform 0.22s,
    box-shadow 0.22s;
}
.style-card:hover {
  border-color: var(--sky);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(78, 181, 229, 0.13);
}

.style-card__img {
  aspect-ratio: 4/3;
  background: var(--sky-pale);
  overflow: hidden;
}
.style-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.style-card__body {
  padding: 20px 18px;
}

.style-card__tag {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 8px;
}
.style-card:nth-child(2) .style-card__tag {
  color: var(--mint);
}
.style-card:nth-child(3) .style-card__tag {
  color: var(--coral);
}

.style-card__title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.5;
}
.style-card__body-text {
  font-size: 1.2rem;
  color: var(--text-sub);
  line-height: 1.85;
}

/* =============================================
   LINEUP — アイテムラインナップ
   ============================================= */
.lineup {
  background: var(--white);
  padding: 88px 20px;
}
.lineup__inner {
  max-width: 960px;
  margin: 0 auto;
}

.lineup__note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--text-sub);
}

/* スマホ: 2列 / タブレット・PC: 4列 */
.lineup__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 52px;
}
@media (min-width: 680px) {
  .lineup__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.item-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition:
    border-color 0.22s,
    transform 0.22s,
    box-shadow 0.22s;
}
.item-card:hover {
  border-color: var(--sky);
  transform: translateY(-5px);
  box-shadow: 0 10px 26px rgba(78, 181, 229, 0.13);
}

.item-card__img {
  overflow: hidden;
  background: var(--sky-pale);
}
.item-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-card__body {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
}
.item-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.item-card__size {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 10px;
}
.item-card__price {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 14px;
}
.item-card__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-sub);
  margin-left: 4px;
}

.item-card__link {
  display: block;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sky);
  border: 1px solid var(--sky);
  border-radius: 50px;
  padding: 6px 0;
  transition:
    background 0.18s,
    color 0.18s;
}
.item-card__link:hover {
  background: var(--sky);
  color: #fff;
}

/* =============================================
   CTA
   ============================================= */
.cta {
  background: var(--navy);
  padding: 88px 20px;
}
.cta__inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.cta__title {
  font-size: clamp(2rem, 4.5vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 16px;
}
.cta__title em {
  font-style: normal;
  color: var(--sky);
}
.cta__sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 40px;
  line-height: 1.85;
}
.cta__btn {
  display: inline-block;
  background: var(--sky);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 16px 52px;
  border-radius: 50px;
  transition:
    opacity 0.2s,
    transform 0.2s;
  letter-spacing: 0.05em;
}
.cta__btn:hover {
  opacity: 0.88;
  transform: translateY(-3px);
}
.cta__note {
  margin-top: 18px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.32);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--navy-deep);
  padding: 28px 20px;
  text-align: center;
}
.footer__copy {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.28);
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--sky);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(78, 181, 229, 0.35);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s,
    transform 0.3s;
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--navy);
}

/* =============================================
   RESPONSIVE — モバイルファースト min-width 拡張
   ブレイクポイント: --bp-md = 680px / --bp-lg = 960px
   ============================================= */
@media (min-width: 680px) {
  /* ABOUT */
  .about {
    padding: 88px 40px;
  }
  .about__copy {
    margin-bottom: 100px;
  }
  .about__kv {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 48px;
    margin-bottom: 24px;
  }
  .about__kv-img {
    width: 88%;
  }
  .about__text-block {
    text-align: left;
  }
  .about__kv-heading {
    padding-left: 14px;
    border-left: 4px solid var(--sky);
  }
  .about__kv--reverse .about__kv-heading {
    border-left-color: var(--mint);
  }
  .about__kv--reverse .about__text-block {
    order: -1;
  }

  /* FEATURES */
  .features {
    padding: 88px 20px;
  }
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  /* MATERIAL */
  .material__grid {
    grid-template-columns: 1fr 1fr;
  }
  .material-item {
    border: 1px solid var(--border);
    border-right: none;
    border-bottom: none;
  }
  .material-item:nth-child(2n) {
    border-right: 1px solid var(--border);
  }
  .material-item:nth-child(3),
  .material-item:nth-child(4) {
    border-bottom: 1px solid var(--border);
  }
  /* .material-item:last-child {
    border-bottom: none;
  } */

  /* STYLING */
  .styling__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
