/*
Theme Name: こども図録
Description: こども図録の公式ウェブサイト。
Version: 1.1.14
Text Domain: kodomozuroku
*/

:root {
    color-scheme: light;
    --paper: #faf6ed;
    --cream: #f3eadb;
    --ink: #3b352e;
    --teal: #27635f;
    --coral: #a34b34;
    --line: #ded1bc;
    --sans: "mizolet", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.8 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.45; }
.shell { width: min(1120px, calc(100% - 88px)); margin-inline: auto; }
.narrow { max-width: 720px; }
.skip-link { position: absolute; z-index: 1; top: .5rem; left: .5rem; padding: .65rem 1rem; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { background: #fffaf2; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.header-inner { min-height: 76px; }
.brand { display: inline-flex; gap: 3px; text-decoration: none; }
.brand span {
    display: grid; place-items: center; width: 1.24em; height: 1.24em;
    border-radius: 3px; background: #38716b; color: #fffaf2;
    font: 800 clamp(1.25rem, 2.6vw, 1.75rem)/1 var(--sans);
}
.brand span:nth-child(2), .brand span:nth-child(5) { background: #a46125; }
.brand span:nth-child(3) { background: var(--coral); }
.site-header nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .25rem 1.35rem; }
.site-header nav a { color: var(--ink); font-size: .88rem; font-weight: 600; text-decoration: none; }
.site-header nav a:hover, .site-footer a:hover { text-decoration: underline; }

.hero { background: radial-gradient(ellipse at 33% 42%, #fffaf1, #eedfcb); }
.hero-inner { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 2.5rem; padding-block: 56px; }
.hero-copy h1 { color: var(--teal); font: 700 clamp(2.15rem, 4.3vw, 4.5rem)/1.4 var(--sans); letter-spacing: .025em; }
.hero-copy h1 span { color: #95581d; }
.hero-copy p { margin-top: .8rem; font-size: clamp(.96rem, 1.5vw, 1.15rem); }
.hero-photo { width: 100%; aspect-ratio: 1.62; object-fit: cover; border-radius: 8px 32px 8px 8px; box-shadow: 0 16px 38px #67503b26; }
.button { display: inline-flex; gap: .75rem; align-items: center; margin-top: 1.5rem; padding: .65rem 1.25rem; border-radius: 100px; background: var(--teal); color: #fff; font-weight: 650; text-decoration: none; }
.button:hover { background: #194d49; }

.section { padding-block: clamp(3.25rem, 7vw, 5.7rem); text-align: center; scroll-margin-top: 1rem; }
.eyebrow { color: var(--teal); font-size: .75rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.section h2 { margin-block: .55rem 1.05rem; color: var(--teal); font: 700 clamp(1.8rem, 4vw, 3.1rem)/1.45 var(--sans); letter-spacing: .035em; }
.section h2 em { color: var(--coral); font-style: normal; }
.concept { background: linear-gradient(165deg, #f3eadb 0%, var(--paper) 60%); }
.album { background: var(--cream); }
.section-intro { margin-inline: auto; max-width: 640px; }
.album-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.album-grid figure { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.album-grid img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.album-grid figcaption { padding: .8rem; font-size: .83rem; }
.values { background: #f7f0e2; }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.value-grid figure { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .8rem .45rem 1rem; border-radius: 16px; background: #f1e9dc; }
.value-grid img { width: min(210px, 100%); border-radius: 10px; }
.value-grid figcaption { color: var(--teal); font-weight: 700; line-height: 1.45; }
.photography-note { margin-top: 1.15rem; }
.guide { background: #f0eee3; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin: 2rem 0; padding: 0; list-style-position: inside; }
.steps li { padding: 1rem .75rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.steps li::marker { color: var(--coral); font-size: .86rem; font-weight: 750; }
.steps img { width: min(150px, 100%); margin: .2rem auto .6rem; border-radius: 8px; }
.steps h3, .work-return h3 { color: var(--teal); font-size: 1rem; margin-bottom: .35rem; }
.steps p { font-size: .85rem; }
.work-return { max-width: 690px; margin-inline: auto; }
.site-footer { padding-block: 1.6rem; border-top: 1px solid var(--line); background: linear-gradient(#fffbf2d9, #fffbf2f5), url("assets/paper-footer.webp") center bottom / cover no-repeat; font-size: .83rem; }
.site-footer a { font-weight: 700; text-decoration: none; }
.entry-list { min-height: 58vh; padding-block: 3.5rem; }
.entry-list article + article { margin-top: 2rem; }

@media (max-width: 760px) {
    .shell { width: calc(100% - 40px); }
    .header-inner { min-height: auto; padding-block: 1rem; }
    .site-header nav { gap: .35rem .75rem; }
    .site-header nav a { font-size: .75rem; }
    .hero-inner { grid-template-columns: 1fr; gap: 1.6rem; padding-block: 2.1rem 1.5rem; }
    .hero-copy { text-align: center; }
    .hero-photo { max-width: 540px; margin-inline: auto; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wide-only { display: none; }
}
@media (max-width: 490px) {
    .header-inner { flex-direction: column; gap: .55rem; }
    .site-header nav { justify-content: center; }
    .album-grid { grid-template-columns: 1fr; }
    .value-grid { gap: .4rem; }
    .value-grid figcaption { font-size: .77rem; }
}

/* こども図録のロゴ配色 */
:root {
    --paper: #fffaf3;
    --cream: #fcf0e8;
    --ink: #373833;
    --teal: #315e60;
    --coral: #a14e3c;
    --line: #e4d9cd;
    --brand-teal: #629396;
    --brand-mint: #bed0c7;
    --brand-peach: #f2b49c;
    --brand-gold: #e7b86e;
}
.site-header { background: var(--paper); }
.brand { flex: none; }
.brand img { width: clamp(148px, 22vw, 218px); height: auto; }
.hero {
    background: var(--paper) url("assets/brand/paper-top.png") center top / min(100%, 1400px) auto no-repeat;
}
.hero-inner {
    grid-template-columns: 1fr 1fr;
    padding-block: clamp(5rem, 13vw, 11rem) clamp(2.25rem, 6vw, 5rem);
}
.hero-slogan { width: 100%; height: auto; transform: rotate(-2deg); }
.hero-copy p { margin-top: clamp(.8rem, 2vw, 1.4rem); font-weight: 600; }
.hero-photo { border: .5rem solid #fffdf8; border-radius: 1rem 2.4rem 1.15rem 2rem; }
.concept { background: #f4f7f2; }
.concept-logo { width: clamp(76px, 12vw, 124px); height: auto; margin: 0 auto 1.25rem; border-radius: .8rem; transform: rotate(-4deg); box-shadow: 0 4px 12px #705c4321; }
.eyebrow { display: inline-flex; align-items: center; gap: .35rem; }
.eyebrow img { flex: none; }
.album { background: #fff0e8; }
.album-grid figure { border-radius: 1.15rem; background: #fffdf9; }
.values { background: #fffaed; }
.value-grid figure { background: #faedcc; }
.value-grid figure:nth-child(2) { background: #e7f0e9; }
.value-grid figure:nth-child(3) { background: #fceadd; }
.guide { background: #edf4ee; }
.steps li:nth-child(4n+1) { border-top: 4px solid var(--brand-gold); }
.steps li:nth-child(4n+2) { border-top: 4px solid var(--brand-peach); }
.steps li:nth-child(4n+3) { border-top: 4px solid var(--brand-mint); }
.steps li:nth-child(4n+4) { border-top: 4px solid var(--brand-teal); }
.site-footer {
    border-top: 0; text-align: center;
    background: var(--paper) url("assets/brand/paper-bottom.png") center bottom / min(100%, 1400px) auto no-repeat;
    padding-block: 2.3rem clamp(5.25rem, 15vw, 13rem);
}
.footer-inner { flex-direction: column; gap: .6rem; }
.footer-logo img { width: min(220px, 58vw); height: auto; }
@media (max-width: 760px) {
    .hero-inner { grid-template-columns: 1fr; padding-block: clamp(4.3rem, 15vw, 7rem) 2rem; }
    .hero-slogan { max-width: 520px; margin-inline: auto; }
}

/* 受付開始用の料金表 */
#plan-title em { white-space: nowrap; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; max-width: 1040px; margin: 1.65rem auto 1rem; }
.plan-card { display: flex; flex-direction: column; padding: 1.2rem .45rem; border: 1px solid var(--line); border-radius: 12px; background: #fffaf2; }
.plan-card dt { color: var(--teal); font-weight: 700; font-size: .94rem; }
.plan-card dd { margin: .2rem 0 0; color: var(--ink); font-family: var(--sans); font-size: clamp(1.28rem, 2.8vw, 1.8rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.45; }
.plan-card small { display: block; font: .74rem/1.5 var(--sans); }
.plan-note { font-size: .86rem; }
.plan-card .plan-order { margin-top: auto; padding-top: .65rem; }
.plan-card .plan-order .button { font: 650 .84rem/1.45 var(--sans); margin: 0; }
@media (max-width: 760px) {
    .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
}

#concept-title em { font-weight: 400; }

.plan-card .plan-guide { margin: .5rem 0 0; color: var(--ink); font: 400 .85rem/1.55 var(--sans); }

.plan-card .plan-art { margin: .3rem .12rem .5rem; }
.plan-collage {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: .55rem;
    background: radial-gradient(ellipse at center, #fffaf3, #f5e9d4);
}
.plan-child { position: absolute; z-index: 1; inset: 17% 32%; width: 36%; height: 66%; object-fit: contain; }
.plan-work {
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: var(--w);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 1%;
    border-radius: 5%;
    background: #fffbf3;
    box-shadow: 0 1px 3px #6d563643;
    transform: translate(-50%, -50%) rotate(var(--angle));
}

.section-divider { width: min(60%, 190px); height: auto; max-height: 15px; object-fit: contain; margin: 0 auto .75rem; }
.guide .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps .guide-envelope { width: 54px; height: 54px; object-fit: contain; margin-block: 1.3rem; }
.guide-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem auto 0; max-width: 920px; }
.guide-details .work-return { width: 100%; text-align: left; margin: 0; padding: 1.25rem; }
.box-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .7rem; margin-block: .8rem; font-size: .88rem; }
.box-prices div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem; border-bottom: 1px solid var(--line); }
.box-prices dd { margin: 0; font-weight: 700; }
.packing-notice { border-left: 3px solid var(--coral); padding-left: .75rem; margin-top: .8rem; font-size: .9rem; }
@media (max-width: 760px) {
    .guide .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-details { grid-template-columns: 1fr; }
}

.delivery-guide { margin-top: .85rem; }
.kdz-disclosure { margin: 1.5rem 0; max-width: 880px; }
.kdz-disclosure dt { font-weight: 700; color: var(--teal); margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.kdz-disclosure dd { margin: .25rem 0 0; overflow-wrap: anywhere; }

@media (max-width: 490px) {
    .woocommerce .wc-block-order-confirmation-additional-fields-wrapper .wc-block-components-additional-fields-list {
        grid-template-columns: minmax(0, 1fr);
    }
    .woocommerce .wc-block-order-confirmation-additional-fields-wrapper .wc-block-components-additional-fields-list dt {
        padding: .75rem .85rem .15rem;
        border-bottom: 0;
    }
    .woocommerce .wc-block-order-confirmation-additional-fields-wrapper .wc-block-components-additional-fields-list dd {
        padding: 0 .85rem .75rem;
        text-align: start;
        overflow-wrap: anywhere;
    }
}
