/* ===========================================
   かぐやクリニック トップページ LP — styles
   スコープ: .kg-top-lp 配下のみに適用
   =========================================== */

.kg-top-lp,
.kg-top-lp * { box-sizing: border-box; }

.kg-top-lp {
  --c-base: #FFFFFF;
  --c-offwhite: #FAFAFA;
  --c-mint-bg: #F2FBF7;
  --c-mint: #5EEAD4;
  --c-mint-deep: #2DD4BF;
  --c-coral: #FF7A59;
  --c-line: #06C755;
  --c-yellow: #F5C04A;
  --c-text: #1F2937;
  --c-text-soft: #4B5563;
  --c-border: #E5E7EB;
  --c-card: #FFFFFF;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(20, 40, 60, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 40, 60, 0.08);

  --font-en: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

.kg-top-lp {
  font-family: var(--font-jp);
  color: var(--c-text);
  background: var(--c-base);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  margin: 0;
  padding: 0;
}
.kg-top-lp img { max-width: 100%; display: block; height: auto; }
.kg-top-lp a { color: inherit; text-decoration: none; }
.kg-top-lp button { font-family: inherit; cursor: pointer; border: 0; background: none; }
.kg-top-lp h1, .kg-top-lp h2, .kg-top-lp h3, .kg-top-lp h4, .kg-top-lp h5, .kg-top-lp h6 {
  margin: 0;
  padding: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.kg-top-lp p { margin: 0; }
.kg-top-lp ul, .kg-top-lp ol { margin: 0; padding: 0; list-style: none; }

.kg-top-lp .container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ====== Buttons ====== */
.kg-top-lp .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  line-height: 1;
}
.kg-top-lp .btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.kg-top-lp .btn-outline {
  background: #fff;
  color: var(--c-text);
  border: 1.5px solid var(--c-text);
}
.kg-top-lp .btn-line {
  background: var(--c-line);
  color: #fff;
  box-shadow: 0 6px 18px rgba(6,199,85,0.25);
}
.kg-top-lp .btn-line .line-mark {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; color: var(--c-line);
  font-family: var(--font-en); font-weight: 700; font-size: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.kg-top-lp .btn-coral {
  background: var(--c-coral);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255,122,89,0.28);
}
.kg-top-lp .btn-mint {
  background: var(--c-mint);
  color: #0F4C46;
  box-shadow: 0 6px 18px rgba(94,234,212,0.35);
}
.kg-top-lp .btn-sm { padding: 8px 14px; font-size: 13px; }

/* ====== Section base ====== */
.kg-top-lp section { padding: 80px 0; position: relative; }
.kg-top-lp .section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.5;
}
.kg-top-lp .section-title em {
  font-style: normal;
  color: var(--c-coral);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.05em;
  margin: 0 .15em;
}
.kg-top-lp .section-sub {
  text-align: center;
  color: var(--c-text-soft);
  font-size: 14px;
  margin: 0 0 40px;
}

/* Scroll-in animation */
.kg-top-lp .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
}
.kg-top-lp .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Floating blobs */
.kg-top-lp .bg-decor {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.kg-top-lp .float-slow { animation: kg-top-lp-float 9s ease-in-out infinite; }
.kg-top-lp .float-mid  { animation: kg-top-lp-float 6s ease-in-out infinite; }
@keyframes kg-top-lp-float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-12px) rotate(2deg); }
}
.kg-top-lp section > .container { position: relative; z-index: 1; }

/* ===========================================
   1. HERO
   =========================================== */
.kg-top-lp .hero {
  padding: 32px 0 56px;
  background: linear-gradient(180deg, #F2FBF7 0%, #FFFFFF 100%);
  overflow: hidden;
}
.kg-top-lp .hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 24px;
  min-height: 460px;
}
.kg-top-lp .hero-copy h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
.kg-top-lp .hero-copy h1 .accent { color: var(--c-coral); }
.kg-top-lp .hero-copy .lead {
  font-size: 16px;
  color: var(--c-text-soft);
  margin: 0 0 22px;
}
.kg-top-lp .hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 26px;
}
.kg-top-lp .hero-tags .tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--c-border);
  font-size: 12px;
  color: var(--c-text);
}
.kg-top-lp .hero-tags .tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-mint-deep);
}
.kg-top-lp .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.kg-top-lp .hero-photo {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 380px;
}
.kg-top-lp .hero-photo img.doctor {
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 12px 30px rgba(20,80,80,0.10));
}
.kg-top-lp .hero-photo .blob-bg {
  position: absolute;
  z-index: 1;
}
.kg-top-lp .hero-photo .blob-bg.b1 { top: -10px; right: -20px; width: 220px; opacity: .9; }
.kg-top-lp .hero-photo .blob-bg.b2 { bottom: -10px; left: -10px; width: 180px; opacity: .8; }
.kg-top-lp .hero .deco-dot {
  position: absolute; width: 120px; opacity: .6;
  top: 40px; left: -30px;
}

