/* Taiyo Parts: front + editor */
:root{--taiyo-green:#597a43;--taiyo-deep:#17302c;--taiyo-orange:#df6c3f;--taiyo-cream:#fbf7ef;--taiyo-line:#eadfce;--taiyo-soft:#eef5e6;--taiyo-shadow:0 14px 34px rgba(43,51,38,.09)}
.taiyo-section{max-width:1120px;margin:clamp(36px,6vw,76px) auto;padding:0 20px;color:var(--taiyo-deep);box-sizing:border-box}.taiyo-section *{box-sizing:border-box}.taiyo-section h2{font-size:clamp(26px,3vw,38px);line-height:1.35;margin:0 0 18px;font-weight:800}.taiyo-section h3{font-size:clamp(19px,2vw,25px);line-height:1.45;margin:0 0 10px;font-weight:800}.taiyo-section p{font-size:16px;line-height:1.9;margin:0 0 1em}.taiyo-lead{font-size:clamp(16px,1.5vw,18px)!important;line-height:2!important}.taiyo-muted{color:#66736c}.taiyo-grid{display:grid;gap:22px}.taiyo-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.taiyo-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.taiyo-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.taiyo-card{background:#fff;border:1px solid var(--taiyo-line);border-radius:20px;padding:26px;box-shadow:var(--taiyo-shadow);overflow:hidden}.taiyo-card img{width:100%;height:180px;object-fit:cover;border-radius:16px;margin:0 0 16px;display:block}.taiyo-mini-card{text-align:center;background:#fff;border:1px solid var(--taiyo-line);border-radius:18px;padding:24px 18px;box-shadow:var(--taiyo-shadow)}.taiyo-mini-card .icon{font-size:38px;line-height:1;margin:0 0 12px;color:var(--taiyo-green)}.taiyo-btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.taiyo-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border-radius:999px;text-decoration:none!important;font-weight:800;font-size:15px}.taiyo-btn-primary{background:var(--taiyo-orange);color:#fff!important}.taiyo-btn-secondary{background:var(--taiyo-green);color:#fff!important}.taiyo-btn-outline{background:#fff;color:var(--taiyo-green)!important;border:1px solid var(--taiyo-green)}.taiyo-media{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:center}.taiyo-media img{width:100%;height:auto;border-radius:24px;box-shadow:var(--taiyo-shadow);display:block}.taiyo-note{border-left:6px solid var(--taiyo-green);background:var(--taiyo-soft);border-radius:0 18px 18px 0;padding:24px 28px}.taiyo-alert{border-left:6px solid var(--taiyo-orange);background:#fff6ed;border-radius:0 18px 18px 0;padding:24px 28px}.taiyo-price{background:#fff;border:1px solid var(--taiyo-line);border-radius:20px;box-shadow:var(--taiyo-shadow);padding:28px}.taiyo-price-row{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid var(--taiyo-line);padding:13px 0;font-size:16px}.taiyo-price-row:last-child{border-bottom:0}.taiyo-price-row strong:last-child{color:var(--taiyo-orange);font-size:19px}.taiyo-flow{counter-reset:taiyostep;display:grid;gap:16px}.taiyo-step{position:relative;background:#fff;border:1px solid var(--taiyo-line);border-radius:18px;padding:22px 22px 22px 76px;box-shadow:var(--taiyo-shadow)}.taiyo-step:before{counter-increment:taiyostep;content:counter(taiyostep);position:absolute;left:22px;top:22px;width:36px;height:36px;border-radius:50%;background:var(--taiyo-green);color:#fff;display:grid;place-items:center;font-weight:800}.taiyo-cta{background:linear-gradient(135deg,#fff 0%,#fff5eb 100%);border:1px solid var(--taiyo-line);border-radius:24px;padding:34px;box-shadow:var(--taiyo-shadow);display:grid;grid-template-columns:1.5fr 1fr;gap:24px;align-items:center}.taiyo-faq details{background:#fff;border:1px solid var(--taiyo-line);border-radius:14px;padding:18px 20px;margin:0 0 10px;box-shadow:0 8px 18px rgba(43,51,38,.05)}.taiyo-faq summary{font-weight:800;cursor:pointer}.taiyo-faq p{margin:12px 0 0}.taiyo-before-after{display:grid;grid-template-columns:1fr 1fr;gap:14px}.taiyo-before-after figure{margin:0;position:relative}.taiyo-before-after img{width:100%;height:220px;object-fit:cover;border-radius:18px;display:block}.taiyo-before-after figcaption{position:absolute;left:10px;top:10px;background:rgba(23,48,44,.86);color:#fff;border-radius:999px;padding:5px 12px;font-weight:800;font-size:13px}.taiyo-area{background:var(--taiyo-soft);border:1px solid #dae8c9;border-radius:22px;padding:28px}.taiyo-area-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.taiyo-area-list span{background:#fff;border:1px solid #d9e4cf;border-radius:999px;padding:8px 14px;font-weight:700}.taiyo-check{list-style:none!important;padding:0!important;margin:18px 0!important;display:grid;gap:10px}.taiyo-check li{position:relative;padding-left:30px;font-size:16px;line-height:1.8}.taiyo-check li:before{content:'✓';position:absolute;left:0;top:.1em;width:22px;height:22px;border-radius:50%;background:var(--taiyo-green);color:#fff;display:grid;place-items:center;font-size:13px;font-weight:800}.taiyo-sample-label{display:inline-block;background:#edf5e6;color:var(--taiyo-green);border-radius:999px;padding:5px 12px;font-size:13px;font-weight:800;margin-bottom:10px}
@media(max-width:900px){.taiyo-grid-3,.taiyo-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.taiyo-media,.taiyo-cta{grid-template-columns:1fr}.taiyo-section{padding:0 16px}.taiyo-card{padding:22px}}
@media(max-width:640px){.taiyo-grid-2,.taiyo-grid-3,.taiyo-grid-4{grid-template-columns:1fr}.taiyo-before-after{grid-template-columns:1fr}.taiyo-section{margin:42px auto}.taiyo-price-row{align-items:flex-start}.taiyo-btn{width:100%}.taiyo-card img{height:200px}.taiyo-before-after img{height:210px}}
/* Editor width fix */
.editor-styles-wrapper .taiyo-section{max-width:1120px!important;margin-left:auto!important;margin-right:auto!important}.editor-styles-wrapper .taiyo-grid{display:grid!important}.editor-styles-wrapper .taiyo-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.editor-styles-wrapper .taiyo-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.editor-styles-wrapper .taiyo-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}@media(max-width:900px){.editor-styles-wrapper .taiyo-grid-3,.editor-styles-wrapper .taiyo-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}.editor-styles-wrapper .taiyo-grid-2{grid-template-columns:1fr!important}}


