/*
このファイルで変更する内容
- 色、フォント、背景画像
- 余白、幅、レスポンシブ
- CSSだけで完結するホバーやアニメーション

文章やリンク先は HTML
スクロールや開閉の動きは JS
*/

/* ============================================
   色とフォント
   ここを変えるとサイト全体の雰囲気が変わります
============================================ */
:root {
    /* サイト全体の色 */
    --bg-base: #f4f2ec;
    --bg-dark: #27312a;
    --text-main: #333333;
    --text-light: #f4f2ec;
    --text-muted: #888888;
    --border-color: #dcd9d0;
    
    /* サイト全体のフォント */
    --font-en: 'Cormorant Garamond', serif;
    --font-jp: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
}

/* ============================================
   初期設定
============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-jp);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 2;
    font-weight: 300;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

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

.inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ============================================
   共通パーツ
============================================ */
/* 縦見出しの大きさや文字間はここで調整します */
.vertical-title-area {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: var(--font-jp);
    font-size: 2.2rem;
    line-height: 1.5;
    letter-spacing: 0.15em;
}

/* 下線付きリンクの見た目をまとめています */
.text-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-en);
    font-size: 1.2rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--text-main);
    padding-bottom: 0.3rem;
    gap: 2rem;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: opacity 0.3s, gap 0.3s;
}
.text-link:hover {
    gap: 2.5rem;
    opacity: 0.8;
}

/* ふわっと表示する速さはここで調整します */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   ヘッダー
============================================ */
/* ヘッダー全体の余白や背景の変化を調整します */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background-color 0.5s ease, padding 0.5s ease;
}

/* 少しスクロールした後の見た目です */
.header.scrolled {
    background-color: rgba(244, 242, 236, 0.95);
    padding: 1rem 0;
    box-shadow: 0 1px 10px rgba(0,0,0,0.03);
}

/* ロゴ、メニュー、ボタンの並びです */
.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-img { height: 30px; width: auto; }
.logo-dark { display: none; }
.logo-light { display: block; }
.header.scrolled .logo-dark { display: block; }
.header.scrolled .logo-light { display: none; }

.logo-text {
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: #fff;
    border-left: 1px solid rgba(255,255,255,0.3);
    padding-left: 1.5rem;
    transition: color 0.5s;
}
.header.scrolled .logo-text {
    color: var(--text-main);
    border-left-color: var(--border-color);
}

.header-nav {
    display: flex;
    gap: 3rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-nav a {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #fff;
    letter-spacing: 0.08em;
    transition: color 0.5s;
}
.header.scrolled .header-nav a {
    color: var(--text-main);
}

/* 右上ボタンの色と余白を変える場合はここを編集します */
.header-action-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 0.6rem 1.5rem 0.6rem 2rem;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    border-right-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.header-action-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.header-action-button .material-symbols-outlined {
    font-size: 1.2rem;
    font-weight: 300;
}

.header.scrolled .header-action-button {
    background: var(--bg-dark);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled .header-action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* スマホ用ボタンの大きさを変える場合はここを編集します */
.hamburger {
    display: none;
    position: relative;
    z-index: 1001;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.hamburger span {
    display: block;
    position: absolute;
    left: 7px;
    width: 30px;
    height: 1px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* スクロール後の線色です */
.header.scrolled .hamburger span {
    background-color: var(--text-main);
}

/* 3本線の位置です */
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 22px; }
.hamburger span:nth-child(3) { top: 30px; }

/* メニューを開いたときの形です */
.hamburger.is-active span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
    background-color: var(--text-main);
}
.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
    background-color: var(--text-main);
}

/* スマホ用メニューの背景色や開閉速度を調整します */
.drawer-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(244, 242, 236, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.drawer-menu.is-active {
    right: 0;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
}

.drawer-links a {
    font-family: var(--font-en);
    font-size: 1.5rem;
    color: var(--text-main);
    letter-spacing: 0.1em;
}

.drawer-links .drawer-action-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 3rem;
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-radius: 50px;
    font-size: 1.2rem;
    font-family: var(--font-sans);
}

/* ============================================
   メインビジュアル
============================================ */
/* 最初の表示エリアの高さと余白です */
.main-visual {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
    padding-bottom: 5rem;
}

/* 背景画像の切り替え設定です */
.mv-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
}

