body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    color: var(--primary-text-color, white);
    font-family: 'Noto Sans JP', sans-serif;
    cursor: none;
    /* デフォルトカーソルを非表示 */
}

* {
    cursor: none;
    /* すべての要素でカーソルを非表示 */
}

.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -100;
    /* 確実に一番後ろに */
    background-color: #111;
    /* デフォルト背景色 */
}

/* カスタムカーソル */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10003;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.cursor-dot {
    width: 4px;
    height: 30px;
    background: linear-gradient(45deg, #FF0A6B, #FB41E6);
    border-radius: 2px;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg);
}

body.is-hovering .cursor-dot {
    opacity: 0;
}

.cursor-ring {
    width: 50px;
    height: 50px;
    border: 2px solid #007BFF;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.2);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
}

body.is-hovering .cursor-ring {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* リング内にシャープな矢印を作成 */
.cursor-ring::before,
.cursor-ring::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    /* 長さ */
    height: 1.5px;
    /* 細さ */
    background-color: #007BFF;
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: right center;
    /* 右端を軸に回転 */
}

/* ホバー時に矢印を表示 */
body.is-hovering .cursor-ring::before,
body.is-hovering .cursor-ring::after {
    opacity: 1;
}

.cursor-ring::before {
    transform: translate(-70%, -50%) rotate(35deg);
}

.cursor-ring::after {
    transform: translate(-70%, -50%) rotate(-35deg);
}

/* ドットの擬似要素は不要 */
.cursor-dot::before,
.cursor-dot::after {
    display: none;
}


body {
    overflow: hidden;
}

h1,
h2 {
    font-family: 'Archivo Black', sans-serif;
}

.container {
    display: flex;
    width: 700vw;
    /* 6セクション x 100vw */
    height: 100vh;
    will-change: transform;
}

.section {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 5vw;
    box-sizing: border-box;
    position: relative;
    overflow-y: auto;
    filter: blur(0px);
    transition: filter 0.3s ease-out;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5vw;
    box-sizing: border-box;
    z-index: 10001;
    /* Above scroll indicator */
    display: flex;
    justify-content: flex-start;
}

/* PC/SP 改行制御 (Default: PC) */
br.sp-break,
.sp-space {
    display: none;
}

br.pc-break {
    display: inline;
}


/* Intro */
#intro .intro-content h1 {
    font-size: 5rem;
    margin: 0;
    margin-bottom: 30px;
    text-align: center;
}

#intro .char {
    display: inline-block;
}

#intro .intro-content p {
    font-size: 1rem;
    margin-top: 10px;
    color: #aaa;
    text-align: center;
}

/* Concept */
#concept .concept-content {
    max-width: 800px;
    text-align: center;
}

#concept .concept-content h2 {
    font-size: 6rem;
    margin-bottom: 30px;
    overflow: hidden;
}

#concept h2 span {
    display: inline-block;
    /* Required for transform */
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease;
}

#concept h2.is-visible span {
    transform: translateY(0);
    opacity: 1;
}

#concept .concept-content p {
    font-size: 1rem;
    line-height: 1.8;
}

/* Works (Triple Slider) */
#works {
    align-items: flex-start;
    justify-content: flex-start;
    /* 上から順に配置 */
    padding: 40vh 0 0 0;
    /* 上部にパディングを追加 */
    position: relative;
    /* works-background-textをabsolute配置するため */
    min-height: 100vh;
    /* 少なくとも画面の高さ分は確保 */
    display: flex;
    /* 子要素をflexboxで配置 */
    flex-direction: column;
    /* 縦方向に並べる */
}

.works-background-text {
    position: absolute;
    top: 20%;
    /* 垂直方向を調整 */
    left: 10vw;
    /* 左寄せを調整 */
    transform: translateY(-50%);
    /* 垂直方向の中央揃え */
    font-family: 'Archivo Black', sans-serif;
    font-size: 15vw;
    /* 画面幅に応じて大きく */
    color: rgba(255, 255, 255, 0.05);
    /* 薄い色 */
    pointer-events: none;
    /* クリックイベントを透過 */
    z-index: 0;
    /* 背景として配置 */
    /* white-space: nowrap; */
    /* 改行を許可するため削除 */
    display: flex;
    /* 縦並びにするため */
    flex-direction: column;
    /* 縦並びにするため */
    line-height: 0.8;
    /* 行間を詰める */
}

