/* ========================================
   モアラボ住空間研究所 - スタイルシート
   ======================================== */

/* ========================================
   リセット・ベース設定
   ======================================== */

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

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: shippori-mincho-b1, sans-serif;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-display: swap;
}

/* ========================================
   フォント設定
   ======================================== */

.japanese {
    font-family: shippori-mincho-b1, sans-serif;
    font-display: swap;
}

.english {
    font-family: gravita-geo-variable, sans-serif;
    font-display: swap;
}

/* ========================================
   フォント読み込み状態の制御
   ======================================== */

.wf-loading .japanese,
.wf-loading .english {
    font-family: sans-serif;
    visibility: hidden;
}

.wf-active .japanese {
    font-family: shippori-mincho-b1, sans-serif;
    visibility: visible;
}

.wf-active .english {
    font-family: gravita-geo-variable, sans-serif;
    visibility: visible;
}

.wf-inactive .japanese,
.wf-inactive .english {
    font-family: sans-serif;
    visibility: visible;
}

/* FOUT対策: フォント読み込み完了までテキストを非表示 */
body.wf-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.wf-active,
body.wf-inactive {
    opacity: 1;
}

/* ========================================
   レイアウト・コンテナ
   ======================================== */

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 0rem;
}

/* ========================================
   ヒーローセクション
   ======================================== */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 880px;
    max-height: 880px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    z-index: 1;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    background: rgba(0, 15, 0, 0.25);
    mix-blend-mode: overlay;
    z-index: 2;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    background-image: url('../img/header_bg.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    mix-blend-mode: overlay;
    opacity: 0.5;
    z-index: 2;
}

.hero-content {
    margin-top: 16rem;
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ========================================
   ヘッダー・ナビゲーション
   ======================================== */

.header {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    background: rgba(255, 255, 255, 0.9);
    mix-blend-mode: screen;
}

.logo {
    text-align: center;
    padding: 1.5rem 0 1rem 0;
}

.logo-link {
    text-decoration: none !important;
    display: block;
    color: inherit;
}

.logo-link:hover,
.logo-link:visited,
.logo-link:active {
    text-decoration: none !important;
}


/* 共通ハンバーガーメニュー */
.mobile-header-wrapper {
    display: block;
}

.mobile-hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    top: 2.2rem;
    right: 2rem;
    z-index: 1000;
    mix-blend-mode: color-burn;
    background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .mobile-hamburger-btn {
        top: 1rem;
        right: 1rem;
        
    }
}

.mobile-hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #042908;
    transition: all 0.3s ease;
    transform-origin: center;
    position: relative;
}

/* アクティブ状態：×に変わる */
.mobile-hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: #042908;
}

.mobile-hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
    background: #042908;
}

.mobile-hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: #042908;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(-20px);
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.mobile-menu-logo {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu-logo-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.mobile-menu-logo-link:hover,
.mobile-menu-logo-link:visited,
.mobile-menu-logo-link:active {
    text-decoration: none !important;
}

.mobile-menu-overlay.active .mobile-menu-logo {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 0.5rem;
}

.mobile-logo-text {
    color: #042908;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.mobile-menu-link {
    display: block;
    padding: 1.5rem 2rem;
    color: #042908;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: gravita-geo-variable, sans-serif;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu-overlay.active .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-menu-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-menu-link:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-menu-link:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu-link:hover {
    color: #1a3d17;
    transform: translateY(-5px);
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    color: #042908;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0rem;
    text-align: center;
}

.navigation {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    background-color: #fff;
    color: #2d5a27;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.4) ;
    border: 1px solid #fff;

}

.nav-link:hover {
    background-color: #042908;
    color: #fff;
}

/* ========================================
   ヒーローテキスト
   ======================================== */

.hero-text {
    text-align: center;
    color: #fff;
    margin-bottom: 4rem;
    margin-top: 6rem;
    padding-top: 2rem;
}

.hero-text h1,
.hero-text h2,
.hero-text h3,
.hero-text p {
    margin-bottom: 1rem;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.3);
}

.hero-text h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    padding-top: 1rem;
}

.hero-text h2 {
    font-size: 4rem;
    font-weight: 600;
    font-family: gravita-geo-variable, sans-serif;
    line-height: 0.4;

}

