@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: var(--omiyori-red);
    background: #ffffff;

    /*背景の装飾_縦線*/
    background-image: linear-gradient(to right,
            transparent 24px,
            #cccccc 24px,
            #cccccc 25px,
            transparent 25px);
    background-size: 100% 100%;
}

@media (min-width: 768px) {
    body {
        background-image: linear-gradient(to right,
                transparent 332px,
                #cccccc 332px,
                #cccccc 333px,
                transparent 333px);
    }
}

/*背景の装飾_横線*/
.intro-list li,
.care-list li,
.step-list li {
    margin-bottom: 24px;
    padding-bottom: 12px;
    position: relative;
}

.intro-list li::after,
.care-list li::after,
.step-list li::after {
    content: "";
    /* 空白 */
    position: absolute;
    bottom: 0;
    left: 0;

    /* 右側はテキストの右端（100%）まで広げ、左側は画面の左端（-100vw）まで一気に引き伸ばす */
    width: calc(100% + 100vw);
    margin-left: -100vw;

    height: 1px;
    background: #cccccc;
    z-index: 1;
}

@media (min-width: 768px) {

    .step-list li::after,
    .care-list li::after {
        width: 100%;
        margin-left: 0;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

:root {
    --omiyori-red: #94191f;
}

/*header*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;

    color: var(--omiyori-red);
    /*background-color: #fff;*/

    /*線*/
    border-bottom: 1px solid #cccccc;
}

.logo {
    font-size: 15px;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.hamburger {
    display: block;
    position: relative;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 200;
    /* メニューより前面に */
}

/* 三本線の共通スタイル */
.hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--omiyori-red);
    left: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 11px;
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

/* ボタンがクリックされた時（×印に変形） */
.hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* --- スマホ時のメニュー（デフォルト） --- */
@media (max-width: 767px) {
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        /* 画面いっぱいの高さ */
        background-color: #f7f7f7;
        /* bodyと同じ背景色 */
        display: flex;
        flex-direction: column;
        /* 縦並び */
        justify-content: center;
        align-items: center;
        gap: 40px;
        /* メニュー間の隙間を広めに */
        font-size: 20px;
        /* スマホは見やすく大きめに */

        /* 初期状態は透明で隠しておく（上から降ろす、またはフェードイン） */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
        z-index: 150;
    }

    /* メニューが開いた時 */
    .nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

    /*PC時のメニュー */
@media (min-width: 768px) {
    .hamburger {
        display: none;
        /* PCでは三本線を隠す */
    }

    .nav {
        display: flex;
        align-items: center;
        gap: 30px;
        font-size: 15px;
        /* スマホ用スタイルをリセット */
        position: static;
        width: auto;
        height: auto;
        background: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

.lang-switch {
    width: 75px;
    height: 24px;
    border: none;
    border-radius: 999px;
    background: #9b1c23;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px;
    cursor: pointer;
    color: #fff;
}

.switch-circle {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    display: block;
    transition: transform 0.3s;
}

#langLabel {
    font-size: 13px;
    font-weight: 600;
}

.lang-switch.active .switch-circle {
    transform: translateX(47px);
}

.lang-switch.active {
    flex-direction: row-reverse;
}

/*言語切り替えボタンの動き*/
.lang-switch {
    width: 75px;
    height: 24px;
    border: none;
    border-radius: 999px;
    background: #9b1c23;
    display: flex;
    align-items: center;
    padding: 3px;
    cursor: pointer;
    color: #fff;
    position: relative;
}

.switch-circle {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    left: 3px;
    transition: transform 0.3s ease;
    z-index: 2;
}

#langLabel {
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    text-align: right;
    padding-right: 10px;
    transition: all 0.3s ease;
    z-index: 1;
}

/* JSでactive クラスがついた時の動き*/
.lang-switch.active .switch-circle {
    transform: translateX(49px);
}

.lang-switch.active #langLabel {
    text-align: left;
    padding-right: 0;
    padding-left: 10px;
}

/*main*/
.manners {
    position: relative;
    width: 100%;
    height: 1000px;
    overflow: hidden;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 画像の background-size: cover; と同じ効果 */
    z-index: 0;
}