.mv-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: mvAnime 24s infinite 0s;
}

.mv-slide:nth-child(1) { animation-delay: 0s; }
.mv-slide:nth-child(2) { animation-delay: 8s; }
.mv-slide:nth-child(3) { animation-delay: 16s; }

/* メインビジュアルの背景画像はここで差し替えます */
.mv-slide-01 { background-image: url('https://placehold.co/1920x1080/4a5d53/ffffff?text=mv_01.jpg'); }
.mv-slide-02 { background-image: url('https://placehold.co/1920x1080/3c4b43/ffffff?text=mv_02.jpg'); }
.mv-slide-03 { background-image: url('https://placehold.co/1920x1080/27312a/ffffff?text=mv_03.jpg'); }

/* 背景切り替えの速さは 24s で調整します */
@keyframes mvAnime {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; }
    33.33% { opacity: 1; }
    43.33% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.05); }
}

/* 背景の暗さを変える場合はここを編集します */
.mv-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(20, 26, 22, 0.3) 0%, rgba(20, 26, 22, 0.6) 100%);
    z-index: -1;
}

.mv-content {
    color: #fff;
    z-index: 1;
    padding: 0 5% 0 6%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mv-en-copy {
    font-family: var(--font-en);
    font-size: 1rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.mv-title {
    font-family: var(--font-jp);
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.mv-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    opacity: 0.9;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* 右下の案内表示です */
.scroll-down {
    position: absolute;
    bottom: 2rem;
    right: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-text {
    writing-mode: vertical-rl;
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: #fff;
    opacity: 0.7;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #fff;
    animation: scrollLineAnime 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollLineAnime {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ============================================
   section-01
   余白、画像の重なり方、本文の幅を調整します
============================================ */
.title-en-large {
    font-family: var(--font-en);
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
}

.title-jp-sub {
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.split-section-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5%;
    margin-top: 8rem;
}

/* セクションの上下余白と背景色です */
#section-01,
#section-02,
#section-04 {
    background-color: var(--bg-base);
    padding-top: 10rem;
    padding-bottom: 10rem;
}

/* section-02 だけ横にはみ出すため hidden にしています */
#section-02 {
    overflow: hidden;
}

/* セクション見出しの中央揃えです */
.split-section-heading {
    text-align: center;
}

/* 画像2枚の重なり位置を調整します */
.split-section-visual {
    width: 45%;
    position: relative;
    height: 600px;
}

/* 大きい画像の位置です */
.split-visual-main {
    position: absolute;
    top: 0; right: 0;
    width: 80%; height: 100%;
    object-fit: cover;
    will-change: transform;
}

/* 小さい画像の位置です */
.split-visual-sub {
    position: absolute;
    top: 30%; left: 0;
    width: 50%; height: auto;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    will-change: transform;
}

/* 画像のゆるい動きを変える場合は移動量を調整します */
@supports (animation-timeline: view()) {
    .split-visual-main {
        animation: splitVisualMainParallax linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 100%;
    }

    .split-visual-sub {
        animation: splitVisualSubParallax linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 100%;
    }
}

@keyframes splitVisualMainParallax {
    from { transform: translate3d(0, -24px, 0); }
    to { transform: translate3d(0, 40px, 0); }
}

@keyframes splitVisualSubParallax {
    from { transform: translate3d(0, 18px, 0); }
    to { transform: translate3d(0, -18px, 0); }
}

.split-section-content {
    width: 50%;
    display: flex;
    gap: 4rem;
    padding-top: 5rem;
}

.split-section-description {
    flex: 1;
}

.split-section-description p {
    margin-bottom: 2rem;
}


/* ============================================
   section-02
   スライドの幅、隙間、案内表示を調整します
============================================ */
/* 左右2カラムの並びです */
#section-02 .inner.carousel-section-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

/* 見出し側の幅です */
.carousel-section-heading {
    width: 25%;
    min-width: 150px;
    position: sticky;
    top: 150px;
    z-index: 2;
}

.carousel-section-heading .vertical-title-area,
.cta-side .vertical-title-area {
    justify-content: flex-start;
}

/* スライド側の幅と余白です */
.carousel-area {
    width: 70%;
    position: relative;
    padding: 0 4rem;
}

/* スライドを見せる枠です */
.carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    container-type: inline-size;
    touch-action: pan-x pan-y;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-viewport.is-dragging {
    cursor: grabbing;
}

.carousel-viewport:not(.is-draggable) {
    cursor: default;
}

/* gap を変えるとスライド同士の間隔が変わります */
.carousel-track {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    width: max-content;
    user-select: none;
}

.carousel-slide {
    width: calc(50cqw - 1.5rem); 
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scroll-snap-align: start;
}

.carousel-visual {
    width: 100%;
    overflow: hidden;
}

.carousel-visual img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    transition: transform 0.8s ease;
    pointer-events: none;
}

.carousel-slide:hover .carousel-visual img {
    transform: scale(1.02);
}

.carousel-content {
    padding-right: 1rem;
}

.carousel-title {
    font-family: var(--font-jp);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.carousel-text {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 左右の案内表示です */
.carousel-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 4rem;
    gap: 1rem;
    font-family: var(--font-en);
    font-size: 1rem;
    color: var(--text-main);
    letter-spacing: 0.1em;
    animation: scrollBlink 2s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.carousel-indicator.is-hidden {
    opacity: 0;
}

.carousel-indicator .text {
    writing-mode: vertical-rl;
}

.carousel-indicator.left {
    left: 0;
}

.carousel-indicator.left .material-symbols-outlined {
    transform: scaleX(-1);
}

.carousel-indicator.right {
    right: 0;
}

.carousel-indicator .material-symbols-outlined {
    font-size: 1.5rem;
    font-weight: 300;
}

@keyframes scrollBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============================================
   section-03
   背景画像、文字の見え方、切り替え用の見た目を調整します
============================================ */
/* 600vh を変えると切り替えに使うスクロール量が変わります */
.panel-section {
    position: relative;
    width: 100%;
    height: 600vh;
    background-color: var(--bg-base);
}

/* 画面内に固定して見せる範囲です */
.panel-sticky-container {
    position: sticky;
    top: 5vh;
    height: 90vh;
    height: 90svh;
    width: 90%;
    margin: 0 auto;
    overflow: hidden;
    color: var(--text-light);
}

/* 背景画像の表示設定です */
.panel-bg-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
}

/* 背景画像はここで差し替えます */
.panel-bg-01 {
    background-image: url('https://placehold.co/1920x1080/27312a/ffffff?text=Feature_01.jpg');
    z-index: 1;
}

.panel-bg-02 {
    background-image: url('https://placehold.co/1920x1080/3c4b43/ffffff?text=Feature_02.jpg');
    z-index: 2;
}

.panel-bg-03 {
    background-image: url('https://placehold.co/1920x1080/4a5d53/ffffff?text=Feature_03.jpg');
    z-index: 3;
}

.panel-bg-layer.curtain {
    transform: translateY(100%);
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.panel-bg-layer.curtain.active {
    transform: translateY(0);
}

.panel-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(20,26,22,0.3) 0%, rgba(20,26,22,0.8) 100%);
    pointer-events: none;
    z-index: 4;
}

/* 背景の上に文字を重ねるためのエリアです */
.panel-content-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 5;
}

.panel-stage {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 15vh;
    padding-bottom: 10vh;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
}

/* 次に出る文字の位置です。40px を変えると入り方が変わります */
.panel-stage.next {
    transform: translate(-50%, 40px); 
}

/* 前の文字の位置です。40px を変えると抜け方が変わります */
.panel-stage.prev {
    transform: translate(-50%, -40px); 
}

/* 今見えている文字の見え方です */
.panel-stage.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity 1s ease 0.6s, transform 1s ease 0.6s;
}

.panel-copy {
    max-width: 650px;
}

.panel-title-area {
    display: flex;
    align-items: baseline;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    max-width: fit-content;
}

.kanji-title {
    font-family: var(--font-jp);
    font-size: 5rem;
    font-weight: 200;
    line-height: 1;
    margin-bottom: 0;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.panel-description p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 2.2;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.panel-thumbnails {
    display: flex;
    gap: 1rem;
}

.panel-thumbnail {
    width: 140px;
    height: 90px;
    opacity: 0.5;
    transition: opacity 0.3s, border 0.3s;
}

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

.panel-thumbnail.active {
    opacity: 1;
    border: 2px solid #fff;
    padding: 2px;
}

.panel-display-title {
    font-family: var(--font-en);
    font-size: 8rem;
    font-weight: 300;
    color: #fff;
    line-height: 0.8;
    margin-bottom: -1rem;
    margin-right: -2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}


/* ============================================
   section-04
   一覧の余白、線、文字サイズを調整します
============================================ */
.listing-section-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.listing-section-heading {
    width: 25%;
}

.listing-section-logo {
    margin-top: 2rem;
}

.jp-title-large {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
}

.listing-section-content {
    width: 70%;
}

.entry-list li {
    border-bottom: 1px solid var(--border-color);
}

.entry-list li:first-child {
    border-top: 1px solid var(--border-color);
}

.entry-list a {
    display: flex;
    align-items: center;
    padding: 2.5rem 0;
    color: var(--text-main);
}

.entry-list .entry-date {
    font-family: var(--font-en);
    font-size: 0.95rem;
    width: 150px;
    color: var(--text-muted);
}

.entry-list .entry-title {
    flex: 1;
    font-size: 1rem;
}

.entry-list .material-symbols-outlined {
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.entry-list a:hover .material-symbols-outlined {
    transform: translateX(10px);
}

/* ============================================
   section-cta
   背景画像、案内文、ボタン周りの見た目を調整します
============================================ */
.cta-section {
    position: relative;
    width: 100%;
    height: 100vh;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

/* 背景画像の表示エリアです */
.cta-visual-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    overflow: hidden;
}

/* 40s を変えると背景の流れる速さが変わります */
.cta-visual-track {
    display: flex;
    width: 400vw;
    height: 100%;
    animation: bgScroll 40s linear infinite;
}

.cta-visual-slide {
    width: 100vw;
    height: 100%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* 背景画像はここで差し替えます */
.cta-visual-slide-01 { background-image: url('https://placehold.co/1920x1080/4a5d53/ffffff?text=Contact_01.jpg'); }
.cta-visual-slide-02 { background-image: url('https://placehold.co/1920x1080/3c4b43/ffffff?text=Contact_02.jpg'); }
.cta-visual-slide-03 { background-image: url('https://placehold.co/1920x1080/2f3c34/ffffff?text=Contact_03.jpg'); }
.cta-visual-slide-04 { background-image: url('https://placehold.co/1920x1080/4a5d53/ffffff?text=Contact_01.jpg'); }

@keyframes bgScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-300vw); }
}

/* 背景の暗さを変える場合はここを編集します */
.cta-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(20,26,22,0.85) 0%, rgba(20,26,22,0.4) 50%, rgba(20,26,22,0.7) 100%);
    z-index: -1;
}

