/*
Theme Name: Kotoha Atelier Child
Theme URI: https://koto-shira.com/
Author: koto-shira.com
Description: 白石琴葉専用デザイン。Kotoha Baseの子テーマです。
Template: kotoha-base
Version: 1.6.4
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: kotoha-atelier-child
License: GNU General Public License v2 or later
*/

:root{--kb-bg:#fff9f6;--kb-surface:#fff;--kb-text:#4c3c39;--kb-muted:#806f6b;--kb-accent:#b9655e;--kb-border:#efd8d1;--kotoha-blush:#efd8d1;--kotoha-mist:#e8f1f3;--kotoha-shadow:0 16px 42px rgba(90,67,63,.09)}
.site-header{backdrop-filter:blur(12px);background:rgba(255,255,255,.92);position:relative;z-index:10}.site-branding a,.entry-title{font-family:"Yu Mincho","Hiragino Mincho ProN",serif}.entry,.sidebar .widget{box-shadow:var(--kotoha-shadow)}.kotoha-hero{background-position:center;background-size:cover;min-height:650px}.kotoha-hero-inner{align-items:center;display:flex;min-height:650px}.kotoha-hero-copy{max-width:540px}.kotoha-eyebrow,.tool-eyebrow{color:var(--kb-accent);font-size:.78rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.kotoha-hero h1{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:clamp(2rem,4.4vw,4rem);line-height:1.35;margin:.3em 0}.kotoha-hero p{font-size:clamp(1rem,1.8vw,1.25rem)}.hero-buttons{display:flex;flex-wrap:wrap;gap:12px}.button.secondary{background:#fff;border:1px solid var(--kb-accent);color:var(--kb-accent)}.home-section{padding-block:76px}.home-section h2{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:clamp(1.7rem,3vw,2.5rem);text-align:center}.tool-grid{display:grid;gap:24px;grid-template-columns:repeat(3,1fr)}.tool-card{margin:0;padding:24px;transition:transform .2s ease}.tool-card:hover{transform:translateY(-3px)}.tool-card img{aspect-ratio:4/3;border-radius:14px;object-fit:cover}.awawa-section{background:var(--kotoha-mist)}.split{align-items:center;display:grid;gap:52px;grid-template-columns:.8fr 1.2fr}.profile-round{aspect-ratio:1;border-radius:50%;object-fit:cover}.about-image{border-radius:24px}.kotoha-note,.kotoha-awawa{border-radius:18px;margin:1.8em auto;max-width:var(--kb-reading);padding:22px 26px}.kotoha-note{background:#fff;border-left:5px solid var(--kb-accent)}.kotoha-awawa{background:var(--kotoha-mist);border-left:5px solid #90aeb7}.kotoha-note strong,.kotoha-awawa strong{display:block;margin-bottom:.35rem}.tool-single{max-width:980px;margin-inline:auto}.tool-meta{background:#fff;border:1px solid var(--kb-border);border-radius:18px;box-shadow:var(--kotoha-shadow);padding:24px}.tool-meta dl{display:grid;gap:12px;grid-template-columns:repeat(2,1fr)}.tool-meta dt{font-size:.75rem;font-weight:700}.tool-meta dd{margin:0}.site-footer{background:#4c3c39}
.entry-layout-profile{background:linear-gradient(180deg,#fff 0%,#fffaf7 100%)}.entry-layout-profile .profile-page-header{background:linear-gradient(135deg,#fff8f5 0%,#f8eeee 55%,#f4f8f8 100%);box-shadow:var(--kotoha-shadow)}.entry-layout-profile .profile-page-image img{border:8px solid rgba(255,255,255,.9);box-shadow:0 14px 38px rgba(90,67,63,.14)}
@media(max-width:800px){.kotoha-hero{background-position:66% center;min-height:620px}.kotoha-hero-inner{align-items:flex-end;min-height:620px;padding-bottom:46px}.kotoha-hero-copy{background:rgba(255,249,246,.88);border-radius:20px;padding:22px}.tool-grid{grid-template-columns:1fr}.split{grid-template-columns:1fr}.tool-meta dl{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.tool-card{transition:none}}

/* About Kotoha: profile layout only. */
.kotoha-layout-profile .entry-layout-profile{color:#493e3a;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif}.kotoha-layout-profile .profile-page-header{background:#fff;border-color:#ebcbc4}.kotoha-layout-profile .profile-page-eyebrow{color:#a85e63}.kotoha-layout-profile .profile-page-image img{object-fit:cover;object-position:50% 38%}.kotoha-layout-profile .kotoha-about{font-size:1rem;line-height:1.95}.kotoha-layout-profile .kotoha-about>*{margin-inline:auto;max-width:760px}.kotoha-layout-profile .kotoha-about h2{border-bottom:0;color:#493e3a;font-family:inherit;font-size:clamp(1.45rem,3vw,1.9rem);line-height:1.5;margin-top:3.4em;padding:0}.kotoha-layout-profile .kotoha-about h2::after{background:#ebcbc4;border-radius:99px;content:"";display:block;height:3px;margin-top:.55rem;width:52px}.kotoha-layout-profile .kotoha-about-intro{font-size:1.06rem}.kotoha-layout-profile .kotoha-worries{display:grid;gap:12px;grid-template-columns:repeat(3,1fr);list-style:none;margin-block:1.8rem;padding:0}.kotoha-layout-profile .kotoha-worries li{background:#fff9f6;border:1px solid #ebcbc4;border-radius:12px;margin:0;padding:18px}.kotoha-layout-profile .kotoha-worries li::before{color:#a85e63;content:"●";font-size:.6rem;margin-right:.55rem}.kotoha-layout-profile .kotoha-brand-quote{background:#fff9f6;border:1px solid #ebcbc4;border-left:5px solid #a85e63;border-radius:14px;color:#493e3a;font-size:clamp(1.15rem,2.5vw,1.4rem);font-weight:700;margin-block:2.2rem;padding:24px 28px}.kotoha-layout-profile .kotoha-brand-quote small{color:#766763;display:block;font-size:.78rem;font-weight:500;letter-spacing:.08em;margin-bottom:.35rem}.kotoha-layout-profile .kotoha-check-list{list-style:none;padding:0}.kotoha-layout-profile .kotoha-check-list li{margin:.65rem 0;padding-left:1.8rem;position:relative}.kotoha-layout-profile .kotoha-check-list li::before{align-items:center;background:#a85e63;border-radius:50%;color:#fff;content:"✓";display:flex;font-size:.7rem;font-weight:700;height:1.25rem;justify-content:center;left:0;position:absolute;top:.34rem;width:1.25rem}.kotoha-layout-profile .kotoha-topic-grid{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;margin-block:1.7rem;padding:0}.kotoha-layout-profile .kotoha-topic-grid li{background:#fff;border:1px solid #ebcbc4;border-radius:12px;margin:0;padding:18px 20px}.kotoha-layout-profile .kotoha-topic-icon{color:#a85e63;font-weight:700;margin-right:.45rem}.kotoha-layout-profile .kotoha-awawa-note{background:#f2f7fa;border:1px solid #cad8e2;border-left:5px solid #5f768a;border-radius:14px;margin-block:1.8rem;padding:24px 28px}.kotoha-layout-profile .kotoha-awawa-note strong{color:#455d70;display:block;margin-bottom:.45rem}.kotoha-layout-profile .kotoha-closing{padding-block:clamp(2rem,6vw,4.5rem)}.kotoha-layout-profile .kotoha-signature{border-top:1px solid #ebcbc4;margin-top:3rem;padding-top:1.5rem;text-align:right}.kotoha-layout-profile .kotoha-signature span{color:#a85e63;display:block;font-size:1.25rem;letter-spacing:.12em;margin-top:.35rem}.kotoha-layout-profile .kotoha-about a:focus-visible{border-radius:3px;outline:3px solid #5f768a;outline-offset:3px}
@media(max-width:720px){.kotoha-layout-profile .kotoha-worries,.kotoha-layout-profile .kotoha-topic-grid{grid-template-columns:1fr}.kotoha-layout-profile .kotoha-worries li,.kotoha-layout-profile .kotoha-topic-grid li{padding:15px 16px}.kotoha-layout-profile .kotoha-brand-quote,.kotoha-layout-profile .kotoha-awawa-note{padding:20px}.kotoha-layout-profile .kotoha-about{overflow-wrap:anywhere}}
.home-section-lead{text-align:center}.home-page-content{background:#fff}.home-page-content>.site-wrap{max-width:900px}.home-section .split h2{text-align:left}

/* Home 1.5.0: purpose-based learning entrances and editorial notebook. */
.kotoha-start-section{background:linear-gradient(180deg,#fff9f6 0%,#fff 100%)}
.kotoha-start-intro{margin-inline:auto;max-width:720px;text-align:center}
.kotoha-start-grid{display:grid;gap:20px;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:34px}
.kotoha-start-card{background:#fff;border:1px solid var(--kb-border);border-radius:20px;box-shadow:var(--kotoha-shadow);display:flex;flex-direction:column;min-width:0;padding:28px}
.kotoha-start-number{align-items:center;background:var(--kotoha-mist);border-radius:999px;color:#526e78;display:inline-flex;font-size:.76rem;font-weight:700;letter-spacing:.08em;margin-bottom:14px;min-height:2.1rem;padding:6px 12px;width:max-content}
.kotoha-start-card h3{font-size:1.2rem;line-height:1.55;margin:.2rem 0 .65rem}.kotoha-start-card p{color:var(--kb-muted);font-size:.95rem;margin-bottom:1.4rem}.kotoha-start-card .button{align-self:flex-start;margin-top:auto}
.kotoha-start-card a:focus-visible{outline:3px solid #5f768a;outline-offset:3px}
.kotoha-notebook-section{background:var(--kotoha-mist)}
.kotoha-notebook-intro{align-items:center;display:grid;gap:46px;grid-template-columns:minmax(220px,.72fr) minmax(0,1.28fr)}
.kotoha-notebook-intro .profile-round{margin-inline:auto;max-width:330px;width:100%}.kotoha-notebook-intro h2{text-align:left}
.kotoha-note-topics{display:flex;flex-wrap:wrap;gap:8px;margin:1.25rem 0}.kotoha-note-topic{background:rgba(255,255,255,.82);border:1px solid #cadde2;border-radius:999px;color:#49616a;font-size:.82rem;font-weight:700;padding:7px 12px}
.kotoha-article-grid{display:grid;gap:20px;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:38px}.kotoha-article-card{background:#fff;border:1px solid #d8e4e7;border-radius:18px;min-width:0;padding:22px}.kotoha-article-card h3{font-size:1.08rem;line-height:1.55;margin:.5rem 0}.kotoha-article-card h3 a{color:var(--kb-text)}.kotoha-article-card .entry-meta{color:var(--kb-muted);font-size:.78rem}.kotoha-article-card p{font-size:.92rem}
@media(max-width:800px){.kotoha-start-grid,.kotoha-article-grid{grid-template-columns:1fr}.kotoha-notebook-intro{grid-template-columns:1fr}.kotoha-notebook-intro h2{text-align:center}.kotoha-start-card,.kotoha-article-card{padding:20px}}
.kotoha-course{color:#493e3a;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;font-size:1rem;line-height:1.95;margin-inline:auto;max-width:780px;overflow-wrap:anywhere;padding-block:clamp(2rem,6vw,5rem)}
.kotoha-course>.kotoha-eyebrow:first-child{align-items:center;background:#fff1ee;border:1px solid #ebcbc4;border-radius:999px;color:#a85e63;display:inline-flex;font-size:.76rem;font-weight:800;letter-spacing:.14em;line-height:1.4;margin:0 0 1rem;padding:.48rem .85rem;text-transform:uppercase}
.kotoha-course>h2{border-bottom:1px solid #ebcbc4;border-left:5px solid #a85e63;color:#493e3a;font-family:inherit;font-size:clamp(1.35rem,3vw,1.75rem);line-height:1.55;margin:3.2rem 0 1.25rem;padding:.35rem 0 .55rem 1rem}
.kotoha-course a{text-underline-offset:.18em}.kotoha-course a:focus-visible{border-radius:4px;outline:3px solid #5f768a;outline-offset:3px}
.kotoha-course .kotoha-note{background:linear-gradient(135deg,#fff9f6 0%,#fff 100%);border:1px solid #ebcbc4;border-left:5px solid #a85e63;border-radius:18px;box-shadow:0 12px 30px rgba(90,67,63,.07);margin:2rem 0;max-width:none;padding:24px 28px;position:relative}
.kotoha-course .kotoha-note strong:first-child{color:#a85e63;display:block;font-size:.92rem;letter-spacing:.04em;margin-bottom:.45rem}.kotoha-course .kotoha-note p:last-child{margin-bottom:0}
.kotoha-course .kotoha-check-list{background:#fff;border:1px solid #ebcbc4;border-radius:18px;box-shadow:0 10px 26px rgba(90,67,63,.05);list-style:none;margin:1.7rem 0;padding:20px 24px}
.kotoha-course .kotoha-check-list li{margin:.65rem 0;padding-left:1.9rem;position:relative}.kotoha-course .kotoha-check-list li::before{align-items:center;background:#a85e63;border-radius:50%;color:#fff;content:"✓";display:flex;font-size:.7rem;font-weight:800;height:1.25rem;justify-content:center;left:0;position:absolute;top:.35rem;width:1.25rem}
.kotoha-course-steps{counter-reset:kotoha-step;display:grid;gap:18px;margin-top:2.5rem}.kotoha-course-step{background:#fff;border:1px solid var(--kb-border);border-radius:18px;box-shadow:var(--kotoha-shadow);min-width:0;padding:26px 28px;position:relative}.kotoha-course-step::before{background:#f2f7fa;border-radius:999px;color:#5f768a;content:"STEP";display:inline-block;font-size:.7rem;font-weight:800;letter-spacing:.12em;margin-bottom:.65rem;padding:.35rem .7rem}.kotoha-course-step h2{border:0;color:#493e3a;font-family:inherit;font-size:clamp(1.15rem,2.5vw,1.35rem);line-height:1.55;margin:0 0 .65rem;padding:0}.kotoha-course-step p:last-child{margin-bottom:0}
.kotoha-course-finish{background:linear-gradient(135deg,#f2f7fa 0%,#fff9f6 100%);border:1px solid #cad8e2;border-radius:22px;margin-top:2.75rem;padding:clamp(24px,5vw,46px);text-align:center}.kotoha-course-finish h2{border:0;color:#493e3a;font-family:inherit;font-size:clamp(1.3rem,3vw,1.7rem);margin:0 0 .7rem;padding:0}.kotoha-course-finish p{margin-inline:auto;max-width:620px}
.kotoha-course .button,.kotoha-course .wp-block-button__link{align-items:center;background:#a85e63;border:1px solid #a85e63;border-radius:999px;color:#fff;display:inline-flex;font-weight:700;justify-content:center;line-height:1.4;min-height:48px;padding:.75rem 1.4rem;text-align:center;text-decoration:none;transition:background-color .2s ease,transform .2s ease}.kotoha-course .button:hover,.kotoha-course .wp-block-button__link:hover{background:#934e54;color:#fff;transform:translateY(-2px)}.kotoha-course .button.secondary,.kotoha-course .is-style-outline .wp-block-button__link{background:#fff;color:#a85e63}.kotoha-course .button.secondary:hover,.kotoha-course .is-style-outline .wp-block-button__link:hover{background:#fff1ee;color:#934e54}
@media(max-width:720px){.kotoha-course{font-size:.96rem;padding-block:1.75rem}.kotoha-course>h2{margin-top:2.5rem;padding-left:.8rem}.kotoha-course .kotoha-note,.kotoha-course .kotoha-check-list,.kotoha-course-step{padding:20px}.kotoha-course .button,.kotoha-course .wp-block-button,.kotoha-course .wp-block-button__link{width:100%}}
@media(prefers-reduced-motion:reduce){.kotoha-course .button,.kotoha-course .wp-block-button__link{transition:none}.kotoha-course .button:hover,.kotoha-course .wp-block-button__link:hover{transform:none}}

/* Article detail pages: keep publication dates in WordPress, but do not show them publicly. */
.single-post .entry>.entry-meta{display:none}

/* Archive cards: compact thumbnail on the left, text on the right. */
body.archive .site-main>article.entry.has-post-thumbnail{
  align-items:center;
  column-gap:28px;
  display:grid;
  grid-template-columns:minmax(180px,260px) minmax(0,1fr);
}
body.archive .site-main>article.entry.has-post-thumbnail>.entry-title{
  grid-column:2;
  grid-row:1;
  margin-top:0;
}
body.archive .site-main>article.entry.has-post-thumbnail>.entry-meta{
  grid-column:2;
  grid-row:2;
}
body.archive .site-main>article.entry.has-post-thumbnail>.wp-post-image{
  align-self:stretch;
  border-radius:16px;
  grid-column:1;
  grid-row:1 / span 3;
  height:100%;
  margin:0;
  max-height:190px;
  min-height:150px;
  object-fit:cover;
  width:100%;
}
body.archive .site-main>article.entry.has-post-thumbnail>.entry-content{
  grid-column:2;
  grid-row:3;
}
body.archive .site-main>article.entry.has-post-thumbnail>.entry-content>:first-child{
  margin-top:.65rem;
}
@media (max-width:700px){
  body.archive .site-main>article.entry.has-post-thumbnail{
    display:grid;
    gap:14px;
    grid-template-columns:1fr;
  }
  body.archive .site-main>article.entry.has-post-thumbnail>.wp-post-image{
    grid-column:1;
    grid-row:1;
    height:auto;
    max-height:none;
    min-height:0;
  }
  body.archive .site-main>article.entry.has-post-thumbnail>.entry-title{
    grid-column:1;
    grid-row:2;
    margin-bottom:0;
  }
  body.archive .site-main>article.entry.has-post-thumbnail>.entry-meta{
    grid-column:1;
    grid-row:3;
  }
  body.archive .site-main>article.entry.has-post-thumbnail>.entry-content{
    grid-column:1;
    grid-row:4;
  }
}

/* Kotoha notebook archive: category guide above the latest posts. */
.kotoha-category-guide{
  background:#fff;
  border:1px solid var(--kb-border);
  border-radius:22px;
  box-shadow:var(--kotoha-shadow);
  margin-bottom:34px;
  padding:clamp(24px,4vw,42px);
}
.kotoha-category-guide__eyebrow{
  color:var(--kb-accent);
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.14em;
  margin:0 0 .45rem;
}
.kotoha-category-guide h1{
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:clamp(1.55rem,3vw,2.25rem);
  line-height:1.45;
  margin:0;
}
.kotoha-category-guide__lead{
  color:var(--kb-muted);
  margin:.8rem 0 1.5rem;
}
.kotoha-category-guide__grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.kotoha-category-guide__card{
  background:#fff9f6;
  border:1px solid #efd8d1;
  border-radius:15px;
  color:var(--kb-text);
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:18px;
  text-decoration:none;
  transition:border-color .2s ease,transform .2s ease;
}
.kotoha-category-guide__card:hover{
  border-color:var(--kb-accent);
  transform:translateY(-2px);
}
.kotoha-category-guide__card:focus-visible{
  outline:3px solid #5f768a;
  outline-offset:3px;
}
.kotoha-category-guide__label{
  color:var(--kb-accent);
  font-size:.7rem;
  font-weight:700;
  letter-spacing:.12em;
}
.kotoha-category-guide__title{
  font-weight:700;
  line-height:1.55;
  margin:.35rem 0;
}
.kotoha-category-guide__description{
  color:var(--kb-muted);
  font-size:.86rem;
  line-height:1.7;
  margin:0 0 .75rem;
}
.kotoha-category-guide__count{
  color:var(--kb-accent);
  font-size:.76rem;
  font-weight:700;
  margin-top:auto;
}
.kotoha-latest-heading{
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:clamp(1.35rem,2.5vw,1.8rem);
  margin:0 0 1rem;
}
@media (max-width:900px){
  .kotoha-category-guide__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
  .kotoha-category-guide__grid{grid-template-columns:1fr}
  .kotoha-category-guide__card{padding:16px}
}

/* Course article visuals and comparison tables */
.kotoha-course-visual{
  margin:32px auto;
}
.kotoha-course-visual img{
  display:block;
  width:100%;
  height:auto;
  border:1px solid #ebcbc4;
  border-radius:20px;
  box-shadow:0 14px 32px rgba(73,62,58,.08);
}
.kotoha-course-visual figcaption{
  margin-top:10px;
  color:#766965;
  font-size:.9rem;
  line-height:1.7;
  text-align:center;
}
.kotoha-table-wrap{
  margin:28px 0 34px;
  overflow-x:auto;
  border:1px solid #ebcbc4;
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 24px rgba(73,62,58,.06);
  -webkit-overflow-scrolling:touch;
}
.kotoha-comparison-table{
  width:100%;
  min-width:640px;
  margin:0;
  border:0;
  border-collapse:collapse;
  color:#493e3a;
  font-size:.95rem;
  line-height:1.75;
}
.kotoha-comparison-table th,
.kotoha-comparison-table td{
  padding:15px 17px;
  border:0;
  border-bottom:1px solid #f0dcd7;
  text-align:left;
  vertical-align:top;
}
.kotoha-comparison-table thead th{
  background:#fff2ef;
  color:#8f5055;
  font-weight:700;
}
.kotoha-comparison-table tbody th{
  width:22%;
  background:#fff9f6;
  font-weight:700;
}
.kotoha-comparison-table tr:last-child th,
.kotoha-comparison-table tr:last-child td{
  border-bottom:0;
}
.kotoha-table-hint{
  margin:-22px 0 30px;
  color:#766965;
  font-size:.82rem;
  text-align:right;
}
@media (max-width:600px){
  .kotoha-course-visual{margin:24px auto}
  .kotoha-course-visual img{border-radius:14px}
  .kotoha-comparison-table{min-width:560px;font-size:.9rem}
  .kotoha-comparison-table th,
  .kotoha-comparison-table td{padding:12px 14px}
  .kotoha-table-hint{text-align:left}
}