.hero-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 2.2;

}

.hero-text p {
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1.4;
    padding-top: 1rem;
}

/* Hero Text specific classes */
.hero-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    padding-top: 1rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 4rem;
    font-weight: 600;
    font-family: gravita-geo-variable, sans-serif;
    line-height: 0.4;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.3);
}

.hero-subtitle-small {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 2.2;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.3);
}

.hero-description {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-description-line1 {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.3);
}

.hero-description-line2 {
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.3);
}

.hero-contact-button {
    margin-top: 3rem;
    text-align: center;
}

.hero-contact-link {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    background-color: #fff;
    color: #2d5a27;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid #fff;
}

.hero-contact-link:hover {
    background-color: #042908;
    color: #fff;
}

/* ========================================
   メインコンテンツ
   ======================================== */

.main-content {
    background-color: #fff;
    padding: 0;
}

.section {
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0066cc;
}

/* ========================================
   プロジェクトグリッド
   ======================================== */

.projects-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 0rem;
    padding: 0 1rem;
}

.project-item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-item-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.project-item-link:hover,
.project-item-link:visited,
.project-item-link:active {
    text-decoration: none !important;
}

.project-item-link .project-button {
    pointer-events: none;
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

.project-info {
    padding: 0 0 1.5rem 0;
}

.project-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-family: gravita-geo-variable, sans-serif;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    padding: 0.5rem 1.5rem 0.75rem 1.5rem;
}

/* 各プロジェクトごとのアースカラー背景 */
.projects-grid .project-item:nth-child(1) .project-info h3 {
    background-color: #f5f0e8; /* STANDARD: ベージュ/サンド系 */
}

.projects-grid .project-item:nth-child(2) .project-info h3 {
    background-color: #ede8d8; /* PREMIUM: オリーブグリーン系 */
}

.projects-grid .project-item:nth-child(3) .project-info h3 {
    background-color: #f5e8e0; /* FREE: テラコッタ系 */
}

.project-category {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    margin-top: -0.5rem;
    margin-bottom: 0;
    padding: 0 1.5rem 0.75rem 1.5rem;
    line-height: 1.4;
}

/* 各プロジェクトごとの背景色を category にも適用 */
.projects-grid .project-item:nth-child(1) .project-category {
    background-color: #f5f0e8; /* STANDARD: ベージュ/サンド系 */
}

.projects-grid .project-item:nth-child(2) .project-category {
    background-color: #ede8d8; /* PREMIUM: オリーブグリーン系 */
}

.projects-grid .project-item:nth-child(3) .project-category {
    background-color: #f5e8e0; /* FREE: テラコッタ系 */
}

.project-info p:not(.project-category) {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    padding: 0 1.5rem;
}

.project-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #042908;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-align: center;
}

.project-button:hover {
    background-color: #042908;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

/* ========================================
   About Section
   ======================================== */

.about-section {
    width: 100%;
    padding: 0 0rem;
}

/* Technology/Philosophy Hero Section */
.about-hero {
    position: relative;
    height: 100vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 1rem;
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    width: calc(100% - 0rem);
    height: 100%;
    background: rgba(0, 15, 0, 0.6);
    mix-blend-mode: multiply;
    z-index: 2;
    padding: 0 1rem;
    margin: 0 auto;
}

.about-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    color: #fff;
    width: 100%;
    max-width: 900px;
    padding: 0 2rem;
    box-sizing: border-box;
}

.about-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.5);
    color: #fff;
    position: absolute;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
    border-bottom: 1px solid #fff;
    padding-bottom: 1rem;
    max-width: 300px;
}

.about-hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.5);
}

.about-hero-brand {
    font-size: 1.3rem;
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.5);
    line-height: 2;
}

/* Windows Section */
.about-windows {
    padding: 4rem 0;
    background-color: #fff;
}

.about-windows-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-windows-text {
    text-align: left;
}

.about-section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.about-section-subtitle {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.about-windows-image,
.about-earthquake-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* Natural Air Conditioning Section */
.about-air {
    padding: 3rem 0;
    background-color: #f8f9fa;
    text-align: center;
}

.about-air-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-air-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
}

