@charset "UTF-8";
/*
Theme Name: トコヨダ オリジナルテーマ
Theme URI: 
Description: 株式会社トコヨダのコーポレートサイト用オリジナルテーマです。
Author: Nabe-san
Author URI: 
Version: 1.0.0
*/

/* ==========================================================================
   Variables & Base Settings
   ========================================================================== */
   :root {
    --primary-green: #1B4332; 
    --accent-green: #2D6A4F;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F8F9F8;
    --white: #FFFFFF;
    --color-gold: #C5A865; 
    
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
   }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden; 
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.center-action {
    text-align: center;
    margin-top: 50px;
}

.sp-only {
    display: none;
}

/* ==========================================================================
   Typography & Buttons
   ========================================================================== */
.section-en {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--primary-green);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-green);
    font-weight: normal;
}

.btn-contact {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-contact:hover {
    background-color: var(--color-gold);
    color: var(--white);
    transform: translateY(-2px); 
    box-shadow: 0 4px 15px rgba(197, 168, 101, 0.4);
}

.btn-more {
    display: inline-block;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 12px 40px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1; 
    transition: color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); 
}

.btn-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-green);
    z-index: -1; 
    transform: scaleX(0); 
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-more:hover {
    color: var(--white); 
}

.btn-more:hover::before {
    transform: scaleX(1); 
}

.link-arrow {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.link-arrow::after {
    content: '→';
    transition: transform 0.3s ease;
}
.link-arrow:hover::after {
    transform: translateX(5px);
}
.link-arrow:hover {
    color: var(--primary-green);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    background-color: var(--white); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

.logo a {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green); 
    letter-spacing: 0.1em;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-list li a {
    color: var(--primary-green); 
    font-size: 0.9rem;
    font-weight: 500;
    position: relative; 
    padding-bottom: 5px;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-green);
    transform: scaleX(0); 
    transform-origin: right; 
    transition: transform 0.3s ease;
}

.nav-list li a:hover {
    color: var(--accent-green);
}

.nav-list li a:hover::after {
    transform: scaleX(1); 
    transform-origin: left; 
}

/* 親メニューの基点 */
.has-dropdown {
    position: relative;
}

/* 隠れている極上のサブメニュー */
.dropdown-menu {
    position: absolute;
    top: 100%; /* 親メニューのすぐ下 */
    left: 50%; /* 中央揃えのための魔法 */
    transform: translateX(-50%) translateY(15px); /* 最初は少し下に下げておく */
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden; /* 見えないし、クリックもできない状態 */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* 高級感のあるヌルッとした動き */
    border-top: 2px solid var(--color-gold); /* トコヨダのプライド（ゴールドライン） */
    z-index: 100;
}

/* ホバーした時にフワッと現れる */
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* 定位置へスッと上がる */
}

/* サブメニューのリスト装飾 */
.dropdown-menu li {
    list-style: none;
}
.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    color: var(--text-color);
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    letter-spacing: 0.05em;
}

/* サブメニューをホバーした時 */
.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--color-gold);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001; 
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-green); 
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.is-active span { background-color: var(--primary-green); }
.hamburger.is-active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Fullscreen Mobile Nav */
.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-green);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-mobile.is-active {
    opacity: 1;
    visibility: visible;
}

.nav-mobile-inner {
    text-align: center;
    width: 100%;
    padding: 0 5%;
}

.nav-mobile-list li {
    margin-bottom: 30px;
}

.nav-mobile-list li a {
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-mobile-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--white);
    transform: scaleX(0); 
    transform-origin: right; 
    transition: transform 0.3s ease;
}

.nav-mobile-list li a:hover::after {
    transform: scaleX(1); 
    transform-origin: left; 
}

.btn-contact-mobile {
    display: inline-block;
    margin-top: 40px;
    background-color: var(--white);
    color: var(--primary-green);
    padding: 15px 50px;
    border-radius: 2px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-contact-mobile:hover {
    background-color: var(--color-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 168, 101, 0.4);
}

/* ==========================================================================
   Sections
   ========================================================================== */

/* Hero Section (背景画像化) */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding-top: 80px; 
}

.hero-bg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: -1;
    background-image: url('http://googleusercontent.com/image_collection/image_retrieval/8490366335144341191');
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 縦の中央揃え */
    align-items: center;     /* 横の中央揃え */
    z-index: 10;
    pointer-events: none;    /* スワイプ操作を邪魔しない魔法 */
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-content > * {
    pointer-events: auto;    /* テキスト部分は触れるように戻す */
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* ==========================================================================
   Breadcrumbs (パンくずリスト)
   ========================================================================== */
.breadcrumb-wrapper {
    padding: 15px 0;
    border-top: 1px solid #EAEAEA;
    font-family: var(--font-sans);
    font-size: 0.85rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.breadcrumb-list a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: var(--color-gold);
}

.breadcrumb-list .separator {
    margin: 0 10px;
    font-size: 0.8rem;
    color: #ccc;
}

.breadcrumb-list .current-page {
    color: var(--primary-green);
    font-weight: 500;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Concept */
.concept-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.concept-content p {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Craftsmanship */
.craftsmanship-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.craftsmanship-card {
    background: var(--white);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.craftsmanship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.craftsmanship-img {
    width: 100%;
    aspect-ratio: 4 / 3; /* 高さを固定するのではなく、縦横比（4:3）で統一する */
    overflow: hidden;    /* 箱からはみ出した画像は非表示にして、文字被りを防ぐ */
    position: relative;
    background-color: #E5E4DE;
}

.craftsmanship-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を歪めずに、箱を「完全に埋め尽くす」ように自動トリミング */
    display: block;
}

.craftsmanship-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.craftsmanship-card-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-green);
}

.craftsmanship-card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    flex: 1;
}

