/*
Theme Name: S.KATO & CO. - Japanese
Description: 加藤洋行_日本語サイト_テーマ (Optimized & Refactored v1.8)
Version: 1.8
Author: Design Studio PASTEL Inc.

[目次]
1.  基本設定 (Variables, Reset, Base)
2.  レイアウト: ヘッダー & ナビゲーション (PC/SP)
3.  レイアウト: フッター
4.  共通コンポーネント (Buttons, Titles, Container, Main Content)
5.  トップページ: メインビジュアル
6.  トップページ: コンテンツ (Products, Business, Features, News)
7.  下層ページ: 共通ヘッダー・タイトル
8.  下層ページ: 企業情報・事業内容 (Company)
9.  下層ページ: 製品・ワックス詳細 (Products, Wax)
10. 下層ページ: アーカイブ・お知らせ一覧 (Archives)
11. 下層ページ: 採用・CSR (Recruit, CSR)
12. 下層ページ: お問い合わせ (Contact)
*/

@charset "UTF-8";

/* ============================================
   1. 基本設定 (Variables, Reset, Base)
   ============================================ */
:root {
    --color-primary: #3b6d3f;   /* 緑色 */
    --color-text: #333333;      /* 本文色 */
    --color-bg: #ffffff;        /* コンテンツ背景白 */
    --color-gray-bg: #f8f8f8;   /* ページ背景グレー */
    --color-border: #d9d9d9;    /* 境界線 */
    --color-accent: #e6007e;    /* アクセント */
    
    --font-jp: "Noto Sans JP", sans-serif;
    --font-en: "Roboto", sans-serif;
    
    --content-width: 1000px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-jp);
    color: var(--color-text);
    line-height: 1.8;
    background-color: var(--color-gray-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a:hover {
    opacity: 0.7;
}

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ============================================
   2. レイアウト: ヘッダー & ナビゲーション
   ============================================ */
.site-header {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    pointer-events: none;
}

.header-logo-area {
    pointer-events: auto;
    width: 455px;
    height: 140px;
    background: #fff;
    border-radius: 0 0 50px 0; 
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding-left: 40px;
    position: absolute;
    top: 0;
    left: 0;
}

.header-logo-area img {
    width: 344px;
    height: 60px;
    object-fit: contain;
}

.header-right-zone {
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 60px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding-bottom: 0;
}

.header-right-content {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 5px;
}

.header-utility {
    display: flex;
    align-items: center;
    gap: 25px;
}

.utility-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.link-recruit {
    text-decoration: none;
    position: relative;
    padding-right: 15px;
}

.link-recruit::after {
    content: "";
    display: block;
    width: 1px;
    height: 14px;
    background-color: #333;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.lang-switch {
    font-family: var(--font-en);
    cursor: pointer;
}

.btn-contact {
    background-color: var(--color-primary);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.main-nav {
    background: #fff;
    padding: 18px 50px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.main-nav .nav-list {
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    line-height: 1;
}

/* --- ハンバーガーボタン (PC非表示) --- */
.hamburger-btn {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 2000;
    padding: 0;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    left: 10px;
    transition: all 0.3s ease;
}

.hamburger-btn span:nth-child(1) { top: 14px; }
.hamburger-btn span:nth-child(2) { top: 21px; }
.hamburger-btn span:nth-child(3) { top: 28px; }

.site-header.is-open .hamburger-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.site-header.is-open .hamburger-btn span:nth-child(2) { opacity: 0; }
.site-header.is-open .hamburger-btn span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s;
}

.site-header.is-open .mobile-menu-overlay {
    opacity: 1;
}

/* --- メガメニュー (PC: 769px以上) --- */
@media (min-width: 769px) {
    .header-right-zone {
        right: auto !important; 
        left: 0;
        width: 100%;
        align-items: flex-end; 
        padding-right: 30px; 
    }
    .header-right-content,
    .header-utility,
    .main-nav,
    .has-mega-menu {
        position: static !important;
    }
    
    .sp-nav-only {
        display: none;
    }

    .mega-menu-container {
        position: absolute;
        top: 160px;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 1000px;
        background-color: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
        border-radius: 20px;
        padding: 25px;
        z-index: 1100;
        visibility: hidden;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.6s ease;
        pointer-events: none;
    }

    .mega-menu-container::before {
        content: "";
        display: block;
        position: absolute;
        top: -40px;
        left: 0;
        width: 100%;
        height: 40px;
        background: transparent;
    }

    .has-mega-menu.is-active .mega-menu-container {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .has-mega-menu.is-active > a {
        color: var(--color-primary);
        opacity: 1;
    }

    /* メガメニュー内リンク */
    .mega-menu-container .mega-title-link {
        font-size: 20px;
        font-weight: 700;
        color: var(--color-primary);
        text-decoration: none;
    }
    .mega-menu-container .mega-title-link:hover { opacity: 0.7; }

    .mega-menu-container .mega-label-link {
        font-size: 16px;
        font-weight: 700;
        color: inherit;
        text-decoration: none;
    }
    .mega-menu-container .mega-label-link:hover { color: var(--color-primary); }

    .mega-menu-container .mega-list-link {
        display: block;
        font-size: 13px;
        font-weight: 400;
        color: #333;
        text-decoration: none;
        margin-top: 10px;
        line-height: 1.4;
    }
    .mega-menu-container .mega-list-link:hover {
        color: var(--color-primary);
        opacity: 0.7;
    }

    .mega-menu-container .mega-grid-links a {
        font-size: 13px;
        font-weight: 400;
        color: #333;
        text-decoration: none;
    }
    .mega-menu-container .mega-grid-links a:hover { color: var(--color-primary); }

    /* レイアウト */
    .mega-grid-links {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 10px 15px !important;
    }
    .mega-cols-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 40px !important;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding-top: 20px;
    }
    .mega-menu-title {
        margin-top: 0;
        margin-bottom: 20px;
    }
    .mega-row {
        display: flex;
        align-items: baseline;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 15px 0;
    }
    .mega-row:last-child { border-bottom: none; }
    .mega-label {
        width: 150px;
        color: #000;
    }
    .mega-links {
        flex: 1;
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
    }
    .mega-links a {
        font-size: 14px;
        color: #333;
        font-weight: 400;
        transition: color 0.3s;
    }
    .mega-links a:hover { color: var(--color-primary); }
    
    .mega-label.-large {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 10px;
        width: auto;
    }
    .mega-section-block { margin-bottom: 20px; }
}

/* --- ヘッダー レスポンシブ (SP: 768px以下) --- */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .site-header {
        position: fixed;
        background-color: #fff;
        height: 60px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        pointer-events: auto;
    }

    .header-logo-area {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        background: none;
        box-shadow: none;
        border-radius: 0;
    }
    
    .header-logo-area img {
        height: 38px;
        width: auto;
    }

    .header-right-zone {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        display: block;
    }

    .hamburger-btn {
        display: block;
        margin: 0;
        width: 44px; /* 幅を確保 */
        height: 30px;
        order: 2;
        position: relative;
        z-index: 1001;
    }
    .hamburger-btn span {
        left: 2px;
        width: 40px; /* 線を長く */
        background-color: #333;
    }
    .hamburger-btn span:nth-child(1) { top: 4px; }
    .hamburger-btn span:nth-child(2) { top: 14px; }
    .hamburger-btn span:nth-child(3) { top: 24px; }
    
    .site-header.is-open .hamburger-btn span:nth-child(1) { top: 14px; transform: rotate(45deg); }
    .site-header.is-open .hamburger-btn span:nth-child(2) { opacity: 0; }
    .site-header.is-open .hamburger-btn span:nth-child(3) { top: 14px; transform: rotate(-45deg); }

    .header-right-content {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: #fff;
        padding: 20px 20px 60px;
        overflow-y: auto;
        z-index: 999;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    }

    .site-header.is-open .header-right-content {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    
    .main-nav {
        order: 1;
        width: 100%;
        padding: 0;
        margin-bottom: 30px;
        background: none;
        box-shadow: none;
        position: static;
        max-width: none;
        height: auto;
        overflow: visible;
        border-radius: 0;
        top: auto; right: auto;
    }
    
    .header-utility {
        order: 2;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: auto;
        padding-bottom: 20px;
        border-top: none;
    }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: stretch;
    }
    .main-nav .nav-list > li {
        border-bottom: 1px solid #eee;
        position: relative;
        width: 100%;
    }
    .nav-link-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .nav-link-top {
        display: block;
        padding: 20px 0;
        font-size: 16px;
        font-weight: 700;
        width: 100%;
        color: #333;
    }

    .mobile-accordion-toggle {
        display: block;
        width: 60px;
        height: 60px;
        position: relative;
        cursor: pointer;
        border-left: 1px solid #f0f0f0;
        flex-shrink: 0;
        margin-top: -1px;
        margin-bottom: -1px;
    }
    .mobile-accordion-toggle::before,
    .mobile-accordion-toggle::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        background-color: var(--color-primary);
        transform: translate(-50%, -50%);
        transition: transform 0.3s;
    }
    .mobile-accordion-toggle::before { width: 14px; height: 2px; }
    .mobile-accordion-toggle::after { width: 2px; height: 14px; }

    .has-mega-menu.is-open-sub .mobile-accordion-toggle::after {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .mega-menu-container {
        display: none;
        position: static;
        width: 100%;
        background-color: #fff; 
        padding: 0 15px 15px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 0;
    }
    
    .has-mega-menu.is-open-sub .mega-menu-container { display: block; }
    .mega-menu-container::before, .mega-menu-title { display: none; } 
    
    .mega-row, .mega-grid-links, .mega-cols-wrapper {
        display: block !important;
        border: none;
        padding: 0;
        grid-template-columns: 1fr !important;
    }

    .mega-label, .mega-label.-large {
        width: 100%;
        margin-top: 20px;
        margin-bottom: 10px;
        font-size: 14px;
        color: #888;
        border-bottom: 1px solid #ddd;
        padding-bottom: 5px;
        font-weight: 700;
    }

    .mega-links, .mega-grid-links {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .mega-links a, .mega-grid-links a, .mega-list-link {
        display: block;
        padding: 18px 10px;
        font-size: 15px;
        /*border-bottom: 1px solid #eee;*/
        color: #333;
        font-weight: 400!important; /* 普通 */
        background-color: #fff;
        margin-bottom: -1px;
    }
    
    .mega-col-item, .mega-grid-links {
        border-bottom: none !important;
        margin-bottom: 0;
    }
    
    .mega-section-block, .mega-col-item { margin-bottom: 0; }

    .btn-contact {
        order: 1;
        width: 100%;
        text-align: center;
        padding: 18px;
        font-size: 16px;
        margin-top: 10px;
        border-radius: 50px;
        display: block;
        background-color: var(--color-primary);
        color: #fff;
    }

    .lang-switch {
        order: 2;
        font-size: 14px;
        color: #666;
        padding: 20px 0;
        width: 100%;
        text-align: center;
        display: block;
        cursor: pointer;
    }
    .lang-switch::before { content: "Global Site: "; }
    
    .utility-links { display: block; width: 100%; }
    .link-recruit { display: none; }
}

/* ============================================
   3. レイアウト: フッター
   ============================================ */
.site-footer {
    width: 100%;
    background-color: var(--color-gray-bg);
    border-top: 1px solid var(--color-primary);
    margin-top: 395px;
    padding: 80px 0 40px;
    font-size: 14px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-head-link {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    text-decoration: none;
    line-height: 1.4;
}

.footer-head-link:hover { opacity: 0.7; }

.footer-sub-head-link {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.footer-sub-head-link:hover { opacity: 0.7; }

.arrow-icon {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 1px solid #333;
    border-right: 1px solid #333;
    transform: rotate(45deg);
    margin-left: 10px;
    margin-bottom: 2px;
}

.footer-sub-list { margin-bottom: 20px; }
.footer-sub-list li { margin-bottom: 15px; }
.footer-sub-list a { color: #666; font-size: 14px; }

.footer-detail-list { margin-left: 0; margin-bottom: 20px; }
.footer-detail-list li { margin-bottom: 15px; }
.footer-detail-list a { color: #666; font-size: 14px; display: block; }

.footer-main-list li { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }

.footer-company-info {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 30px;
}

.f-logo img { height: 50px; width: auto; }
.f-address { font-size: 13px; line-height: 1.6; color: #000; }
.copyright { font-size: 10px; color: #000; margin: 0; }

@media (max-width: 768px) {
    .site-footer {
        margin-top: 200px;
    }
    .footer-inner { max-width: 100%; }
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-company-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* ============================================
   4. 共通コンポーネント
   (Buttons, Titles, Container, Main Content)
   ============================================ */
.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.container-narrow {
    max-width: 800px !important; 
    margin: 0 auto;
}

/* --- コンテンツレイアウト --- */
.main-content {
    padding-top: 0;
    margin: 0 auto;
}

/* PC以外の端末（スマホ）での共通余白ルール */
@media (max-width: 768px) {
    .main-content {
        width: 100%;
        padding-left: 20px;  /* 左余白 */
        padding-right: 20px; /* 右余白 */
        box-sizing: border-box; /* パディングを含めた幅計算 */
        overflow-x: hidden; /* 横スクロール防止 */
    }
    
    .main-content > * {
        max-width: 100%; /* 子要素のはみ出し防止 */
    }

    .container-narrow { 
        max-width: 100% !important; 
        padding: 0; /* main-contentで余白を取るのでここは0 */ 
    }
}

.section { padding: 100px 0; }
.section-title { margin-bottom: 60px; text-align: left; }

.section-title .en {
    display: block;
    font-family: var(--font-en);
    font-size: 40px;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-title .ja {
    display: block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #000;
}

.section-title-left .en {
    display: block;
    font-family: var(--font-en);
    font-size: 40px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.section-title-left .ja {
    display: block;
    font-size: 16px;
    color: #000;
    font-weight: 700;
}

/* Primary Button (Simple) */
.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: #fff;
    padding: 15px 60px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 40px;
}

.btn-primary:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-area { text-align: center; }

/* View More Button (Green Border & Arrow Icon) */
.btn-view-more {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 320px;
    height: 70px;
    padding: 0 15px 0 40px;
    background-color: #fff;
    border: 1px solid var(--color-primary);
    border-radius: 35px;
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.btn-view-more .btn-text {
    line-height: 1;
    flex: 1;
    text-align: center;
    margin-right: 10px;
}

.btn-view-more .btn-icon-circle {
    width: 44px;
    height: 44px;
    background-color: var(--color-primary);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-view-more .btn-icon-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 48%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transition: border-color 0.3s;
}

.btn-view-more:hover {
    background-color: var(--color-primary);
    color: #fff;
}
.btn-view-more:hover .btn-icon-circle {
    background-color: #fff;
    transform: translateX(0);
}
.btn-view-more:hover .btn-icon-circle::after {
    border-top-color: var(--color-primary);
    border-right-color: var(--color-primary);
}

.btn-arrow-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 0; 
    transition: transform 0.3s ease;
}

/* Pagination */
.pagination-wrapper { margin-top: 60px; text-align: center; }
.nav-links { display: flex; justify-content: center; gap: 10px; }
.pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s;
    background: #fff;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

@media (max-width: 768px) {
    .btn-view-more {
        width: 100%;
        max-width: 320px;
        font-size: 16px;
        height: 60px;
    }
    .btn-view-more .btn-icon-circle {
        width: 36px;
        height: 36px;
    }
}

/* ============================================
   5. トップページ: メインビジュアル
   ============================================ */
.hero-section {
    width: 100%;
    height: 700px;
    position: relative;
    overflow: visible;
    background-color: #e3ddd4;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/home_hero-visual.png');
    background-size: cover;
    background-position: center bottom;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
}

.hero-copy {
    position: absolute;
    top: 40%;
    left: 10%;
}

.copy-main {
    /* 変更前: font-family: var(--font-jp); */
    font-family: "Zen Kaku Gothic New", sans-serif; /* ここを変更 */

    /* 以下は変更なし（レイアウト維持のため） */
    font-size: 48px;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.15em;
    color: #000;
    margin: 0;
    text-shadow: none;
    padding-left: 2.3em;
    text-indent: -2.3em;
}

.scroll-down {
    position: absolute;
    bottom: -60px;
    right: 80px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
}

.scroll-text {
    writing-mode: vertical-rl;
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.2em;
    font-weight: 500;
    margin-bottom: 5px;
}

.scroll-line {
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.scroll-line svg {
    height: 115px;
    width: auto;
    margin-left: 10px;
}

.drawn-line {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1px;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 140; 
    stroke-dashoffset: 140; 
    animation: line-anim-loop 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes line-anim-loop {
    0% { stroke-dashoffset: 140; opacity: 1; }
    40% { stroke-dashoffset: 0; opacity: 1; }
    85% { stroke-dashoffset: 0; opacity: 1; }
    95% { opacity: 0; stroke-dashoffset: 0; }
    100% { opacity: 0; stroke-dashoffset: 140; }
}

@media (max-width: 768px) {
    .hero-section {
        /* 幅を親要素+40px（左右パディング分）に強制拡張 */
        width: calc(100% + 40px) !important;
        max-width: none !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        
        /* 高さは前回の指定を維持 */
        height: calc(100vh - 60px);
        margin-top: 60px;
        overflow: hidden;
    }
    .hero-copy {
        /* 修正: ボックスを中央配置 */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        white-space: nowrap; /* 自動的な折り返しを禁止 */
        text-align: left; /* テキスト自体は左寄せ（インデントのため） */
        padding: 0;
    }
    .copy-main {
        font-size: 20px; /* 小さく */
        /* PC版と同じインデントロジック */
        padding-left: 2.3em;
        text-indent: -2.3em;
        text-align: left;
    }
    .scroll-down {
        right: 10px;
        bottom: 10px;
        transform: scale(0.8); /* 少し小さくして画面内に収める */
    }
}

/* ============================================
   6. トップページ: コンテンツ
   (Products, Business, Features, News)
   ============================================ */

/* --- Main Products --- */
.main-products {
    background-color: transparent; 
    text-align: left;
}

.products-circle-list {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.product-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 183px;
}

.circle-img {
    width: 183px;
    height: 183px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--color-primary);
    transition: transform 0.3s;
}

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

.product-circle-item:hover .circle-img { transform: scale(1.05); }

.circle-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    margin: 0;
    color: var(--color-text);
}

/* --- All Products (Accordion) --- */
.all-products {
    background-color: transparent; 
    padding-top: 0;
}

.product-category-group { margin-bottom: 60px; }

.category-main-title {
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 15px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.accordion-wrapper { border-top: none; }
.accordion-item { border-bottom: 1px solid var(--color-primary); }

.accordion-header {
    list-style: none;
    cursor: pointer;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.3s;
}

.accordion-header:hover { opacity: 0.7; }
.accordion-header::-webkit-details-marker { display: none; }

.header-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-primary);
}

.icon-arrow {
    width: 12px;
    height: 12px;
    border-right: 1px solid var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
    transform: rotate(45deg);
    margin-right: 10px;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-item[open] .icon-arrow { transform: rotate(-135deg); }
.accordion-item.is-closing .icon-arrow { transform: rotate(45deg); }

.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.accordion-inner { overflow: hidden; min-height: 0; }
.accordion-item[open] .accordion-content { grid-template-rows: 1fr; opacity: 1; }
.accordion-item.is-closing .accordion-content { grid-template-rows: 0fr; opacity: 0; }

.pill-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.accordion-inner .pill-grid { padding-top: 10px; padding-bottom: 40px; }
.product-category-group > .pill-grid { margin-top: 30px; }

.pill-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px 10px;
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pill-btn:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* --- Business Field --- */
.business-field {
    background-color: #ffffff; 
    padding-top: 100px;
    padding-bottom: 0;
}

.business-full-grid {
    display: flex;
    width: 100%;
    gap: 2px;
    align-items: stretch; 
}

.business-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.col-image-holder {
    width: 100%;
    height: 330px;
    position: relative;
    overflow: hidden;
}

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

.col-title-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    max-width: 70%;
    color: #fff;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.col-title-overlay .en {
    display: block;
    font-family: var(--font-en);
    font-size: 32px;
    font-weight: 300;
    font-style: italic;
    line-height: 1;
    margin-bottom: 5px;
}

.col-title-overlay .ja {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.col-text-area {
    width: 100%;
    height: auto;
    flex-grow: 1;
    background-color: #fff;
    padding: 30px 30px 60px;
    position: relative;
}

.col-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text);
}

.arrow-link {
    position: absolute;
    bottom: -25px;
    right: 50px;
    z-index: 10;
    display: block;
    width: 50px;
    height: 50px;
    transition: transform 0.3s;
}

.arrow-link:hover { transform: scale(1.1); }
.arrow-link img { width: 100%; height: 100%; }

/* --- Features (Top Page) --- */
.features {
    background-color: transparent;
    padding-bottom: 120px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.feature-item {
    display: block;
    text-decoration: none;
    color: var(--color-text);
    transition: opacity 0.3s;
}

.feature-item:hover { opacity: 0.8; }
.feature-item.full-width { grid-column: 1 / -1; }

.feature-img-box {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #fff;
}

.feature-item:not(.full-width) .feature-img-box { height: 300px; }
.feature-item.full-width .feature-img-box { height: 300px; }

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

.feature-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.feature-arrow {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin-left: 20px;
}

.feature-arrow img { width: 100%; height: 100%; }

/* --- Wax Works (Top Slider) --- */
.wax-works {
    position: relative;
    padding: 100px 0;
    color: var(--color-text);
    background: transparent !important;
    overflow-x: hidden;
    z-index: 1;
}

.wax-works-bg { display: none; }

.wax-bg-shape {
    position: absolute;
    top: 250px; 
    bottom: 0;
    left: 80px;
    width: calc(100% - 80px);
    z-index: -1;
    pointer-events: none;
}

.wax-bg-shape svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: #fff;
}

.wax-header { margin-bottom: 60px; }
.wax-header .section-title-left { margin-bottom: 100px; }

.wax-description {
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    color: var(--color-text);
}

.wax-slider-wrapper {
    position: relative;
    padding-bottom: 0;
    margin-right: calc(50% - 50vw); 
    width: auto;
}

.wax-slider {
    padding-right: 1px;
    margin-bottom: 40px;
    overflow: visible !important; 
}

/* スライダー用カード (固定幅) */
.wax-slider .wax-card {
    width: 460px !important; 
    background: transparent;
    box-sizing: border-box;
    flex-shrink: 0;
}

.wax-card-link {
    display: block;
    color: var(--color-text);
    text-decoration: none;
}
.wax-card-link:hover { opacity: 0.8; }

.wax-slider .wax-card-img {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 15px;
    background-color: #eee;
}

.wax-slider .wax-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wax-card-body { padding: 0; }

.wax-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
    color: #000;
}

.wax-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 20px;
    height: 50px; 
    padding-right: 0;
    max-width: 100%; 
    z-index: 10;
}

/* Swiper Overrides */
.wax-nav .wax-prev,
.wax-nav .wax-next,
.wax-nav .swiper-button-prev,
.wax-nav .swiper-button-next {
    position: static !important;
    margin-top: 0 !important;
    width: 50px !important;
    height: 50px !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    left: auto !important;
    right: auto !important;
    opacity: 1 !important;
}

.wax-nav .wax-prev:hover, .wax-nav .wax-next:hover { opacity: 0.8 !important; }

.wax-nav .wax-prev::after, .wax-nav .wax-next::after,
.wax-nav .swiper-button-prev::after, .wax-nav .swiper-button-next::after {
    display: none !important;
    content: none !important;
}

.wax-nav .wax-prev img, .wax-nav .wax-next img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    filter: none !important; 
    display: block !important;
}

.wax-scrollbar { display: none !important; }

.wax-view-all-link {
    position: absolute;
    left: 1000px; 
    bottom: 25px;
    transform: translate(-100%, 50%);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding-left: 0;
    white-space: nowrap;
    z-index: 100; 
    cursor: pointer;
}

.wax-view-all-link::before {
    content: "";
    display: block;
    width: calc(1000px - 108px - 100% - 80px);
    height: 1px;
    background-color: #ccc;
    position: absolute;
    right: 100%;
    margin-right: 40px; 
    top: 50%;
    pointer-events: none;
}

/* --- News (Top Simple List) --- */
.section.news {
    background-color: #f8f8f8;
    padding-bottom: 120px;
}

.news-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.news-header-col { width: 250px; flex-shrink: 0; }
.section-title-left .en.green { color: var(--color-primary); }
.news-content-col { flex: 1; padding-left: 40px; }

.news-list {
    border-top: none; 
    margin-bottom: 30px;
}

.news-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px 20px; 
    padding: 30px 0;
    border-bottom: 1px solid #b3c2b3;
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.3s;
    align-items: center;
}

.news-item:hover {
    opacity: 0.6;
    background-color: transparent;
}

.news-meta {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
}

.news-date {
    font-family: var(--font-en);
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin-bottom: 0;
}

.news-title {
    grid-column: 1;
    grid-row: 2;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    margin: 0;
    text-align: justify;
}

.news-arrow-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 0;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-arrow-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

.news-item:hover .news-arrow-icon { border: none; }

.news-btn-area { text-align: right; margin-top: 30px; }

.news-btn-area .btn-view-more {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.news-btn-area .btn-view-more:hover {
    background: transparent;
    opacity: 0.8;
}

.news-btn-area .btn-arrow-img {
    width: 30px;
    height: 30px;
    margin-left: 15px;
    margin-right: 0;
    background: none;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    filter: none;
    transition: transform 0.3s;
}

.news-btn-area .btn-view-more:hover .btn-arrow-img {
    transform: translateX(5px);
}

/* --- Top Page Responsive (SP) --- */
@media (max-width: 768px) {
    /* Products Circle (3カラム) */
    .products-circle-list {
        flex-direction: row; /* 横並びに戻す */
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
    }
    .product-circle-item {
        width: calc(33.33% - 10px); /* 3カラム */
        max-width: none;
    }
    .circle-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
    
    .pill-grid {
        grid-template-columns: repeat(1, 1fr); 
        gap: 15px;
    }
    .accordion-header { padding: 15px 0; }
    
    /* Business Field (白背景削除) */
    .business-field {
        background-color: transparent; /* 背景透過 */
        padding-top: 60px;
    }
    .business-full-grid { flex-direction: column; }
    .business-col { margin-bottom: 50px; }
    .col-image-holder { height: 250px; }
    .col-text-area { height: auto; min-height: 200px; }
    .arrow-link { bottom: -25px; right: 30px; }
    
    .features-grid { grid-template-columns: 1fr; gap: 40px; }
    
    /* Feature Img (画像切れ修正) */
    .feature-item:not(.full-width) .feature-img-box,
    .feature-item.full-width .feature-img-box {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    
    /* Wax Works (白背景・矩形削除、リンク修正) */
    .wax-works {
        background-color: transparent !important;
    }
    .wax-bg-shape { display: none; } /* 白い矩形非表示 */
    
    .wax-slider .wax-card { width: 80vw !important; }
    .wax-nav { flex-wrap: wrap; gap: 20px; margin-bottom: 10px; }
    
    /* 修正: 記事一覧リンクのはみ出し修正 */
    .wax-view-all-link {
        position: static; /* 絶対配置解除 */
        display: block;
        text-align: right;
        width: 100%;
        padding-right: 20px; /* 右端の余白 */
        margin-top: 15px;
        transform: none;
    }
    .wax-view-all-link::before { display: none; }
    
    /* News */
    .news-container { flex-direction: column; }
    .news-header-col { width: 100%; margin-bottom: 30px; }
    .news-content-col { padding-left: 0; }
    .news-item { padding: 20px 0; column-gap: 15px; }
    .news-title { font-size: 14px; }
    .news-arrow-icon { width: 40px; height: 40px; }
}

/* ============================================
   7. 下層ページ: 共通ヘッダー・タイトル
   ============================================ */
.lower-hero {
    width: 100%;
    height: 445px; 
    position: relative;
    background-image: url('img/header_background.svg'); 
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    margin-bottom: 0;
}

.page-title-section {
    padding-top: 60px;
    padding-bottom: 40px;
    text-align: left;
}

.page-title-block .en {
    display: block;
    font-family: var(--font-en);
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-title-block .ja {
    display: block;
    font-size: 23px;
    font-weight: 700;
    color: #000;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .lower-hero { height: 250px; }
    .page-title-section { padding-top: 40px; }
    .page-title-block .en { font-size: 32px; }
}

/* ============================================
   8. 下層ページ: 企業情報・事業内容 (Company)
   ============================================ */
.highlight-color { color: var(--color-primary); }

.section-title-border {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 80px; 
    padding-top: 30px; 
    width: 100%;
    background: linear-gradient(to right, #3B6D3F 0px, #3B6D3F 315px, #D9EADA 315px);
    background-size: 100% 3px;
    background-repeat: no-repeat;
    background-position: top left;
    color: #000;
    line-height: 1.4;
}

.business-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Corrected from center to start */
    margin-bottom: 80px;
    gap: 50px;
}

.business-text-col { flex: 1; padding-top: 0; }
.business-img-col { width: 45%; flex-shrink: 0; }
.business-sub-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #000;
    margin-top: 0;
}
.business-desc-main, .business-desc { font-size: 16px; line-height: 1.8; text-align: justify; }

.rounded-img {
    border-radius: 20px;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* 会社のかたち */
.structure-intro { margin-bottom: 60px; }
.structure-text { font-size: 16px; line-height: 1.8; text-align: justify; }
.structure-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 50px;
}
.structure-row { display: flex; align-items: flex-start; gap: 60px; }
.structure-logo-col {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}
.structure-text-col { flex: 1; }
.structure-name { font-size: 24px; font-weight: 700; margin-bottom: 20px; line-height: 1.4; }
.structure-detail { font-size: 16px; line-height: 1.9; text-align: justify; }

/* ブランドストーリー */
.story-top-block { margin-bottom: 80px; }
.story-top-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: left;
    line-height: 1.4;
}
.story-top-img { width: 100%; margin-bottom: 30px; }
.story-top-img img { width: 100%; height: auto; border-radius: 20px; }
.story-desc { font-size: 16px; line-height: 1.9; text-align: justify; }

/* 企業情報テーブル */
.iso-simple-table {
    border-top: 1px solid #ccc;
    width: 100%;
    margin-bottom: 40px;
    text-align: left;
    font-size: 16px; 
}
.company-info-table { border-top: none; }
.iso-row {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin: 0;
    padding: 15px 0;
}
.company-info-table .iso-row { padding: 24px 0; }
.iso-row dt { width: 30%; font-weight: 700; padding-left: 10px; }
.iso-row dd { width: 70%; margin: 0; text-align: justify; }

/* 沿革 */
.history-list {
    position: relative;
    padding-left: 50px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-left: none; 
}
.history-list::after {
    content: "";
    position: absolute;
    border-left: 1px dotted var(--color-primary);
    width: 0;
    left: 20px; 
    top: 22px; 
    bottom: -30px;
    z-index: 0;
}
.history-row {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    z-index: 1;
}
.history-row:last-child { margin-bottom: 0; }
.history-row::before {
    content: "";
    position: absolute;
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    left: -35px; 
    z-index: 2;
}
.history-year {
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-right: 40px; 
    margin-bottom: 0;
    flex-shrink: 0;
}
.history-text {
    font-size: 20px;
    color: var(--color-text);
    line-height: 1.6;
}

/* アクセス */
.map-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 40px;
    background: #f0f0f0;
}
.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.btn-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 280px; 
    height: 70px;
    padding: 0 10px 0 35px;
    background-color: #fff;
    border: 1px solid var(--color-primary);
    border-radius: 35px;
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}
.icon-circle-arrow {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
}
.icon-circle-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 48%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transition: border-color 0.3s ease;
}
.btn-map-link:hover {
    background-color: var(--color-primary);
    color: #fff;
}
.btn-map-link:hover .icon-circle-arrow {
    background-color: #fff;
    transform: translateX(5px);
}
.btn-map-link:hover .icon-circle-arrow::after {
    border-top-color: var(--color-primary);
    border-right-color: var(--color-primary);
}

/* 強み (Features Page) */
.features-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
}
.features-row {
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
}
.features-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.features-icon-col { display: none; }
.features-text-col { width: 100%; padding-top: 0; }
.features-sub-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--color-primary);
}
.features-desc {
    font-size: 16px;
    line-height: 1.9;
    text-align: justify;
    color: var(--color-text);
    margin: 0;
}

