* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #1A1A1A;
    background-color: #FFFFFF;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0) 70%), url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    padding: 80px 60px 60px;
    max-width: 720px;
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #D4A843;
    border: 1px solid rgba(212, 168, 67, 0.5);
    padding: 8px 22px;
    border-radius: 30px;
}

.hero-badges.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-badges {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero h1 {
    font-family: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.hero p.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* ファーストビュー内ハンバーガーメニュー */
.hero-hamburger {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hero-hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hero-hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hero-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hero-hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ヒーローテキストアニメーション */
.hero-title, .hero-subtitle, .hero-label {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 36px;
}

.hero-label.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* セクション共通 */
.section {
    padding: 100px 0;
}

.section-title {
    font-family: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', serif;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 20px;
    color: #1A1A1A;
}

.section-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #666666;
    text-align: center;
    margin-bottom: 60px;
}

/* 医師監修セクション */
.doctor-section {
    background-color: #F5F3EF;
    text-align: center;
    padding: 80px 0;
}

.doctor-badge {
    display: inline-block;
    margin-bottom: 30px;
}

.badge-text {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    color: #8B6914;
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
    border: 2px solid #D4A843;
    padding: 12px 40px;
    border-radius: 40px;
    letter-spacing: 3px;
}

/* 主要機能セクション */
.features-section {
    background-color: #FAFAFA;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #E8E8E8;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    padding: 30px;
}

.feature-title {
    font-size: 20px;
    font-weight: 500;
    color: #1A1A1A;
    margin-bottom: 15px;
}

.feature-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: #666666;
}

/* 機能詳細セクション */
.detail-section {
    background-color: #FFFFFF;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-number {
    font-size: 16px;
    font-weight: 500;
    color: #6A6A6A;
    letter-spacing: 2px;
    font-family: Roboto, sans-serif;
}

.detail-title {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.3;
    color: #1A1A1A;
}

.detail-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #666666;
}

.detail-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 品質保証セクション */
.quality-section {
    background-color: #FAFAFA;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.quality-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.quality-card.japan {
    background-image: url('../images/japanese-design.jpg');
}

.quality-card.warranty {
    background-image: url('../images/guarantee.jpg');
}

/* ========== 16機能グリッド ========== */
.func16-section {
    background: #1A1A1A;
    padding: 100px 0;
}

.func16-title {
    color: #D4A843 !important;
    font-family: 'Noto Serif JP', serif;
}

.func16-sub {
    color: rgba(255, 255, 255, 0.55) !important;
}

.func16-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 60px;
}

.func16-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #2A2A2A;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.func16-cell:hover {
    transform: translateY(-4px);
}

.func16-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.func16-cell:hover img {
    transform: scale(1.06);
}

.func16-cell .func16-ov {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.05) 100%);
}

.func16-cell .func16-num {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #FFFFFF;
}

.func16-cell .func16-txt {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    font-size: 14px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .func16-section { padding: 70px 0; }
    .func16-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 40px; }
    .func16-cell .func16-num { font-size: 11px; }
    .func16-cell .func16-txt { font-size: 13px; }
}

/* ========== カラーバリエーション ========== */
.colors-section {
    position: relative;
    padding: 0;
    height: 600px;
    overflow: hidden;
    color: #FFFFFF;
}

.colors-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.colors-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.colors-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26,26,26,0.78) 0%, rgba(26,26,26,0.55) 45%, rgba(26,26,26,0.15) 100%);
}

.colors-content {
    position: relative;
    z-index: 1;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
}

.colors-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 6px;
    color: #D4A843;
    margin: 0;
}

.colors-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 64px;
    font-weight: 300;
    line-height: 1.1;
    color: #FFFFFF;
    margin: 0;
}

.colors-sub {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.colors-swatches {
    display: flex;
    gap: 30px;
    margin-top: 16px;
}

.color-swatch {
    display: flex;
    align-items: center;
    gap: 12px;
}

.swatch-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.swatch-name {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .colors-section { height: 480px; }
    .colors-content { padding: 0 30px; gap: 18px; }
    .colors-title { font-size: 44px; }
    .colors-sub { font-size: 15px; }
    .swatch-dot { width: 30px; height: 30px; }
}

/* ========== 椅子3面ビュー ========== */
.chair-views {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 0 60px;
}

.chair-view {
    background: #F8F8F8;
    border-radius: 12px;
    padding: 30px 20px 20px;
    text-align: center;
    margin: 0;
}

.chair-view img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    display: block;
}

.chair-view figcaption {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 4px;
    color: #999;
}

@media (max-width: 768px) {
    .chair-views { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
    .chair-view img { height: 260px; }
}

/* ========== 使用シーン マーキー ========== */
.scene-section {
    background: #1A1A1A;
    padding: 100px 0 80px;
    overflow: hidden;
}

.scene-section .section-title {
    color: #FFFFFF;
}

.scene-section .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.scene-marquee {
    margin-top: 60px;
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.scene-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scene-scroll 60s linear infinite;
}

.scene-marquee:hover .scene-track {
    animation-play-state: paused;
}

.scene-item {
    flex: 0 0 auto;
    width: 360px;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    background: #2A2A2A;
}

.scene-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes scene-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - 12px)); }
}

