/* ── ヒーロー ── */
.ec-hero{
  position:relative;padding:56px 32px 64px;overflow:hidden;z-index:1;
  background:radial-gradient(ellipse 70% 60% at 15% 50%,rgba(78,179,216,.14) 0%,transparent 60%),
             radial-gradient(ellipse 50% 80% at 85% 20%,rgba(42,138,173,.09) 0%,transparent 60%),
             #f0f6fa;
}
.ec-hero::after{
  content:'';position:absolute;bottom:0;left:0;right:0;height:1px;
  background:linear-gradient(to right,transparent,rgba(78,179,216,.35),transparent);
}
.ec-hero-inner{position:relative;z-index:1;max-width:1200px;margin:0 auto;}
.ec-breadcrumb{
  display:flex;align-items:center;gap:8px;
  font-size:11px;color:var(--pd-sub);margin-bottom:24px;flex-wrap:wrap;
}
.ec-breadcrumb a{color:var(--pd-sub);transition:color .2s;}
.ec-breadcrumb a:hover{color:var(--pd-sky);}
.ec-breadcrumb span:last-child{color:var(--pd-sky);}
.ec-eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;
  color:var(--pd-sky);margin-bottom:14px;
}
.ec-eyebrow::before{content:'';display:block;width:32px;height:1px;background:var(--pd-sky-l);}
.ec-hero h1{
  font-size:clamp(1.8rem,3.5vw,2.8rem);font-weight:700;
  color:var(--pd-text);line-height:1.2;letter-spacing:-.01em;margin-bottom:14px;
}
.ec-hero h1 .accent{color:var(--pd-sky);}
.ec-hero-sub{
  font-size:15px;color:var(--pd-sub);line-height:1.9;
  margin-bottom:24px;font-weight:300;max-width:560px;
}
.ec-hero-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:0;}
.ec-hero-tags span{
  font-size:11px;font-weight:500;padding:5px 14px;border-radius:99px;
  background:rgba(78,179,216,.12);border:1px solid rgba(78,179,216,.3);
  color:var(--pd-sky-b);letter-spacing:.04em;
}

/* ── メインレイアウト（左右2カラム） ── */
.ec-main{
  max-width:1200px;margin:0 auto;
  padding:64px 32px 96px;
  position:relative;z-index:1;
}
.ec-layout{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:40px;
  align-items:start;
}
.ec-left{}
.ec-right{}

/* ── 左：セクション共通 ── */
.ec-section{padding:0;margin-bottom:56px;}
.ec-section:last-child{margin-bottom:0;}
.ec-section-label{
  display:inline-flex;align-items:center;gap:8px;
  font-size:10px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;
  color:var(--pd-sky);margin-bottom:8px;
}
.ec-section-label::before{content:'';display:block;width:20px;height:1px;background:var(--pd-sky-l);}
.ec-section-h2{
  font-size:clamp(1.3rem,2vw,1.8rem);font-weight:700;
  color:var(--pd-text);margin-bottom:6px;letter-spacing:-.01em;
}
.ec-section-desc{font-size:13px;color:var(--pd-sub);font-weight:300;line-height:1.9;}

