:root {
    --pink: #f8eeee;
    --ink: #111;
    --rule: rgba(17, 17, 17, .25);
    color-scheme: light
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    background: var(--pink);
    scroll-behavior: smooth;
    scroll-padding-top: 24px
}

body {
    background: var(--pink);
    color: var(--ink);
    font-family: "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
    overflow-x: clip
}

a {
    color: inherit;
    text-underline-offset: 5px
}

a:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 6px
}

a:hover {
    text-decoration-thickness: 2px
}

[hidden] {
    display: none!important
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    padding: 14px;
    background: var(--pink);
    transform: translateY(-180%)
}

.skip-link:focus {
    transform: none
}

#splash {
    position: fixed;
    inset: 0;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--pink);
    z-index: 9999;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 1.2s ease, visibility 1.2s ease
}

.splash-message {
    text-align: center;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: .04em
}

.message-line {
    opacity: 0;
    animation: messageFade .45s ease forwards, allSpread 1.4s cubic-bezier(.22, 1, .36, 1) 1.75s forwards;
    transform-origin: center
}

.line1 {
    animation-delay: .15s, 1.75s
}

.line2 {
    animation-delay: .45s, 1.75s
}

.line3 {
    animation-delay: .75s, 1.75s
}

.splash-names {
    opacity: 0;
    margin-top: 24px;
    font-family: "Times New Roman", serif;
    font-size: 27px;
    font-style: italic;
    font-weight: bold;
    animation: messageFade .45s ease 1.05s forwards, allSpread 1.4s cubic-bezier(.22, 1, .36, 1) 1.75s forwards
}

@keyframes messageFade {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }

}

@keyframes allSpread {
    from {
        transform: scaleX(1)
    }

    to {
        transform: scaleX(1.8)
    }

}

#splash.hide {
    opacity: 0;
    visibility: hidden
}

.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 70px 20px 30px
}

.top-ribbon {
    font-size: 28px;
    margin-bottom: 55px;
    filter: grayscale(1) brightness(0)
}

.welcome {
    font-family: "Times New Roman", serif;
    font-style: italic;
    font-weight: normal;
    font-size: 64px;
    line-height: 1;
    margin-bottom: 12px
}

.subtitle {
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 55px
}

.heart-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 50px
}

.heart {
    font-size: 10px
}

.names {
    font-size: 29px;
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 28px
}

.date-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px
}

.line {
    display: block;
    width: 95px;
    height: 1px;
    background: var(--ink)
}

.mini-ribbon {
    font-size: 13px;
    filter: grayscale(1) brightness(0)
}

.date {
    font-size: 11px;
    letter-spacing: 5px
}

.intro-running .hero :is(.top-ribbon, .welcome, .subtitle, .heart-line, .names, .date-line, .date) {
    opacity: 0;
    transform: translateY(12px)
}

.hero.show :is(.top-ribbon, .welcome, .subtitle, .heart-line, .names, .date-line, .date) {
    animation: fadeUp 1.2s ease var(--delay) both
}

.hero .top-ribbon {
    --delay: .2s
}

.welcome {
    --delay: .5s
}

.subtitle {
    --delay: .7s
}

.heart-line {
    --delay: 1s
}

.names {
    --delay: 1.3s
}

.date-line {
    --delay: 1.6s
}

.date {
    --delay: 1.8s
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }

}

.scroll-link {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    padding: 48px 18px 10px;
    font-size: 10px;
    letter-spacing: 3px;
    text-decoration: none
}

.scroll-link span {
    font-size: 24px
}

.section-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    max-width: 800px;
    margin: auto;
    padding: 26px 20px;
    border-block: 1px solid var(--rule)
}

.section-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    text-decoration: none
}

.section {
    max-width: 800px;
    margin: auto;
    padding: 100px 28px;
    text-align: center;
    scroll-margin-top: 24px
}

.section+.section {
    border-top: 1px solid var(--rule)
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 22px
}

.section-title {
    font-size: clamp(38px, 7vw, 54px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.2
}

.jp-caption {
    font-size: 12px;
    letter-spacing: .18em;
    margin-top: 16px;
    margin-bottom: 48px
}

.ornament {
    font-size: 27px;
    margin-bottom: 22px
}

.small {
    font-size: 12px;
    line-height: 2.2;
    letter-spacing: .04em
}

.letter {
    font-size: 14px;
    line-height: 2.5;
    letter-spacing: .06em
}

.letter p+p {
    margin-top: 30px
}

.signature {
    font-family: "Times New Roman", serif;
    font-size: 27px;
    font-style: italic;
    line-height: 1.5;
    letter-spacing: .02em;
    margin-top: 40px
}

.counter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 530px;
    margin: 0 auto 32px
}