@media (max-width: 768px) {
    /* 修正: 見出しのボーダー（線）を3px（PCと同じ太さ）に設定 */
    .section-title-border { 
        font-size: 20px;
        padding-top: 15px; 
        margin-bottom: 30px;
        background: linear-gradient(to right, #3B6D3F 0%, #3B6D3F 25%, #D9EADA 25%, #D9EADA 100%);
        background-size: 100% 3px; /* 高さを3pxで固定 */
        background-repeat: no-repeat; /* 繰り返し防止（太く見えないように） */
        background-position: top left; /* 位置指定 */
    }
    
    .business-row { flex-direction: column; gap: 20px; margin-bottom: 60px; }
    .business-img-col { width: 100%; order: -1; }
    .structure-grid { gap: 60px; }
    .structure-row { flex-direction: column; align-items: center; gap: 30px; }
    .structure-logo-col { width: 200px; }
    .history-list { padding-left: 30px; }
    .history-list::after { left: 10px; top: 18px; }
    .history-row::before { left: -25px; }
    .history-year { font-size: 20px; margin-right: 20px; }
    .history-text { font-size: 16px; }
    .iso-row { flex-direction: column; }
    .iso-row dt { width: 100%; margin-bottom: 5px; padding-left: 0; }
    .iso-row dd { width: 100%; }
    
    .features-list-wrapper { gap: 40px; }
    .features-row { padding-bottom: 40px; }
    .features-sub-title { font-size: 20px; }
}

/* ============================================
   9. 下層ページ: 製品・ワックス詳細 (Products, Wax)
   ============================================ */

/* --- Wax Basics (基礎知識) --- */
.wax-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    gap: 50px;
}
.wax-row:last-child { margin-bottom: 0; }
.wax-text-col { flex: 1; }
.wax-img-col { width: 45%; flex-shrink: 0; }
.wax-sub-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.wax-desc { font-size: 16px; line-height: 1.8; text-align: justify; }