/* Materials */
.material-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.material-card-wrapper {
    background: var(--white);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.material-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.material-img {
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
}
.material-img img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.material-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.material-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-green);
}

.material-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    flex: 1;
}

/* 1. スライダー全体を囲む新ラッパー（🚨ここが新設の「矢印の安全地帯」） */
.quality-slider-wrapper {
    max-width: 960px; /* 矢印を含めた全体の横幅 */
    margin: 0 auto;
    padding-bottom: 60px; /* ●〇〇のための余白 */
    position: relative; /* 矢印の配置の基準になる */
}

/* 2. Swiper本体（🚨カードが流れる箱。幅を800pxに固定して横伸びを阻止！） */
.quality-slider {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

/* 3. カード本体のデザイン */
.quality-card {
    display: block; 
    background: var(--white);
    padding: 60px 80px; 
    border-top: 3px solid var(--color-gold); 
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin: 15px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.quality-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.quality-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid var(--color-gold);
    flex-shrink: 0;
}

.quality-card-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--primary-green);
}

.quality-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.quality-button-prev,
.quality-button-next {
    color: var(--primary-green) !important;
    transform: scale(0.6);
    z-index: 20; 
    top: calc(50% - 30px);
}

.quality-button-prev { left: 0 !important; }
.quality-button-next { right: 0 !important; }

.quality-pagination {
    bottom: 0 !important;
}
.quality-pagination .swiper-pagination-bullet {
    background-color: var(--primary-green);
    opacity: 0.2;
    width: 12px;
    height: 12px;
    margin: 0 8px !important;
    transition: all 0.3s ease;
}
.quality-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--color-gold);
    transform: scale(1.2);
}

/* ==========================================================================
   素材トップページ用 スライダー (Material Slider)
   ========================================================================== */
.material-slider-wrapper {
    position: relative;
    padding-bottom: 60px; /* ページネーション用の余白 */
    margin: 0 -40px; /* 矢印をカードの外に配置するためのスペース確保 */
    padding-left: 40px;
    padding-right: 40px;
}

.material-slider {
    overflow: hidden;
    padding: 10px 5px; /* カードの影（box-shadow）が切れないように少し余白を設ける */
}

/* スライダー内のカードの高さを綺麗に揃える魔法 */
.material-slider .swiper-slide {
    height: auto;
}
.material-slider .material-card-wrapper {
    height: 100%;
}

/* 矢印のデザイン */
.material-button-prev,
.material-button-next {
    color: var(--primary-green) !important;
    transform: scale(0.6);
    z-index: 20; 
    top: calc(50% - 30px);
}
.material-button-prev { left: 0 !important; }
.material-button-next { right: 0 !important; }

/* ページネーション（点々）のデザイン */
.material-pagination {
    bottom: 0 !important;
}
.material-pagination .swiper-pagination-bullet {
    background-color: var(--primary-green);
    opacity: 0.2;
    width: 12px;
    height: 12px;
    margin: 0 8px !important;
    transition: all 0.3s ease;
}
.material-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--color-gold);
    transform: scale(1.2);
}

/* スマホ用の調整 */
@media (max-width: 768px) {
    .material-slider-wrapper {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .material-button-prev,
    .material-button-next {
        display: none; /* スマホでは矢印を消してスワイプ操作のみにする */
    }
}
/* Company */
.company-inner {
    display: flex;
    align-items: center;
    gap: 80px;
}

.company-info {
    flex: 1;
}

.company-info h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.company-info p {
    line-height: 2;
    color: var(--text-color);
}

.company-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #EAEAEA; 
}

.company-links li {
    border-bottom: 1px solid #EAEAEA; 
    position: relative;
}

.company-links li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    font-size: 1rem;
    color: var(--text-color);
    transition: color 0.4s ease;
    background: transparent;
}

.company-links li a::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.company-links li a::after {
    content: '→';
    font-family: var(--font-sans);
    color: var(--text-light);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.4s ease;
}

.company-links li a:hover {
    color: var(--primary-green);
}

.company-links li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.company-links li a:hover::after {
    transform: translateX(8px);
    color: var(--color-gold);
}

/* News */
.news-list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #EAEAEA;
}

.news-list li {
    border-bottom: 1px solid #EAEAEA;
    position: relative;
}

.news-list li a {
    display: flex;
    align-items: center;
    padding: 25px 20px;
    transition: color 0.4s ease, background-color 0.4s ease;
}

.news-list time {
    font-family: var(--font-sans);
    color: var(--text-light);
    white-space: nowrap;
    width: 120px;
    flex-shrink: 0;
}

.news-list span {
    flex: 1;
    padding-right: 20px;
}