/* ===========================================
   2. 選ばれている、4つの理由
   =========================================== */
.kg-top-lp .reasons { background: #fff; }
.kg-top-lp .reasons-list {
  display: flex; flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.kg-top-lp .reason-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 22px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid #EEF2EF;
  box-shadow: var(--shadow-sm);
}
.kg-top-lp .reason-icon {
  width: 70px; height: 70px;
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kg-top-lp .reason-icon img { width: 80%; height: 80%; object-fit: contain; }
.kg-top-lp .reason-icon.r1 { background: #EAFBF6; }
.kg-top-lp .reason-icon.r2 { background: #FFEFE9; }
.kg-top-lp .reason-icon.r3 { background: #EAF8F0; }
.kg-top-lp .reason-icon.r4 { background: #FFF7E3; }
.kg-top-lp .reason-text h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}
.kg-top-lp .reason-text h3 .ja-en {
  font-family: var(--font-en);
  color: var(--c-line);
  margin-right: 6px;
}
.kg-top-lp .reason-text p {
  margin: 0;
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.7;
}
.kg-top-lp .reason-text h3 .zero {
  color: var(--c-yellow);
  font-family: var(--font-en);
  font-size: 22px;
  margin-right: 4px;
  vertical-align: -2px;
}

/* ===========================================
   3. 診療科目
   =========================================== */
.kg-top-lp .departments { background: var(--c-offwhite); }
.kg-top-lp .dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.kg-top-lp .dept-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 18px 18px;
  text-align: center;
  border: 1px solid #EEF2EF;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.kg-top-lp .dept-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.kg-top-lp .dept-card .dept-icon {
  width: 88px; height: 88px;
  margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
}
.kg-top-lp .dept-card .dept-icon img { width: 100%; height: 100%; object-fit: contain; }
.kg-top-lp .dept-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 8px 0 4px;
}
.kg-top-lp .dept-card p {
  font-size: 12px;
  color: var(--c-text-soft);
  margin: 0 0 14px;
  min-height: 36px;
  line-height: 1.6;
}
.kg-top-lp .dept-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
  color: var(--c-mint-deep);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #EAFBF6;
}
.kg-top-lp .dept-card.placeholder {
  background: transparent;
  border: 2px dashed #E5E7EB;
  box-shadow: none;
  display: flex; align-items: center; justify-content: center;
  color: #C8CDD3;
  font-size: 28px;
}
.kg-top-lp .dept-card.placeholder:hover { transform: none; }

/* ===========================================
   4. ご相談からお薬のお届けまで、4ステップ
   =========================================== */
.kg-top-lp .steps {
  background: #fff;
  position: relative;
}
.kg-top-lp .steps .container {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 40px;
  align-items: center;
}
.kg-top-lp .steps-heading {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
}
.kg-top-lp .steps-heading .small {
  display: block;
  font-size: 14px;
  color: var(--c-text-soft);
  font-weight: 500;
  margin-top: 8px;
}
.kg-top-lp .steps-list {
  display: flex; flex-direction: column;
  gap: 12px;
}
.kg-top-lp .step-row {
  display: grid;
  grid-template-columns: 44px 80px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid #EEF2EF;
  box-shadow: var(--shadow-sm);
}
.kg-top-lp .step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-mint);
  color: #0F4C46;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.kg-top-lp .step-icon { width: 64px; height: 56px; display: flex; align-items: center; justify-content: center; }
.kg-top-lp .step-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.kg-top-lp .step-text h4 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
}
.kg-top-lp .step-text p {
  margin: 0;
  font-size: 12px;
  color: var(--c-text-soft);
  line-height: 1.6;
}

/* ===========================================
   5. 医療情報を学ぶ
   =========================================== */