/* Earthquake Resistance Section */
.about-earthquake {
    padding: 4rem 0;
    background-color: #fff;
}

.about-earthquake-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-earthquake-text {
    text-align: left;
}

.about-section-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Lifestyle Section */
.about-lifestyle {
    position: relative;
    height: 100vh;
    min-height: 360px;
    max-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-lifestyle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-lifestyle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-lifestyle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 15, 0, 0.5);
    mix-blend-mode: multiply;
    z-index: 2;
}

.about-lifestyle-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-lifestyle-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 4rem;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.5);
}

.about-lifestyle-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.about-lifestyle-uses {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.8;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.5);
}

/* ========================================
   レスポンシブ対応
   ======================================== */

/* モバイル用改行 */
.br-mobile {
    display: none;
}

/* PC用改行 */
.br-pc {
    display: block;
}

@media (max-width: 768px) {
    .header {
        gap: 0;
    }
    
    .hero-text {
        margin-top: 2rem;
        padding-top: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* About Section Responsive */
    .about-hero-title {
        font-size: 2.4rem;
    }
    
    .about-hero-subtitle {
        font-size: 1.8rem;
    }
    
    .about-hero-brand {
        font-size: 1.1rem;
    }
    
    .about-windows-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-windows-text {
        text-align: center;
    }
    
    .about-earthquake-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-earthquake-text {
        text-align: center;
    }
    
    /* モバイル時は説明文を左揃えにする */
    .about-section-description {
        padding: 0.4rem 1rem;
    }
    
    .about-lifestyle-title {
        font-size: 2rem;
    }
    
    .about-lifestyle-subtitle {
        font-size: 1.25rem;
    }
    
    .about-lifestyle-uses {
        font-size: 1rem;
    }
    
    /* モバイルで改行を表示 */
    .br-mobile {
        display: block;
    }
    
    /* モバイルでPC用改行を非表示 */
    .br-pc {
        display: none;
    }
}

/* ========================================
   Swiper Styles
   ======================================== */

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-wrapper {
    display: flex;
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.swiper-pagination {
    bottom: 2rem !important;
}

.swiper-pagination-bullet {
    background-color: #fff !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* About Hero Swiper Specific Styles */
.about-hero-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

.about-hero-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Lifestyle Swiper Styles
   ======================================== */

.lifestyle-swiper {
    max-width: 960px;
    margin: 3rem auto 0;
    padding: 0 1rem;
    height: 380px;
}

.lifestyle-slide {
    height: auto;
}

.lifestyle-item {
    text-align: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.lifestyle-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 1rem;
    border: 10px solid #fff;
    display: block;
}

.lifestyle-item-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.5);
}

.lifestyle-item-description {
    font-size: 1rem;
    color: #fff;
    line-height: 1.6;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.5);
}

.lifestyle-swiper-pagination {
    margin-top: 2rem;
}

/* ========================================
   Product Buttons Section
   ======================================== */

.product-buttons {
    padding: 4rem 0;
    background-color: #fff;
}

.product-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.product-button-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
    aspect-ratio: 16 / 7;
}

.product-button-item:hover {
    transform: translateY(-5px);
}

.product-button-item-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.product-button-item-link:hover,
.product-button-item-link:visited,
.product-button-item-link:active {
    text-decoration: none !important;
}

.product-button-bg {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-button-bg::before {
    content: '';
    position: absolute; 
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid #fff;
    z-index: 2;
    pointer-events: none;
}

.product-button-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 15, 0, 0.5);
    mix-blend-mode: multiply;
    transition: background 0.3s ease;
    z-index: 1;
}

.product-button-item:hover .product-button-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.product-button-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
}

.product-button-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.5);
    font-family: gravita-geo-variable, sans-serif;
}

/* Standard page specific styles for product buttons */
.product-buttons-grid-standard-page {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
}

/* ========================================
   Price Section
   ======================================== */

.price-section {
    padding: 0;
    background-color: #fff;
    text-align: center;
}

.price-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.price-amount {
    font-size: 4rem;
    font-weight: 700;
    color: #042908;
    font-family: gravita-geo-variable, sans-serif;
    margin-bottom: 1rem;
}