.news-list li a::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.news-list li a::after {
    content: '→';
    font-family: var(--font-sans);
    color: var(--text-light);
    margin-left: auto;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.4s ease;
}

.news-list li:hover a {
    background-color: var(--white);
    color: var(--primary-green);
}

.news-list li:hover a::before {
    transform: scaleX(1);
    transform-origin: left;
}

.news-list li:hover a::after {
    transform: translateX(8px);
    color: var(--color-gold);
}

/* FAQ */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #EAEAEA;
}
.faq-item:first-child {
    border-top: 1px solid #EAEAEA;
}

/* 質問（Q）のバー */
.faq-q {
    display: flex;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-green);
    list-style: none; /* デフォルトの▶を消す */
    position: relative;
    transition: background-color 0.3s ease;
}
/* Safari用の▶消し */
.faq-q::-webkit-details-marker {
    display: none;
}
.faq-q:hover {
    background-color: var(--bg-light);
}

.faq-q-mark {
    font-size: 1.2em;
    font-weight: bold;
    margin-right: 15px;
    color: var(--primary-green);
}

.faq-q-text {
    flex: 1;
    padding-right: 30px; /* 右側の＋アイコン用のスペースを確保 */
    line-height: 1.6;
}

/* 開閉アイコン（＋と－） */
.faq-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
}
.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary-green);
    transition: transform 0.3s ease;
}
.faq-icon::before { /* 横線 */
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}
.faq-icon::after { /* 縦線 */
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

/* アコーディオンが開いたときのアイコン変化（－になる） */
details[open] .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

/* 回答（A）のエリア */
.faq-a {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 0 0 25px 0;
    color: var(--text-color);
    animation: fadeInFaq 0.4s ease; /* ふわっと開くアニメーション */
}

.faq-a-mark {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-gold); /* Aマークはゴールドにすると高級感アップ！ */
    flex-shrink: 0;
}

.faq-a-text {
    flex: 1;
}

/* WordPressが出力する <p> タグの余白を調整 */
.faq-a-text p {
    margin-bottom: 1em;
}
.faq-a-text p:last-child {
    margin-bottom: 0;
}

/* リンク（aタグ）の装飾 */
.faq-a-text a {
    color: var(--primary-green);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.faq-a-text a:hover {
    color: var(--color-gold);
}

@keyframes fadeInFaq {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 80px 0 40px; 
}

.footer-icon {
    display: none;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 40px;
}

.footer-info {
    width: 25%;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.footer-address {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-nav-grid {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    gap: 50px;
}

.footer-nav-col h4 {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

.footer-nav-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-col a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    display: inline-block;
}

.footer-nav-col a:hover {
    color: var(--white);
    transform: translateX(3px); 
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

/* ==========================================================================
   Media Queries (Mobile)
   ========================================================================== */
@media (max-width: 992px) {
    .craftsmanship-grid,
    .quality-grid {
        grid-template-columns: 1fr;
    }
    .company-inner {
        flex-direction: column;
        gap: 40px;
    }
    .company-links {
        width: 100%;
    }
    .footer-inner {
        flex-direction: column;
    }
    .footer-info {
        width: 100%;
        text-align: center;
    }
    .footer-nav-grid {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 30px;
    }
    .footer-nav-col {
        width: calc(50% - 15px);
    }
}

@media (max-width: 480px) {
    .footer-nav-col {
        width: 100%; 
    }
}

/* ==========================================================================
   下層ページ共通スタイル & プレースホルダー (concept/index.php 用)
   ========================================================================== */
html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

.center-content { text-align: center; }
.text-left-sp { text-align: left; }
.gap-50 { gap: 50px; }
.al-center { align-items: center; }
.serif { font-family: 'Noto Serif JP', serif; }
.lead-text { font-size: 18px; line-height: 2; color: var(--text-color); margin-top: 20px; }
ul.disc-list { list-style: disc; padding-left: 20px; margin-top: 15px; }
ul.disc-list li { margin-bottom: 10px; color: var(--text-light); }

.placeholder-img-bg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.placeholder-container { border-radius: 8px; }
.placeholder-text {
    font-family: var(--font-en);
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.placeholder-text-sp {
    font-family: var(--font-en);
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

.page-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
    overflow: hidden;
}
.page-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; 
    filter: brightness(0.6);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.8);
}

.page-hero-content .page-title,
.page-hero-content .page-subtitle {
    color: #FFFFFF !important;
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.8) !important;
}

.page-hero-content .hero-intro,
.page-hero-content .lead-text {
    color: var(--color-gold) !important; /* または #C5A865 !important; */
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.8) !important;
}

.page-hero .placeholder-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.page-title { font-size: 48px; color: var(--primary-green); margin-bottom: 15px; }
.page-subtitle { font-size: 16px; color: var(--color-gold); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 10px; display: block;}

.page-nav {
    position: sticky;
    top: 80px;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 99;
}
.page-nav-list { display: flex; justify-content: center; list-style: none; padding: 0; margin: 0; }
.page-nav-list li a {
    display: block;
    padding: 20px 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}
.page-nav-list li a:hover { color: var(--color-gold); }

.concept-intro { padding: 100px 0; }
.intro-text { font-size: 22px; line-height: 2.2; color: var(--text-color); max-width: 800px; margin: 0 auto; }

/* こだわり (kodawari) */
.kodawari { padding: 100px 0; }
.kodawari-cards { margin-top: 60px; display: flex; flex-direction: column; gap: 40px; }
.kodawari-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.kodawari-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.kodawari-card::before {
    content: '';
    width: 6px;
    background-color: var(--color-gold);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}
.kodawari-num {
    font-size: 80px;
    color: var(--color-gold);
    line-height: 1;
    opacity: 0.15;
    font-weight: bold;
    font-family: 'Noto Serif JP', serif;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
}
.kodawari-card-text-wrapper {
    flex: 1.2;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 15;
}
.kodawari-card-title {
    font-size: 26px;
    color: var(--primary-green);
    margin-bottom: 20px;
    padding-left: 20px;
}
.kodawari-card-text { font-size: 16px; color: var(--text-color); line-height: 1.8; }
.kodawari-card-img { flex: 1; position: relative; overflow: hidden; }
.kodawari-card-img img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}
.kodawari-card:hover .kodawari-card-img .placeholder-text { transform: translate(-50%, -50%) scale(1.1); }