.kg-top-lp .learn { background: var(--c-offwhite); }
.kg-top-lp .learn-tabs {
  display: flex; gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.kg-top-lp .learn-tab {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--c-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-soft);
  transition: all .2s ease;
}
.kg-top-lp .learn-tab.active {
  background: var(--c-mint);
  color: #0F4C46;
  border-color: var(--c-mint);
}
.kg-top-lp .learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto 24px;
  position: relative;
}
.kg-top-lp .learn-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #EEF2EF;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease;
}
.kg-top-lp .learn-card:hover { transform: translateY(-3px); }
.kg-top-lp .learn-thumb {
  height: 110px;
  background: #F4F6F4;
  display: flex; align-items: center; justify-content: center;
}
.kg-top-lp .learn-thumb img { width: 60%; height: 80%; object-fit: contain; }
.kg-top-lp .learn-body { padding: 12px 14px 16px; }
.kg-top-lp .learn-body h5 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}
.kg-top-lp .learn-body .meta {
  font-size: 11px;
  color: #9AA3AB;
  font-family: var(--font-en);
}
.kg-top-lp .learn-cta { text-align: center; }

/* arrow chevrons on side */
.kg-top-lp .learn-grid .chev {
  position: absolute;
  top: 50%;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-soft);
  transform: translateY(-50%);
  box-shadow: var(--shadow-sm);
  font-size: 18px;
  line-height: 1;
}
.kg-top-lp .learn-grid .chev.left { left: -36px; }
.kg-top-lp .learn-grid .chev.right { right: -36px; }

/* ===========================================
   6. オンラインショップ
   =========================================== */
.kg-top-lp .shop {
  background: linear-gradient(180deg, #FFF7F2 0%, #FFFFFF 100%);
  display: none; /* いったん非表示（商品が揃ったら解除） */
}
.kg-top-lp .shop .container {
  display: grid;
  grid-template-columns: 0.36fr 0.64fr;
  gap: 36px;
  align-items: center;
}
.kg-top-lp .shop-heading h2 {
  font-size: 24px;
  margin: 0 0 8px;
}
.kg-top-lp .shop-heading p {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--c-text-soft);
  line-height: 1.7;
}
.kg-top-lp .shop-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.kg-top-lp .shop-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 14px 14px;
  text-align: center;
  border: 1px solid #FFE5DA;
  box-shadow: var(--shadow-sm);
}
.kg-top-lp .shop-card .ship-thumb {
  height: 90px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.kg-top-lp .shop-card .ship-thumb img { max-height: 100%; object-fit: contain; }
.kg-top-lp .shop-card h6 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
}
.kg-top-lp .shop-card .price {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  color: var(--c-coral);
  margin: 0 0 8px;
  line-height: 1.2;
}
.kg-top-lp .shop-card .price small {
  font-family: var(--font-jp);
  font-size: 11px;
  color: var(--c-text-soft);
  font-weight: 500;
}
.kg-top-lp .shop-card .more {
  display: inline-block;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: #FFF1EA;
  color: var(--c-coral);
  font-weight: 600;
}

/* ===========================================
   7. クリニック情報
   =========================================== */
.kg-top-lp .clinic { background: #fff; }
.kg-top-lp .clinic .section-title { margin-bottom: 32px; }
.kg-top-lp .clinic-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid #EEF2EF;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 28px;
}
.kg-top-lp .clinic-info h3 {
  font-size: 20px;
  margin: 0 0 16px;
}
.kg-top-lp .clinic-info dl {
  margin: 0;
  display: grid;
  grid-template-columns: 96px 1fr;
  row-gap: 10px;
  column-gap: 16px;
  font-size: 13px;
}
.kg-top-lp .clinic-info dt {
  color: var(--c-text-soft);
  font-weight: 600;
  margin: 0;
}
.kg-top-lp .clinic-info dd { margin: 0; line-height: 1.7; }
.kg-top-lp .clinic-map h4 { font-size: 14px; margin: 0 0 10px; color: var(--c-text-soft); font-weight: 600; }
.kg-top-lp .clinic-map .map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #F4F6F4;
  display: flex; align-items: center; justify-content: center;
}
.kg-top-lp .clinic-map .map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.kg-top-lp .clinic-map .map-frame img.map-bg {
  width: 100%; height: 100%; object-fit: cover;
}
.kg-top-lp .clinic-map .map-frame .pin {
  position: absolute;
  top: 38%; left: 48%;
  width: 38px;
}