/* 文字エリアの位置です */
.cta-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.cta-layout {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    padding-bottom: 5vh;
}

.cta-main {
    flex: 1;
}

/* 大きな英字見出しの大きさです */
.cta-title-huge {
    position: absolute;
    left: 5%;
    bottom: 5vh;
    font-family: var(--font-en);
    font-size: 16vw;
    font-weight: 300;
    line-height: 0.8;
    margin: 0;
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.cta-body {
    padding: 0 3rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cta-side {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.cta-description {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 2.2;
    letter-spacing: 0.1em;
    margin-top: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.cta-link {
    color: var(--text-light);
    border-bottom-color: rgba(255,255,255,0.3);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.cta-side .vertical-title-area,
.cta-side .vertical-text {
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* ============================================
   フッター
   会社情報とリンク一覧の見た目を調整します
============================================ */
.footer {
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8rem;
}

.footer-info {
    width: 35%;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 35px;
}

.footer-company-name {
    font-family: var(--font-en);
    letter-spacing: 0.1em;
}

.footer-address {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.footer-nav-area {
    width: 60%;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-links a {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.footer-map-link {
    gap: 1rem;
    margin-top: 2rem;
    font-size: 0.85rem;
}

.footer-map-icon {
    font-size: 1rem;
}

/* ============================================
   画面幅 1024px 以下
   タブレット表示の調整です
============================================ */
@media (max-width: 1024px) {
    /* メインビジュアル */
    .main-visual {
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-bottom: 0;
    }
    .mv-content {
        align-items: center;
        padding: 0 5%;
    }

    .title-en-large { font-size: 2.8rem; }
    .split-section-body { flex-direction: column; gap: 4rem; }
    .split-section-visual { width: 100%; height: 500px; }
    .split-section-content { width: 100%; padding-top: 0; }
    
    /* section-02 */
    #section-02 .inner.carousel-section-layout {
        flex-direction: column;
    }
    .carousel-section-heading {
        position: relative;
        top: 0;
        width: 100%;
        margin-bottom: 4rem;
    }
    .carousel-area {
        width: 100%;
        padding: 0 3rem;
    }
    .carousel-indicator {
        width: 3rem;
        font-size: 0.9rem;
    }
    .carousel-slide {
        width: calc(50cqw - 1.5rem);
    }
    /* section-03 */
    .kanji-title { font-size: 4rem; }
    .panel-display-title { font-size: 6rem; margin-right: 0; }
    .panel-thumbnail { width: 120px; height: 80px; }
    
    .listing-section-layout { flex-direction: column; gap: 3rem; }
    .listing-section-heading, .listing-section-content { width: 100%; }
    
    .footer-top { flex-direction: column; gap: 4rem; }
    .footer-info, .footer-nav-area { width: 100%; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    
    /* 縦見出しを横書きに変えます */
    .vertical-title-area { flex-direction: column; align-items: flex-start; }
    .vertical-text { writing-mode: horizontal-tb; text-orientation: mixed; margin-left: 0; margin-bottom: 1rem; }

    /* section-cta */
    .cta-layout {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 3rem;
        padding-bottom: 0;
    }
    .cta-body {
        padding: 0;
        align-self: flex-start;
    }
    .cta-title-huge {
        font-size: 20vw;
        bottom: 5vh;
    }
}

/* ============================================
   画面幅 768px 以下
   スマホ表示の調整です
============================================ */
@media (max-width: 768px) {
    .header-nav { display: none; }
    .header-right { display: none; }
    .hamburger { display: block; }
    
    .mv-title { font-size: 1.6rem; letter-spacing: 0.15em; }
    .mv-en-copy { font-size: 0.85rem; margin-bottom: 1rem; }
    .mv-subtitle { font-size: 0.75rem; }
    
    .scroll-down { right: 1.5rem; bottom: 1.5rem; }
    
    #section-01,
    #section-02,
    #section-04 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .split-section-body {
        margin-top: 4rem;
    }
    
    /* section-01 */
    .split-section-content {
        flex-direction: column;
        gap: 2rem;
    }

    /* section-02 */
    .carousel-area {
        padding: 0 2rem;
    }
    .carousel-indicator {
        width: 2rem;
        font-size: 0.8rem;
    }
    .carousel-indicator .material-symbols-outlined {
        font-size: 1.2rem;
    }
    .carousel-slide {
        width: 100cqw;
    }
    .carousel-track {
        gap: 1.5rem;
    }
    /* section-03 */
    .panel-sticky-container {
        top: 2vh;
        height: 96vh;
        height: 96svh;
        width: 94%;
    }
    .panel-stage { padding-top: 10vh; padding-bottom: 5vh; }
    .panel-footer { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .panel-display-title { font-size: 4rem; margin-bottom: 0; align-self: flex-end; }
    .kanji-title { font-size: 3rem; }
    .panel-description p { font-size: 0.85rem; line-height: 1.8; }
    .panel-thumbnail { width: 80px; height: 50px; }
    
    .entry-list a { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1.5rem 0; position: relative; }
    .entry-list .material-symbols-outlined { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
    .entry-list a:hover .material-symbols-outlined { transform: translate(10px, -50%); }
    
    /* section-cta */
    .cta-title-huge {
        font-size: 22vw;
        bottom: 5vh;
    }
    .cta-side {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    .cta-description br {
        display: none;
    }
}