.counter div+div {
    border-left: 1px solid var(--rule)
}

.counter span {
    display: block;
    font-size: clamp(32px, 7vw, 56px);
    font-variant-numeric: tabular-nums;
    font-weight: 400
}

.counter small {
    display: block;
    font-size: 9px;
    letter-spacing: 2px;
    margin-top: 12px
}

.profiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 580px;
    margin: auto
}

.portrait {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--rule);
    display: grid;
    place-items: center
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.portrait-fallback {
    font-size: 32px;
    font-style: italic
}

.profile .role {
    font-size: 10px;
    letter-spacing: 3px;
    margin-top: 28px
}

.profile h3 {
    font-size: 32px;
    font-weight: 400;
    font-style: italic;
    margin: 10px 0 20px
}

.profile>p:last-child {
    font-size: 12px;
    line-height: 2.2
}

.event-date {
    font-size: 25px;
    letter-spacing: 2px;
    margin-bottom: 40px
}

.event-date span {
    font-size: 11px
}

.timeline {
    list-style: none;
    text-align: left;
    max-width: 420px;
    margin: 0 auto 36px
}

.timeline li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 28px;
    padding: 0 0 42px;
    position: relative
}

.timeline li:last-child {
    padding-bottom: 0
}

.timeline li:before {
    content: "";
    position: absolute;
    left: 111px;
    top: 9px;
    bottom: -9px;
    border-left: 1px solid var(--rule)
}

.timeline li:last-child:before {
    display: none
}

.timeline li:after {
    content: "";
    position: absolute;
    left: 108px;
    top: 7px;
    width: 7px;
    height: 7px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: var(--pink)
}

.schedule-time {
    font-size: 13px;
    padding-top: 3px
}

.timeline h3 {
    font-size: 17px;
    font-weight: 400;
    letter-spacing: .15em
}

.timeline p {
    font-size: 10px;
    letter-spacing: 2px;
    margin-top: 10px
}

.venue {
    max-width: 540px;
    margin: auto;
    border: 1px solid var(--rule);
    padding: 40px 28px
}

.venue-mark {
    font-size: 42px;
    letter-spacing: 5px;
    margin-bottom: 32px
}

.venue-mark span {
    font-size: 23px;
    font-style: italic
}

.venue dl {
    text-align: left;
    margin-bottom: 24px
}

.venue dl>div {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid var(--rule);
    font-size: 12px;
    line-height: 2
}

.venue dt {
    letter-spacing: .08em
}

.message .top-ribbon {
    margin-bottom: 28px
}

.back-top {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 60px;
    font-size: 12px
}

footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--rule);
    font-size: 11px;
    letter-spacing: 1px
}

footer span {
    display: block;
    margin-top: 12px
}

.reveal.pending {
    opacity: 0;
    transform: translateY(24px)
}

.reveal.visible {
    animation: revealUp .9s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms) both
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        opacity: 1;
        transform: none
    }

}

@media(max-width:600px) {
    .hero {
        padding-top: 55px
    }

    .top-ribbon {
        font-size: 23px;
        margin-bottom: 48px
    }

    .welcome {
        font-size: 52px;
        margin-bottom: 10px
    }

    .subtitle {
        font-size: 10px;
        letter-spacing: 3.5px;
        margin-bottom: 48px
    }

    .heart-line {
        font-size: 8px;
        gap: 6px;
        margin-bottom: 43px
    }

    .heart {
        font-size: 8px
    }

    .names {
        font-size: 24px;
        margin-bottom: 25px
    }

    .line {
        width: 78px
    }

    .mini-ribbon {
        font-size: 11px
    }

    .date {
        font-size: 9px;
        letter-spacing: 4px
    }

    .section {
        padding: 76px 24px
    }

    .profiles {
        gap: 20px
    }

    .profile h3 {
        font-size: 28px
    }

    .profile>p:last-child {
        font-size: 11px
    }

    .counter small {
        font-size: 8px;
        letter-spacing: 1px
    }

    .venue {
        padding: 30px 20px
    }


    .letter {
        font-size: 13px;
        letter-spacing: .02em
    }

    .section-nav {
        gap: 4px 18px
    }

}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *, *:before, *:after {
        animation: none!important;
        transition: none!important
    }

    #splash {
        display: none!important
    }

    .intro-running .hero :is(.top-ribbon, .welcome, .subtitle, .heart-line, .names, .date-line, .date), .reveal.pending, .reveal.visible {
        opacity: 1;
        transform: none
    }

}


