.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0
}
body {
    font-family: "Manrope", sans-serif;
    background-color: #fbf9f5;
    font-feature-settings: "palt" 1;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-break: strict;
    word-break: break-all;
    overflow-wrap: break-word;
    hanging-punctuation: allow-end;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.8
}
.font-serif {
    font-family: "Zen Old Mincho", serif;
    font-feature-settings: "palt" 1
}
p, li, dd, dt, blockquote, address {
    text-align: justify;
    text-justify: inter-ideograph
}
.text-center p,
.text-center dd,
.text-center dt,
.text-center li,
.text-center address {
    text-align: center
}
.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24
}
.washi-texture {
    background-image: url(https://lh3.googleusercontent.com/aida-public/AB6AXuAXIr3y4iBczROSD-VEERxRlK6D787GxnupiAmEHMtVllurMMHhdlyc1f6VxZJ58rVa8-VawROsPZj5gL35qnYIMWitzhTiH-sQie1aQ8zbk697Q784Hqahs2qgshZcct04QYyGrGGPcOGVSDuZb3sv4kkg3_G6zSk-jWWkjPwh05r0Yaex8XPjr5DafOFcEe1ZWP3k-vSilDGBbA275Gbd9iLSs1MSlsNh54mFCMeegdoVda0VNPtKLajG4htqhzUGUCMhN1LcKw);
    background-repeat: repeat
}
.grunge-bg {
    background-image: url(../img/bg-grunge.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0)
}
@media (min-width: 768px) {
    .grunge-bg {
        background-attachment: fixed;
        -webkit-transform: none;
        transform: none
    }
}
.grunge-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 17, 37, 0.25);
    z-index: 0
}
/* Aboutiwama navigation buttons */
.aboutiwama-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.aboutiwama-nav-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}
.aboutiwama-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}
@media (max-width: 767px) {
    .aboutiwama-nav-btn {
        width: 40px;
        height: 40px;
    }
}
/* Floating CTA button */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 40;
    width: 5vw;
    min-width: 64px;
    max-width: 80px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #051125;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}
.floating-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.floating-cta.is-visible:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
@media (max-width: 767px) {
    .floating-cta {
        bottom: 16px;
        right: 16px;
    }
}
.grunge-bg > * {
    position: relative;
    z-index: 1
}
.daily-change-section p {
    line-height: 1.75
}

/* 日常の変化セクション — 柔らかいフェードイン */
/* アニメーションはJS側で .daily-anim-ready を付与した場合のみ有効化 */
.daily-anim-ready .daily-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}
.daily-anim-ready .daily-reveal.is-shown {
    opacity: 1;
    transform: translateY(0);
}
.daily-anim-ready .daily-reveal-img {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1),
                transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}
.daily-anim-ready .daily-reveal-img.is-shown {
    opacity: 1;
    transform: scale(1);
}