/* ── 概要（画像＋テキスト＋クイックスペック） ── */
.ec-overview{
  display:grid;grid-template-columns:1fr 1fr;
  gap:48px;align-items:start;
}
/* メイン画像 */
.ec-gallery{}
.ec-img-main{
  width:100%;aspect-ratio:4/3;border-radius:16px;overflow:hidden;
  background:#daeaf4;border:1px solid rgba(78,179,216,.2);
  box-shadow:0 8px 40px rgba(78,179,216,.15);margin-bottom:14px;
  display:flex;align-items:center;justify-content:center;position:relative;
}
.ec-img-main img{width:100%;height:100%;object-fit:contain;display:block;background:#fff;}
.ec-img-placeholder{
  display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:12px;color:var(--pd-sub);text-align:center;
}
.ec-img-placeholder .ph-icon{font-size:56px;opacity:.35;}
.ec-img-placeholder .ph-label{font-size:11px;line-height:1.6;}
.ec-img-glow{
  position:absolute;bottom:-40px;left:50%;transform:translateX(-50%);
  width:60%;height:80px;
  background:radial-gradient(ellipse,rgba(78,179,216,.25),transparent 70%);
  filter:blur(20px);pointer-events:none;
}
/* サムネイル */
.ec-img-thumbs{display:flex;gap:10px;flex-wrap:wrap;}
.ec-thumb{
  width:70px;height:70px;border-radius:8px;overflow:hidden;
  background:#fff;border:2px solid rgba(78,179,216,.2);
  display:flex;align-items:center;justify-content:center;
  font-size:22px;cursor:pointer;transition:all .22s;
  box-shadow:0 2px 8px rgba(78,179,216,.1);
}
.ec-thumb img{width:100%;height:100%;object-fit:cover;}
.ec-thumb:hover{border-color:var(--pd-sky-l);}
.ec-thumb.active{border-color:var(--pd-sky);box-shadow:0 0 0 3px rgba(78,179,216,.2);}

/* 概要テキスト */
.ec-overview-body{}
.ec-desc{margin-bottom:20px;}
.ec-desc p{
  font-size:14px;color:var(--pd-sub);line-height:2;
  font-weight:300;margin-bottom:14px;
}
.ec-desc p:last-child{margin-bottom:0;}
.ec-desc strong{color:var(--pd-sky-b);font-weight:600;}
.ec-features-list{
  display:flex;flex-direction:column;gap:8px;
  margin-bottom:28px;padding:18px 22px;
  background:rgba(78,179,216,.07);
  border:1px solid rgba(78,179,216,.2);border-radius:10px;
}
.ec-feature-item{
  display:flex;align-items:center;gap:10px;
  font-size:13px;color:var(--pd-text);
}
.ec-feature-dot{
  width:6px;height:6px;border-radius:50%;
  background:var(--pd-sky-l);flex-shrink:0;
  box-shadow:0 0 6px rgba(78,179,216,.5);
}
/* クイックスペック */
.ec-quick-spec{
  background:#fff;border:1px solid rgba(78,179,216,.18);
  border-radius:10px;overflow:hidden;margin-bottom:24px;
  box-shadow:0 3px 12px rgba(78,179,216,.08);
}
.ec-quick-spec-row{
  display:grid;grid-template-columns:100px 1fr;
  border-bottom:1px solid rgba(78,179,216,.1);
}
.ec-quick-spec-row:last-child{border-bottom:none;}
.ec-quick-spec-key{
  padding:10px 14px;font-size:11px;font-weight:600;
  color:var(--pd-sky-b);letter-spacing:.06em;
  background:rgba(78,179,216,.05);
  border-right:1px solid rgba(78,179,216,.1);
}
.ec-quick-spec-val{
  padding:10px 14px;font-size:12px;
  color:var(--pd-text);font-weight:500;
}
.ec-overview-cta{display:flex;gap:12px;flex-wrap:wrap;}
.ec-overview-cta .btn-glow{min-width:220px;justify-content:center;}

/* ── スペックテーブル ── */
.ec-spec-wrap{
  background:#fff;border:1px solid rgba(78,179,216,.2);
  border-radius:14px;overflow:hidden;
  box-shadow:0 4px 20px rgba(78,179,216,.08);
}
.ec-spec-table{width:100%;border-collapse:collapse;}
.ec-spec-table tr{border-bottom:1px solid rgba(78,179,216,.1);transition:background .15s;}
.ec-spec-table tr:last-child{border-bottom:none;}
.ec-spec-table tr:hover{background:rgba(78,179,216,.04);}
.ec-spec-table th{
  width:160px;padding:14px 20px;text-align:left;
  font-size:11px;font-weight:600;color:var(--pd-sky-b);
  letter-spacing:.08em;vertical-align:top;white-space:nowrap;
  background:rgba(78,179,216,.05);
  border-right:1px solid rgba(78,179,216,.1);
}
.ec-spec-table td{padding:14px 20px;font-size:13px;color:var(--pd-sub);line-height:1.8;}
.ec-spec-table td strong{color:var(--pd-text);font-weight:600;}
.ec-badge{
  display:inline-block;font-size:9px;font-weight:700;
  padding:2px 8px;border-radius:4px;margin-left:6px;
  background:rgba(78,179,216,.1);color:var(--pd-sky-b);
  letter-spacing:.06em;text-transform:uppercase;vertical-align:middle;
}
.ec-badge-green{background:rgba(26,158,92,.12);color:#0e7a47;}
.ec-badge-orange{background:rgba(232,92,26,.12);color:#c04a0a;}

/* ── 特長カード ── */
.ec-feature-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;}
.ec-feature-card{
  background:rgba(255,255,255,.9);border:1px solid rgba(78,179,216,.16);
  border-radius:14px;overflow:hidden;
  box-shadow:0 3px 16px rgba(78,179,216,.08);
  transition:all .3s cubic-bezier(.4,0,.2,1);position:relative;
}
.ec-feature-card::after{
  content:'';position:absolute;top:0;left:0;right:0;height:2px;
  background:linear-gradient(to right,transparent,var(--pd-sky-l),transparent);
  transform:scaleX(0);transition:transform .3s;transform-origin:left;
}
.ec-feature-card:hover{transform:translateY(-4px);box-shadow:0 16px 40px rgba(78,179,216,.18);}
.ec-feature-card:hover::after{transform:scaleX(1);}
.ec-feature-img{
  width:100%;height:140px;overflow:hidden;
  background:linear-gradient(135deg,#daeaf4,#c8ddf0);
  display:flex;align-items:center;justify-content:center;
}
.ec-feature-img img{width:100%;height:100%;object-fit:cover;transition:transform .4s;}
.ec-feature-card:hover .ec-feature-img img{transform:scale(1.05);}
.ec-feature-img-placeholder{font-size:40px;opacity:.4;}
.ec-feature-body{padding:16px 18px;}
.ec-feature-title{font-size:13px;font-weight:700;color:var(--pd-text);margin-bottom:6px;line-height:1.4;}
.ec-feature-text{font-size:12px;color:var(--pd-sub);line-height:1.7;font-weight:300;}

/* ── 使い方ステップ（任意） ── */
.ec-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:0;position:relative;}
.ec-step{display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 16px;position:relative;}
.ec-step-num{
  font-family:'Inter',sans-serif;font-size:11px;font-weight:700;
  letter-spacing:.14em;color:var(--pd-sky);margin-bottom:14px;
}
.ec-step-icon{
  width:100px;height:100px;border-radius:50%;
  background:rgba(78,179,216,.1);border:2px solid rgba(78,179,216,.25);
  display:flex;align-items:center;justify-content:center;
  font-size:36px;margin-bottom:16px;
  box-shadow:0 4px 16px rgba(78,179,216,.15);transition:all .3s;overflow:hidden;
}
.ec-step-icon img{width:100%;height:100%;object-fit:cover;}
.ec-step:hover .ec-step-icon{border-color:var(--pd-sky-l);box-shadow:0 8px 28px rgba(78,179,216,.25);}
.ec-step-title{font-size:14px;font-weight:700;color:var(--pd-text);margin-bottom:8px;}
.ec-step-text{font-size:12px;color:var(--pd-sub);line-height:1.8;font-weight:300;}
.ec-step-arrow{
  position:absolute;top:50px;right:-14px;
  font-size:18px;color:var(--pd-sky-l);opacity:.5;z-index:1;
}

/* ── 右：購入ボックス ── */
.ec-buybox{
  position:sticky;top:80px;
  background:#fff;border:1px solid rgba(78,179,216,.25);
  border-radius:18px;overflow:hidden;
  box-shadow:0 8px 40px rgba(78,179,216,.15);
}
.ec-buybox-header{
  background:linear-gradient(135deg,#1a2e3b,#0f2040);
  padding:20px 22px;
}
.ec-buybox-eyebrow{
  font-size:10px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:rgba(255,255,255,.4);margin-bottom:4px;
}
.ec-buybox-name{font-size:14px;font-weight:700;color:#fff;line-height:1.5;}
.ec-buybox-body{padding:20px 22px;}

/* 価格 */
.ec-price-main{
  font-family:'Inter',sans-serif;
  font-size:30px;font-weight:800;
  color:var(--pd-sky-b);line-height:1;letter-spacing:-.02em;margin-bottom:2px;
}
.ec-price-main small{font-size:13px;font-weight:400;color:var(--pd-sub);}
.ec-price-sub{font-size:11px;color:var(--pd-sub);margin-bottom:14px;}

/* 配送バッジ */
.ec-delivery{
  display:flex;align-items:center;gap:8px;
  padding:8px 12px;border-radius:8px;
  background:rgba(26,158,92,.1);border:1px solid rgba(26,158,92,.22);
  font-size:11px;font-weight:600;color:#0e7a47;margin-bottom:14px;
}
.ec-delivery .dot{
  width:7px;height:7px;border-radius:50%;background:#1a9e5c;
  box-shadow:0 0 0 3px rgba(26,158,92,.2);flex-shrink:0;
  animation:pulse 2s infinite;
}
@keyframes pulse{0%,100%{box-shadow:0 0 0 3px rgba(26,158,92,.2);}50%{box-shadow:0 0 0 6px rgba(26,158,92,.07);}}

/* ボタン（btn-glow / btn-glass と統一） */
.ec-btn-buy{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;padding:14px;border-radius:10px;
  background:linear-gradient(135deg,var(--pd-sky-l),var(--pd-sky-b));
  color:#fff;font-size:13px;font-weight:700;
  box-shadow:0 4px 20px rgba(78,179,216,.3);
  transition:all .25s;letter-spacing:.04em;margin-bottom:8px;
  text-decoration:none;
}
.ec-btn-buy:hover{box-shadow:0 8px 32px rgba(78,179,216,.5);transform:translateY(-2px);}
.ec-btn-ask{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;padding:12px;border-radius:10px;
  background:rgba(255,255,255,.7);border:1px solid rgba(78,179,216,.3);
  color:var(--pd-sky-b);font-size:13px;font-weight:600;
  transition:all .25s;letter-spacing:.04em;margin-bottom:14px;
  text-decoration:none;
}
.ec-btn-ask:hover{background:rgba(78,179,216,.12);border-color:rgba(78,179,216,.5);}

/* ポイント */
.ec-point{
  display:flex;align-items:center;justify-content:space-between;
  padding:9px 12px;border-radius:8px;
  background:rgba(255,200,0,.08);border:1px solid rgba(220,160,0,.18);
  margin-bottom:14px;
}
.ec-point-label{font-size:11px;color:var(--pd-sub);}
.ec-point-val{font-size:16px;font-weight:800;color:#96720a;font-family:'Inter',sans-serif;}

/* ミニスペック */
.ec-mini-spec{margin-bottom:16px;}
.ec-mini-spec-row{
  display:grid;grid-template-columns:88px 1fr;
  border-bottom:1px solid rgba(78,179,216,.1);
  font-size:11px;padding:7px 0;
}
.ec-mini-spec-row:last-child{border-bottom:none;}
.ec-mini-key{color:var(--pd-sub);font-weight:500;}
.ec-mini-val{color:var(--pd-text);font-weight:600;}

/* 保証 */
.ec-warranty{border-top:1px solid rgba(78,179,216,.15);padding-top:14px;}
.ec-warranty-title{font-size:11px;font-weight:700;color:var(--pd-text);margin-bottom:8px;letter-spacing:.04em;}
.ec-warranty-item{
  display:flex;align-items:center;justify-content:space-between;
  padding:7px 0;border-bottom:1px solid rgba(78,179,216,.08);
  font-size:11px;
}
.ec-warranty-item:last-child{border-bottom:none;}
.ec-warranty-name{color:var(--pd-sub);}
.ec-warranty-price{font-weight:700;color:var(--pd-text);}
.ec-warranty-price.free{color:#0e7a47;}

/* ── 講習バナー（任意） ── */
.ec-lecture{
  margin:0 0 56px;border-radius:16px;
  background:linear-gradient(135deg,rgba(78,179,216,.1),rgba(42,138,173,.07));
  border:1px solid rgba(78,179,216,.25);position:relative;overflow:hidden;
}
.ec-lecture::before{
  content:'';position:absolute;top:0;left:0;right:0;height:2px;
  background:linear-gradient(to right,transparent,var(--pd-sky-l),transparent);
}
.ec-lecture-inner{
  padding:36px 40px;display:flex;align-items:center;gap:28px;flex-wrap:wrap;
}
.ec-lecture-icon{font-size:40px;flex-shrink:0;}
.ec-lecture-body{flex:1;min-width:200px;}
.ec-lecture-label{font-size:10px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--pd-sky);margin-bottom:4px;}
.ec-lecture-title{font-size:17px;font-weight:700;color:var(--pd-text);margin-bottom:6px;}
.ec-lecture-text{font-size:13px;color:var(--pd-sub);line-height:1.8;font-weight:300;}

/* ── レスポンシブ ── */
@media(max-width:1024px){
  .ec-layout{grid-template-columns:1fr;}
  .ec-buybox{position:static;}
  .ec-feature-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:900px){
  .ec-overview{grid-template-columns:1fr;gap:32px;}
  .ec-steps{grid-template-columns:1fr;gap:28px;}
  .ec-step{flex-direction:row;text-align:left;align-items:flex-start;}
  .ec-step-icon{flex-shrink:0;}
  .ec-step-arrow{display:none!important;}
  .ec-spec-table th{width:110px;padding:12px 14px;}
  .ec-spec-table td{padding:12px 14px;}
  .ec-lecture-inner{flex-direction:column;text-align:center;padding:28px 20px;}
}
@media(max-width:768px){
  .ec-hero{padding:36px 20px 48px;}
  .ec-main{padding:48px 20px 72px;}
  .ec-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .ec-feature-img{height:120px;}
  .ec-feature-body{padding:13px 11px 14px;}
  .ec-feature-title{font-size:12px;}
  .ec-feature-text{font-size:11px;line-height:1.65;}
  .ec-overview-cta{flex-direction:column;}
  .ec-overview-cta .btn-glow{width:100%;min-width:0;}
}
/* Template utilities and responsive safeguards */
.ec-section-desc-spaced { margin-bottom: 24px; }
.ec-section-desc-steps { margin-bottom: 32px; }
.ec-spec-price { color: var(--pd-sky-b); font-size: 16px; }
.ec-step-arrow-last { display: none; }
.ec-buy-note { margin: 12px 0 0; color: var(--pd-sub); font-size: 10px; line-height: 1.7; }
.ec-product-page a:focus-visible,
.ec-product-page button:focus-visible {
  outline: 3px solid rgba(42,138,173,.42);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .ec-spec-wrap { overflow: visible; }
  .ec-spec-table,
  .ec-spec-table tbody,
  .ec-spec-table tr,
  .ec-spec-table th,
  .ec-spec-table td { display: block; width: 100%; }
  .ec-spec-table tr { padding: 0; }
  .ec-spec-table th { padding: 11px 14px 5px; border: 0; }
  .ec-spec-table td { padding: 5px 14px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-product-page *,
  .ec-product-page *::before,
  .ec-product-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Yellow White product page */
.yellow-white-page {
  --yw-yellow: #ffe600;
  --yw-blue: #006fcb;
  --yw-navy: #062c72;
}
.yellow-white-page .ec-hero {
  background:
    linear-gradient(100deg, rgba(255,255,255,.96) 0%, rgba(240,249,255,.92) 62%, rgba(219,243,255,.82) 100%),
    url('../img/yellow-white/yellow-white_07.png') center right / auto 100% no-repeat;
}
.yellow-white-page .ec-hero::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--yw-yellow), #fff37a 40%, var(--yw-blue));
}
.yellow-white-page .ec-hero h1 .accent,
.yellow-white-page .ec-section-label,
.yellow-white-page .ec-spec-price { color: var(--yw-blue); }
.yellow-white-page .ec-hero-tags span {
  background: rgba(255,230,0,.17);
  border-color: rgba(219,190,0,.45);
  color: var(--yw-navy);
}
.yellow-white-page .ec-img-main { aspect-ratio: 1 / 1; }
.yellow-white-page .ec-thumb {
  appearance: none;
  padding: 0;
}
.yellow-white-page .ec-feature-grid.yellow-white-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.yellow-white-page .yellow-white-feature-grid .ec-feature-img {
  height: auto;
  aspect-ratio: 1 / 1;
}
.yellow-white-page .yellow-white-feature-grid .ec-feature-title { margin: 0 0 6px; }
.yellow-white-steps {
  list-style: none;
  counter-reset: yw-step;
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
}
.yellow-white-steps li {
  counter-increment: yw-step;
  display: grid;
  grid-template-columns: 42px 110px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 16px 9px 9px;
  border: 1px solid rgba(0,111,203,.16);
  border-radius: 12px;
  background: #fff;
}
.yellow-white-steps li::before {
  content: counter(yw-step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yw-blue);
  color: #fff;
  font: 800 16px/1 'Inter', sans-serif;
}
.yellow-white-steps strong { color: var(--yw-navy); font-size: 14px; }
.yellow-white-steps span { color: var(--pd-sub); font-size: 12px; line-height: 1.65; }
.yellow-white-guide {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(0,111,203,.18);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(0,111,203,.11);
}
.yellow-white-guide img { display: block; width: 100%; height: auto; }
.yellow-white-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.yellow-white-story-grid a {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(0,111,203,.13);
}
.yellow-white-story-grid img { display: block; width: 100%; height: auto; transition: transform .3s ease; }
.yellow-white-story-grid a:hover img { transform: scale(1.015); }
.yellow-white-page .ec-buybox-header {
  background: linear-gradient(135deg, var(--yw-navy), var(--yw-blue));
  border-bottom: 4px solid var(--yw-yellow);
}

@media (max-width: 768px) {
  .yellow-white-page .ec-hero { background-image: linear-gradient(135deg, #fff 0%, #e7f7ff 100%); }
  .yellow-white-page .ec-feature-grid.yellow-white-feature-grid { grid-template-columns: 1fr; }
  .yellow-white-page .yellow-white-feature-grid .ec-feature-card {
    display: grid;
    grid-template-columns: 42% 1fr;
  }
  .yellow-white-page .yellow-white-feature-grid .ec-feature-img { aspect-ratio: 1 / 1; }
  .yellow-white-steps li { grid-template-columns: 38px 1fr; gap: 10px; }
  .yellow-white-steps li::before { width: 36px; height: 36px; }
  .yellow-white-steps span { grid-column: 2; }
  .yellow-white-story-grid { grid-template-columns: 1fr; }
}