/* Googleフォーム：出欠回答 */
.rsvp-intro {
    margin-bottom: 24px;
}

.rsvp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    margin-bottom: 32px;
    border: 1px solid var(--ink);
    font-size: 13px;
    line-height: 1.8;
}

.rsvp-form {
    display: block;
    width: 100%;
    height: 1600px;
    border: 0;
    background: var(--pink);
}

@media (max-width: 600px) {
    .rsvp {
        padding-inline: 12px;
    }

    .rsvp-form {
        height: 1800px;
    }
}
/* 会場詳細は縦並びにして、地図を横いっぱいに表示 */
.venue dl > .venue-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.venue-details dd {
    min-width: 0;
    margin: 0;
}

.venue-details iframe {
    width: 100%;
}
/* Welcomeのあとに表示する写真 */
.wedding-photo {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 64px 24px 24px;
}

.wedding-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

@media (max-width: 600px) {
    .wedding-photo {
        padding-top: 48px;
    }
}
/* Splash中は写真も隠す */
.intro-running .hero .wedding-photo {
    opacity: 0;
    transform: translateY(12px);
}

/* 日付が出終わってから、写真をふわっと表示 */
.hero.show .wedding-photo {
    animation: fadeUp 1.2s ease 3s both;
}

/* 動きを減らす設定では、そのまま表示 */
@media (prefers-reduced-motion: reduce) {
    .intro-running .hero .wedding-photo,
    .hero.show .wedding-photo {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
/* 会場名 */
.venue h3 {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 32px;
}
/* スクロール後に表示する上部メニュー */
.section-nav.floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px 16px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));

    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;

    background: #f8eeee;
    border: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.15);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;

    transition:
        opacity 0.45s ease,
        transform 0.45s ease,
        visibility 0.45s ease;
}

/* 表示中 */
.section-nav.floating-nav.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.section-nav.floating-nav a {
    flex-shrink: 0;
    min-height: 44px;

    display: inline-flex;
    align-items: center;

    font-size: 13px;
    white-space: nowrap;
}

/* リンク先の見出しがメニューに隠れないようにする */
html {
    scroll-padding-top: var(--nav-offset, 80px);
}

/* スマホでは横にスワイプできる */
@media (max-width: 600px) {
    .section-nav.floating-nav {
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* 動きを減らす設定に対応 */
@media (prefers-reduced-motion: reduce) {
    .section-nav.floating-nav {
        transition: none;
        transform: none;
    }
}
/* 日程・住所と同じ列幅にそろえる */
.venue dl > .venue-details {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.venue-details dd {
    min-width: 0;
    margin: 0;
}

/* 地図だけは2列分の幅を使う */
.venue-details .venue-map {
    grid-column: 1 / -1;
}

.venue-map iframe {
    display: block;
    width: 100%;
}
/* スケジュールの時刻を大きくする */
.schedule-time {
    font-size: 22px;
    line-height: 1.4;
}
/* 大きくした時刻に丸の高さを合わせる */
.timeline li::after {
    top: 15px;
}

/* 丸をつなぐ縦線も合わせる */
.timeline li::before {
    top: 18px;
    bottom: -18px;
}
/* 時刻と「受付・挙式・披露宴」の高さをそろえる */
.timeline li > div {
    padding-top: 6px;
}
/* 公式LINE：サイトに合わせたピンクと黒のボタン */
.line-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    max-width: 100%;
    min-height: 56px;
    margin: 32px auto 24px;
    padding: 16px 28px;

    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--pink);
    color: var(--ink);

    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.line-add-button:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}
/* スマホのメニューを中央に配置 */
@media (max-width: 600px) {
    .section-nav.floating-nav {
        justify-content: flex-start;
        gap: 12px;
        padding-inline: 12px;
    }

    .section-nav.floating-nav a {
        font-size: 12px;
    }

    .section-nav.floating-nav a:first-child {
        margin-left: auto;
    }

    .section-nav.floating-nav a:last-child {
        margin-right: auto;
    }
}
/* 出欠フォームの枠を低くする */
iframe[src*="docs.google.com/forms"] {
    display: block;
    width: 100%;
    height: 650px;
}
/* スマホでは出欠フォームをさらに低くする */
@media (max-width: 600px) {
    iframe[src*="docs.google.com/forms"] {
        height: 600px;
    }
}
/* 出欠フォームの幅を少し狭くして中央に配置 */
iframe[src*="docs.google.com/forms"] {
    width: 88%;
    margin-inline: auto;
}