@import url('https://fonts.googleapis.com/css2?family=Klee+One:wght@400;600&family=Shippori+Mincho:wght@400;500;600;700;800&family=Noto+Serif+JP:wght@400;500;600;700;900&display=swap');

/* ===== リセット & ベース ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Shippori Mincho', serif;
    color: #3d3d3d;
    line-height: 1.8;
    background: #fdfbf7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    text-decoration: none;
    color: inherit;
}

/* spbr: スマホでのみ改行 */
.spbr { display: block; }
@media (min-width: 769px) {
    .spbr { display: none; }
}

/* ===== ファーストビュー ===== */
.sakura-fv {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    background: #0a0a0a;
}

.sakura-fv__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.sakura-fv__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.6) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.sakura-fv__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: sakuraZoom 20s ease-out forwards;
}

@keyframes sakuraZoom {
    from { transform: scale(1.15); }
    to   { transform: scale(1); }
}

/* キャッチコピー：スマホはセンター・横書き */
.sakura-fv__content {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
}

.sakura-fv__text-wrapper {
    opacity: 0;
    animation: sakuraFadeIn 1.5s ease-out 0.5s forwards;
}

@keyframes sakuraFadeIn {
    to { opacity: 1; }
}

.sakura-fv__catch {
    writing-mode: horizontal-tb;
    display: block;
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.25em;
    line-height: 1.7;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    font-family: 'Noto Serif JP', serif;
}

.sakura-fv__catch-line {
    display: block;
}

.sakura-fv__char {
    display: inline-block;
    opacity: 0;
    animation: sakuraTextReveal 1.2s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes sakuraTextReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.sakura-fv__scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: sakuraFadeIn 1s ease-out 2.5s forwards,
               sakuraBounce 2s ease-in-out 3s infinite;
}

@keyframes sakuraBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

.sakura-fv__scroll-text {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.sakura-fv__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0.8),
        rgba(255,255,255,0));
    margin: 0 auto;
}

/* FVメニュー：スマホは下部センター */
.index__fv__menu {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    white-space: nowrap;
}