.works-background-text span:last-child {
    margin-left: 15vw;
    /* Designの真ん中くらいから始まるようにインデント */
}

.triple-slider-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 0 20vh 0;
    /* padding-topを削除 */
    /* margin-top: 40vh; */
    /* padding-topで調整するため削除 */
    position: relative;
    /* z-indexを有効にするため */
    z-index: 1;
    /* works-background-textより手前に */
}

.slider-row {
    width: 100%;
    overflow: hidden;
    margin-bottom: 10vh;
}

@keyframes slide-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes slide-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

.slider-track {
    display: flex;
    /* width: calc(6 * 650px); */
    /* JavaScriptで動的に設定 */
    animation: slide-left 40s linear infinite;
}

.slider-row.reverse .slider-track {
    animation: slide-right 40s linear infinite;
}

.slide {
    width: 600px;
    margin-right: 50px;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.slide-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* 各要素間の基本的な間隔 */
}

.slide h3 {
    font-size: 1.2rem;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    line-height: 1.4;
}

.slide .description {
    font-size: 0.9rem;
    color: var(--secondary-text-color, #aaa);
    margin: 0;
    line-height: 1.6;
    /* 2行で省略するためのCSS */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: calc(0.9rem * 1.6 * 2);
    /* 2行分の高さを最低でも確保 */
}

.slide .meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 1.5em;
    /* 縦方向のgap | 横方向のgap */
    padding-top: 4px;
}

.slide .meta-item {
    font-size: 0.85rem;
    color: var(--secondary-text-color, #aaa);
}

.slide .meta-item strong {
    font-weight: 700;
    color: var(--primary-text-color, #fff);
    margin-right: 0.5em;
}



.slide .notes {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--secondary-text-color, #aaa);
    margin: 0;
    padding-top: 4px;
    border-top: 1px solid var(--card-border-color, rgba(255, 255, 255, 0.1));
}


.slide .credits {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--secondary-text-color, #aaa);
}

.slide .credits p {
    margin: 0;
    line-height: 1.4;
}

#works .slide a {
    color: inherit;
    /* 親要素の色を継承 (白) */
    text-decoration: none;
    /* 下線を非表示 */
}

#works .slide a:hover {
    text-decoration: none;
    /* ホバー時も下線を非表示 */
}

/* Gallery (Marquee) */
#gallery {
    overflow: hidden;
    padding: 0;
}

/* News */
#news {
    display: block !important;
    /* FlexboxをやめてBlockにする */
    padding-top: 150px;
    /* 上部の余白 */
    box-sizing: border-box;
    /* paddingを含めて計算 */
}

#news .news-content {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    margin: 0 auto;
    /* 左右中央寄せ */
}

#news h2 {
    font-size: 6rem;
    margin-bottom: 60px;
    margin-top: 0;
    /* 上マージンをリセット */
    text-align: center;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--card-border-color, #ddd);
}