/* 桜パーティクル */
.sakura-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.daily-change-section {
    position: relative;
}
.daily-change-section > .max-w-5xl {
    position: relative;
    z-index: 1;
}
.faq-card,
.card-radius {
    border-radius: 5px
}
/* Hero text animation */
@keyframes hero-reveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
@keyframes hero-line-expand {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}
@keyframes hero-bg-zoom {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
.hero-img {
    animation: hero-bg-zoom 2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    object-position: 35% center
}
@media (min-width: 768px) {
    .hero-img { object-position: center center }
}
.hero-mesh {
    background-image:
        linear-gradient(45deg, rgba(0,0,0,0.12) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(0,0,0,0.12) 1px, transparent 1px);
    background-size: 6px 6px;
    pointer-events: none
}
.hero-animate {
    opacity: 0;
    animation: hero-reveal 1s cubic-bezier(0.25, 0.1, 0.25, 1) forwards
}
.hero-line-1 { animation-delay: 0.3s }
.hero-line-2 { animation-delay: 0.7s }
.hero-sub { animation-delay: 1.2s }
.hero-cta { animation-delay: 1.7s }
.hero-note { animation-delay: 2.0s }
.hero-divider {
    opacity: 0;
    transform-origin: center;
    animation: hero-line-expand 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    animation-delay: 1.0s
}

/* Section title scroll reveal */
@keyframes section-reveal {
    0% {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
/* Header dark/light mode */
.header-dark .header-logo-text,
.header-dark .header-nav-link,
.header-dark .header-menu-btn { color: #fff }
.header-dark .header-logo-text { color: #fff }
.header-dark .header-nav-link { font-weight: 900 }
.header-dark .header-nav-link:hover { color: rgba(255,255,255,0.6) }
.header-dark .header-cta { background: #051125; color: #fff; border: 1px solid rgba(255,255,255,0.3) }
.header-dark .header-menu-btn { color: #fff }

.header-light .header-logo-text { color: #051125 }
.header-light .header-nav-link { color: rgba(5,17,37,0.8); font-weight: 900 }
.header-light .header-nav-link:hover { color: #051125 }
.header-light .header-cta { background: #051125; color: #fff }
.header-light .header-menu-btn { color: #051125 }

#site-header { transition: transform 0.5s ease-out, background 0.3s ease }
.header-dark { background: transparent !important }
.header-light { background: rgba(255,255,255,0.85) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px) }

.header-logo-text,
.header-nav-link,
.header-cta,
.header-menu-btn { transition: color 0.3s ease, background 0.3s ease }

.section-title {
    opacity: 0;
    letter-spacing: 1px
}
.section-title.is-visible {
    animation: section-reveal 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards
}

/* FAQ accordion smooth animation */
.faq-card .faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease, opacity 0.35s ease;
    opacity: 0
}
.faq-card[open] .faq-answer {
    grid-template-rows: 1fr;
    opacity: 1
}
.faq-card .faq-answer > div {
    overflow: hidden
}
.carousel-sp {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4rem;
    padding-bottom: 1.5rem
}
.carousel-sp::-webkit-scrollbar {
    display: none
}
.carousel-sp > .carousel-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
    padding-top: 0
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem
}
.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: background 0.3s
}
.carousel-dots .dot.active {
    background: rgba(255,255,255,0.9)
}
.calendar-container {
    aspect-ratio: auto;
}
.calendar-container iframe {
    min-height: 600px;
}
@media (min-width: 768px) {
    .calendar-container {
        aspect-ratio: 4/3;
    }
    .calendar-container iframe {
        min-height: auto;
    }
}
@media (min-width: 768px) {
    .carousel-sp {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
        overflow-x: visible;
        scroll-snap-type: none;
        padding-bottom: 0
    }
    .carousel-sp > .carousel-item:nth-child(2) {
        padding-top: 6rem
    }
    .carousel-dots {
        display: none
    }
}

/* 岩間合気道とは - horizontal scroll */
.aboutiwama-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.aboutiwama-scroll::-webkit-scrollbar {
    display: none;
}
/* SP: スクロールヒント */
.aboutiwama-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    letter-spacing: 1px;
    padding-top: 16px;
    animation: scroll-hint-fade 2s ease-in-out infinite;
}
@keyframes scroll-hint-fade {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(6px); }
}
@media (min-width: 768px) {
    .aboutiwama-scroll-hint {
        display: none;
    }
}
#aboutiwama .flex-shrink-0 {
    width: 300px;
}
#aboutiwama .flex-shrink-0 .aspect-\[4\/5\] {
    aspect-ratio: 3/4;
    margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
    #aboutiwama .flex-shrink-0 {
        width: 340px;
    }
    #aboutiwama .flex-shrink-0 .aspect-\[4\/5\] {
        aspect-ratio: 4/5;
        margin-bottom: 1.5rem;
    }
    #aboutiwama .flex-shrink-0 h3 {
        margin-bottom: 0.75rem;
    }
}