/* =========================================================
   WestCL Delivery Layout Polish
   納品レベル レイアウト最適化CSS
   目的:
   - 既存PHPやテンプレートを壊さず、見た目を最終調整
   - トップLP / サービス固定ページ / CTA / カード / FAQ / モバイル最適化
   - Astra + WestCL Front Dashboard v1.4 前提
========================================================= */

/* ---------------------------------------------------------
   Base
--------------------------------------------------------- */
:root{
  --westcl-navy:#0f3568;
  --westcl-blue:#1e4e8f;
  --westcl-sky:#6aa6ff;
  --westcl-orange:#ef6c00;
  --westcl-orange-2:#ff943f;
  --westcl-text:#20324a;
  --westcl-muted:#5f6b7a;
  --westcl-line:rgba(15,53,104,.10);
  --westcl-bg:#f7fbff;
  --westcl-white:#fff;
  --westcl-radius-xl:32px;
  --westcl-radius-lg:26px;
  --westcl-radius-md:18px;
  --westcl-shadow:0 16px 38px rgba(10,30,60,.08);
  --westcl-shadow-lg:0 24px 60px rgba(10,30,60,.14);
}

body{
  color:var(--westcl-text);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

.site-main,
.entry-content{
  overflow-x:hidden;
}

.ast-container{
  max-width:1200px;
}

/* ---------------------------------------------------------
   Typography
--------------------------------------------------------- */
h1,h2,h3,h4{
  font-feature-settings:"palt";
  letter-spacing:-.02em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3{
  color:var(--westcl-text);
}

.wc-section-title,
.wc-ed-section-title,
.wc-aga-section-title,
.wc-pe-section-title,
.wc-tm-section-title{
  position:relative;
  margin:0 0 30px;
  padding-bottom:16px;
  font-size:clamp(28px,3vw,40px);
  line-height:1.28;
  font-weight:900;
  letter-spacing:-.035em;
  color:var(--westcl-text);
}

.wc-section-title::after,
.wc-ed-section-title::after,
.wc-aga-section-title::after,
.wc-pe-section-title::after,
.wc-tm-section-title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:76px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--westcl-navy),var(--westcl-sky));
}

/* ---------------------------------------------------------
   Section rhythm
--------------------------------------------------------- */
.wc-section,
.wc-ed-section,
.wc-aga-section,
.wc-pe-section,
.wc-tm-section{
  padding-top:86px;
  padding-bottom:86px;
}

.wc-container,
.wc-ed-container,
.wc-aga-container,
.wc-pe-container,
.wc-tm-container{
  width:min(100% - 32px,1200px);
  margin-inline:auto;
}

/* ---------------------------------------------------------
   Top page / Dashboard generated cards common polish
--------------------------------------------------------- */
.wc-card,
.wc-service-card,
.wc-feature-card,
.wc-article-card,
.wc-metric-card,
.wc-ed-card,
.wc-aga-card,
.wc-pe-card,
.wc-tm-card{
  border:1px solid var(--westcl-line);
  border-radius:var(--westcl-radius-lg);
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
  box-shadow:var(--westcl-shadow);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.wc-card:hover,
.wc-service-card:hover,
.wc-feature-card:hover,
.wc-article-card:hover,
.wc-metric-card:hover,
.wc-ed-card:hover,
.wc-aga-card:hover,
.wc-pe-card:hover,
.wc-tm-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--westcl-shadow-lg);
  border-color:rgba(30,78,143,.18);
}

.wc-card h3,
.wc-service-card h3,
.wc-feature-card h3,
.wc-article-card h3,
.wc-ed-card h3,
.wc-aga-card h3,
.wc-pe-card h3,
.wc-tm-card h3{
  font-size:clamp(18px,1.7vw,22px);
  line-height:1.45;
  font-weight:850;
  letter-spacing:-.025em;
  color:var(--westcl-text);
}

.wc-card p,
.wc-service-card p,
.wc-feature-card p,
.wc-article-card p,
.wc-ed-card p,
.wc-aga-card p,
.wc-pe-card p,
.wc-tm-card p{
  color:var(--westcl-muted);
  line-height:1.9;
}

