@charset "UTF-8";

.calendar2027-page #header { position: sticky; }
.calendar2027-page #to-top { display: none; }
.calendar2027-page .hamburger:focus-visible { outline: 2px solid #1b4735; outline-offset: 5px; }

.cal27 {
    --paper: #faf8f2;
    --white: #fffefa;
    --ink: #232e27;
    --green: #173d2e;
    --muted: #4e5a50;
    --line: #ccd6c8;
    --gold: #e8d09a;
    --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
    --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans CJK JP", sans-serif;
    background: var(--paper);
    color: var(--ink);
    font: 400 1rem/1.75 var(--sans);
}
.cal27 *, .cal27 *::before, .cal27 *::after { box-sizing: border-box; }
.cal27 p, .cal27 dt, .cal27 dd, .cal27 li, .cal27 label, .cal27 legend { line-height: 1.75; }
.cal27 img { display: block; height: auto; }
.cal27 :focus-visible { outline: 3px solid #8e6a2c; outline-offset: 3px; }
.cal27 a { color: inherit; }
.cal27 input, .cal27 select, .cal27 button { font: inherit; }
.cal27-wrap { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }

.cal27-hero {
    overflow: hidden;
    background:
        radial-gradient(ellipse at 76% 45%, #375039 0%, transparent 49%),
        linear-gradient(115deg, #102c23, #142e25 60%, #1e3c2a);
    color: #fffaf0;
}
.cal27-hero-inner {
    display: grid;
    grid-template:
        ". stage" minmax(0, 1fr)
        "title stage" auto
        "details stage" auto
        ". stage" minmax(0, 1fr)
        / minmax(365px, .9fr) minmax(0, 1.28fr);
    align-items: center;
    min-height: 522px;
    column-gap: 1.45rem;
    padding-block: 3.45rem;
}
.cal27-hero-copy { grid-area: title; align-self: end; }
.cal27-hero-details { grid-area: details; align-self: start; }
.cal27 .cal27-kicker {
    display: flex;
    align-items: center;
    gap: .72rem;
    color: #f0d9a3;
    font: 500 1rem/1.6 var(--serif);
    letter-spacing: .1em;
}
.cal27-kicker::before { content: ""; width: 24px; height: 1px; background: var(--gold); }
.cal27-hero h2 { margin: 1.2rem 0 1.5rem; font: 500 clamp(2.05rem, 3.45vw, 3rem)/1.28 var(--serif); letter-spacing: .03em; }
.cal27-year { display: flex; align-items: baseline; gap: .18em; margin-bottom: .11em; font: 500 1.7em/.96 Georgia, serif; letter-spacing: -.06em; }
.cal27-year span { font: 500 .44em/1 var(--serif); letter-spacing: 0; }
.cal27 .cal27-limit {
    display: inline-flex;
    align-items: baseline;
    gap: .28em;
    padding: .18rem .7rem;
    border: 1px solid #b99d65;
    border-radius: 2px;
    color: #f4dfae;
    font: 600 1rem/1.48 var(--serif);
    letter-spacing: .07em;
}
.cal27-limit b { font: 500 1.45em/1 Georgia, serif; letter-spacing: 0; }
.cal27 .cal27-lead { margin: 1rem 0 1.2rem; color: #fffaf0; text-wrap: pretty; }
.cal27 .cal27-note { margin-top: .7rem; color: #ebe4d1; font-size: .9rem; }
.cal27 .cal27-status { font-weight: 700; }
.cal27-hero :focus-visible { outline-color: var(--gold); }

.cal27-stage { grid-area: stage; position: relative; isolation: isolate; aspect-ratio: 1.48; }
.cal27-stage::before {
    position: absolute;
    z-index: -1;
    inset: 62% 5% 0;
    border-radius: 50%;
    background: #061710;
    opacity: .65;
    filter: blur(29px);
    content: "";
}
.cal27-stage .cal27-stage-calendar {
    position: absolute;
    top: 9.5%;
    left: 15%;
    width: 71%;
    transform: rotate(-4.7deg);
    filter: drop-shadow(9px 15px 13px #091b13a0);
}
.cal27-stage .cal27-stage-catalog, .cal27-stage .cal27-stage-menu {
    position: absolute;
    bottom: 3.7%;
    width: 23.1%;
    border-radius: 1px;
    box-shadow: 1px 2px 0 #e6dcc7, 3px 4px 0 #baae96, 7px 11px 18px #0a1e1599;
}
.cal27-stage .cal27-stage-catalog { left: 4.5%; transform: rotate(-10deg); }
.cal27-stage .cal27-stage-menu { right: 2.25%; transform: rotate(9deg); }

.cal27-heading { margin: 0; color: var(--green); font: 650 clamp(1.68rem, 2.8vw, 2.43rem)/1.44 var(--serif); letter-spacing: .055em; }
.cal27-gifts { padding-block: 3.5rem 4.1rem; }
.cal27-gift-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    margin-top: 1.45rem;
}
.cal27-gift-grid article { min-width: 0; }
.cal27-gift-grid figure {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.63;
    border-radius: 3px;
    background: radial-gradient(ellipse at 45% 35%, #f4f3ec, #e8e9dc);
}
.cal27-gift-grid article:nth-child(2) figure { background: radial-gradient(ellipse at 45% 35%, #f1ede4, #e9e0d3); }
.cal27-gift-grid article:nth-child(3) figure { background: radial-gradient(ellipse at 45% 35%, #f8eeea, #efdfd8); }
.cal27-gift-grid img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 75%;
    max-width: 82%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    box-shadow: 2px 4px 12px #27251d33;
}
.cal27-gift-grid h3 { margin-top: .95rem; font: 650 1.21rem/1.55 var(--serif); }
.cal27-gift-grid p { margin-top: .38rem; color: var(--muted); font-size: .94rem; }

.cal27-entry {
    scroll-margin-top: 86px;
    padding-block: 4.1rem 4.65rem;
    border-top: 1px solid #e0e5d9;
    background: #edf0e7;
}
.cal27-entry-grid {
    display: grid;
    grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
    align-items: start;
    gap: clamp(1.75rem, 6vw, 5.2rem);
}
.cal27-intro > p { margin-top: .86rem; }
.cal27-terms { margin-top: 1.45rem; border-top: 1px solid #becbbb; }
.cal27-terms > div {
    display: grid;
    grid-template-columns: 5.3em 1fr;
    gap: .5rem;
    padding: .68rem 0;
    border-bottom: 1px solid #becbbb;
}
.cal27-terms dt { color: var(--green); font-weight: 700; }

.cal27-card {
    padding: clamp(1.15rem, 3.6vw, 2.45rem);
    border: 1px solid #d9e0d2;
    border-radius: 5px;
    background: var(--white);
    box-shadow: 0 7px 22px #2645330b;
}
.cal27-card h3 { color: var(--green); font: 650 1.3rem/1.48 var(--serif); }
.cal27-card > p { margin-top: .7rem; }
.cal27-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    margin: .8rem 0 1.45rem;
}
.cal27 .cal27-steps li {
    display: grid;
    align-items: center;
    min-height: 40px;
    padding: .36rem .2rem;
    background: #eef0e9;
    color: #425047;
    text-align: center;
    font-size: .81rem;
    line-height: 1.43;
}
.cal27 .cal27-steps li[aria-current] { background: var(--green); color: white; font-weight: 700; }
.cal27 .cal27-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 49px;
    padding: .68rem 1.22rem;
    border: 1px solid transparent;
    border-radius: 3px;
    background: var(--green);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
}
.cal27 .cal27-button:hover { background: #23563e; }
.cal27 .cal27-button-gold { background: var(--gold); color: #20372a; }
.cal27 .cal27-button-gold:hover { background: #f2dfb4; }
.cal27 .cal27-button-secondary { border-color: #a9b8a5; background: var(--white); color: var(--green); }
.cal27 .cal27-button-secondary:hover { background: #edf2e8; }

.cal27-form, .cal27-address { display: grid; gap: 1rem; }
.cal27-form fieldset { min-inline-size: 0; }
.cal27-form legend { margin-bottom: .4rem; font-weight: 700; }
.cal27-form label { display: block; min-width: 0; color: #283c30; font-size: .94rem; font-weight: 650; }
.cal27-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .62rem; }
.cal27 .cal27-check {
    display: flex;
    align-items: center;
    gap: .53rem;
    cursor: pointer;
}
.cal27 input[type=checkbox] { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.cal27-form input:not([type=checkbox], [type=hidden]), .cal27-form select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 45px;
    margin-top: .26rem;
    padding: .52rem .68rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fcfbf7;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 400;
}
.cal27-form input::placeholder { color: #818781; opacity: 1; }
.cal27-form select {
    appearance: none;
    padding-right: 2.2rem;
    background:
        linear-gradient(45deg, transparent 50%, var(--green) 50%) right 1rem center/6px 6px no-repeat,
        linear-gradient(135deg, var(--green) 50%, transparent 50%) right .625rem center/6px 6px no-repeat,
        #fcfbf7;
}
.cal27 input.cal27-zip { max-width: 205px; }
.cal27 .cal27-required, .cal27 .cal27-optional {
    display: inline-flex;
    align-items: center;
    margin-left: .5em;
    padding: .08em .4em;
    border-radius: 2px;
    background: #e7eee3;
    color: #2c503d;
    font-size: .77em;
    font-weight: 700;
    line-height: 1.45;
}
.cal27 .cal27-optional { background: #eeece4; color: #58594e; }
.cal27 .cal27-help { display: block; margin-top: .42rem; color: var(--muted); font-size: .87rem; font-weight: 400; line-height: 1.65; }
.cal27 .cal27-field-help { margin-top: -.65rem; }
.cal27-address { padding-top: .65rem; border-top: 1px solid var(--line); }
.cal27-address legend { padding-right: .4em; }
.cal27-consent { padding: .9rem 1rem; border: 1px solid #dfe5d9; border-radius: 4px; background: #f4f6ef; }
.cal27-consent p { font-size: .89rem; }
.cal27-policy p { margin-block: .35rem; }
.cal27-policy .cal27-policy-hint { color: var(--muted); font-size: .8rem; }
.cal27-policy-scroll {
    max-height: 12rem;
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding: .68rem .8rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--white);
}
.cal27-policy-scroll > :first-child { margin-top: 0; }
.cal27-policy-scroll > :last-child { margin-bottom: 0; }
.cal27-policy .p_cmt { margin-top: .8rem; }
.cal27-policy strong { font-weight: 700; }
.cal27-policy ul { margin-left: 1.2rem; font-size: .89rem; }
.cal27-policy li { list-style: disc; }
.cal27-policy + .cal27-check { padding-top: .7rem; border-top: 1px solid var(--line); }
.cal27-consent a { color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
.cal27 .cal27-check { margin-top: .68rem; align-items: flex-start; }
.cal27 .cal27-check input { margin-top: .21em; }
.cal27-errors { margin-bottom: 1.2rem; padding: .8rem 1rem; border: 1px solid #e5c6c3; background: #fff2f0; color: #7a362b; }
.cal27-errors ul { margin: .25em 0 0 1.2em; }
.cal27-errors li { list-style: disc; }

.cal27-panel { width: min(770px, calc(100% - 48px)); padding-block: 3.6rem 4.5rem; }
.cal27-summary { margin-block: 1.23rem; border-top: 1px solid var(--line); }
.cal27-summary > div { display: grid; grid-template-columns: minmax(7em, 34%) 1fr; gap: .85rem; padding: .66rem 0; border-bottom: 1px solid var(--line); }
.cal27-summary dt { font-weight: 700; color: var(--green); }
.cal27-summary dd { overflow-wrap: anywhere; }
.cal27-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.35rem; }
.cal27 .cal27-receipt { color: var(--green); font-size: 1.2rem; font-weight: 700; }
.cal27-receipt strong { font-weight: 800; font-variant-numeric: tabular-nums; }

@media (max-width: 990px) {
    .cal27-wrap { width: calc(100% - 52px); }
    .cal27-hero-inner { grid-template-columns: minmax(315px, 1fr) minmax(0, 1.05fr); min-height: auto; }
}
@media (max-width: 720px) {
    .cal27-wrap { width: calc(100% - 36px); }
    .cal27-hero-inner {
        grid-template-areas: "title" "stage" "details";
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        max-width: 560px;
        margin-inline: auto;
        padding-block: 1.55rem 1.85rem;
        gap: .78rem;
        justify-items: center;
        text-align: center;
    }
    .cal27 .cal27-kicker {
        justify-content: center;
        gap: .5rem;
        font-size: .875rem;
        letter-spacing: .07em;
    }
    .cal27-kicker::before { width: 16px; flex: none; }
    .cal27-hero h2 {
        margin: .62rem 0 0;
        font-size: clamp(1.7rem, 6.6vw, 2.6rem);
        line-height: 1.18;
    }
    .cal27-year { justify-content: center; font-size: 1.64em; }
    .cal27-hero .cal27-stage {
        width: 100%;
        max-width: 470px;
        margin: 0;
        aspect-ratio: 1.43;
    }
    .cal27-hero .cal27-stage-calendar { top: 5%; left: 13%; width: 74%; }
    .cal27-hero .cal27-stage-catalog, .cal27-hero .cal27-stage-menu { bottom: 5%; width: 24%; }
    .cal27-hero .cal27-stage-catalog { left: 3%; }
    .cal27-hero .cal27-stage-menu { right: 3%; }
    .cal27-hero-details {
        display: grid;
        width: 100%;
        justify-items: center;
        gap: .78rem;
    }
    .cal27 .cal27-limit { margin: 0; font-size: .94rem; }
    .cal27-wide { display: none; }
    .cal27-hero p.cal27-lead { margin: 0; font-size: .95rem; line-height: 1.65; }
    .cal27-hero .cal27-description { max-width: 32em; }
    .cal27-period time { display: inline-block; white-space: nowrap; }
    .cal27-period strong { color: var(--gold); }
    .cal27-hero .cal27-button-gold { width: min(100%, 22rem); }
    .cal27-hero .cal27-status { margin: 0; }
    .cal27-gifts, .cal27-entry, .cal27-panel { padding-block: 2.5rem 3.05rem; }
    .cal27-gift-grid, .cal27-entry-grid { grid-template-columns: minmax(0, 1fr); gap: 1.34rem; }
    .cal27-gift-grid article {
        display: grid;
        grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        column-gap: .8rem;
    }
    .cal27-gift-grid figure { grid-row: span 2; aspect-ratio: 1.22; }
    .cal27-gift-grid h3 { margin-top: 0; font-size: 1.02rem; }
    .cal27-gift-grid p { margin-top: .22rem; font-size: .88rem; }
    .cal27-summary { font-size: .91rem; }
    .cal27-actions { display: grid; }
}
@media (max-width: 380px) {
    .cal27-summary > div { grid-template-columns: minmax(0, 1fr); gap: .08rem; }
}