.price-label {
    font-size: 1.5rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 0.5rem;
}

.price-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: #042908;
    margin-top: 0.5rem;
}

/* ========================================
   Flow Section
   ======================================== */

.flow-section {
    padding: 0;
    text-align: center;
}

.flow-image {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flow-banner {
    width: 100%;
    height: auto;
}

/* ========================================
   Bottom Content Section
   ======================================== */

.bottom-content {
    padding: 0 0 3rem 0;
    text-align: center;
}

.bottom-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.bottom-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.bottom-description {
    font-size: 1.25rem;
    color: #333;
    line-height: 1.8;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.bottom-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    background-color: #042908;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.bottom-button:hover {
    background-color: #f8f9fa;
    color: #042908;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.bottom-note {
    font-size: 0.875rem;
    color: #666;
    margin-top: 1rem;
    text-align: center;
}

/* ========================================
   Footer Section
   ======================================== */

.footer {
    background-color: #f8f9fa;
    padding: 4rem 0 0 0;
}

.footer-content {
    text-align: center;
    margin-bottom: 3rem;
}

.company-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    font-family: gravita-geo-variable, sans-serif;
}

.company-address,
.company-phone {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.map-container iframe:hover {
    filter: grayscale(0%);
}

.copyright {
    text-align: center;
    padding: 2rem 0;
    background-color: #fff;
}

.copyright p {
    color: #333;
    font-size: 0.875rem;
    font-family: gravita-geo-variable, sans-serif;
    font-weight: 600;
}

@media (max-width: 768px) {
    .product-buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .product-buttons-grid-standard-page {
        grid-template-columns: 1fr !important;
    }
    
    .bottom-title {
        font-size: 2rem;
    }
    
    .bottom-description {
        font-size: 1.125rem;
    }
    
    .lifestyle-swiper {
        max-width: 100%;
    }
    
    .lifestyle-image {
        max-width: 100%;
        height: auto;
    }
    
    .hero-section {
        height: 100vh;
        min-height: 700px;
        max-height: 700px;
    }
    
    .hero-content {
        margin-top: 18.4rem;
    }
    
    /* Hero classes responsive */
    .hero-title { font-size: 1rem; }
    .hero-subtitle { font-size: 2rem; }
    .hero-subtitle-small { font-size: 1.125rem; }
    .hero-description-line1 { font-size: 1.2rem; }
    .hero-description-line2 { font-size: 1.5rem; }
    
    .hero-contact-button {
        margin-top: 2rem;
    }
    
    .hero-contact-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .price-section {
        padding: 0;
    }
    
    .price-amount {
        font-size: 2.4rem;
    }
    
    .price-label {
        font-size: 1.25rem;
    }
    
    .price-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 1rem; }
    .hero-text h2 { font-size: 3rem; }
    .hero-text h3 { font-size: 1.125rem; }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-title { font-size: 0.9rem; }
    .hero-subtitle { font-size: 1.5rem; }
    .hero-subtitle-small { font-size: 1rem; }
    .hero-description-line1 { font-size: 1.5rem; }
    .hero-description-line2 { font-size: 2rem; }
    
    .hero-contact-link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ========================================
   Standard Plan Section Styles
   ======================================== */

.standard-plan-section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.standard-plan-title-group {
    text-align: center;
    margin-bottom: 2rem;
}

.standard-plan-title-large {
    font-size: 2.4rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1;
    font-family: gravita-geo-variable, sans-serif;
}

.standard-plan-title-small {
    font-size: 1rem;
    font-weight: 400;
    color: #333;
    margin: 0;
    margin-top: 1rem;
    line-height: 1;
    font-family: gravita-geo-variable, sans-serif;
}

.standard-plan-subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.standard-plan-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto 0.5rem;
    cursor: pointer;
}

.standard-plan-slide {
    width: 100%;
    overflow: hidden;
}

.standard-plan-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.standard-plan-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.standard-plan-slider-prev {
    left: 10px;
}

.standard-plan-slider-prev span {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 12px 8px 0;
    border-color: transparent #042908 transparent transparent;
    position: relative;
    left: -2px;
}

