@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/* 3分診断: 結果導線と将来案件CTAの交換境界 */
.ok-result-next { margin-top:20px; padding:18px; border:1px solid #cfe2d8; border-radius:10px; background:#fff; }
.ok-result-next-label { margin:0 0 4px!important; color:#60716b; font-size:12px; font-weight:700; }
.ok-result-next a { color:var(--ok-check-green)!important; font-weight:700; text-decoration:none!important; }
.ok-result-next a::after { content:" →"; }
.ok-service-slot[data-cta-state="pending"] { position:relative; padding-left:42px; }
.ok-service-slot[data-cta-state="pending"]::before { content:"準備中"; position:absolute; top:17px; left:14px; color:#60716b; font-size:10px; font-weight:700; writing-mode:vertical-rl; letter-spacing:.08em; }
.ok-service-slot [data-cta-link] { display:none; }
.ok-service-slot[data-cta-state="active"]::before { display:none; }
.ok-service-slot[data-cta-state="active"] [data-cta-link] { display:inline-flex; align-items:center; justify-content:center; min-height:44px; margin-top:8px; padding:9px 14px; border-radius:9px; color:#fff!important; background:var(--ok-check-green, #286b59); font-weight:700; text-decoration:none!important; }
.ok-service-slot[data-cta-state="active"][data-cta-visual="image-banner"] [data-cta-link] { display:inline-block; min-height:0; padding:0; border-radius:0; color:inherit!important; background:transparent; font-weight:400; line-height:0; }
.ok-article-summary, .ok-checklist-box { margin:24px 0; padding:20px 22px; border:1px solid #d7e5de; border-radius:12px; background:#f7faf8; }
.ok-article-summary > strong { display:block; margin-bottom:8px; color:#203b33; font-size:17px; }
.ok-article-summary ul, .ok-checklist-box ul { margin:0!important; }
.ok-article-summary li + li, .ok-checklist-box li + li { margin-top:6px; }
.ok-article-note { margin-top:26px!important; padding:14px 16px; border-radius:8px; color:#65756f; background:#f1f3f2; font-size:12px; }
@media screen and (max-width:480px) {
  .ok-result-next { padding:16px; }
  .ok-article-summary, .ok-checklist-box { padding:17px 16px; }
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}


/* 親の介護えらび: トップページ */
.page-id-12 .entry-title { margin-bottom: 28px; }
.page-id-12 .entry-content { color: #34443f; }
.page-id-12 .entry-content > .ok-home { margin-top: -8px; }
.ok-home, .ok-home * { box-sizing: border-box; }
.ok-home { --ok-green: #286b59; --ok-green-dark: #174d40; --ok-mint: #edf7f2; --ok-cream: #fffaf0; --ok-orange: #d8793b; --ok-line: #dce8e2; font-size: 16px; line-height: 1.8; }
.ok-home h2, .ok-home h3, .ok-home p { margin-top: 0; }
.ok-hero { position: relative; overflow: hidden; padding: clamp(34px, 6vw, 64px); border-radius: 24px; background: linear-gradient(135deg, #edf8f3 0%, #fffaf0 100%); border: 1px solid #e2ece6; }
.ok-hero::after { content: ""; position: absolute; right: -70px; top: -80px; width: 250px; height: 250px; border-radius: 50%; background: rgba(92, 157, 132, .1); }
.ok-eyebrow, .ok-section-label { margin-bottom: 8px !important; color: var(--ok-green); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.ok-hero h2 { position: relative; z-index: 1; margin-bottom: 18px; color: #203b33; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.4; }
.ok-hero-lead { position: relative; z-index: 1; max-width: 680px; margin-bottom: 26px !important; font-size: 17px; }
.ok-hero-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ok-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 12px 25px; border-radius: 12px; font-weight: 700; line-height: 1.35; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.ok-button:hover { transform: translateY(-2px); }
.ok-button-primary { flex-direction: column; color: #fff !important; background: var(--ok-green); box-shadow: 0 8px 20px rgba(40, 107, 89, .2); }
.ok-button-primary:hover { background: var(--ok-green-dark); box-shadow: 0 11px 24px rgba(40, 107, 89, .25); }
.ok-button small { font-size: 11px; font-weight: 400; opacity: .9; }
.ok-text-link, .ok-inline-link { color: var(--ok-green) !important; font-weight: 700; text-decoration: none !important; }
.ok-assurance { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0 !important; padding: 0 !important; list-style: none; color: #53665f; font-size: 13px; }
.ok-assurance li::before { content: "✓"; margin-right: 6px; color: var(--ok-green); font-weight: 700; }
.ok-section { padding: clamp(48px, 7vw, 76px) 0; }
.ok-section-heading { max-width: 680px; margin: 0 auto 30px; text-align: center; }
.ok-section-heading h2, .ok-about h2 { margin-bottom: 12px; color: #203b33; font-size: clamp(24px, 3.2vw, 32px); line-height: 1.45; }
.ok-diagnosis-panel { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 22px; padding: 26px 30px; border: 1px solid #cfe2d8; border-radius: 18px; background: #fff; box-shadow: 0 12px 32px rgba(33, 71, 58, .08); }
.ok-diagnosis-number { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; color: #fff; background: var(--ok-orange); font-size: 32px; font-weight: 700; }
.ok-diagnosis-number::after { content: "分"; margin-left: 2px; font-size: 14px; }
.ok-diagnosis-copy h3 { margin-bottom: 4px; color: #203b33; font-size: 22px; }
.ok-diagnosis-copy p { margin-bottom: 0; }
.ok-concerns { margin: 0 calc(50% - 50vw); padding-right: max(24px, calc((100vw - 860px) / 2)); padding-left: max(24px, calc((100vw - 860px) / 2)); background: #f5f9f7; }
.ok-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ok-card { position: relative; min-height: 190px; padding: 24px 22px; border: 1px solid var(--ok-line); border-radius: 16px; color: inherit !important; background: #fff; text-decoration: none !important; box-shadow: 0 5px 18px rgba(34, 72, 59, .04); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ok-card:hover { transform: translateY(-4px); border-color: #96bdad; box-shadow: 0 10px 25px rgba(34, 72, 59, .1); }
.ok-card-accent { background: var(--ok-mint); }
.ok-card-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 15px; border-radius: 12px; color: var(--ok-green-dark); background: var(--ok-mint); font-weight: 700; }
.ok-card-accent .ok-card-icon { color: #fff; background: var(--ok-green); }
.ok-card h3 { margin-bottom: 5px; color: #203b33; font-size: 17px; line-height: 1.5; }
.ok-card p { margin-bottom: 0; color: #60716b; font-size: 14px; }
.ok-card-arrow { position: absolute; right: 20px; top: 27px; color: var(--ok-green); font-weight: 700; }
.ok-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ok-feature-card { overflow: hidden; border: 1px solid var(--ok-line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(34, 72, 59, .06); }
.ok-feature-visual { display: grid; place-items: center; min-height: 125px; color: #fff; font-size: 26px; font-weight: 700; letter-spacing: .12em; }
.ok-feature-facility { background: linear-gradient(135deg, #4f8979, #2d6959); }
.ok-feature-meal { background: linear-gradient(135deg, #d89965, #c5753e); }
.ok-feature-body { padding: 25px; }
.ok-feature-tag { margin-bottom: 6px !important; color: var(--ok-green); font-size: 12px; font-weight: 700; }
.ok-feature-body h3 { margin-bottom: 10px; color: #203b33; font-size: 20px; }
.ok-feature-body p { font-size: 14px; }
.ok-about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 70px); border-top: 1px solid var(--ok-line); }
.ok-note { margin-top: 20px !important; padding: 15px 18px; border-radius: 10px; color: #64736e; background: #f6f7f6; font-size: 12px; }
.ok-bottom-cta { margin-bottom: 24px; padding: clamp(38px, 6vw, 58px) 24px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, var(--ok-green-dark), var(--ok-green)); text-align: center; }
.ok-bottom-cta p { margin-bottom: 4px; opacity: .85; }
.ok-bottom-cta h2 { margin-bottom: 22px; color: #fff; font-size: clamp(24px, 3.4vw, 32px); }
.ok-button-light { color: var(--ok-green-dark) !important; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.ok-button-light:hover { background: #f5fbf8; }
@media screen and (max-width: 834px) {
  .ok-diagnosis-panel { grid-template-columns: 64px 1fr; }
  .ok-diagnosis-panel .ok-button { grid-column: 1 / -1; }
  .ok-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 480px) {
  .page-id-12 .entry-content { margin-right: 0; margin-left: 0; }
  .ok-pc-break { display: none; }
  .ok-hero { padding: 30px 22px; border-radius: 18px; }
  .ok-hero h2 { font-size: 27px; }
  .ok-hero-lead { font-size: 15px; }
  .ok-hero-actions, .ok-button { width: 100%; }
  .ok-text-link { width: 100%; text-align: center; }
  .ok-assurance { justify-content: center; gap: 5px 12px; }
  .ok-diagnosis-panel { display: block; padding: 24px 20px; text-align: center; }
  .ok-diagnosis-number { margin: 0 auto 14px; }
  .ok-diagnosis-copy { margin-bottom: 18px; }
  .ok-card-grid, .ok-feature-grid, .ok-about { grid-template-columns: 1fr; }
  .ok-card { min-height: 165px; }
  .ok-feature-section { padding-bottom: 50px; }
  .ok-about { gap: 8px; }
}

/* トップページのCocoon記事用UIを抑制 */
.page-id-12 .entry-title,
.page-id-12 .sns-share,
.page-id-12 .date-tags,
.page-id-12 .toc { display: none; }
.page-id-12 .article-header { margin-bottom: 0; }

/* トップページカード: WordPress自動整形対策 */
.ok-card-grid > .ok-card {
  display: block;
  position: relative;
  width: auto;
  min-width: 0;
  margin: 0;
}
.ok-card-title,
.ok-card-copy {
  display: block;
  overflow-wrap: anywhere;
  word-break: normal;
}
.ok-card-title {
  margin: 0 28px 5px 0;
  color: #203b33;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}
.ok-card-copy {
  margin: 0;
  color: #60716b;
  font-size: 14px;
  line-height: 1.7;
}

/* WordPressが自動挿入する改行をレイアウト項目から除外 */
.ok-card-grid > br,
.ok-hero-actions > br {
  display: none;
}

/* 親の介護えらび: 3分診断（page-id-15限定） */
.page-id-15 .toc { display: none; }
.page-id-15 .entry-content { color: #34443f; }
.ok-check, .ok-check * { box-sizing: border-box; }
.ok-check { --ok-check-green:#286b59; --ok-check-dark:#174d40; --ok-check-mint:#edf7f2; --ok-check-line:#d7e5de; max-width: 760px; margin: 10px auto 32px; line-height: 1.8; }
.ok-check button { font: inherit; }
.ok-check-intro, .ok-check-flow, .ok-check-results { padding: clamp(26px,5vw,46px); border:1px solid var(--ok-check-line); border-radius:20px; background:#fff; box-shadow:0 10px 30px rgba(34,72,59,.07); }
.ok-check-intro { background:linear-gradient(135deg,#edf8f3 0%,#fffaf0 100%); }
.ok-check-eyebrow, .ok-check-step, .ok-result-label { margin:0 0 8px!important; color:var(--ok-check-green); font-size:12px; font-weight:700; letter-spacing:.12em; }
.ok-check h2, .ok-check h3 { color:#203b33; line-height:1.45; }
.ok-check-intro h2, .ok-check-results>h2 { margin:0 0 14px; font-size:clamp(26px,4vw,36px); }
.ok-check-points { display:flex; flex-wrap:wrap; gap:6px 18px; margin:22px 0!important; padding:0!important; list-style:none; color:#53665f; font-size:13px; }
.ok-check-points li::before { content:"✓"; margin-right:5px; color:var(--ok-check-green); font-weight:700; }
.ok-check-start, .ok-check-restart { min-height:52px; padding:11px 24px; border:0; border-radius:11px; color:#fff; background:var(--ok-check-green); font-weight:700; cursor:pointer; }
.ok-check-start:hover, .ok-check-restart:hover { background:var(--ok-check-dark); }
.ok-check-progress { margin-bottom:30px; color:#53665f; font-size:13px; font-weight:700; }
.ok-check-progress-track { overflow:hidden; height:7px; margin-top:7px; border-radius:20px; background:#e7eeea; }
.ok-check-progress-track span { display:block; width:25%; height:100%; border-radius:20px; background:var(--ok-check-green); transition:width .25s ease; }
.ok-check-question h3 { margin:0 0 20px; font-size:clamp(21px,3vw,27px); }
.ok-check-options { display:grid; gap:11px; }
.ok-check-options button { position:relative; width:100%; min-height:58px; padding:14px 48px 14px 17px; border:1px solid var(--ok-check-line); border-radius:11px; color:#2e403a; background:#fff; text-align:left; cursor:pointer; transition:border-color .2s,background .2s,transform .2s; }
.ok-check-options button::after { content:"→"; position:absolute; right:18px; top:50%; color:var(--ok-check-green); font-weight:700; transform:translateY(-50%); }
.ok-check-options button:hover, .ok-check-options button:focus-visible { border-color:#78aa96; background:var(--ok-check-mint); transform:translateY(-1px); }
.ok-check-nav { margin-top:18px; }
.ok-check-back { padding:8px 2px; border:0; color:var(--ok-check-green); background:transparent; text-decoration:underline; cursor:pointer; }
.ok-check-result { margin-top:22px; padding:24px; border-left:5px solid var(--ok-check-green); border-radius:10px; background:#f7faf8; }
.ok-check-result h3 { margin:0 0 12px; font-size:clamp(21px,3vw,27px); }
.ok-check-result ol { margin:18px 0; padding-left:1.4em; }
.ok-check-result li+li { margin-top:7px; }
.ok-result-links { display:flex; flex-wrap:wrap; gap:9px; margin-top:20px; }
.ok-result-links a { display:inline-flex; align-items:center; min-height:44px; padding:9px 14px; border-radius:9px; color:#fff!important; background:var(--ok-check-green); font-weight:700; text-decoration:none!important; }
.ok-service-slot { display:grid; gap:3px; margin-top:20px; padding:15px 17px; border:1px dashed #9dbdaf; border-radius:9px; color:#53665f; background:#fff; font-size:13px; }
.ok-service-slot strong { color:#29483e; }
.ok-check-restart-wrap { margin-top:24px; text-align:center; }
.ok-check-disclaimer { margin:24px 0 0!important; padding:14px 16px; border-radius:8px; color:#65756f; background:#f1f3f2; font-size:12px; }
.ok-check [hidden] { display:none!important; }
@media screen and (min-width:1024px) and (max-width:1300px) {
  .navi-in>ul li a { padding-right:9px; padding-left:9px; font-size:14px; }
}
@media screen and (max-width:480px) {
  .ok-check-intro, .ok-check-flow, .ok-check-results { padding:24px 18px; border-radius:15px; }
  .ok-check-start, .ok-check-restart, .ok-result-links a { width:100%; justify-content:center; }
  .ok-check-points { display:block; }
  .ok-check-points li+li { margin-top:4px; }
  .ok-check-result { padding:20px 16px; }
}

/* 親の介護えらび: 写真ヒーロー v2（page-id-12限定） */
.page-id-12 #main { width: 100%; }
.page-id-12 #sidebar { display: none; }
.page-id-12 .content-in { max-width: 1240px; margin-right: auto; margin-left: auto; }
.page-id-12 .ok-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(500px, 54vw, 610px);
  padding: clamp(40px, 6vw, 68px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #dce8e2;
  border-radius: 24px;
  background: #f4f1e9;
}
.page-id-12 .ok-hero-media,
.page-id-12 .ok-hero-media img,
.page-id-12 .ok-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.page-id-12 .ok-hero-media { z-index: -3; left: 23%; width: 77%; margin: 0; }
.page-id-12 .ok-hero-media img {
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}
.page-id-12 .ok-hero-shade {
  z-index: -2;
  background: linear-gradient(90deg,
    rgba(255, 253, 248, .97) 0%,
    rgba(255, 253, 248, .92) 34%,
    rgba(255, 253, 248, .68) 53%,
    rgba(255, 253, 248, .12) 76%,
    rgba(255, 253, 248, 0) 100%);
}
.page-id-12 .ok-hero-copy { width: min(53%, 520px); }
.page-id-12 .ok-eyebrow {
  margin-bottom: 13px !important;
  color: #286b59;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}
.page-id-12 .ok-hero h2 {
  margin-bottom: 20px;
  color: #203b33;
  font-family: "A-OTF Ryumin Pr6N", "Ryumin Pro", "リュウミン", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: clamp(38px, 4.7vw, 52px);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: .025em;
  text-wrap: balance;
}
.page-id-12 .ok-hero-lead {
  max-width: 510px;
  margin-bottom: 27px !important;
  color: #34443f;
  font-size: 16px;
  line-height: 1.9;
}
.page-id-12 .ok-hero-actions { gap: 16px 20px; }
.page-id-12 .ok-hero .ok-button-primary {
  flex-direction: row;
  min-height: 56px;
  padding: 13px 22px;
  border: 2px solid transparent;
}
.page-id-12 .ok-hero .ok-button:focus-visible,
.page-id-12 .ok-hero .ok-text-link:focus-visible {
  outline: 3px solid #f2a15f;
  outline-offset: 3px;
}
.page-id-12 .ok-hero .ok-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.page-id-12 .ok-hero .ok-assurance { margin-top: 20px !important; }

@media (prefers-reduced-motion: reduce) {
  .page-id-12 .ok-hero .ok-button { transition: none; }
  .page-id-12 .ok-hero .ok-button:hover { transform: none; }
}

@media screen and (max-width: 700px) {
  .page-id-12 .content-in { max-width: none; }
  .page-id-12 .ok-hero { min-height: 520px; padding: 34px 28px; }
  .page-id-12 .ok-hero-copy { width: min(64%, 430px); }
  .page-id-12 .ok-hero h2 { font-size: clamp(31px, 6.2vw, 42px); }
}

@media screen and (max-width: 480px) {
  .page-id-12 .ok-hero {
    display: block;
    min-height: 0;
    padding: 0;
    border-radius: 18px;
    background: #fffdf8;
  }
  .page-id-12 .ok-hero-media {
    position: relative;
    z-index: auto;
    display: block;
    aspect-ratio: 16 / 10;
    left: auto;
    width: 100%;
    overflow: hidden;
    background: #e8ece8;
  }
  .page-id-12 .ok-hero-media img {
    position: static;
    object-position: 48% 48%;
  }
  .page-id-12 .ok-hero-shade { display: none; }
  .page-id-12 .ok-hero-copy {
    width: 100%;
    padding: 27px 21px 25px;
  }
  .page-id-12 .ok-eyebrow { margin-bottom: 9px !important; font-size: 12px; }
  .page-id-12 .ok-hero h2 { margin-bottom: 15px; font-size: 30px; line-height: 1.42; }
  .page-id-12 .ok-hero-lead { margin-bottom: 21px !important; font-size: 15px; line-height: 1.8; }
  .page-id-12 .ok-hero .ok-button-primary { width: 100%; padding-right: 15px; padding-left: 15px; }
  .page-id-12 .ok-hero .ok-text-link { width: 100%; justify-content: center; }
  .page-id-12 .ok-hero .ok-assurance { justify-content: center; }
}

/* 写真ヒーロー v2: 既存背景より前へ表示 */
.page-id-12 .ok-hero-media { z-index: 0; }
.page-id-12 .ok-hero-shade { z-index: 1; }
.page-id-12 .ok-hero-copy { position: relative; z-index: 2; }
.page-id-12 .ok-hero::after { display: none; }

/* 写真ヒーロー v2: Cocoon見出し装飾を解除 */
.page-id-12 .ok-hero h2 {
  padding: 0;
  border: 0;
  background: transparent;
}
.page-id-12 .ok-hero h2::before,
.page-id-12 .ok-hero h2::after { display: none; }

/* 写真ヒーロー v2: 買い物袋を含む写真領域を明瞭化 */
@media screen and (min-width: 701px) {
  .page-id-12 .ok-hero {
    background: #fffdf8;
  }
  .page-id-12 .ok-hero-media {
    left: 38%;
    width: 62%;
  }
  .page-id-12 .ok-hero-media img {
    object-position: 35% 50%;
  }
  .page-id-12 .ok-hero-shade {
    background: linear-gradient(90deg,
      #fffdf8 0%,
      #fffdf8 37%,
      rgba(255, 253, 248, .96) 39%,
      rgba(255, 253, 248, .62) 41%,
      rgba(255, 253, 248, .16) 44%,
      rgba(255, 253, 248, 0) 47%);
  }
  .page-id-12 .ok-hero-copy {
    width: min(38%, 440px);
  }
  .page-id-12 .ok-hero h2 {
    font-size: clamp(36px, 4vw, 49px);
  }
  .page-id-12 .ok-hero-lead {
    font-size: 15px;
  }
}

/* 写真ヒーロー v2: コピーを指定の2行に整える */
@media screen and (min-width: 701px) {
  .page-id-12 .ok-hero-copy { width: min(40%, 455px); }
  .page-id-12 .ok-hero h2 { font-size: clamp(36px, 3.2vw, 42px); }
}