@media (max-width: 768px) {
    .scene-section {
        padding: 70px 0 50px;
    }
    .scene-marquee {
        margin-top: 40px;
    }
    .scene-item {
        width: 260px;
        height: 180px;
    }
    .scene-track {
        gap: 16px;
        animation-duration: 50s;
    }
    @keyframes scene-scroll {
        from { transform: translateX(0); }
        to   { transform: translateX(calc(-50% - 8px)); }
    }
}

.quality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.7);
    z-index: 1;
}

.quality-content {
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.quality-title {
    font-size: 28px;
    font-weight: 300;
    color: #FFCC00;
    margin-bottom: 20px;
}

.quality-description {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
}

.quality-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* 製品仕様セクション */
.specs-section {
    background-color: #FFFFFF;
}

.specs-table {
    max-width: 900px;
    margin: 40px auto 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.08);
}

.spec-row {
    display: flex;
    border-bottom: 1px solid #E8E8E8;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    width: 200px;
    padding: 20px;
    background: #F8F8F8;
    font-size: 15px;
    font-weight: 500;
    color: #1A1A1A;
    flex-shrink: 0;
}

.spec-value {
    flex: 1;
    padding: 20px;
    font-size: 15px;
    font-weight: 400;
    color: #666666;
    line-height: 1.5;
}
.spec-img {
    max-width: 400px;
    margin-bottom: 20px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 1px;
    overflow: hidden;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.3);
}
/* オンラインショップセクション */
.shop-section {
    background-color: #FAFAFA;
}

.shop-content {
    text-align: center;
    margin-bottom: 60px;
}

.shop-description {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #666666;
}

.shop-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.shop-images2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.shop-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.shop-image:hover {
    transform: translateY(-5px);
}

.shop-image img {
    width: 100%;
    height: auto;
    display: block;
}
/* フッターセクション */
.footer-section {
    background-color: #1A1A1A;
	color: white;
}
.footer-content {
    text-align: center;
}
.footer-description {
    font-size: 13px;
    padding-top: 10px;
    padding-bottom: 10px;
    opacity: 0.8;
}	
/* ナビゲーション */
.nav {
    background: white;
    border-bottom: 1px solid #E0E0E0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 40px;
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-link {
    color: #666666;
    padding: 9px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #1A1A1A;
    color: white;
}

/* 固定購入ボタン */
.fixed-purchase-button {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 99;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.fixed-purchase-button.show {
    transform: translateY(0);
}

.purchase-btn {
    display: block;
    background: #1A1A1A;
    color: white;
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: background 0.3s ease;
}

.purchase-btn:hover {
    background: #333;
}

/* スクロールアニメーション */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブデザイン */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-grid {
        gap: 60px;
        margin-bottom: 60px;
    }

    .quality-grid {
        grid-template-columns: 1fr;
    }

    .shop-images {
        grid-template-columns: repeat(2, 1fr);
    }
	.shop-images2 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 70px 30px 50px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p.hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .section {
        padding: 70px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-bottom: 50px;
    }

    /* モバイル時はHTML順を無視して 見出し+説明 → 画像 で統一 */
    .detail-grid .detail-item { order: 1; }
    .detail-grid .detail-image { order: 2; }

    .detail-title {
        font-size: 24px;
    }

    /* ファーストビュー内ハンバーガーメニュー表示 */
    .hero-hamburger {
        display: flex;
    }

    /* 固定購入ボタンを表示 */
    .fixed-purchase-button {
        display: block;
    }

    /* 通常のナビゲーションを非表示 */
    .nav {
        display: none;
    }

    .nav.menu-open {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        gap: 30px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 100;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 18px;
        padding: 15px 20px;
        width: 80%;
        text-align: center;
        border-radius: 10px;
    }

    .spec-row {
        flex-direction: column;
    }

    .spec-label {
        width: 100%;
    }

    .shop-images {
        grid-template-columns: 1fr;
    }
	.shop-images2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .doctor-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-content {
        padding: 60px 24px 40px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero-label {
        font-size: 12px;
        letter-spacing: 4px;
    }

    .hero-badge {
        font-size: 12px;
        letter-spacing: 1.5px;
        padding: 6px 16px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .detail-grid {
        gap: 25px;
        margin-bottom: 40px;
    }

    .detail-title {
        font-size: 20px;
    }
	.shop-images2 {
        grid-template-columns: 1fr;
    }
}
/* グリッドのリンク装飾をリセット */
.func16-cell {
    text-decoration: none; /* 下線を消す */
    display: block;        /* 配置を維持 */
}

.func16-cell:hover .func16-txt {
    color: #D4A843; /* ホバー時に文字色を変えるなど、視覚効果を追加してもOK */
    transition: color 0.3s ease;
}
/* 詳細項目の位置調整（ナビゲーションの高さ分を考慮） */
.detail-number {
    scroll-margin-top: 100px; /* ナビの高さに合わせて調整 */
}
/* ページトップに戻るボタン */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #555;
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 20px;
}

/* スマホ表示時の調整 */
@media (max-width: 768px) {
    .back-to-top {
        right: 20px;
        bottom: 90px; /* 固定購入ボタンと重ならない位置に上げる */
        width: 45px;
        height: 45px;
    }
}