/* 技術紹介 (technology) */
.technology { padding: 100px 0; }
.accordion-wrapper {
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid #EAEAEA;
}
.accordion {
    border-bottom: 1px solid #EAEAEA;
    transition: background-color 0.4s ease;
}
.accordion[open] { background-color: #FAFAFA; }
.accordion-title {
    font-size: 20px;
    color: var(--primary-green);
    cursor: pointer;
    list-style: none;
    position: relative;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    transition: color 0.3s ease;
}
.accordion-title:hover { color: var(--color-gold); }
.accordion-title::-webkit-details-marker { display: none; }
.accordion-icon { width: 18px; height: 18px; position: relative; flex-shrink: 0; margin-left: 20px; }
.accordion-icon::before, .accordion-icon::after {
    content: ''; position: absolute; background: var(--color-gold);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.4s ease;
}
.accordion-icon::before { width: 100%; height: 2px; top: 8px; left: 0; }
.accordion-icon::after { width: 2px; height: 100%; top: 0; left: 8px; }
details[open] .accordion-icon::before { transform: rotate(180deg); background: var(--primary-green); }
details[open] .accordion-icon::after { transform: rotate(90deg); opacity: 0; }
details[open] .accordion-title { color: var(--primary-green); }

.accordion-content { padding: 0 20px 40px 20px; color: var(--text-light); font-size: 16px; line-height: 1.8; }
details[open] .accordion-content { animation: accordionFadeIn 0.5s ease forwards; }
@keyframes accordionFadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.accordion-inner { display: flex; gap: 40px; align-items: flex-start; }
.accordion-text { flex: 1.5; position: relative; }
.accordion-text::before {
    content: ''; position: absolute; top: 5px; left: 0; width: 2px; height: calc(100% - 10px); background-color: var(--color-gold); opacity: 0.4;
}
.accordion-text p { padding-left: 20px; margin-bottom: 0; }
.accordion-text ul.disc-list { padding-left: 40px; margin-top: 15px; }
.accordion-text ul.disc-list li { margin-bottom: 12px; }
.accordion-img { flex: 1; border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; }
.accordion-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   工場 (factory) - 信頼の左右レイアウト
   ========================================================================== */
.factory { padding: 100px 0; }
.factory .flex-layout { display: flex; align-items: center; gap: 60px; }
.factory-text { flex: 1; }
.factory-text p { color: var(--text-color); font-size: 16px; line-height: 1.8; margin-bottom: 30px; }

/* 🚨3列に最適化された極上のテーブルデザイン */
.spec-table {
    width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 15px;
    background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.spec-table thead th {
    background-color: #FAFAFA;
    color: var(--primary-green);
    font-weight: 500;
    border-bottom: 2px solid #EAEAEA; /* ヘッダーの区切りを少し強調 */
}
.spec-table tr:not(:last-child) { border-bottom: 1px solid #F0F0F0; }
.spec-table th, .spec-table td { padding: 18px 15px; text-align: left; }

/* 列幅のバランス調整 */
.spec-table th:nth-child(1), .spec-table td:nth-child(1) { width: 40%; }
.spec-table th:nth-child(2), .spec-table td:nth-child(2) { width: 25%; }
.spec-table th:nth-child(3), .spec-table td:nth-child(3) { width: 35%; }

.table-note { font-size: 13px; color: #888; margin-top: 15px; text-align: right; }

/* 画像エリア */
.factory-img { flex: 1; border-radius: 8px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.factory-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.factory-img:hover img { transform: scale(1.03); }

/* 🚨アコーディオン化された46G解説ボックス */
.gauge-accordion {
    margin-top: 40px;
    background-color: #FDFDFB; /* ごく薄いアイボリーで特別感を */
    border-left: 4px solid var(--color-gold); /* トコヨダゴールドのライン */
    border-radius: 0 8px 8px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    overflow: hidden;
}

.gauge-title {
    font-size: 18px;
    color: var(--color-gold);
    padding: 25px 30px; /* クリックしやすい余白 */
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.05em;
    margin: 0;
    transition: background-color 0.3s ease;
}
.gauge-title:hover { background-color: #FAFAFA; }
.gauge-title::-webkit-details-marker { display: none; }

/* 極上のプラス/マイナスアイコン */
.gauge-icon { width: 16px; height: 16px; position: relative; flex-shrink: 0; margin-left: 15px; }
.gauge-icon::before, .gauge-icon::after {
    content: ''; position: absolute; background: var(--color-gold);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}
.gauge-icon::before { width: 100%; height: 2px; top: 7px; left: 0; }
.gauge-icon::after { width: 2px; height: 100%; top: 0; left: 7px; }

/* アコーディオン開閉時のアニメーション */
details[open].gauge-accordion .gauge-icon::before { transform: rotate(180deg); background: var(--primary-green); }
details[open].gauge-accordion .gauge-icon::after { transform: rotate(90deg); opacity: 0; }
details[open].gauge-accordion .gauge-title { color: var(--primary-green); }

.gauge-content { padding: 0 30px 30px 30px; }
details[open].gauge-accordion .gauge-content { animation: accordionFadeIn 0.5s ease forwards; }

.gauge-desc { font-size: 15px; color: var(--text-color); line-height: 1.8; margin-bottom: 0 !important; }
.gauge-desc strong { color: var(--primary-green); font-weight: 500; }

/* エコテックス (oekotex) */
.oekotex { padding: 100px 0; }
.oekotex-badge {
    position: relative; background-color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: flex; align-items: center; justify-content: center;
}
.oekotex-badge::before {
    content: ''; position: absolute; top: -8px; left: -8px; right: -8px; bottom: -8px;
    border: 1px solid var(--color-gold); border-radius: 50%; opacity: 0.3;
}
.oekotex-badge img { width: 80%; height: 80%; object-fit: contain; }
.oekotex-content { max-width: 800px; margin: 40px auto 0; text-align: center; }
.oekotex-content p { margin-bottom: 25px; color: var(--text-color); }

/* ==========================================================================
   素材トップページ (material/index.php 用)
   ========================================================================== */
/* 1. ショーウインドウ（The Materials） */
.material-showroom { padding: 100px 0; }
.showroom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.showroom-card { display: flex; flex-direction: column; text-decoration: none; transition: transform 0.4s ease; }
.showroom-card:hover { transform: translateY(-10px); }
.showroom-img-wrapper { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; margin-bottom: 25px; }
.showroom-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.showroom-card:hover .showroom-img-wrapper img { transform: scale(1.05); }
.showroom-info { display: flex; flex-direction: column; flex: 1; }
.showroom-en { font-size: 13px; color: var(--color-gold); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 5px; }
.showroom-name { font-size: 24px; color: var(--primary-green); margin-bottom: 15px; border-bottom: 1px solid #EAEAEA; padding-bottom: 15px; }
.showroom-desc { font-size: 15px; color: var(--text-color); line-height: 1.8; margin-bottom: 20px; flex: 1; }
.showroom-link { font-size: 15px; color: var(--color-gold); display: flex; align-items: center; gap: 10px; opacity: 0.7; transition: opacity 0.3s ease, gap 0.3s ease; }
.showroom-card:hover .showroom-link { opacity: 1; gap: 15px; }

/* 2. 品質証明（Quality & Trust） */
.premium-quality { padding: 100px 0; }
.goldmark-badge { position: relative; background-color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center; }
.goldmark-badge::before { content: ''; position: absolute; top: -8px; left: -8px; right: -8px; bottom: -8px; border: 1px solid var(--color-gold); border-radius: 50%; opacity: 0.3; }
.goldmark-badge img { width: 80%; height: 80%; object-fit: contain; }
.btn-outline { display: inline-block; padding: 15px 40px; border: 1px solid var(--primary-green); color: var(--primary-green); text-decoration: none; font-size: 15px; transition: all 0.3s ease; border-radius: 4px; }
.btn-outline:hover { background-color: var(--primary-green); color: #fff; }

/* 3. お手入れ（Care & Maintenance） */
.material-care { padding: 100px 0; }
.care-banner { display: flex; background-color: var(--primary-green); border-radius: 8px; overflow: hidden; text-decoration: none; transition: box-shadow 0.4s ease; }
.care-banner:hover { box-shadow: 0 15px 40px rgba(27, 67, 50, 0.2); }
.care-banner-content { flex: 1; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.care-en { font-size: 14px; color: var(--color-gold); letter-spacing: 0.1em; margin-bottom: 15px; }
.care-title { font-size: 32px; color: #fff; line-height: 1.4; margin-bottom: 20px; }
.care-desc { font-size: 15px; color: rgba(255,255,255,0.8); line-height: 1.8; margin-bottom: 30px; }
.care-link { color: var(--color-gold); font-size: 16px; display: flex; align-items: center; gap: 10px; transition: gap 0.3s ease; }
.care-banner:hover .care-link { gap: 15px; }
.care-banner-img { flex: 1; min-height: 400px; }


/* ==========================================================================
   素材詳細ページ（cashmere.php 用）
   ========================================================================== */
.cashmere-story { padding: 120px 0; }

.story-content-wrapper {
    display: flex;
    align-items: center; 
    gap: 80px;
    margin-top: 60px;
}

.story-image-area {
    flex: 1;
}

.story-img-container {
    width: 100%;
    aspect-ratio: 5 / 6;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background-color: #E5E4DE;
}

.story-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-text-area {
    flex: 1.2; 
    text-align: left;
}

.story-text-area p + p {
    margin-top: 1.5em;
}

.story-text-columns {
    column-count: 2;
    column-gap: 60px;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-color);
}
.story-text-columns p {
    margin-bottom: 1.5em;
    break-inside: avoid; 
}

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 60px; }
.feature-item { background: #fff; padding: 40px; border-radius: 8px; transition: transform 0.3s ease; }
.feature-item:hover { transform: translateY(-5px); }
.feature-title { font-size: 20px; color: var(--primary-green); margin-bottom: 15px; display: flex; align-items: center; }
.feature-title::before { content: ''; width: 20px; height: 1px; background: var(--color-gold); margin-right: 15px; }

.care-message-box { background: #FDFDFB; padding: 80px 40px; border: 1px solid #EAEAEA; border-radius: 8px; }

/* ==========================================================================
   アルパカ詳細ページ（alpaca.php 用）固有スタイル
   ========================================================================== */
.alpaca-heritage {
    padding: 100px 0;
    background-color: var(--white);
}
.heritage-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.heritage-box::before {
    content: '❝'; /* 装飾的なクォーテーションで物語感を出す */
    display: block;
    font-size: 80px;
    color: var(--color-gold);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
    margin-bottom: -20px;
}
.heritage-text p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5em;
    text-align: left;
}

.profile-table th:nth-child(1) { width: 25% !important; }
.profile-table td:nth-child(2) { width: 75% !important; }

.map-container {
            width: 100%;
            max-width: 1000px;
            margin: 0 auto 50px;
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }
    .map-container iframe {
            width: 100%;
            height: 450px;
            display: block;
    }
    /* 会社案内ポータル専用の微調整よ */
    .company-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr); /* 4つなので2x2でバランス良く並べるわ */
            gap: 40px;
            margin-top: 60px;
    }

/* ==========================================================================
   ページネーション（home.php）
   ========================================================================== */
.pagination-wrapper {
    margin-top: 50px;
    text-align: center;
}
.pagination-wrapper .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.pagination-wrapper .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid #E5E4DE;
    border-radius: 4px;
    font-family: var(--font-serif);
    transition: all 0.3s ease;
}
.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
    background-color: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}
.pagination-wrapper .page-numbers.dots {
    border: none;
    background: transparent;
}    

.hero.swiper {
    width: 100%;
    height: 100vh; /* 画面の高さいっぱいに広げる */
    position: relative;
    overflow: hidden;
}
.hero .swiper-slide {
    width: 100%;
    height: 100%;
}
.hero .hero-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* ページネーション（点々）の色をトコヨダ仕様に */
.swiper-pagination-bullet {
    background-color: #fff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
    margin: 0 6px !important;
}
.swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--primary-green);
}

.contact-form-wrapper {
    background-color: #fff;
    padding: 40px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary-green);
}

/* 必須マークのデザイン */
.required {
    display: inline-block;
    background-color: #B22222;
    color: #fff;
    font-size: 0.75em;
    padding: 2px 8px;
    margin-left: 10px;
    border-radius: 2px;
    vertical-align: middle;
}

/* 入力欄のデザイン */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #fafafa;
    font-family: var(--font-sans);
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-green);
    background-color: #fff;
    outline: none;
}