.news-date {
    font-family: 'Poppins', sans-serif;
    margin-right: 20px;
    font-size: 1rem;
    color: var(--secondary-text-color, #666);
}

.news-title {
    flex: 1;
    text-decoration: none;
    color: var(--primary-text-color, #000);
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.news-title:hover {
    opacity: 0.7;
}

.marquee-container {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 10px;
}

.marquee-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 5px;
    /* 左右に5pxのパディングを追加 */
    box-sizing: border-box;
    /* パディングを幅に含める */
}

@keyframes marquee-down {
    from {
        transform: translateY(-50%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes marquee-up {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

.marquee-track {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    animation: marquee-down 40s linear infinite;
}

.marquee-track.reverse {
    animation: marquee-up 40s linear infinite;
}

.marquee-track .grid-item {
    width: 100%;
    /* 親要素(padding適用済み)の幅いっぱいに */
    height: 50vh;
    /* 縦長にする */
    margin: 5px 0;
    /* 上下余白5px、左右余白0 */
    overflow: hidden;
    border-radius: 5px;
}

.marquee-track .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* アスペクト比を維持しつつコンテナを埋める */
    transition: transform 0.3s ease;
}

.marquee-track .grid-item:hover img {
    transform: scale(1.05);
    /* ホバー時に少し拡大 */
}

.marquee-track .grid-item h3 {
    font-size: 1.2rem;
}

/* Service */
#service .service-content,
#about-contact .about-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5vw;
}

#service .service-content .service-header-group {
    flex-basis: 30%;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-description {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--secondary-text-color, #ccc);
}

#service .service-content h2 {
    font-size: 6rem;
    text-align: left;
    margin: 0;
}

#about-contact .about-content h2 {
    flex-basis: 30%;
    font-size: 6rem;
    text-align: left;
    margin: 0;
    position: sticky;
    top: 0;
}

#service .service-content ul {
    flex-basis: 60%;
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

#service .service-content li {
    background-color: var(--card-bg-color, rgba(255, 255, 255, 0.05));
    padding: 30px;
    padding-bottom: 60px;
    /* 金額分のスペースを確保 */
    border-radius: 10px;
    border: 1px solid var(--card-border-color, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    position: relative;
    /* 金額をabsolute配置するため */
}

#service .service-content li .price-estimate {
    position: absolute;
    bottom: 20px;
    /* 下からの位置 */
    left: 30px;
    /* 左からの位置 */
    font-size: 1.1rem;
    /* 文字サイズを少し大きく */
    color: var(--secondary-text-color, #ccc);
    /* テキスト色を調整 */
    margin: 0;
    /* デフォルトのマージンをリセット */
}

#service .service-content li.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#service .service-content h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 15px;
}

#service .service-content p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--secondary-text-color, #ccc);
}

/* About & Contact */
#about-contact .right-column {
    flex-basis: 60%;
}

#about-contact .about-content dl {
    margin: 0 0 80px 0;
}

#about-contact .about-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid var(--card-border-color, #444);
}

#about-contact .about-item:first-child {
    border-top: 1px solid var(--card-border-color, #444);
}

#about-contact .about-item dt {
    width: 200px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
}

#about-contact .about-item dd {
    margin: 0;
    flex: 1;
    font-size: 1rem;
}

#about-contact .contact-details p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--secondary-text-color, #ccc);
    margin-bottom: 40px;
}

#about-contact .email-button {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--primary-text-color, white);
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    color: var(--primary-text-color, white);
}

#about-contact .email-button:hover {
    background-color: var(--primary-text-color, white);
    color: var(--bg-color, #111);
}

/* Spotlight Overlay */
.spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    /* Below cursor, above everything else */
    pointer-events: none;
    /* Allow clicks to go through */

    -webkit-mask: radial-gradient(circle 400px at var(--mouse-x) var(--mouse-y), transparent 0%, rgba(0, 0, 0, 1) 100%);
    mask: radial-gradient(circle 400px at var(--mouse-x) var(--mouse-y), transparent 0%, rgba(0, 0, 0, 1) 100%);
    transition: background-color 0.3s ease;
}

body.is-hovering .spotlight-overlay {
    -webkit-mask: radial-gradient(circle 800px at var(--mouse-x) var(--mouse-y), transparent 0%, rgba(0, 0, 0, 1) 100%);
    mask: radial-gradient(circle 800px at var(--mouse-x) var(--mouse-y), transparent 0%, rgba(0, 0, 0, 1) 100%);
}

.spotlight-overlay.is-works-section-active {
    background-color: transparent;
    /* worksセクションでは透明に */
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    color: var(--primary-text-color, white);
    display: flex;
    align-items: center;
    font-size: 12px;
    letter-spacing: 0.1em;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 10000;
}

.scroll-indicator .scroll-text {
    transition: opacity 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.2em;
}

