@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* =========================
   Card Path Front Page
========================= */

.cardpath-front{
  display:block;
}

.cp-container{
  width:min(1120px,92%);
  margin:0 auto;
}

.cp-narrow{
  width:min(880px,92%);
}

.cp-hero,
.cp-problem,
.cp-solution,
.cp-type-guide,
.cp-layouts,
.cp-purpose,
.cp-beginner-cta{
  padding:72px 0;
}

.cp-hero{
  background:linear-gradient(180deg,#f8fafc 0%,#ffffff 100%);
  border-bottom:1px solid #e5e7eb;
}

.cp-eyebrow,
.cp-section-label{
  display:inline-block;
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#475569;
  margin-bottom:14px;
}

.cp-hero-title{
  font-size:clamp(32px,5vw,54px);
  line-height:1.2;
  margin:0 0 20px;
  color:#0f172a;
  font-weight:800;
}

.cp-hero-title span{
  position:relative;
}

.cp-hero-title span::after{
  content:"";
  position:absolute;
  left:0;
  bottom:4px;
  width:100%;
  height:10px;
  background:#fde68a;
  z-index:-1;
}

.cp-hero-text{
  font-size:17px;
  line-height:1.9;
  color:#334155;
  max-width:760px;
  margin:0 0 28px;
}

.cp-hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.cp-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 22px;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
  transition:.25s ease;
}

.cp-btn-primary{
  background:#0f172a;
  color:#fff;
}

.cp-btn-primary:hover{
  opacity:.9;
  transform:translateY(-1px);
}

.cp-btn-secondary{
  background:#fff;
  color:#0f172a;
  border:1px solid #cbd5e1;
}

.cp-btn-secondary:hover{
  background:#f8fafc;
}

.cp-section-head{
  margin-bottom:34px;
}

.cp-section-head h2{
  font-size:clamp(26px,4vw,38px);
  line-height:1.35;
  margin:0;
  color:#0f172a;
}

.cp-problem-grid,
.cp-role-grid,
.cp-type-grid,
.cp-layout-grid,
.cp-purpose-grid{
  display:grid;
  gap:22px;
}

.cp-problem-grid{
  grid-template-columns:repeat(3,1fr);
}

.cp-card,
.cp-role-box,
.cp-layout-card,
.cp-cta-box{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:22px;
  box-shadow:0 10px 30px rgba(15,23,42,.05);
}

.cp-card{
  padding:26px;
}

.cp-card h3,
.cp-role-box h3,
.cp-layout-card h3{
  margin:0 0 12px;
  font-size:21px;
  color:#0f172a;
}

.cp-card p,
.cp-role-box p,
.cp-layout-card li,
.cp-cta-box p{
  color:#475569;
  line-height:1.8;
  font-size:15px;
}

.cp-solution{
  background:#f8fafc;
}

.cp-role-grid{
  grid-template-columns:repeat(3,1fr);
}

.cp-role-box{
  padding:28px;
  position:relative;
}

.cp-role-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-size:13px;
  font-weight:700;
  margin-bottom:16px;
}

.cp-type-grid{
  grid-template-columns:repeat(3,1fr);
}

.cp-type-card{
  display:block;
  padding:28px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:22px;
  text-decoration:none;
  transition:.25s ease;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}

.cp-type-card:hover{
  transform:translateY(-4px);
  border-color:#94a3b8;
}

.cp-type-card h3{
  margin:0 0 10px;
  font-size:22px;
  color:#0f172a;
}

.cp-type-card p{
  margin:0 0 14px;
  color:#475569;
  line-height:1.8;
  font-size:15px;
}

.cp-type-card span{
  font-weight:700;
  color:#0f172a;
}

.cp-layout-grid{
  grid-template-columns:repeat(3,1fr);
}

.cp-layout-card{
  padding:28px;
}

.cp-layout-card ul{
  padding-left:18px;
  margin:0 0 16px;
}

.cp-text-link{
  font-weight:700;
  color:#0f172a;
  text-decoration:none;
  border-bottom:1px solid #0f172a;
  padding-bottom:2px;
}

.cp-purpose-grid{
  grid-template-columns:repeat(3,1fr);
}

.cp-purpose-item{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:78px;
  padding:18px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  text-decoration:none;
  color:#0f172a;
  font-weight:700;
  transition:.25s ease;
}

.cp-purpose-item:hover{
  background:#f8fafc;
  border-color:#94a3b8;
}

.cp-beginner-cta{
  background:#0f172a;
}

.cp-cta-box{
  padding:42px;
  text-align:center;
  background:#ffffff;
}

.cp-cta-box h2{
  margin:0 0 16px;
  font-size:clamp(26px,4vw,38px);
  line-height:1.4;
  color:#0f172a;
}

.cp-cta-box p{
  margin:0 0 24px;
}

/* フロントページではサイドバーを消す */
.home .l-content,
.home .l-mainContent{
  width:100% !important;
  max-width:100% !important;
}