/* 送信ボタンのデザイン */
.form-submit-wrapper {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    background-color: var(--primary-green);
    color: #fff;
    border: none;
    padding: 15px 60px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    letter-spacing: 0.1em;
}

.btn-submit:hover {
    background-color: var(--color-gold);
}

/* ==========================================================================
   【完全版】お問い合わせ確認画面（Confirm Plus 専用テーブルレイアウト）
   ========================================================================== */
#wpcf7cpcnf {
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
    position: relative;
    z-index: 10 !important;
}

#wpcf7cpcnf table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

#wpcf7cpcnf tr {
    border-bottom: 1px solid #EAEAEA;
}

#wpcf7cpcnf tr:first-child {
    border-top: 1px solid #EAEAEA;
}

#wpcf7cpcnf th,
#wpcf7cpcnf td {
    padding: 25px 15px;
    vertical-align: top;
}

#wpcf7cpcnf th {
    width: 30%;
    text-align: left;
    color: var(--primary-green);
    font-weight: bold;
}

#wpcf7cpcnf th p,
#wpcf7cpcnf td p {
    margin: 0; 
    color: var(--text-color);
}

#wpcf7cpcnf th p {
    color: var(--primary-green);
}

.wpcf7cp-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

button.wpcf7cp-cfm-edit-btn {
    background-color: #fff;
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
    padding: 15px 50px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
}