.manners-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.manners-inner {
    position: relative;
    color: #ffffff80;
    margin: 0 24px;
    z-index: 2;
}

@media (min-width: 768px) {
    .manners-inner {
        margin-left: 163px;
        text-align: left;
    }
}

.manners-title {
    font-size: clamp(60px, 9vw, 200px);
    line-height: 0.95;
    margin: 0 0 -3px 0;
    font-weight: 800;
    letter-spacing: -0.02em;

    width: 100%;
    max-width: 100%;
}

.manners-sub {
    color: #ffffff80;
    font-size: 20px;
    margin-top: 50px;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 200px 24px;
    z-index: 2;
}

@media (min-width: 768px) {
    .container {
        padding: 250px 30px;
    }
}

/*イントロ*/
.intro-section {
    margin-bottom: 80px;
}

.intro-text {
    color: var(--omiyori-red);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 500;
    margin-bottom: 30px;
}

.intro-list,
.care-list {
    list-style: none;
    /* デフォルトの・を消す */
    color: var(--omiyori-red);
    font-size: 14px;
    line-height: 1.8;
}

.intro-list li,
.care-list li {
    margin-bottom: 12px;
    position: relative;
}

/* サブタイトル */
.content-section {
    margin-bottom: 100px;
}

.section-title {
    font-size: clamp(50px, 5vw, 80px);
    color: var(--omiyori-red);
    font-weight: 600;
    margin-bottom: -12px;
    padding-top: 200px;

    position: relative;
    z-index: 90;
}

@media (min-width: 768px) {
    .section-title {
        padding-top: 250px;
        margin-bottom: -20px;
    }
}

/* スマホ版は縦1列に並べる */
.content-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 横並びの2カラム */
@media (min-width: 768px) {
    .content-grid {
        display: grid;
        grid-template-columns: 1fr 360px;
        gap: 48px;
        align-items: start;
    }
}

/* グレーの画像パネル */
.media-panel {
    background: #e6e6e6;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    z-index: 2;
}

.media-panel img {
    width: 100%;
    height: 100%;
    /* トリミングの設定（縦横比を崩さずに枠いっぱいに広げる） */
    object-fit: cover; 
}

.media-placeholder {
    color: var(--omiyori-red);
    font-size: 14px;
    font-weight: 500;
}

/* 右側のテキストボックス */
.text-block {
    color: var(--omiyori-red);
}

.block-sub-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 16px;
}

.block-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ステップリスト */
.step-list {
    list-style: none;
    font-size: 14px;
    line-height: 1.8;
}

.step-list li {
    margin-bottom: 14px;
}

/* step1: などの文字を少し強調 */
.step-list li span {
    font-weight: 600;
    margin-right: 4px;
}

/*フッター*/
.footer {
    background: #94191f;
    color: #fff;
    padding: 40px 24px;
    text-align: center;
    position: relative;
}

.footer-logo {
    position: absolute;
    top: 24px;
    left: 24px;
    font-size: 15px;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* スマホ版のメニュー */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-nav a {
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 0.6;
}

.footer small {
    display: block;
    font-size: 9px;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .footer {
        padding: 60px 160px;
    }

    .footer-logo {
        top: 60px;
        left: 60px;
        font-size: 17px;
    }

    .footer-nav {
        gap: 100px;
        margin-top: 60px;
        margin-bottom: 60px;
        font-size: 15px;
    }

    .footer small {
        font-size: 10px;
    }
}

/* 1. 動かしたい要素の「初期状態」（透明 ＆ 30px下に下げておく） */
.intro-section,
.section-title,
.media-panel,
.text-block {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    /* 0.8秒かけて滑らかに動かす */
}

/* 2. ★JSでこのクラスがついたら、フワッと現れる */
.is-reveal {
    opacity: 1;
    transform: translateY(0);
}

/*一文字ずつ動くアニメーション*/
.char {
    display: inline-block;
    /* 1文字ずつ独立して動かすため */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* JSで「is-reveal」クラスがついたら、元の位置に戻って不透明に */
.is-reveal .char {
    opacity: 1;
    transform: translateY(0);
}