/* ---------------------------------------------------------
   Hero polish common
--------------------------------------------------------- */
.wc-hero,
.wc-ed-hero,
.wc-aga-hero,
.wc-pe-hero,
.wc-tm-hero{
  position:relative;
  isolation:isolate;
}

.wc-hero::after,
.wc-ed-hero::after,
.wc-aga-hero::after,
.wc-pe-hero::after,
.wc-tm-hero::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);
  z-index:1;
}

.wc-hero-title,
.wc-ed-title,
.wc-aga-title,
.wc-pe-title,
.wc-tm-title{
  max-width:820px;
  font-weight:900;
  letter-spacing:-.045em;
}

.wc-hero-lead,
.wc-ed-lead,
.wc-aga-lead,
.wc-pe-lead,
.wc-tm-lead{
  max-width:720px;
}

/* image frame: delivery level */
.wc-hero-visual,
.wc-ed-hero__visual,
.wc-aga-hero__visual,
.wc-pe-hero__visual,
.wc-tm-hero__visual{
  position:relative;
  overflow:visible;
}

.wc-hero-visual img,
.wc-ed-hero__visual img,
.wc-aga-hero__visual img,
.wc-pe-hero__visual img,
.wc-tm-hero__visual img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
}

/* ---------------------------------------------------------
   Buttons / CTA
--------------------------------------------------------- */
.wc-btn,
.wc-cta-btn,
.wc-ed-btn,
.wc-aga-btn,
.wc-pe-btn,
.wc-tm-btn,
.wp-block-button__link{
  border-radius:999px;
  font-weight:800;
  letter-spacing:.01em;
  text-decoration:none !important;
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.wc-btn:hover,
.wc-cta-btn:hover,
.wc-ed-btn:hover,
.wc-aga-btn:hover,
.wc-pe-btn:hover,
.wc-tm-btn:hover,
.wp-block-button__link:hover{
  transform:translateY(-2px);
}

.wc-ed-btn--accent,
.wc-aga-btn--accent,
.wc-pe-btn--accent,
.wc-tm-btn--accent,
.wc-btn--accent,
.wc-cta-btn--accent{
  background:linear-gradient(180deg,var(--westcl-orange-2),var(--westcl-orange));
  color:#fff !important;
  box-shadow:0 14px 30px rgba(239,108,0,.24);
}

/* ---------------------------------------------------------
   Metrics / proof cards
--------------------------------------------------------- */
.wc-metrics,
.wc-proof,
.wc-hero-proof-overlay{
  font-variant-numeric:tabular-nums;
}

.wc-metric-card,
.wc-proof-card{
  position:relative;
  overflow:hidden;
}

.wc-metric-card::before,
.wc-proof-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at top right,rgba(106,166,255,.10),transparent 42%);
  pointer-events:none;
}

.wc-metric-number,
.wc-proof-number,
.wc-hero-proof-number{
  font-weight:950;
  letter-spacing:-.05em;
}

/* ---------------------------------------------------------
   Related links / articles
--------------------------------------------------------- */
.wc-related-grid,
.wc-ed-related-grid,
.wc-aga-related-grid,
.wc-pe-related-grid,
.wc-tm-related-grid,
.wc-featured-grid,
.wc-articles-grid{
  display:grid;
  gap:24px;
}