button.wpcf7cp-cfm-edit-btn:hover {
    background-color: var(--bg-light);
}

button.wpcf7cp-cfm-submit-btn {
    background-color: var(--primary-green);
    color: #fff;
    border: none;
    padding: 15px 50px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    letter-spacing: 0.1em;
}

button.wpcf7cp-cfm-submit-btn:hover {
    background-color: var(--color-gold);
}
/* ==========================================================================
   SNS Bar (Footer Top Zone)
   ========================================================================== */
.footer-info-sns {
    margin-top: 35px; 
    display: flex;
    align-items: center;
    gap: 30px; 
}

.sns-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    line-height: 1; 
    display: inline-flex;
    align-items: center;
}

.sns-icons-list {
    display: flex;
    align-items: center;
    line-height: 1; 
}

.sns-item.instagram svg rect,
.sns-item.instagram svg path {
    stroke: url(#insta-gradient); 
    transition: all 0.3s ease;
}

.sns-item.instagram .insta-dot {
    fill: url(#insta-gradient) !important;
    stroke: none !important;
}

.sns-item.instagram:hover svg rect,
.sns-item.instagram:hover svg path {
    stroke: var(--color-gold); 
}

.sns-item.instagram:hover .insta-dot {
    fill: var(--color-gold) !important;
}

.sns-item:hover {
    transform: translateY(-3px);
}

.sns-item {
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* ==========================================================================
   レスポンシブ調整 (必ずファイルの一番下！)
   ========================================================================== */
@media (max-width: 1024px) {
    .kodawari-grid { grid-template-columns: repeat(2, 1fr); }
    .page-hero { height: 350px; }
    .page-title { font-size: 40px; }
}

@media (max-width: 992px) {
    /* こだわり調整 */
    .kodawari-card { flex-direction: column; }
    .kodawari-card-img { display: none !important; }
    .kodawari-card::before { width: 100%; height: 6px; flex-shrink: 0; order: 1; }
    .kodawari-num { font-size: 48px; opacity: 0.1; top: 15px; left: 15px; }
    .kodawari-card-text-wrapper { padding: 40px; order: 2; }
    .kodawari-card-title { font-size: 22px; padding-left: 0; }

    /* 工場調整 */
    .factory .flex-layout { flex-direction: column; gap: 40px; }
    .factory-text { order: 2; }
    .factory-img { order: 1; width: 100%; }

    /* 技術紹介調整 */
    .accordion-inner { flex-direction: column; gap: 0; }
    .accordion-img { display: none !important; }
    .accordion-text { width: 100%; }
    .accordion-text::before { height: 100%; left: 0; top: 0; display: block; }
    .accordion-text p { padding-left: 15px; color: var(--text-color); }
    .accordion-text ul.disc-list { padding-left: 35px; }
    .accordion-text ul.disc-list li { color: var(--text-light); }

    /* 素材トップページ調整 */
    .material-showroom, .premium-quality, .material-care { padding: 60px 0; }
    .showroom-grid { grid-template-columns: 1fr; gap: 50px; }
    .showroom-img-wrapper { aspect-ratio: 16 / 9; margin-bottom: 20px; }
    .showroom-name { font-size: 22px; }
    .showroom-link { opacity: 1; gap: 15px; font-size: 14px; padding-top: 10px; }
    .premium-quality .factory-img { max-width: 220px; margin: 0 auto 20px; }
    .btn-outline { display: block; text-align: center; width: 100%; max-width: 320px; margin: 0 auto; }
    .care-banner { flex-direction: column; }
    .care-banner-img { order: 1; min-height: 200px; }
    .care-banner-content { order: 2; padding: 40px 20px; }
    .care-title { font-size: 22px; margin-bottom: 15px; }

    /* カシミヤ詳細ページ調整 */
    .story-content-wrapper { flex-direction: column; gap: 40px; }
    .story-image-area { width: 100%; }
    .story-image-area .placeholder-img-bg { aspect-ratio: 16 / 9; }
    .feature-grid { grid-template-columns: 1fr; }
    .care-message-box { padding: 60px 20px; }

    .alpaca-heritage { padding: 60px 0; }
    .heritage-box::before { font-size: 60px; margin-bottom: -10px; }

    
}

@media (max-width: 768px) {
    .sp-only { display: block; }
    .nav-desktop { display: none; }
    .hamburger { display: block; margin-right: 15px; }
    .header .logo a { color: var(--primary-green); }
    .header { background-color: var(--white); padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
    .hero-title { font-size: 2.2rem; }
    .material-grid { grid-template-columns: 1fr; }
    .news-list li a { flex-direction: column; gap: 5px; }
    .html { scroll-padding-top: 70px; }
    .page-nav { display: none; }
    .page-hero { height: 300px; margin-top: 70px; }
    .page-title { font-size: 32px; }
    .intro-text { font-size: 18px; padding: 0 15px; }
    .concept-intro, .kodawari, .technology, .factory, .oekotex { padding: 70px 0; }
    .kodawari-cards { gap: 30px; }
    .kodawari-card-text-wrapper { padding: 30px; }
    .flex-layout { flex-direction: column; gap: 40px; }
    .text-left-sp { text-align: left; }
    .accordion-title { font-size: 18px; padding: 25px 15px; }
    .accordion-content { font-size: 15px; padding: 0 15px 30px 15px; }
    
    .dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border-top: none; background-color: transparent; padding: 0; margin-top: 10px; }
    .has-dropdown:hover .dropdown-menu { transform: none; }
    .dropdown-menu a { text-align: left; padding: 10px 15px 10px 30px; font-size: 14px; color: var(--text-light); }
    .dropdown-menu a::before { content: '- '; color: var(--color-gold); }
    
    .nav-mobile-list li { margin-bottom: 0; }
    .mobile-item-wrap { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding: 15px 0; }
    .nav-mobile-list > li:last-child .mobile-item-wrap { border-bottom: none; }
    .nav-mobile-list li a { font-size: 1.3rem; padding-bottom: 0; }
    .nav-mobile-list li a::after { display: none; }
    
    .mobile-toggle-btn { background: transparent; border: none; width: 44px; height: 44px; position: relative; cursor: pointer; outline: none; flex-shrink: 0; }
    .mobile-toggle-btn::before, .mobile-toggle-btn::after { content: ''; position: absolute; top: 50%; left: 50%; background-color: var(--white); transform: translate(-50%, -50%); transition: transform 0.3s ease, opacity 0.3s ease; }
    .mobile-toggle-btn::before { width: 16px; height: 1px; }
    .mobile-toggle-btn::after { width: 1px; height: 16px; }
    .mobile-toggle-btn.is-open::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
    
    .mobile-sub-menu { display: none; padding: 0 0 15px 20px; animation: fadeInSubmenu 0.3s ease; }
    .mobile-sub-menu.is-open { display: block; }
    .mobile-sub-menu li a { font-family: var(--font-sans); font-size: 1rem; color: rgba(255, 255, 255, 0.7); display: block; padding: 10px 0; text-align: left; }
    .mobile-sub-menu li a::before { content: '- '; color: var(--color-gold); margin-right: 5px; }
    
    .nav-mobile { align-items: flex-start; overflow-y: auto; }
    .nav-mobile-inner { padding-top: 90px; padding-bottom: 60px; }
    .breadcrumb-wrapper { font-size: 0.75rem; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    
    .profile-table th, .profile-table td, .profile-table th:nth-child(1), .profile-table td:nth-child(2) { width: 100% !important; display: block; }
    .profile-table th { border-bottom: none; padding-bottom: 5px; }
    .profile-table td { padding-top: 0; }
    
    .history-list div { flex-direction: column !important; gap: 8px !important; }
    .history-list dt { width: 100% !important; }
    .history-list dd { padding-left: 1.5em !important; }
    
    .flow-step { display: block; }
    .flow-step .step-num { margin-right: 0; margin-bottom: 10px !important; }
    
    .footer-nav-grid { flex-direction: column; gap: 0; }
    .footer-nav-col { width: 100% !important; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .footer-nav-col:last-child { border-bottom: none; }
    .footer-nav-col h4.footer-toggle { border-bottom: none; padding: 20px 0; margin-bottom: 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
    .footer-icon { display: block; width: 20px; height: 20px; position: relative; flex-shrink: 0; }
    .footer-icon::before, .footer-icon::after { content: ''; position: absolute; top: 50%; left: 50%; background-color: var(--white); transform: translate(-50%, -50%); transition: transform 0.3s ease, opacity 0.3s ease; }
    .footer-icon::before { width: 14px; height: 1px; }
    .footer-icon::after { width: 1px; height: 14px; }
    .footer-toggle.is-open .footer-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
    .footer-nav-col ul.footer-menu { display: none; flex-direction: column; padding-bottom: 20px; animation: fadeInSubmenu 0.3s ease; }
    .footer-nav-col ul.footer-menu.is-open { display: flex; }
    .footer-menu { display: none; padding-bottom: 20px; animation: fadeInSubmenu 0.3s ease; }
    .footer-menu.is-open { display: flex; }
    
    .map-container iframe { height: 350px; }
    .company-grid { grid-template-columns: 1fr; gap: 30px; }

    /* ▼▼▼ スマホ用確認画面レイアウト（テーブルを縦に） ▼▼▼ */
    #wpcf7cpcnf th, #wpcf7cpcnf td { display: block; width: 100%; padding: 10px 15px; }
    #wpcf7cpcnf th { padding-top: 20px; border-bottom: none; }
    #wpcf7cpcnf td { padding-bottom: 20px; }
    .wpcf7cp-btns { flex-direction: column-reverse; gap: 15px; }
    button.wpcf7cp-cfm-edit-btn, button.wpcf7cp-cfm-submit-btn { width: 100%; }

    .quality-slider .quality-card { padding: 40px 30px; }
    .quality-button-prev, .quality-button-next { display: none; }
    
    .footer-sns-container { justify-content: center; gap: 15px; }

    @keyframes fadeInSubmenu { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
}

/* ==========================================================================
   WordPress 管理バー被り防止 CSS（完成版）
   ========================================================================== */
body.admin-bar .header, body.admin-bar .nav-mobile { top: 32px; }
body.admin-bar .nav-mobile { height: calc(100vh - 32px); }
@media screen and (max-width: 782px) {
    body.admin-bar .header, body.admin-bar .nav-mobile { top: 46px; }
    body.admin-bar .nav-mobile { height: calc(100vh - 46px); }
}
body.admin-bar .page-nav { top: 112px; }
#kodawari, #factory, #technology, #oekotex { scroll-margin-top: 60px; }
html:has(body.admin-bar) { scroll-padding-top: 112px; }
@media (max-width: 768px) {
    #kodawari, #factory, #technology, #oekotex { scroll-margin-top: 0; }
    html:has(body.admin-bar) { scroll-padding-top: 116px; }
}