.standard-plan-slider-next {
    right: 10px;
}

.standard-plan-slider-next span {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #042908;
    position: relative;
    right: -2px;
}

.standard-plan-slider-nav:hover {
    background: rgba(255, 255, 255, 1);
}

.standard-plan-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.standard-plan-gallery-item {
    width: 100%;
    overflow: hidden;
}

.standard-plan-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.standard-plan-gallery-item:hover img {
    transform: scale(1.05);
}

.standard-plan-description-title {
    text-align: center;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 600;
}

.standard-plan-description-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #042908;
    font-weight: 600;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.standard-plan-description {
    text-align: left;
    font-size: 1rem;
    color: #333;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.standard-plan-price {
    text-align: center;
    margin-bottom: 1rem;
}

.standard-plan-price-amount {
    font-size: 2rem;
    font-weight: 600;
    color: #042908;
    font-family: gravita-geo-variable, sans-serif;
    margin-bottom: 0.5rem;
}

.standard-plan-note {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 2rem;
}

.standard-plan-contact {
    text-align: center;
    margin-bottom: 2rem;
}

.standard-plan-contact-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    background-color: #042908;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.standard-plan-contact-button:hover {
    background-color: #f8f9fa;
    color: #042908;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.standard-plan-video-section {
    padding: 0rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.standard-plan-video-wrapper {
    width: 100%;
}

.standard-plan-video-container {
    position: relative;
    width: 100%;
}

.standard-plan-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.standard-plan-video-label {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    font-family: gravita-geo-variable, sans-serif;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: none;
    text-align: center;
}

/* Responsive for Standard Plan */
@media (max-width: 768px) {
    .standard-plan-section {
        padding: 2rem 1rem;
    }
    
    .standard-plan-title-large {
        font-size: 2.4rem !important;
    }
    
    .standard-plan-title-small {
        font-size: 0.9rem !important;
        margin-top: 0.5rem;
    }
    
    .standard-plan-subtitle {
        font-size: 1.2rem !important;
    }
    
    .standard-plan-description-title {
        font-size: 1.2rem !important;
    }
    
    .standard-plan-description-subtitle {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .standard-plan-video-label {
        font-size: 0.8rem !important;
        padding-top: 1rem;
    }
    
    .standard-plan-description {
        font-size: 0.9rem !important;
    }
    
    .standard-plan-price-amount {
        font-size: 2.5rem !important;
    }
    
    .standard-plan-gallery {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 100% !important;
    }
    
    .standard-plan-slider-nav {
        width: 35px !important;
        height: 35px !important;
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    .standard-plan-title-large {
        font-size: 2rem !important;
    }
    
    .standard-plan-title-small {
        font-size: 0.85rem !important;
    }
    
    .standard-plan-subtitle {
        font-size: 1rem !important;
    }
    
    .standard-plan-description-title {
        font-size: 1rem !important;
    }
    
    .standard-plan-description-subtitle {
        font-size: 1rem !important;
    }
    
    .standard-plan-description {
        font-size: 0.85rem !important;
    }
    
    .standard-plan-price-amount {
        font-size: 1.8rem !important;
    }
    
    .standard-plan-gallery {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .standard-plan-video-label {
        top: 0px !important;
        font-size: 0.7rem !important;
    }
}

/* ========================================
   Plan Page Specific Styles
   ======================================== */

/* Page-specific hero background image */
.page-hero-section {
    position: relative;
    height: 100vh;
    min-height: 400px;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 15, 0, 0.25);
    mix-blend-mode: overlay;
    z-index: 2;
}

.page-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/header_bg.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    mix-blend-mode: overlay;
    opacity: 0.5;
    z-index: 2;
}

.page-hero-content {
    margin-top: 4rem;
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Smaller hero text for plan pages */
.plan-hero-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    padding-top: 1rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.3);
}

.plan-hero-subtitle {
    font-size: 5rem;
    font-weight: 600;
    font-family: gravita-geo-variable, sans-serif;
    line-height: 0.4;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.3);
}

.plan-hero-subtitle-small {
    font-size: 1rem;
    font-weight: 600;
    line-height: 2.2;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.3);
}

/* Override hero-text styles for plan pages */
.hero-text .plan-hero-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    padding-top: 1rem;
}