@media (min-width:1025px){
  .wc-related-grid,
  .wc-ed-related-grid,
  .wc-aga-related-grid,
  .wc-pe-related-grid,
  .wc-tm-related-grid,
  .wc-featured-grid,
  .wc-articles-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

.wc-related-card,
.wc-ed-related-card,
.wc-aga-related-card,
.wc-pe-related-card,
.wc-tm-related-card,
.wc-article-card{
  min-height:220px;
  padding:24px;
  display:flex;
  flex-direction:column;
  border-radius:24px;
  border:1px solid var(--westcl-line);
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
  box-shadow:var(--westcl-shadow);
}

.wc-related-card h3,
.wc-ed-related-card h3,
.wc-aga-related-card h3,
.wc-pe-related-card h3,
.wc-tm-related-card h3,
.wc-article-card h3{
  margin:0 0 10px;
  font-size:19px;
  line-height:1.45;
  font-weight:850;
}

.wc-related-card p,
.wc-ed-related-card p,
.wc-aga-related-card p,
.wc-pe-related-card p,
.wc-tm-related-card p,
.wc-article-card p{
  margin:0 0 18px;
  color:var(--westcl-muted);
  font-size:14px;
  line-height:1.85;
}

.wc-related-link,
.wc-ed-related-link,
.wc-aga-related-link,
.wc-pe-related-link,
.wc-tm-related-link{
  margin-top:auto;
  color:var(--westcl-navy);
  font-weight:850;
}

/* ---------------------------------------------------------
   FAQ
--------------------------------------------------------- */
.wc-faq details,
.wc-ed-faq__item,
.wc-aga-faq__item,
.wc-pe-faq__item,
.wc-tm-faq__item{
  border:1px solid rgba(15,53,104,.10);
  border-radius:22px;
  background:linear-gradient(180deg,#fff,#fbfdff);
  box-shadow:0 12px 28px rgba(10,30,60,.06);
}

.wc-faq summary,
.wc-ed-faq__item summary,
.wc-aga-faq__item summary,
.wc-pe-faq__item summary,
.wc-tm-faq__item summary{
  font-weight:850;
  color:var(--westcl-navy);
}

/* ---------------------------------------------------------
   Bottom CTA
--------------------------------------------------------- */
.wc-bottom-cta,
.wc-ed-bottom-cta,
.wc-aga-bottom-cta,
.wc-pe-bottom-cta,
.wc-tm-bottom-cta{
  border-radius:34px;
  box-shadow:0 26px 64px rgba(10,30,60,.18);
}

.wc-bottom-cta h2,
.wc-ed-bottom-cta h2,
.wc-aga-bottom-cta h2,
.wc-pe-bottom-cta h2,
.wc-tm-bottom-cta h2{
  letter-spacing:-.04em;
}

/* ---------------------------------------------------------
   Astra content compatibility
--------------------------------------------------------- */
.ast-plain-container.ast-no-sidebar #primary{
  margin-top:0;
  margin-bottom:0;
}

.entry-content > .wc-ed-page,
.entry-content > .wc-aga-page,
.entry-content > .wc-pe-page,
.entry-content > .wc-tm-page{
  margin-top:0;
}

/* ---------------------------------------------------------
   Mobile
--------------------------------------------------------- */
@media (max-width:1024px){
  .wc-section,
  .wc-ed-section,
  .wc-aga-section,
  .wc-pe-section,
  .wc-tm-section{
    padding-top:72px;
    padding-bottom:72px;
  }

  .wc-related-grid,
  .wc-ed-related-grid,
  .wc-aga-related-grid,
  .wc-pe-related-grid,
  .wc-tm-related-grid,
  .wc-featured-grid,
  .wc-articles-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:767px){
  .wc-container,
  .wc-ed-container,
  .wc-aga-container,
  .wc-pe-container,
  .wc-tm-container{
    width:min(100% - 24px,1200px);
  }

  .wc-section,
  .wc-ed-section,
  .wc-aga-section,
  .wc-pe-section,
  .wc-tm-section{
    padding-top:56px;
    padding-bottom:56px;
  }

  .wc-section-title,
  .wc-ed-section-title,
  .wc-aga-section-title,
  .wc-pe-section-title,
  .wc-tm-section-title{
    font-size:27px;
    line-height:1.32;
    margin-bottom:24px;
  }

  .wc-related-grid,
  .wc-ed-related-grid,
  .wc-aga-related-grid,
  .wc-pe-related-grid,
  .wc-tm-related-grid,
  .wc-featured-grid,
  .wc-articles-grid{
    grid-template-columns:1fr;
  }

  .wc-related-card,
  .wc-ed-related-card,
  .wc-aga-related-card,
  .wc-pe-related-card,
  .wc-tm-related-card,
  .wc-article-card{
    min-height:auto;
    padding:20px;
    border-radius:22px;
  }

  .wc-bottom-cta,
  .wc-ed-bottom-cta,
  .wc-aga-bottom-cta,
  .wc-pe-bottom-cta,
  .wc-tm-bottom-cta{
    border-radius:24px;
  }
}

/* ---------------------------------------------------------
   Print / admin bar safe
--------------------------------------------------------- */
@media print{
  .wc-ed-hero,
  .wc-aga-hero,
  .wc-pe-hero,
  .wc-tm-hero{
    background:#fff !important;
    color:#000 !important;
  }
}