.use-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    line-height: 1.4;
}
.use-title::before {
    content: "";
    display: block;
    width: 4px;
    height: 24px;
    background-color: var(--color-primary);
    margin-right: 15px;
}
.use-text {
    font-size: 16px;
    line-height: 1.6;
    padding-left: 20px;
    margin: 0;
}

/* ワックス基礎知識 スマホ対応追記 */
@media (max-width: 768px) {
    /* 特定のセクションを1コラム化 */
    section.wax-intro-section .wax-row {
        flex-direction: column;
    }
    section.wax-intro-section .wax-row .wax-img-col,
    section.wax-intro-section .wax-row .wax-text-col {
        width: 100%;
    }
}

/* --- Wax Category (種類) --- */
.wax-category-group { margin-bottom: 120px; }

.wax-category-head {
    font-size: 32px;
    font-weight: 700;
    color: #3b6d3f;
    margin-bottom: 25px;
    line-height: 1.2;
}

.wax-category-lead {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 60px;
    text-align: justify;
}

.wax-items-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.wax-item-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
    background: transparent;
    padding: 0;
}

.wax-card-img {
    width: 38%;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 2.4 / 1; 
    background-color: #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.wax-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.wax-card-text { flex: 1; padding-top: 5px; }

.wax-name {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    line-height: 1.4;
    border-bottom: 1px solid #d9d9d9;
    display: block;
    width: 100%;
}

.wax-detail {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    margin: 0;
    text-align: justify;
}

/* --- Product Detail (製品詳細) --- */
.product-detail-wrap {
    padding-top: 180px;
    padding-bottom: 120px;
}

.p-page-header {
    margin-bottom: 60px;
    text-align: left;
    border: none; 
    background: none;
}

.p-page-title-en {
    font-family: var(--font-en);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    background: none;
}
.p-page-title-en::before, .p-page-title-en::after { content: none; display: none; }

.p-page-title-ja {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-top: 5px;
    letter-spacing: 0.05em;
}

.p-product-name-area { margin-bottom: 30px; }

.p-product-name {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    color: #000;
    margin: 0;
    border-left: 5px solid var(--color-primary);
    padding-left: 20px;
}

.p-hero-area { margin-bottom: 80px; }

.p-hero-img-box {
    width: 100%;
    aspect-ratio: 2.4 / 1; 
    border-radius: 30px; 
    overflow: hidden;
    background-color: #e5e5e5;
    margin-bottom: 25px;
}
.p-hero-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }

.p-tag-row {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
}

.p-tag-green {
    display: inline-block;
    background-color: #3b6d3f;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 30px;
    border-radius: 50px;
    line-height: 1;
}

.p-heading-lv2 {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-top: 0;
    margin-bottom: 60px;
    padding-top: 30px;
    background-image: linear-gradient(to right, #3B6D3F 0px, #3B6D3F 140px, #D9EADA 140px, #D9EADA 100%);
    background-size: 100% 3px;
    background-repeat: no-repeat;
    background-position: top left;
}

.p-intro-section { margin-bottom: 120px; }
.p-intro-layout { display: flex; justify-content: space-between; gap: 60px; }
.p-intro-text-col { flex: 1; }
.p-intro-img-col { width: 450px; flex-shrink: 0; }
.p-intro-desc { font-size: 16px; line-height: 2.0; text-align: justify; }
.p-intro-desc p { margin-bottom: 0; }

.p-features-section { margin-bottom: 120px; }
.p-features-list { display: flex; flex-direction: column; gap: 100px; }
.p-feature-item { width: 100%; }
.pf-upper { display: flex; justify-content: space-between; margin-bottom: 30px; gap: 40px; }
.pf-text-col { flex: 1; }
.pf-content-flex { display: flex; align-items: flex-start; gap: 20px; }
.pf-num {
    font-family: var(--font-en); 
    font-size: 80px; 
    line-height: 0.8; 
    font-weight: 400; 
    color: var(--color-primary);
    flex-shrink: 0;
    transform: translateY(-8px); 
}
.pf-text-body { flex: 1; }
.pf-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 20px 0;
    line-height: 1.4;
}
.pf-desc { font-size: 16px; line-height: 1.8; color: #333; margin: 0; text-align: justify; }
.pf-img-col { width: 400px; flex-shrink: 0; }
.pf-img-col img { width: 100%; height: 250px; object-fit: cover; border-radius: 20px; }

.pf-cards-row { display: flex; gap: 30px; }
.pf-white-card {
    flex: 1;
    background-color: #fff;
    border-radius: 10px 80px 10px 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 35px 35px 40px;
    display: flex;
    flex-direction: column;
}
.pf-card-head {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-top: 0;
    margin-bottom: 25px;
    border-left: 4px solid var(--color-primary);
    padding-left: 15px;
    line-height: 1.2;
}
.pf-card-text { font-size: 15px; line-height: 1.8; margin-bottom: 0; flex-grow: 1; }
.pf-card-list-bullets { list-style: none; padding: 0; margin: 0 0 30px 0; }
.pf-card-list-bullets li {
    font-size: 15px;
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
    font-weight: 500;
}
.pf-card-list-bullets li::before { content: "・"; position: absolute; left: 0; }

.p-lineup-section { margin-bottom: 100px; }
.p-lineup-block { margin-bottom: 100px; }
.p-lineup-block:last-child { margin-bottom: 0; }
.p-lineup-sub-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: #000; }
.p-table-scroll { overflow-x: auto; margin-bottom: 40px; }
.p-spec-table-new { width: 100%; min-width: 600px; border-collapse: collapse; background-color: #fff; font-size: 15px; }
.p-spec-table-new th, .p-spec-table-new td {
    border: 1px solid #ddd;
    padding: 15px 20px;
    vertical-align: middle;
    line-height: 1.6;
}
.p-spec-table-new thead th { background-color: #d9eada; color: #000; font-weight: 700; text-align: left; }
.p-spec-table-new tbody th { background-color: #f9f9f9; text-align: left; font-weight: 500; width: 200px; white-space: nowrap; }
.p-spec-table-new tbody td { text-align: left; }

.p-shape-area { margin-bottom: 30px; }
.p-shape-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: #000; }
.p-shape-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.p-shape-item { width: 100%; }
.shape-box { width: 100%; height: 120px; background-color: #ddd; margin-bottom: 10px; }
.shape-box img { width: 100%; height: 100%; object-fit: cover; }
.shape-name { font-size: 14px; font-weight: 500; margin: 0; line-height: 1.4; }
.p-lineup-note { font-size: 14px; line-height: 1.8; color: #333; margin-top: 0; }

.p-characteristics-section { margin-bottom: 120px; }
.p-char-layout { display: flex; justify-content: space-between; gap: 60px; }
.p-char-text-col { flex: 1; }
.p-char-desc { font-size: 16px; line-height: 2.0; text-align: justify; margin-bottom: 40px; }
.p-char-list { list-style: none; padding: 0; margin: 0; }
.p-char-list li {
    font-size: 20px;
    font-weight: 400;
    padding: 10px 0;
    position: relative;
    padding-left: 30px;
    margin-bottom: 5px;
    line-height: 1.5;
    color: #000;
}
.p-char-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent var(--color-primary);
}

.p-usage-section { margin-bottom: 120px; }
.p-usage-lead { font-size: 16px; line-height: 2.0; text-align: justify; margin-bottom: 60px; }
.p-usage-block { margin-bottom: 60px; }
.p-usage-block:last-child { margin-bottom: 0; }
.p-usage-category {
    background-color: #d9eada;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    padding: 15px 20px;
    margin-top: 0;
    margin-bottom: 30px;
    border-radius: 4px; 
}
.p-usage-list { margin: 0; padding: 0 10px; }
.p-usage-item { margin-bottom: 30px; }
.p-usage-item:last-child { margin-bottom: 0; }
.p-usage-item dt { font-size: 18px; font-weight: 700; margin-bottom: 5px; color: #000; }
.p-usage-item dd { margin: 0; font-size: 16px; line-height: 1.8; }

.p-tech-data-section { margin-bottom: 80px; padding-top: 0; }
.p-tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.p-tech-btn {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    padding: 15px 20px;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
}
.p-tech-btn:hover { background-color: var(--color-primary); color: #fff; }
.p-tech-icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    transition: border-color 0.3s;
}
.p-tech-btn:hover .p-tech-icon-circle { border-color: #fff; }
.icon-arrow-mini {
    display: block;
    width: 5px;
    height: 5px;
    border-top: 1px solid var(--color-primary);
    border-right: 1px solid var(--color-primary);
    transform: rotate(45deg);
    margin-left: -2px;
    transition: border-color 0.3s;
}
.p-tech-btn:hover .icon-arrow-mini { border-top-color: #fff; border-right-color: #fff; }
.p-tech-text { font-size: 16px; font-weight: 500; }

.p-related-section { margin-bottom: 100px; padding-top: 0; }
.p-related-text-list { list-style: none; padding: 0; margin: 0; }
.p-related-text-list li { margin-bottom: 15px; }
.p-related-text-list a {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s;
    display: inline-block;
}
.p-related-text-list a:hover { opacity: 0.7; color: var(--color-primary); }

.p-contact-cta-section { margin-bottom: 100px; padding-top: 0; }
.p-contact-wide-wrapper { text-align: center; }
.p-btn-contact-wide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 25px 40px;
    background-color: #fff;
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}
.p-btn-contact-wide:hover { background-color: var(--color-primary); color: #fff; }
.p-btn-text { font-size: 20px; font-weight: 700; letter-spacing: 0.05em; }
.p-btn-icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 50%;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s;
}
.p-btn-contact-wide:hover .p-btn-icon-circle { background-color: #fff; }
.icon-arrow-white {
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin-left: -2px;
    transition: border-color 0.3s;
}
.p-btn-contact-wide:hover .icon-arrow-white {
    border-top-color: var(--color-primary);
    border-right-color: var(--color-primary);
}

.p-back-area { text-align: center; margin-bottom: 120px; }
.icon-arrow-left {
    margin-right: 10px;
    display: inline-block;
    transition: transform 0.3s;
    font-family: var(--font-en);
}
.btn-back-list:hover .icon-arrow-left { transform: translateX(-5px); }

@media (max-width: 768px) {
    .wax-category-head { font-size: 24px; }
    .wax-item-card { flex-direction: column; gap: 20px; }
    .wax-card-img { width: 100%; aspect-ratio: 16 / 9; }
    .wax-name { font-size: 22px; margin-bottom: 15px; padding-bottom: 10px; }
    
    .p-tech-grid { grid-template-columns: repeat(1, 1fr); gap: 15px; }
    .p-tech-btn { padding: 15px; justify-content: flex-start; }
    .p-related-text-list a { font-size: 14px; line-height: 1.6; }
    .p-btn-contact-wide {
        padding: 20px 60px 20px 20px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .p-btn-text { font-size: 16px; }
    .p-btn-icon-circle { right: 15px; width: 35px; height: 35px; }
    .p-back-area { margin-bottom: 80px; }
}

/* ============================================
   10. 下層ページ: アーカイブ・お知らせ一覧 (Archives)
   ============================================ */
.wax-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
    width: 100%;
}
.wax-archive-grid .wax-card { width: 100%; margin: 0; }
.wax-archive-grid .wax-card-img { aspect-ratio: 16 / 9; margin-bottom: 15px; width: 100%; }
.wax-archive-date {
    display: block;
    font-family: var(--font-en);
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    margin-bottom: 5px;
}
.wax-archive-grid .wax-card-title { font-size: 18px; line-height: 1.6; }

.news-archive-list { border-top: 1px solid #b3c2b3; margin-bottom: 40px; }

/* 商品一覧（アーカイブ） スマホ対応修正 */
@media (max-width: 768px) {
    .wax-archive-grid { grid-template-columns: 1fr; gap: 40px; }
    /* section.dev-section > div > div 等の1コラム化は、wax-archive-gridの修正で対応済みと想定 */
}

/* ============================================
   11. 下層ページ: 採用・CSR (Recruit, CSR)
   ============================================ */
/* Recruit */
.recruit-section { padding-bottom: 80px; }
.recruit-desc {
    font-size: 16px;
    line-height: 2.0;
    text-align: justify;
    margin-top: 0;
    margin-bottom: 0;
    color: var(--color-text);
}
.mb-40 { margin-bottom: 40px; }
.recruit-visual-area { margin-top: 60px; text-align: center; }
.recruit-map-img {
    max-width: 100%;
    height: auto;
    width: 800px;
    display: inline-block;
}
.recruit-contact-info { font-size: 16px; line-height: 1.8; color: #000; }
.rc-list { margin: 0; }
.rc-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 15px;
}
.rc-row:last-child { margin-bottom: 0; }
.rc-row dt {
    width: 140px;
    font-weight: 700;
    flex-shrink: 0;
    padding-right: 10px;
    position: relative;
}
.rc-row dt::after { content: "："; position: absolute; right: 20px; }
.rc-row dd { margin: 0; flex: 1; }
.rc-row dd a { color: inherit; text-decoration: none; transition: color 0.3s; }
.rc-row dd a:hover { color: var(--color-primary); text-decoration: underline; }
.tel-link { font-family: var(--font-en); font-weight: 500; letter-spacing: 0.05em; }

@media (max-width: 768px) {
    .recruit-section { padding-bottom: 60px; }
    .recruit-visual-area { margin-top: 40px; }
    .rc-row { flex-direction: column; margin-bottom: 25px; gap: 5px; }
    .rc-row dt { width: 100%; margin-bottom: 0; }
    .rc-row dt::after { display: none; }
    .rc-row dd { padding-left: 0; }
}

/* CSR */
.csr-section-padding { padding-top: 70px; padding-bottom: 70px; }
.csr-sub-title {
    font-size: 24px;
    font-weight: 700;
    margin-top: 60px;
    margin-bottom: 30px;
    color: #000;
    line-height: 1.4;
    border-left: 5px solid var(--color-primary);
    padding-left: 15px;
}
.csr-sub-title:first-of-type { margin-top: 0; }
.csr-desc { font-size: 16px; line-height: 1.9; text-align: justify; margin-bottom: 30px; }
.csr-text-block { background-color: #f9f9f9; padding: 40px; border-radius: 10px; margin-bottom: 40px; }
.csr-text-block .csr-desc:last-child { margin-bottom: 0; }
.csr-list-ol { margin: 0; padding: 0 0 0 1.5em; font-size: 16px; line-height: 1.9; text-align: justify; }
.csr-list-ol li { margin-bottom: 20px; padding-left: 5px; }
.csr-list-ol li:last-child { margin-bottom: 0; }
.csr-list-ol li strong { display: inline-block; margin-bottom: 5px; color: #000; }

.iso-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 60px;
}
.iso-table-col { flex: 1; }
.iso-info-table { margin-bottom: 0; }
.iso-media-col { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.iso-img-box {
    width: 100%;
    border: 1px solid #eee;
    background: #fff;
    padding: 20px;
    text-align: center;
    display: block;
}
.iso-img-box img { width: auto; max-width: 100%; height: auto; display: inline-block; }
.iso-btn-area { width: 100%; }

.btn-pdf-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; 
    height: 70px;
    padding: 0 10px 0 25px;
    background-color: #fff;
    border: 1px solid var(--color-primary);
    border-radius: 35px;
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.btn-pdf-link span { display: flex; align-items: center; }
.btn-icon-pdf { width: 24px; height: auto; margin-right: 15px; }
.btn-pdf-link:hover { background-color: var(--color-primary); color: #fff; }
.btn-pdf-link:hover .btn-icon-pdf { filter: brightness(0) invert(1); }
.btn-pdf-link .icon-circle-arrow { width: 40px; height: 40px; }
.btn-pdf-link:hover .icon-circle-arrow { background-color: #fff; }
.btn-pdf-link:hover .icon-circle-arrow::after { border-top-color: var(--color-primary); border-right-color: var(--color-primary); }
.csr-signature { margin-top: 40px; text-align: right; font-size: 16px; line-height: 1.6; }

@media (max-width: 768px) {
    .csr-section-padding { padding-top: 50px; padding-bottom: 50px; }
    
    /* 修正: iso-media-colを下に、tableを上に。table幅100% */
    .iso-content-wrapper { 
        flex-direction: column; /* カラム順序リセットの準備 */
    }
    .iso-table-col { order: 1; width: 100%; }
    .iso-media-col { order: 2; width: 100%; align-items: center; margin-top: 30px; }
    
    .iso-img-box { width: 100%; max-width: 300px; margin: 0 auto; }
    .btn-pdf-link { width: 100%; }
    .csr-text-block { padding: 25px 20px; }
    .csr-list-ol { padding-left: 1.2em; }
    .csr-signature { text-align: right; }
}

/* ============================================
   12. 下層ページ: お問い合わせ (Contact)
   ============================================ */
.contact-intro-text { margin-bottom: 40px; }
.contact-intro-text p { font-size: 16px; line-height: 1.8; text-align: justify; margin: 0; }

.contact-phone-box {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 30px 0;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    width: 100%;
}
.cp-content { display: flex; justify-content: center; align-items: center; gap: 0; }
.cp-left { display: flex; align-items: center; padding-right: 40px; font-family: var(--font-jp); }
.cp-label { font-size: 16px; font-weight: 700; color: #000; margin-right: 20px; letter-spacing: 0.05em; }
.cp-time { font-size: 18px; font-weight: 500; color: #000; letter-spacing: 0.05em; font-feature-settings: "palt"; }
.cp-divider { width: 2px; height: 35px; background-color: var(--color-primary); margin-top: 2px; }
.cp-right { display: flex; align-items: center; padding-left: 40px; }
.cp-icon { width: 32px; height: 32px; margin-right: 20px; object-fit: contain; }
.cp-tel-link {
    font-family: var(--font-en);
    font-size: 44px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    line-height: 1;
    letter-spacing: 0.02em;
    padding-top: 4px;
}
.cp-tel-link:hover { opacity: 0.7; }

/* Contact Form 7 */
.contact-form-wrapper { margin-top: 60px; width: 100%; }
.p-country-name { display: none; }
.wpcf7 dl { display: flex; flex-wrap: wrap; width: 100%; margin: 0; border: none; }
.wpcf7 dt {
    width: 25%;
    padding: 12px 20px 0 0;
    margin-bottom: 30px;
    font-weight: 500;
    color: #333;
    border: none;
    clear: both;
    font-size: 16px;
    line-height: 1.6;
}
.wpcf7 dt span.required { color: #cc0000; margin-left: 5px; font-size: 0.8em; vertical-align: super; }
.wpcf7 dd { width: 75%; margin: 0 0 30px 0; padding: 0; border: none; }
.wpcf7 dd:first-of-type { margin-top: 8px; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid var(--color-primary);
    border-radius: 0;
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
    outline: none;
    appearance: none;
    color: #333;
}
.wpcf7 textarea { height: 300px; resize: vertical; }

.wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 25px; padding-top: 12px; }
.wpcf7-checkbox .wpcf7-list-item { margin: 0; }
.wpcf7-checkbox label {
    display: flex !important;
    align-items: center !important;
    margin: 0;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    line-height: 1; 
}
.wpcf7-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    margin: 0 10px 0 0 !important;
    padding: 0;
    width: 18px;
    height: 18px;
    background-color: #fff;
    border: 1px solid var(--color-primary);
    border-radius: 0;
    cursor: pointer;
    position: static !important;
    transform: none !important;
    vertical-align: middle;
}
.wpcf7-checkbox input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
}

.confirm { text-align: left; margin-top: 20px; margin-bottom: 40px; }
.confirm .wpcf7-list-item { display: inline-block; margin: 0; }
.confirm label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    line-height: 1;
}
.confirm input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    margin: 0 10px 0 0 !important;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 1px solid var(--color-primary);
    cursor: pointer;
    position: static !important;
    flex-shrink: 0;
}
.confirm input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
}

.btn-submit-custom {
    display: flex; 
    justify-content: space-between;
    align-items: center;
    margin: 150px auto 0;
    width: 240px;
    height: 70px;
    padding: 0 10px 0 40px;
    background-color: #fff;
    border: 1px solid var(--color-primary);
    border-radius: 35px;
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}
.btn-submit-custom .btn-text { line-height: 1; }
.btn-submit-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transform: rotate(-90deg);
    transition: filter 0.3s ease, transform 0.3s ease;
}
.btn-submit-custom:hover { background-color: var(--color-primary); color: #fff; }
.btn-submit-custom:hover .btn-submit-icon { filter: none; }

@media screen and (max-width: 768px) {
    /* 1. 見出しサイズ調整 */
    .p-product-name { font-size: 24px; border-left-width: 4px; padding-left: 15px; }
    .p-heading-lv2 { font-size: 22px; padding-top: 20px; margin-bottom: 40px; background-size: 100% 2px; }
    .p-page-title-en { font-size: 30px; }

    /* 2. カラム落ち（1カラム化） */
    .p-intro-layout,
    .p-features-list,
    .pf-upper,
    .pf-cards-row,
    .p-char-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .p-intro-img-col,
    .pf-img-col {
        width: 100%;
    }
    
    .pf-img-col img {
        height: auto; 
        aspect-ratio: 16/9;
    }

    /* 3. 特長セクションのナンバリング（インデント解除） */
    .pf-content-flex {
        display: block; /* Flex解除して縦積みに */
    }
    .pf-num {
        font-size: 50px; /* 少し小さく */
        line-height: 1;
        margin-bottom: 10px;
        transform: none; /* 位置調整リセット */
        display: block;
    }
    .pf-text-body {
        width: 100%;
    }
    
    /* 4. 形状画像の縦横比維持 */
    .p-shape-grid {
        grid-template-columns: repeat(2, 1fr); /* 2列 */
        gap: 15px;
    }
    .shape-box {
        width: 100%;
        height: auto; /* 固定高さを解除 */
        aspect-ratio: 1 / 1;
        background-color: transparent;
    }
    .shape-box img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* 枠内に収める */
    }

    /* 5. テーブル横スクロール */
    .p-table-scroll {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 40px;
        padding-bottom: 20px; /* スクロールバーとテキスト用に余白を広げる */
        position: relative;   /* 擬似要素の基準位置 */
    }

    .p-table-scroll::after {
        content: "← 表を横にスクロールしてご覧ください →"; /* 表示するテキスト */
        display: block;
        width: 100%;
        margin-top: 10px;
        font-size: 12px;
        color: var(--color-primary); /* サイトのメインカラーを使用 */
        font-weight: 700;
        text-align: center;
        
        /* 重要なポイント：スクロールしてもテキストを画面内に残す */
        position: sticky; 
        left: 0;
    }
    .p-spec-table-new {
        min-width: 600px; /* 最低幅を確保 */
    }
    .p-spec-table-new th, .p-spec-table-new td {
        padding: 10px;
        font-size: 14px;
    }

    /* 6. CTAボタンの見栄え（1行っぽく、あるいはきれいに） */
    .p-btn-contact-wide {
        flex-direction: row; /* 横並びに戻す */
        justify-content: center; /* 中央寄せ */
        align-items: center;
        text-align: center;
        padding: 15px 50px 15px 20px; /* 右にアイコン分の余白 */
        height: auto;
        min-height: 60px;
    }
    .p-btn-text {
        font-size: 16px;
        line-height: 1.4;
    }
    .p-btn-icon-circle {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
    }
    .icon-arrow-white {
        width: 6px;
        height: 6px;
    }

    /* Contact Box */
    .section.contact .container { 
        display: flex;
        flex-direction: column;
    }
    .contact-phone-box { 
        order: 1; 
        background-color: #fff;
        padding: 30px 10px;
        width: 100%;
    }
    .contact-intro-text { 
        order: 2; 
        font-size: 14px; 
        text-align: center; 
        margin-top: 20px; 
    }
    
    .cp-content {
        flex-direction: column;
        gap: 10px;
    }
    .cp-right {
        order: 1; /* 電話番号が先 */
        width: 100%;
        justify-content: center;
        padding: 0;
        margin-bottom: 5px;
    }
    .cp-left {
        order: 2; /* 受付時間が後 */
        width: 100%;
        justify-content: center;
        padding: 0;
        margin-top: 0;
    }
    .cp-divider { display: none; }
    
    /* 電話番号サイズ調整 */
    .cp-tel-link {
        font-size: 28px; /* 画面に収まるサイズ */
    }
    
    /* フォーム余白修正 */
    .wpcf7 dt { width: 100%; margin-bottom: 5px; padding-top: 0; }
    .wpcf7 dd { width: 100%; margin-bottom: 20px; }
    .wpcf7 input[type="text"], 
    .wpcf7 input[type="email"], 
    .wpcf7 input[type="tel"] {
        padding: 10px;
    }
    .wpcf7-checkbox { gap: 15px 20px; padding-top: 0; }
    .wpcf7 textarea { height: 200px; padding: 10px; }
    
    /* Hero Fix */
    .hero-section {
        width: calc(100% + 40px) !important;
        max-width: none !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        height: calc(100vh - 60px);
        margin-top: 60px;
        overflow: hidden;
    }
    .hero-copy {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        white-space: nowrap; /* 自動的な折り返しを禁止 */
        text-align: left;
        padding: 0;
    }
    .copy-main {
        font-size: 20px;
        padding-left: 2.3em;
        text-indent: -2.3em;
        text-align: left;
    }
    .scroll-down {
        right: 10px;
        bottom: 10px;
        transform: scale(0.8);
    }
    
    /* Wax Link Fix */
    .wax-view-all-link {
        position: static;
        display: block;
        text-align: right;
        width: 100%;
        padding-right: 20px;
        margin-top: 15px;
        transform: none;
    }
    .wax-view-all-link::before { display: none; }
}