.hero-text .plan-hero-subtitle {
    font-size: 2.8rem;
    font-weight: 600;
    font-family: gravita-geo-variable, sans-serif;
    line-height: 0.4;
}

.hero-text .plan-hero-subtitle-small {
    font-size: 1rem;
    font-weight: 600;
    line-height: 2.2;
}

/* Responsive for plan pages */
@media (max-width: 768px) {
    .page-hero-section {
        height: 100vh;
        min-height: 350px;
        max-height: 350px;
    }
    
    .page-hero-content {
        margin-top: 12.5rem;
    }
    
    .plan-hero-title,
    .hero-text .plan-hero-title {
        font-size: 0.9rem;
    }
    
    .plan-hero-subtitle,
    .hero-text .plan-hero-subtitle {
        font-size: 2.4rem;
    }
    
    .plan-hero-subtitle-small,
    .hero-text .plan-hero-subtitle-small {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .page-hero-section {
        height: 100vh;
        min-height: 350px;
        max-height: 350px;
    }
    
    
    .plan-hero-title,
    .hero-text .plan-hero-title {
        font-size: 0.85rem;
    }
    
    .plan-hero-subtitle,
    .hero-text .plan-hero-subtitle {
        font-size: 1.8rem;
    }
    
    .plan-hero-subtitle-small,
    .hero-text .plan-hero-subtitle-small {
        font-size: 0.8rem;
    }
}

/* Contact hero subtitle specific override */
.contact-hero-subtitle {
    line-height: 0.8 !important;
}

/* ========================================
   Contact Page Specific Styles
   ======================================== */

.contact-intro-section {
    padding: 4rem 1rem 2rem;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #042908;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.contact-intro-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 90px;
    height: 2px;
    background-color: rgba(4, 41, 8, 0.4);
}

.contact-intro-subtitle {
    font-size: 1.5rem;
    color: #042908;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-intro-description {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.contact-intro-highlight {
    font-weight: 600;
    color: #1a3d17;
    background: linear-gradient(transparent 70%, rgba(4, 41, 8, 0.15) 0);
}

.contact-intro-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.contact-intro-link {
    font-size: 1.1rem;
    color: #042908;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.contact-intro-link:hover {
    opacity: 0.7;
}

.contact-access-section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3rem;
    text-align: center;
    font-family: gravita-geo-variable, sans-serif;
}

.contact-access-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-info {
    text-align: center;
}

.contact-company-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #042908;
    margin-bottom: 1.5rem;
    font-family: gravita-geo-variable, sans-serif;
}

.contact-company-subname {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.25rem;
    font-family: "Noto Sans JP", sans-serif;
}

.contact-address {
    font-size: 1.125rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.contact-phone {
    font-size: 1.25rem;
    font-weight: 600;
    color: #042908;
}

.contact-map-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.contact-map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Responsive for Contact Page */
@media (max-width: 768px) {
    .contact-intro-section {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .contact-intro-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-intro-subtitle {
        font-size: 1.25rem;
    }
    
    .contact-intro-description {
        font-size: 0.95rem;
    }
    
    .contact-intro-links {
        gap: 0.5rem;
    }
    
    .contact-access-section {
        padding: 3rem 1rem;
    }
    
    .contact-section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-company-name {
        font-size: 1.25rem;
    }
    
    .contact-company-subname {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }
    
    .contact-address {
        font-size: 1rem;
    }
    
    .contact-phone {
        font-size: 1.125rem;
    }
    
    .contact-map-container iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .contact-section-title {
        font-size: 1.75rem;
    }
    
    .contact-intro-title {
        font-size: 1.7rem;
    }
    
    .contact-intro-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-intro-description {
        font-size: 0.9rem;
    }
    
    .contact-intro-link {
        font-size: 1rem;
    }
    
    .contact-company-name {
        font-size: 1.125rem;
    }
    
    .contact-company-subname {
        font-size: 0.95rem;
    }
    
    .contact-address {
        font-size: 0.9rem;
    }
    
    .contact-phone {
        font-size: 1rem;
    }
    
    .contact-map-container iframe {
        height: 300px;
    }
}