.scroll-indicator .scroll-arrow-down {
    width: 1px;
    height: 40px;
    background-color: var(--primary-text-color, white);
    /* 元の色に戻す */
    margin-left: 10px;
    position: relative;
    animation: move-arrow-y 1.5s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.scroll-indicator .scroll-arrow-down::after {
    content: '';
    position: absolute;
    left: 50%;
    /* 棒の中心に */
    bottom: 0;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid var(--primary-text-color, white);
    /* 太くする */
    border-right: 2px solid var(--primary-text-color, white);
    /* 太くする */
    transform: translateX(-50%) rotate(45deg);
    /* 中心に配置し、回転 */
    transition: transform 0.3s ease;
}

.scroll-indicator .scroll-arrows-cross {
    display: none;
    /* デフォルトでは非表示 */
    position: relative;
    width: 40px;
    /* 十字キー全体の幅 */
    height: 40px;
    /* 十字キー全体の高さ */
}

.scroll-indicator .scroll-arrows-cross span {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    /* 矢印の頭のサイズ */
    border-color: var(--primary-text-color, white) transparent transparent transparent;
    opacity: 0;
    /* デフォルトでは非表示 */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-indicator .scroll-arrows-cross .arrow-up {
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    /* 0を180に */
    opacity: 1;
}

.scroll-indicator .scroll-arrows-cross .arrow-down {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    /* -180を0に */
    opacity: 1;
}

.scroll-indicator .scroll-arrows-cross .arrow-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    /* -90を90に */
    opacity: 1;
}

.scroll-indicator .scroll-arrows-cross .arrow-right {
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    /* 90を-90に */
    opacity: 1;
}

/* worksセクションに入った時の表示切り替え */
.scroll-indicator.is-works-section .scroll-text,
.scroll-indicator.is-works-section .scroll-arrow-down {
    display: none;
}

.scroll-indicator.is-works-section .scroll-arrows-cross {
    display: block;
}

@keyframes move-arrow-y {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Hamburger Menu & Modal */
.hamburger-menu {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 5px;
    background: transparent;
    border: none;
    z-index: 10002;
    /* Above everything */
}

.hamburger-menu span {
    width: 4px;
    height: 4px;
    background-color: var(--primary-text-color, white);
    border-radius: 50%;
    transition: transform 0.3s ease, opacity 0.3s ease, height 0.3s ease;
}

.modal-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    /* Below hamburger, above header */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.modal-menu nav {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.modal-menu nav a {
    color: white;
    text-decoration: none;
    font-size: 3rem;
    font-family: 'Archivo Black', sans-serif;
    margin: 15px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* --- Open State --- */
body.is-menu-open .hamburger-menu span {
    height: 2px;
    /* Stretch dots into lines */
}

body.is-menu-open .hamburger-menu span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.is-menu-open .hamburger-menu span:nth-child(2) {
    opacity: 0;
}

body.is-menu-open .hamburger-menu span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

body.is-menu-open .modal-menu {
    opacity: 1;
    pointer-events: auto;
}

body.is-menu-open .modal-menu nav a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--i) * 100ms + 300ms);
    /* Stagger effect */
}

.close-menu-button {
    position: fixed;
    top: 20px;
    left: 5vw;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    z-index: 10002;
    /* Same as hamburger */
    opacity: 0;
    transition: opacity 0.3s ease 300ms;
}

.close-menu-button span {
    display: block;
    width: 4px;
    height: 30px;
    background: linear-gradient(45deg, #FF0A6B, #FB41E6);
    border-radius: 2px;
    transform: rotate(-45deg);
}

body.is-menu-open .close-menu-button {
    opacity: 1;
}

.footer-background-text {
    /* position: absolute; */
    /* flexboxで配置するため削除 */
    /* bottom: 0; */
    /* flexboxで配置するため削除 */
    right: 5vw;
    /* worksセクションの右端からの位置 */
    font-family: 'Archivo Black', sans-serif;
    font-size: 15vw;
    /* Design Worksと同じサイズに */
    color: rgba(255, 255, 255, 0.05);
    /* 薄い色 */
    pointer-events: none;
    /* クリックイベントを透過 */
    z-index: 0;
    /* 背景として配置 */
    white-space: nowrap;
    /* 折り返しを防ぐ */
    display: flex;
    /* 縦並びにするため */
    flex-direction: column;
    /* 縦並びにするため */
    line-height: 0.8;
    /* 行間を詰める */
    margin-top: auto;
    /* 親要素の最下部に押しやる */
    align-self: flex-end;
    /* 右寄せ */
}

/* --- Scroll to Top Indicator --- */
.scroll-indicator.is-back-to-top {
    cursor: pointer;
    flex-direction: column;
    /* 縦並びにする */
    align-items: center;
    /* 中央揃え */
}

.scroll-indicator.is-back-to-top .scroll-text {
    writing-mode: horizontal-tb;
    margin-right: 0;
    /* 元のmargin-rightをリセット */
    margin-bottom: 5px;
    /* 矢印との間隔 */
}

.scroll-indicator.is-back-to-top .scroll-arrow-down {
    animation: none;
    margin-left: 0;
    /* 元のmargin-leftをリセット */
    transform: rotate(90deg);
    /* 棒を水平にする */
}

.scroll-indicator.is-back-to-top .scroll-arrow-down::after {
    transform: translateX(-50%) rotate(40deg);
}

/* Works Slide Notes */
.slide .notes {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--secondary-text-color, #aaa);
    margin-top: 10px;
}

/* =========================================
   Responsive Styles (Mobile)
   ========================================= */
@media screen and (max-width: 768px) {

    /* 基本設定 */
    body,
    html {
        cursor: auto;
        /* カーソル戻す */
        overflow: auto;
        /* スクロール許可 */
        height: auto;
    }

    .cursor-dot,
    .cursor-ring,
    .spotlight-overlay {
        display: none !important;
    }

    /* レイアウト */
    .container {
        width: 100%;
        height: auto;
        flex-direction: column;
        transform: none !important;
        /* JSの制御を無効化 */
    }

    .section {
        width: 100%;
        height: auto;
        min-height: auto;
        /* 100vh強制をやめる */
        padding: 80px 20px;
        /* 上下の余白を減らす */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Header */
    header {
        padding: 15px 20px;
        justify-content: flex-end;
        /* ハンバーガーを右に */
    }

    .hamburger-menu {
        z-index: 10002;
    }

    /* Intro */
    #intro {
        min-height: 100vh;
        /* Introは全画面 */
        padding-top: 0;
        /* 上下中央揃えのためにpaddingリセット */
    }

    #intro .intro-content h1 {
        font-size: 11.5vw;
        /* 画面幅に合わせて調整 */
        line-height: 1.2;
    }

    /* PC/SP 改行制御 (Mobile Overrides) */
    br.sp-break {
        display: inline;
        /* brを表示 */
    }

    .sp-space {
        display: inline;
    }

    br.pc-break {
        display: inline;
        /* スマホでもwithの後で改行 */
    }

    /* Concept */
    #concept .concept-content h2 {
        font-size: 3rem;
    }

    /* Works (B案: 横スワイプ) */
    #works {
        padding-top: 80px;
        /* 余白調整 */
        display: block;
        /* flex解除 */
        overflow: hidden;
        /* はみ出し防止 */
        position: relative;
        /* 背景テキストの基準点 */
    }

    .works-background-text {
        font-size: 18vw;
        top: 20px;
        /* 位置を上げる */
        left: -10px;
        opacity: 1;
        transform: none;
        z-index: 0;
        /* コンテンツの下 */
        display: flex;
        flex-direction: column;
        gap: 20px;
        /* 行間を広げる */
        color: rgba(255, 255, 255, 0.1);
        pointer-events: none;
        position: absolute;
        /* 明示的に指定 */
    }

    .works-background-text span:last-child {
        margin-left: 20vw;
        /* 重なり防止のため右にずらす */
    }

    .footer-background-text {
        font-size: 18vw;
        /* サイズを合わせる */
        bottom: 20px;
        /* 位置調整 */
        right: -10px;
        opacity: 1;
        transform: none;
        z-index: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        /* 右寄せ */
        gap: 20px;
        /* 行間を広げる */
        color: rgba(255, 255, 255, 0.1);
        pointer-events: none;
        position: absolute;
    }

    .footer-background-text span:first-child {
        margin-right: 20vw;
        /* ずらし */
    }

    .triple-slider-container {
        padding: 0;
        margin-top: 120px;
        /* スライダーを下にずらす */
        position: relative;
        z-index: 1;
    }

    /* スマホ用のスライダーコンテナ */
    .mobile-works-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-works-slider .slide {
        width: 85vw;
        /* 画面幅の85% */
        flex-shrink: 0;
        scroll-snap-align: center;
        margin-right: 0;
    }

    .mobile-works-slider .slide img {
        aspect-ratio: 16 / 9;
    }

    /* スマホ版Worksスライドのテキスト調整 */
    .mobile-works-slider .slide .description {
        -webkit-line-clamp: unset;
        /* 行数制限解除 */
        overflow: visible;
        display: block;
        /* boxからblockへ */
        margin-bottom: 10px;
    }

    .mobile-works-slider .slide .meta-line {
        flex-direction: column;
        /* 縦並び */
        gap: 5px;
        /* 間隔調整 */
    }

    /* PC用のスライダーは消す（JSで制御するがCSSでも念のため） */
    .slider-row {
        display: none;
    }

    /* Service */
    #service .service-content {
        flex-direction: column;
        gap: 40px;
        padding: 0;
        /* News(40px)に合わせるため、ここは0にする (Section 20px + Item 20px = 40px) */
    }

    #service .service-content .service-header-group {
        position: static;
    }

    #service .service-content h2 {
        font-size: 3rem;
    }

    .service-item {
        padding: 20px;
        /* スマホでは少し狭くして全体の余白を合わせる */
    }

    .service-description {
        color: #000 !important;
        /* スマホでは黒文字で読みやすく */
    }

    #service .service-content h2,
    #service .service-content h3,
    #service .service-content li .price-estimate {
        color: #000 !important;
    }

    #service .service-content ul {
        grid-template-columns: 1fr;
        /* 1列 */
    }

    /* Gallery (A案: 2列) */
    #gallery {
        height: 80vh;
        /* 固定高さにする */
        min-height: unset;
        overflow: hidden;
        /* はみ出し防止 */
        color: #000 !important;
        /* ギャラリーも黒文字 */
    }

    .gallery-grid {
        height: 100%;
        /* 親に合わせる */
    }

    .marquee-column {
        height: 100%;
        /* 親に合わせる */
    }

    .marquee-column:nth-child(3) {
        display: none;
        /* 3列目を消す */
    }

    .marquee-track .grid-item {
        height: 30vh;
        /* 高さを少し小さく */
    }

    /* About */
    #about-contact .about-content {
        flex-direction: column;
        padding: 0 20px;
        /* Section(20) + Content(20) = 40px */
    }

    #about-contact .about-content h2 {
        font-size: 3rem;
        position: static;
        margin-bottom: 40px;
    }

    #about-contact .right-column {
        display: flex;
        flex-direction: column;
        width: 100%;
        /* 幅を確保 */
    }

    #about-contact .about-item dt {
        width: 120px;
    }

    #about-contact .contact-details {
        text-align: left;
        /* 左詰めに変更 */
    }

    #about-contact .email-button {
        display: inline-block;
        /* または block */
        margin: 40px auto 0;
        /* 中央寄せ */
        /* width: fit-content; 不要かも */
    }

    /* Scroll Indicator */
    .scroll-indicator {
        display: none;
        /* スマホでは邪魔かも？一旦消す */
    }

    /* Mobile Menu Font Size */
    .modal-menu nav a {
        font-size: 2rem;
    }

    /* News (Mobile) */
    #news {
        padding-top: 80px;
        /* 余白を縮小 */
        padding-bottom: 80px;
        height: auto;
        /* 高さを自動に */
        min-height: auto;
    }

    #news .news-content {
        padding: 0 20px;
        /* Section(20) + Content(20) = 40px */
        max-width: 100%;
    }

    #news h2 {
        font-size: 3rem;
        margin-bottom: 40px;
        text-align: left;
        /* 左寄せに変更 */
    }

    .news-item {
        flex-direction: column;
        /* 縦並び */
        align-items: flex-start;
        gap: 5px;
        padding: 15px 0;
    }

    .news-date {
        font-size: 0.9rem;
        margin-right: 0;
        margin-bottom: 5px;
        opacity: 0.7;
    }

    .news-title {
        width: 100%;
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    position: relative;
    border-radius: 8px;
    color: #000;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
}

#modal-title {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.3;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

#modal-date {
    display: block;
    color: #666;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 5px;
}

#modal-body {
    line-height: 1.8;
    font-size: 1rem;
}

#modal-body p {
    margin-bottom: 1em;
}