/* v1.0.1: テーマ側の .content-body > * の狭い幅指定を太陽パーツだけ解除 */
.content-body > .taiyo-section,
.entry-content > .taiyo-section,
.wp-block-post-content > .taiyo-section,
.editor-styles-wrapper .content-body > .taiyo-section,
.editor-styles-wrapper .entry-content > .taiyo-section,
.editor-styles-wrapper .wp-block-post-content > .taiyo-section{
  width:min(1120px, calc(100% - 40px)) !important;
  max-width:1120px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* テーマが直下要素を小さくする場合でも、太陽パーツ内のグリッドは親幅いっぱい使う */
.taiyo-section > .taiyo-grid,
.taiyo-section > .taiyo-media,
.taiyo-section > .taiyo-cta,
.taiyo-section > .taiyo-price,
.taiyo-section > .taiyo-area,
.taiyo-section > .taiyo-faq,
.taiyo-section > .taiyo-before-after,
.taiyo-section > .taiyo-flow{
  width:100%;
}

@media(max-width:640px){
  .content-body > .taiyo-section,
  .entry-content > .taiyo-section,
  .wp-block-post-content > .taiyo-section,
  .editor-styles-wrapper .content-body > .taiyo-section,
  .editor-styles-wrapper .entry-content > .taiyo-section,
  .editor-styles-wrapper .wp-block-post-content > .taiyo-section{
    width:calc(100% - 32px) !important;
  }
}