.index__fv__menu__container {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

.index__fv__menu__block {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.index__fv__menu__block:hover {
    transform: translateY(-6px);
}

.index__fv__menu__block__axs {
    position: absolute;
    inset: 0;
}

.index__fv__menu__block__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.index__fv__menu__block:hover .index__fv__menu__block__bg {
    transform: scale(1.1);
}

.index__fv__menu__block__axs::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.index__fv__menu__block__icon {
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
    margin-bottom: 0.3rem;
}

.index__fv__menu__block__label {
    position: relative;
    z-index: 2;
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

/* タブレット以上のFV */
@media (min-width: 769px) {
    .sakura-fv__content {
        top: 50%;
        left: 8%;
        transform: translateY(-50%);
        text-align: left;
        width: auto;
    }

    .sakura-fv__catch {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        display: inline-block;
        font-size: clamp(2.5rem, 6vw, 5rem);
        letter-spacing: 0.3em;
        line-height: 1.8;
    }

    .sakura-fv__scroll-indicator {
        bottom: 3rem;
    }

    .sakura-fv__scroll-line {
        height: 60px;
    }

    .index__fv__menu {
        bottom: 8%;
        right: 5%;
        left: auto;
        transform: none;
    }

    .index__fv__menu__block {
        width: 120px;
        height: 120px;
    }

    .index__fv__menu__block__icon { font-size: 2.2rem; }
    .index__fv__menu__block__label { font-size: 0.9rem; }
}

@media (min-width: 1200px) {
    .index__fv__menu__block {
        width: 140px;
        height: 140px;
    }
}

/* ===== SEO隠しテキスト ===== */
.sakura-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ===== 縦書きタイトル（スマホは横書き） ===== */
.verticaltitle {
    writing-mode: horizontal-tb;
    letter-spacing: 0.08em;
}

.verticaltitle__label {
    font-size: 0.72rem;
    color: #8b7355;
    margin-bottom: 0.8rem;
    letter-spacing: 0.12em;
    display: block;
}

.verticaltitle__label .brace { font-size: 1.1em; }

.verticaltitle__main {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.7;
    color: #3d3d3d;
    display: block;
}

@media (min-width: 769px) {
    .verticaltitle {
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }

    .verticaltitle__label { margin-bottom: 1.5rem; }
    .verticaltitle__main  { font-size: 2rem; }
}

/* ===== セクションライン ===== */
.sectionline {
    position: relative;
    padding: 2rem 5% 1rem;
}

.sectionline__title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
}

.sectionline--right .sectionline__title { display: block; text-align: right; }
.sectionline--left  .sectionline__title { display: block; text-align: left; }

.sectionline__title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    width: 50px;
    height: 3px;
    background: #8b7355;
}

.sectionline--right .sectionline__title::after { right: 0; left: auto; }
.sectionline--left  .sectionline__title::after { left: 0; }

@media (min-width: 769px) {
    .sectionline {
        padding: 3rem 5% 2rem;
    }
    .sectionline__title { font-size: 1.8rem; }
}

/* ===== セクションブロック（スマホ：縦積み） ===== */
.sectionblock {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 5%;
}

.sectionblock__image {
    overflow: hidden;
    border-radius: 4px;
}

.prlximg__viewport {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.prlximg__target {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sectionblock:hover .prlximg__target { transform: scale(1.05); }

.sectionblock__contents { padding: 0; }

.sectionblock__label {
    font-size: 0.75rem;
    color: #8b7355;
    letter-spacing: 0.2em;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.sectionblock__lead { margin-bottom: 2rem; }

.sectionblock__body {
    color: #555;
    line-height: 2;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.sectionblock__body p { margin-bottom: 1.2rem; }
.sectionblock__body p:last-child { margin-bottom: 0; }

.sectionblock__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* タブレット以上：横並び */
@media (min-width: 769px) {
    .sectionblock {
        flex-direction: row;
        gap: 4rem;
        padding: 4rem 5%;
        align-items: center;
    }

    .sectionblock--right { flex-direction: row; }
    .sectionblock--left  { flex-direction: row-reverse; }

    .sectionblock__image    { flex: 1; }
    .sectionblock__contents { flex: 1; padding: 2rem 0; }

    .prlximg__viewport { height: 420px; }
}

@media (min-width: 1200px) {
    .prlximg__viewport { height: 500px; }
}

/* ===== ボタン ===== */
.boxbutton {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: #5a4a3a;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.boxbutton::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.4s ease;
}

.boxbutton:hover::before { left: 100%; }

.boxbutton:hover {
    background: #6d5a47;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90,74,58,0.3);
}

/* ===== 取り組み紹介（施設）スマホ：縦積み・タイトル必ず表示 ===== */
.index__introduction {
    padding: 2rem 0;
}

.index__introduction__facility {
    position: relative;
    margin-bottom: 3rem;
    background: #fdfbf7;
}

/* 背景画像エリア */
.index__introduction__facility__bg {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.index__introduction__facility__bg .prlximg__viewport {
    width: 100%;
    height: 100%;
}

.index__introduction__facility__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.45) 100%);
}

/* タイトル：背景画像の下にはっきり表示 */
.index__introduction__facility__title {
    position: relative;
    z-index: 3;
    padding: 1.2rem 5%;
    background: #fff;
    border-left: 4px solid #8b7355;
    margin: 0 0 0 0;
}

.index__introduction__facility__title .verticaltitle__label {
    color: #8b7355;
    margin-bottom: 0.4rem;
}

.index__introduction__facility__title .verticaltitle__main {
    color: #3d3d3d;
    text-shadow: none;
    font-size: 1.4rem;
}

/* カード */
.index__introduction__facility__card {
    position: relative;
    z-index: 3;
    margin: 1rem 5% 2rem;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.index__introduction__facility__card__img {
    width: 100%;
    height: 190px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1.2rem;
}

.index__introduction__facility__card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.index__introduction__facility__card:hover
.index__introduction__facility__card__img img {
    transform: scale(1.08);
}

.index__introduction__facility__card__text {
    color: #555;
    line-height: 2;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.index__introduction__facility__card__btn {
    width: 100%;
    text-align: center;
    display: block;
}

/* タブレット以上：オーバーレイレイアウト */
@media (min-width: 769px) {
    .index__introduction {
        padding: 5rem 0;
    }

    .index__introduction__facility {
        min-height: 80vh;
        margin-bottom: 5rem;
        display: flex;
        align-items: center;
        overflow: hidden;
        background: transparent;
    }

    .index__introduction__facility__bg {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    .index__introduction__facility__bg::after {
        background: linear-gradient(135deg,
            rgba(0,0,0,0.5) 0%,
            rgba(0,0,0,0.2) 100%);
    }

    .index__introduction__facility__title {
        position: absolute;
        top: 10%;
        left: 8%;
        background: transparent;
        border-left: none;
        padding: 0;
    }

    .index__introduction__facility__title .verticaltitle__label {
        color: rgba(255,255,255,0.9);
    }

    .index__introduction__facility__title .verticaltitle__main {
        color: #fff;
        text-shadow: 0 2px 8px rgba(0,0,0,0.3);
        font-size: 2rem;
    }

    .index__introduction__facility__card {
        position: relative;
        z-index: 3;
        margin: 0 8% 0 auto;
        max-width: 450px;
        padding: 2.5rem;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    }

    .index__introduction__facility__card__img {
        height: 250px;
    }

    .index__introduction__facility__card__btn {
        width: auto;
        display: inline-block;
    }
}

/* ===== ブログ/お知らせ（スマホ：1列） ===== */
.index__news {
    padding: 3rem 5%;
    background: #f9f6f0;
}

.index__news__main { padding: 1.5rem 0; }

.news__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.news__item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: block;
}

.news__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.news__item__thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news__item__detail { padding: 1.4rem; }

.news__item__detail__date {
    font-size: 0.78rem;
    color: #8b7355;
    margin-bottom: 0.6rem;
    letter-spacing: 0.1em;
}

.news__item__detail__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #3d3d3d;
}

.news__item__link {
    display: inline-block;
    color: #8b7355;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    position: relative;
    padding-right: 1.5rem;
}

.news__item__link::after {
    content: '→';
    position: absolute;
    right: 0;
    transition: right 0.3s ease;
}

.news__item:hover .news__item__link::after { right: -0.3rem; }

@media (min-width: 600px) {
    .news__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1025px) {
    .index__news { padding: 5rem 5%; }
    .index__news__main { padding: 3rem 0; }
    .news__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    .news__item__thumb { height: 220px; }
    .news__item__detail { padding: 1.8rem; }
}

/* ===== お問い合わせ ===== */
.index__contact { padding: 3rem 5%; }

@media (min-width: 769px) {
    .index__contact { padding: 5rem 5%; }
}

.wpcf7-form { max-width: 600px; }
.wpcf7-form p { margin-bottom: 1.2rem; }

.wpcf7-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #3d3d3d;
    font-size: 0.95rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Shippori Mincho', serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #8b7355;
}

.wpcf7-form textarea {
    min-height: 130px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    width: 100%;
    background: #5a4a3a;
    color: #fff;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Shippori Mincho', serif;
    font-size: 1rem;
}

.wpcf7-form input[type="submit"]:hover {
    background: #6d5a47;
    box-shadow: 0 4px 12px rgba(90,74,58,0.3);
}

@media (min-width: 769px) {
    .wpcf7-form input[type="submit"] {
        width: auto;
        padding: 1rem 3rem;
    }
}

/* ===== ホバーエフェクト ===== */
.hoverRoll { position: relative; overflow: hidden; }
.hoverRoll__text { display: inline-block; position: relative; }
.hoverRoll__text span {
    display: inline-block;
    transition: transform 0.4s ease;
}
.hoverRoll:hover .hoverRoll__text span { transform: translateY(-100%); }

/* ===== スムーススクロール ===== */
html { scroll-behavior: smooth; }

/* ===== セクション共通 ===== */
.index__about,
.index__makomo,
.index__dojo,
.index__shop {
    overflow: hidden;
}