.home .l-sidebar,
.home #sidebar,
.home .sidebar{
  display:none !important;
}

/* フロントページの本文幅調整 */
.home .c-entry__content,
.home .post_content,
.home .p-entry__body{
  max-width:100% !important;
}

/* フロントページの余計な余白を少し整理 */
.home .l-mainContent__inner,
.home .l-container{
  max-width:100% !important;
}

@media (max-width: 960px){
  .cp-problem-grid,
  .cp-role-grid,
  .cp-type-grid,
  .cp-layout-grid,
  .cp-purpose-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 640px){
  .cp-hero,
  .cp-problem,
  .cp-solution,
  .cp-type-guide,
  .cp-layouts,
  .cp-purpose,
  .cp-beginner-cta{
    padding:52px 0;
  }

  .cp-hero-title{
    font-size:32px;
  }

  .cp-hero-text{
    font-size:15px;
  }

  .cp-problem-grid,
  .cp-role-grid,
  .cp-type-grid,
  .cp-layout-grid,
  .cp-purpose-grid{
    grid-template-columns:1fr;
  }

  .cp-card,
  .cp-role-box,
  .cp-layout-card{
    padding:22px;
  }

  .cp-cta-box{
    padding:28px 22px;
  }

  .cp-btn{
    width:100%;
  }
}

/* =========================
   Card Path UI Kit v1
========================= */

/* 共通 */
.cp-ui-wrap{
  margin: 28px 0;
}

.cp-ui-note{
  font-size: 13px;
  color: #64748b;
  margin-top: 10px;
}

/* 結論ボックス */
.cp-conclusion-box{
  background: linear-gradient(180deg,#f8fafc 0%,#ffffff 100%);
  border: 1px solid #dbe4ee;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(15,23,42,.05);
}

.cp-conclusion-label{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#475569;
  margin-bottom:12px;
}

.cp-conclusion-title{
  font-size: 28px;
  line-height: 1.4;
  margin: 0 0 14px;
  color: #0f172a;
  font-weight: 800;
}

.cp-conclusion-text{
  font-size: 16px;
  line-height: 1.9;
  color: #334155;
  margin: 0;
}

/* おすすめ構成ボックス */
.cp-layout-box{
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.04);
  overflow: hidden;
  margin: 28px 0;
}

.cp-layout-head{
  background: #0f172a;
  color: #fff;
  padding: 18px 24px;
}

.cp-layout-head-title{
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.cp-layout-body{
  padding: 10px 24px 18px;
}

.cp-layout-row{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #eef2f7;
}

.cp-layout-row:last-child{
  border-bottom: none;
}

.cp-layout-role{
  font-weight: 700;
  color: #0f172a;
}

.cp-layout-value{
  color: #334155;
  line-height: 1.8;
}

.cp-layout-summary{
  margin-top: 12px;
  padding: 16px 18px;
  background: #f8fafc;
  border-radius: 16px;
  color: #334155;
  line-height: 1.8;
}

/* 比較カード */
.cp-compare-grid{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin: 28px 0;
}

.cp-compare-card{
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cp-compare-card.is-recommend{
  border-color: #cbd5e1;
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}

.cp-compare-badge{
  display: inline-block;
  align-self: flex-start;
  margin: 18px 18px 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fde68a;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

.cp-compare-inner{
  padding: 18px 18px 22px;
}

.cp-compare-title{
  font-size: 22px;
  font-weight: 800;
  line-height: 1.45;
  color: #0f172a;
  margin: 0 0 12px;
}

.cp-compare-meta{
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.cp-compare-meta div{
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 12px;
  font-size: 14px;
  color: #334155;
  line-height: 1.7;
}

.cp-compare-meta strong{
  color: #0f172a;
}

.cp-compare-points{
  margin: 0 0 18px;
  padding-left: 18px;
}

.cp-compare-points li{
  margin-bottom: 8px;
  color: #475569;
  line-height: 1.8;
}

.cp-compare-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: .25s ease;
}

.cp-compare-link:hover{
  opacity: .92;
  transform: translateY(-1px);
}

/* 記事中の見出し周辺を少し強化 */
.post_content h2,
.p-entry__body h2,
.c-entry__content h2{
  font-size: clamp(26px,3.4vw,36px);
  line-height: 1.4;
  margin-top: 54px;
  margin-bottom: 18px;
}

.post_content p,
.p-entry__body p,
.c-entry__content p{
  line-height: 1.95;
}

/* モバイル */
@media (max-width: 960px){
  .cp-compare-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .cp-conclusion-box,
  .cp-layout-body,
  .cp-compare-inner{
    padding-left: 20px;
    padding-right: 20px;
  }

  .cp-layout-head{
    padding: 16px 20px;
  }

  .cp-layout-row{
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cp-conclusion-title{
    font-size: 24px;
  }
}