/* ===========================================
   8. よくあるご質問
   =========================================== */
.kg-top-lp .faq { background: var(--c-offwhite); }
.kg-top-lp .faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 10px;
}
.kg-top-lp .faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid #EEF2EF;
  overflow: hidden;
}
.kg-top-lp .faq-q {
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-text);
}
.kg-top-lp .faq-q .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-mint);
  color: #0F4C46;
  font-family: var(--font-en); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.kg-top-lp .faq-q .chev {
  width: 14px; height: 14px;
  border-right: 2px solid var(--c-text-soft);
  border-bottom: 2px solid var(--c-text-soft);
  transform: rotate(45deg);
  transition: transform .25s ease;
  justify-self: center;
  margin-bottom: 4px;
}
.kg-top-lp .faq-item.is-open .faq-q .chev { transform: rotate(-135deg); margin-bottom: 0; margin-top: 4px; }
.kg-top-lp .faq-a {
  padding: 0 18px 16px 66px;
  color: var(--c-text-soft);
  font-size: 13px;
  line-height: 1.8;
  display: none;
}
.kg-top-lp .faq-item.is-open .faq-a { display: block; }

/* ===========================================
   9. 最終CTA
   =========================================== */
.kg-top-lp .final-cta {
  background: linear-gradient(180deg, #F2FBF7 0%, #FFF8F4 100%);
  text-align: center;
}
.kg-top-lp .final-cta h2 {
  font-size: 28px;
  margin: 0 0 12px;
}
.kg-top-lp .final-cta p {
  color: var(--c-text-soft);
  font-size: 14px;
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.8;
}
.kg-top-lp .final-cta .ctas {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 8px;
}
.kg-top-lp .final-cta .note {
  font-size: 11px;
  color: #9AA3AB;
  margin-top: 10px;
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 1023px) {
  .kg-top-lp .hero-copy h1 { font-size: 36px; }
  .kg-top-lp .dept-grid,
  .kg-top-lp .learn-grid { grid-template-columns: repeat(2, 1fr); }
  .kg-top-lp .learn-grid .chev { display: none; }
  .kg-top-lp .shop-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .kg-top-lp section { padding: 56px 0; }
  .kg-top-lp .container { padding: 0 18px; }
  .kg-top-lp .hero { padding: 24px 0 40px; }
  .kg-top-lp .hero .container {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }
  .kg-top-lp .hero-copy h1 { font-size: 30px; }
  .kg-top-lp .hero-photo { min-height: 280px; order: -1; }
  .kg-top-lp .hero-photo img.doctor { max-width: 280px; }
  .kg-top-lp .hero-cta .btn { flex: 1; }

  .kg-top-lp .section-title { font-size: 22px; }

  .kg-top-lp .reason-row { grid-template-columns: 64px 1fr; padding: 14px 16px; }
  .kg-top-lp .reason-icon { width: 56px; height: 56px; border-radius: 16px; }

  .kg-top-lp .dept-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kg-top-lp .dept-card { padding: 16px 12px 14px; }
  .kg-top-lp .dept-card .dept-icon { width: 70px; height: 70px; }

  .kg-top-lp .steps .container { grid-template-columns: 1fr; gap: 24px; }
  .kg-top-lp .steps-heading { text-align: center; }
  .kg-top-lp .step-row { grid-template-columns: 36px 60px 1fr; padding: 12px 14px; }

  .kg-top-lp .learn-grid { grid-template-columns: 1fr; }

  .kg-top-lp .shop .container { grid-template-columns: 1fr; gap: 24px; }
  .kg-top-lp .shop-list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .kg-top-lp .shop-card { padding: 12px 8px 10px; }
  .kg-top-lp .shop-card h6 { font-size: 11px; }
  .kg-top-lp .shop-card .price { font-size: 16px; }

  .kg-top-lp .clinic-card { grid-template-columns: 1fr; padding: 20px; }
  .kg-top-lp .clinic-info dl { grid-template-columns: 76px 1fr; font-size: 12px; }

  .kg-top-lp .final-cta h2 { font-size: 22px; }
  .kg-top-lp .final-cta .ctas { flex-direction: column; }
  .kg-top-lp .final-cta .ctas .btn { width: 100%; }
}
