/*
Theme Name: Yoshizaki Sewing Theme
Author: Gemini
Description: 有限会社吉﨑縫製所 オリジナルテーマ
Version: 1.7
*/

/* --- 変数定義 --- */
:root {
    --primary-color: #0f2350; /* 信頼のネイビー */
    --primary-light: #1a3a82;
    --accent-color: #c5a059;  /* 品質のゴールド */
    --accent-hover: #b08e4d;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f4f6f9;
    --bg-white: #ffffff;
    --font-base: 'Noto Sans JP', sans-serif;
    --font-mincho: 'Shippori Mincho', serif;
}

/* --- リセット & 基本設定 --- */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: var(--font-base);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
ul { list-style: none; padding: 0; margin: 0; }

/* --- ユーティリティ --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-padding { padding: 100px 0; }

.section-title-area {
    text-align: center;
    margin-bottom: 60px;
}
.section-en-title {
    display: block;
    color: var(--accent-color);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.section-jp-title {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

/* ボタン共通 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn i { margin-right: 8px; }

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}
.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

.btn-outline-white {
    border: 2px solid #fff;
    color: #fff;
}
.btn-outline-white:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* --- ヘッダー --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-jp { font-size: 1.4rem; font-weight: bold; color: var(--primary-color); font-family: var(--font-mincho); }
.logo-en { font-size: 0.75rem; color: var(--accent-color); letter-spacing: 0.05em; }

.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: 0.3s;
}
.nav-menu a:hover::after { width: 100%; }

.header-cta {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
}
.header-cta:hover { background-color: var(--accent-color); }

/* --- ヒーローセクション（スライドショー） --- */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px; /* ヘッダー分 */
}

/* 背景画像エリア */
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

/* 各スライド画像（修正：5枚に合わせて30秒に変更） */
.hero-bg-item {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: bgFade 30s infinite; /* 6秒×5枚=30秒で一周 */
}

/* 5枚のアニメーション開始時間をずらす */
.hero-bg-item:nth-child(1) { animation-delay: 0s; }
.hero-bg-item:nth-child(2) { animation-delay: 6s; }
.hero-bg-item:nth-child(3) { animation-delay: 12s; }
.hero-bg-item:nth-child(4) { animation-delay: 18s; }
.hero-bg-item:nth-child(5) { animation-delay: 24s; }

/* 暗くするオーバーレイ */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 35, 80, 0.5); /* ネイビーの半透明 */
    z-index: 1;
}

/* テキストコンテンツ */
.hero-content {
    max-width: 1200px; /* 幅を広げました（900px→1200px） */
    width: 100%;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    animation: fadeIn 1.5s ease;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(197, 160, 89, 0.9);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.hero h1 {
    font-family: var(--font-mincho);
    font-size: clamp(2rem, 4.5vw, 3.5rem); /* フォントサイズの上限を少し調整 */
    line-height: 1.5;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    word-break: keep-all; /* 日本語の単語途中での改行を禁止 */
    overflow-wrap: break-word;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 500;
}

/* --- クロスフェードアニメーション定義 (5枚用) --- */
@keyframes bgFade {
    0% { opacity: 0; animation-timing-function: ease-in; }
    4% { opacity: 1; }
    20% { opacity: 1; }
    24% { opacity: 0; animation-timing-function: ease-out; }
    100% { opacity: 0; }
}

/* --- 3つの強み --- */
.features { background-color: var(--bg-white); position: relative; z-index: 10; margin-top: -50px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-10px); }

.feature-icon-box {
    width: 80px;
    height: 80px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 2rem;
    transition: 0.3s;
}
.feature-card:hover .feature-icon-box { background-color: var(--primary-color); color: var(--accent-color); }

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.feature-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    text-align: left;
}

/* --- ターゲット選択 (Split Section) --- */
.target-section { padding-bottom: 100px; padding-top: 50px; }

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.target-card {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
    color: white;
    transition: transform 0.3s;
}
.target-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 35, 80, 0.7);
    z-index: 1;
    transition: 0.3s;
}
.target-card:hover { transform: scale(1.02); }
.target-card:hover::before { background-color: rgba(15, 35, 80, 0.5); }

.target-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.target-content {
    position: relative;
    z-index: 2;
}

.target-label {
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: bold;
}

.target-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 15px;
    font-family: var(--font-mincho);
}

.target-desc { margin-bottom: 30px; opacity: 0.95; }

/* --- 設備・スペック --- */
.specs-section { background-color: var(--bg-light); }

.specs-layout {
    display: flex;
    gap: 60px;
    align-items: center;
}

.specs-image {
    flex: 1;
    position: relative;
}
.specs-image img {
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    display: block;
    width: 100%;
}

.specs-info { flex: 1; }

.spec-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.spec-item {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--accent-color);
}
.spec-label {
    font-size: 0.8rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
}
.spec-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* --- お問い合わせ --- */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.cta-container { position: relative; z-index: 2; }

.cta-lead { font-size: 1.2rem; margin-bottom: 40px; }

.cta-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-box {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
}

.phone-number {
    font-size: 2.2rem;
    font-weight: bold;
    display: block;
    margin: 10px 0;
    font-family: sans-serif;
    color: var(--accent-color);
}

/* --- フッター --- */
footer {
    background-color: #051025;
    color: #aaa;
    padding: 80px 0 20px;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
    display: block;
    font-family: var(--font-mincho);
}

.footer-nav-title {
    color: white;
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
}

.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--accent-color); text-decoration: underline; }

.copyright { text-align: center; font-size: 0.8rem; }

/* フェードインアニメーション定義 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   ここから下層ページ（共通・Service）用CSS
   ========================================= */

/* --- 下層ページヘッダー --- */
.page-header {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 120px 0 60px;
    text-align: center;
    margin-bottom: 80px;
}
.page-subtitle {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
}
.page-title {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
    font-family: var(--font-mincho);
}

/* --- セクション見出し（下層用） --- */
.sub-section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 20px;
    margin-bottom: 50px;
    font-weight: 700;
}

/* --- 生産品目 (Service Page) --- */
.product-item {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
}
.product-item:nth-child(even) { flex-direction: row-reverse; }

.product-img {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.product-img img { width: 100%; display: block; transition: transform 0.3s; }
.product-item:hover .product-img img { transform: scale(1.05); }

.product-text { flex: 1; }
.product-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag {
    background-color: var(--bg-light);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #ddd;
}

/* --- 納品までの流れ (Service Page) --- */
.flow-section { background-color: var(--bg-light); }
.flow-list { max-width: 900px; margin: 0 auto; }

.flow-item {
    display: flex;
    background: var(--bg-white);
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.flow-image-box { width: 30%; min-width: 200px; position: relative; }
.flow-image-box img { width: 100%; height: 100%; object-fit: cover; }
.step-badge {
    position: absolute;
    top: 0; left: 0;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    font-weight: bold;
    border-bottom-right-radius: 8px;
}

.flow-content { padding: 30px; width: 70%; display: flex; flex-direction: column; justify-content: center; }
.flow-content h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0 0 10px;
    font-weight: 700;
}
.step-en {
    font-size: 0.8rem;
    color: #999;
    font-weight: normal;
    margin-left: 10px;
}

/* --- 品質管理 (Service Page) --- */
.quality-box {
    border: 1px solid #ddd;
    padding: 50px;
    border-radius: 8px;
    background-color: var(--bg-white);
    text-align: center;
}
.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}
.quality-item i { font-size: 3rem; color: var(--accent-color); margin-bottom: 20px; }
.quality-item h4 { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary-color); font-weight: 700; }

/* =========================================
   会社案内 (Company Page) 用CSS
   ========================================= */

/* --- 経営指針 (Philosophy) --- */
.philosophy-section {
    background-color: var(--bg-light);
    text-align: center;
}
.philosophy-box {
    background-color: var(--bg-white);
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
}
.philosophy-box::before {
    content: 'PHILOSOPHY';
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    padding: 5px 20px;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    border-radius: 20px;
    font-weight: bold;
}
.mission-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.6;
    font-family: var(--font-mincho);
}
.mission-text {
    font-size: 1rem;
    margin-bottom: 40px;
    color: #555;
    text-align: left;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}
.value-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0 0 10px 0;
}
.value-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* --- 代表挨拶 (Message) --- */
.message-container {
    display: flex;
    gap: 50px;
    align-items: center;
}
.message-img { flex: 1; min-width: 300px; }
.message-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.message-content { flex: 1.5; }
.message-content h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    font-family: var(--font-mincho);
}
.signature {
    margin-top: 30px;
    text-align: right;
    font-weight: bold;
    font-size: 1.1rem;
    font-family: var(--font-mincho);
}

/* --- 会社概要 (Profile Table) --- */
.profile-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid var(--primary-color);
}
.profile-table th, .profile-table td {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}
.profile-table th {
    width: 25%;
    background-color: #fafafa;
    color: var(--primary-color);
    font-weight: bold;
}

/* --- 沿革 (History) --- */
.history-list {
    position: relative;
    border-left: 2px solid #ddd;
    margin-left: 20px;
    padding-left: 30px;
}
.history-item {
    margin-bottom: 30px;
    position: relative;
}
.history-item::before {
    content: '';
    position: absolute;
    left: -37px; top: 5px;
    width: 12px; height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
}
.history-year {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: inline-block;
    width: 150px; /* ★修正：100pxから150pxに変更（改行防止） */
}

/* --- アクセス (Map) --- */
.map-container {
    width: 100%;
    height: 400px;
    background-color: #eee;
    margin-top: 20px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================
   設備紹介 (Equipment Page)
   ========================================= */
.highlight-section {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 60px;
}
.highlight-grid { display: flex; flex-wrap: wrap; }
.highlight-content {
    padding: 50px;
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.highlight-img {
    flex: 1;
    min-width: 300px;
    background: url('https://placehold.co/800x600/333/eee?text=CAM+Machine') center/cover;
    min-height: 300px;
}
.badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    margin-bottom: 15px;
    align-self: flex-start;
}

/* 設備テーブル */
.list-container { margin-bottom: 60px; }
.equipment-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: 0.95rem;
}
.equipment-table th {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 15px;
    text-align: left;
    width: 30%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.equipment-table td {
    background-color: var(--bg-white);
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #555;
}
.machine-name { font-weight: bold; color: #333; display: block; margin-bottom: 5px; }
.machine-spec { font-size: 0.85rem; color: #777; }
.count-badge {
    float: right;
    background-color: #eee;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #555;
}

/* ギャラリー */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.gallery-item {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.85rem;
    padding: 8px;
    text-align: center;
}

/* =========================================
   アパレル企業様へ (Business Page)
   ========================================= */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.solution-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-top: 3px solid var(--primary-color);
}
.solution-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.solution-card h3 i { color: var(--accent-color); }

.capacity-box {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd;
    margin-top: 20px;
}
.capacity-number { font-size: 2.5rem; font-weight: bold; color: var(--primary-color); }
.capacity-unit { font-size: 1rem; color: #666; margin-left: 5px; }

/* メリットリスト */
.merit-list { list-style: none; padding: 0; }
.merit-item {
    display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start;
}
.merit-icon {
    background-color: var(--primary-color);
    color: white;
    min-width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.merit-content h4 { margin: 0 0 10px 0; font-size: 1.2rem; color: var(--primary-color); }

/* FAQ */
.faq-dl { border-top: 1px solid #ddd; }
.faq-dl dt {
    font-weight: bold;
    padding: 20px 0 10px;
    color: var(--primary-color);
    position: relative;
    padding-left: 30px;
    cursor: pointer;
}
.faq-dl dt::before {
    content: 'Q.';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 900;
}
.faq-dl dd {
    margin: 0 0 20px 0;
    padding-left: 30px;
    color: #555;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

/* =========================================
   はじめての方へ (Startup Page)
   ========================================= */
/* お悩みリスト */
.worry-section { background-color: var(--bg-light); text-align: center; }
.worry-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}
.worry-item {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 50%;
    width: 200px; height: 200px;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.worry-item i { font-size: 2rem; color: #999; margin-bottom: 10px; }
.worry-item p { font-weight: bold; color: #555; margin: 0; line-height: 1.4; }

/* サポートカード */
.support-card {
    display: flex;
    align-items: center;
    background-color: var(--bg-white);
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}
.support-img { width: 300px; height: 250px; object-fit: cover; }
.support-content { padding: 30px; flex: 1; }
.support-content h3 { color: var(--primary-color); margin-top: 0; font-size: 1.4rem; }
.check-point { color: var(--accent-color); font-weight: bold; margin-bottom: 10px; display: block; }

/* 費用ボックス */
.cost-section { background-color: #fcfcfc; }
.cost-box {
    border: 2px dashed #ddd;
    padding: 30px;
    background: var(--bg-white);
    border-radius: 8px;
}
.cost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cost-group h4 {
    background-color: #666;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    margin-top: 0; text-align: center;
}
.cost-group.running h4 { background-color: var(--primary-color); }
.cost-list li {
    margin-bottom: 10px; padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

/* =========================================
   紡績の街・綾部 (Ayabe Story Page)
   ========================================= */

/* --- このページ全体のベースフォント設定 --- */
body.page-template-page-ayabe {
    background-color: #fdfcf8; /* 和紙色 */
    font-family: 'Shippori Mincho', serif !important; /* 明朝体を強制 */
    color: #464646; /* 墨色 */
    line-height: 2.2; /* ゆったりした行間 */
    overflow-x: hidden; /* 横スクロール防止 */
}

/* ヒーローエリア (PC) */
.story-hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #ffffff 0%, #f4f4f0 100%);
    overflow: hidden;
    margin-top: -80px; /* ヘッダーの高さ分相殺 */
    padding-top: 80px;
}
.mist-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/concrete-wall.png');
    opacity: 0.6;
    z-index: 0;
}
.hero-img-ayabe {
    position: absolute;
    right: 0; top: 0; width: 60%; height: 100%;
    object-fit: cover;
    opacity: 0.8;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    z-index: 1;
}
.hero-content-ayabe {
    position: relative; z-index: 2; width: 100%; max-width: 1200px;
    padding: 0 20px; height: 100%; display: flex; align-items: center;
}

/* --- タイトルフォント (PC) --- */
.vertical-title {
    writing-mode: vertical-rl;
    font-family: 'Shippori Mincho', serif !important;
    font-size: 2.2rem;
    letter-spacing: 0.2em;
    line-height: 2.5;
    height: auto;
    margin-right: auto;
    border-right: 1px solid #8a9c8a;
    padding-right: 40px;
    margin-left: 5%;
    animation: fadeIn 2s ease;
}
.vertical-title small {
    font-family: 'Shippori Mincho', serif !important;
    font-size: 1rem;
    display: block;
    margin-right: 20px;
    color: #8a9c8a; /* 抹茶色 */
    letter-spacing: 0.1em;
}

/* コンテンツエリア */
.story-section { padding: 120px 0; position: relative; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 30px; }

.section-lead {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 60px;
    font-family: 'Shippori Mincho', serif !important;
}

/* ストーリーブロック (PC) */
.story-block {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
}
.story-block.reverse { flex-direction: row-reverse; }

.story-img-box { flex: 1; position: relative; }
.story-img-box img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    filter: sepia(10%) contrast(95%);
    transition: transform 0.5s ease;
}
.story-img-box:hover img { transform: scale(1.02); }

/* --- キャプションフォント (PC) --- */
.img-caption {
    font-family: 'Zen Kurenaido', sans-serif !important; /* 手書き風フォントを強制 */
    font-size: 1.1rem;
    color: #666;
    position: absolute;
    bottom: -35px;
    right: 0;
    white-space: nowrap;
}
.story-block.reverse .img-caption { right: auto; left: 0; }

.story-text-box { flex: 1; }

.story-heading {
    font-size: 1.8rem;
    color: #8a9c8a;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    font-family: 'Shippori Mincho', serif !important;
}
.story-heading::after {
    content: ''; display: block; width: 100%; height: 1px;
    background-color: #8a9c8a; margin-top: 10px; opacity: 0.5;
}

.story-p { font-size: 1.05rem; text-align: justify; }
.highlight-text { background: linear-gradient(transparent 60%, #e6eeda 60%); font-weight: 600; }

/* ワイド画像 (PC) */
.story-wide-img {
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    height: 400px;
    object-fit: cover;
    margin-bottom: 80px;
    display: block;
    filter: sepia(10%) contrast(95%);
}
.wide-caption-wrap {
    text-align: center;
    margin-top: -60px;
    margin-bottom: 100px;
    position: relative;
}

/* エピローグ */
.epilogue { background-color: #f4f4f0; padding: 100px 0; text-align: center; }
.epilogue-title { font-size: 1.6rem; margin-bottom: 40px; color: #464646; }
.epilogue p { max-width: 600px; margin: 0 auto 40px; }

.btn-soft {
    display: inline-block;
    border: 1px solid #8a9c8a;
    color: #8a9c8a;
    padding: 15px 50px;
    border-radius: 50px;
    font-family: 'Shippori Mincho', serif !important;
    transition: 0.3s;
    background: white;
}
.btn-soft:hover { background-color: #8a9c8a; color: white; }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 1s, transform 1s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   レスポンシブ (スマホ対応・修正)
   ========================================= */

/* --- 1. スマホ用ナビゲーション (ハンバーガーメニュー) --- */
.mobile-menu-btn {
    display: none; /* PCでは非表示 */
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 2000;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    left: 7px;
    transition: 0.3s;
}

.mobile-menu-btn span:nth-child(1) { top: 12px; }
.mobile-menu-btn span:nth-child(2) { top: 19px; }
.mobile-menu-btn span:nth-child(3) { top: 26px; }

/* 開いた時のバツ印アニメーション */
.mobile-menu-btn.active span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ドロワーメニュー本体 */
.mobile-drawer {
    position: fixed;
    top: 80px; /* ヘッダーの高さ */
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1900;
    transform: translateX(100%); /* 最初は右に隠す */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}
.mobile-drawer.active { transform: translateX(0); /* 出現 */ }

.mobile-drawer-inner { padding: 40px 20px; text-align: center; }

.mobile-nav-list { display: block; margin: 0; padding: 0; }
.mobile-nav-list li {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.mobile-nav-list a {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

/* --- スマホ表示時の共通調整 (768px以下) --- */
@media (max-width: 768px) {
    
    /* --- ナビゲーション --- */
    #pc-nav, .header-cta { display: none; } /* PCメニューを消す */
    .mobile-menu-btn { display: block; }    /* ハンバーガーを表示 */
    .nav-menu { display: none; }

    /* --- トップページ調整 --- */
    .hero h1 { font-size: 2rem; }
    .split-container { grid-template-columns: 1fr; }
    .specs-layout { flex-direction: column; }
    .cta-grid { flex-direction: column; align-items: center; }

    /* --- フッターレイアウト変更 --- */
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px 10px;
        text-align: left;
    }
    .footer-content > div:nth-child(1) {
        grid-column: 1 / -1;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 20px;
        margin-bottom: -20px;
    }
    .footer-nav-title { font-size: 1rem; margin-bottom: 15px; }
    .footer-links li { font-size: 0.85rem; }

    /* --- ボタン類をセンター寄せ --- */
    .specs-info .section-jp-title { text-align: center !important; }
    .specs-info p { text-align: justify; }
    .target-card { text-align: center; align-items: center; }
    .btn, div[style*="margin-top"] { text-align: center; }
    .highlight-content { align-items: center; text-align: center; }
    .badge { align-self: center; }
    button[type="submit"] { width: 100%; display: block; margin: 0 auto; }

    /* --- 下層ページ調整 --- */
    .product-item, .product-item:nth-child(even) { flex-direction: column; }
    .flow-item { flex-direction: column; }
    .flow-image-box { width: 100%; height: 200px; }
    .flow-content { width: 100%; }
    .values-grid { grid-template-columns: 1fr; gap: 30px; }
    .message-container { flex-direction: column; }
    .message-img { width: 100%; }
    .profile-table th, .profile-table td { display: block; width: 100%; }
    .profile-table th { background: none; padding-bottom: 5px; color: #888; }
    .profile-table td { padding-top: 0; border-bottom: none; padding-bottom: 20px; }
    .profile-table tr { border-bottom: 1px solid #ddd; display: block; padding-top: 15px; }
    
    .highlight-grid { flex-direction: column-reverse; }
    .highlight-img { height: 250px; min-height: auto; }
    .equipment-table th { margin-top: 10px; }
    .capacity-box { flex-direction: column; text-align: center; gap: 20px; }
    .support-card { flex-direction: column; }
    .support-img { width: 100%; height: 200px; }
    .cost-grid { grid-template-columns: 1fr; gap: 20px; }

    /* --- 綾部ページ (スマホレイアウト修正) --- */
    .story-hero {
        height: auto;
        min-height: auto;
        display: block; /* Flex解除 */
        padding: 100px 0 50px;
        margin-top: 0;
    }
    .hero-img-ayabe {
        position: relative; /* 絶対配置解除 */
        width: 100%;
        height: 250px;
        mask-image: none;
        -webkit-mask-image: none;
        border-radius: 8px;
        margin-bottom: 20px;
        right: auto; top: auto;
    }
    .hero-content-ayabe {
        display: block;
        padding: 0 20px;
        text-align: center;
    }
    .vertical-title { 
        writing-mode: horizontal-tb; /* 横書きに変更 */
        height: auto;
        border-right: none; 
        border-bottom: 1px solid #8a9c8a;
        padding: 0 0 20px 0;
        margin: 0;
        font-size: 1.6rem;
        width: 100%;
        text-align: center;
    }
    .vertical-title small {
        display: block;
        margin: 0 0 10px 0;
    }
    
    /* ストーリーブロック */
    .story-block, .story-block.reverse {
        flex-direction: column;
        display: block; /* Flex解除 */
        gap: 30px;
        margin-bottom: 80px;
    }
    .story-img-box { margin-bottom: 20px; }
    
    /* ワイド画像 */
    .story-wide-img {
        width: 100%; /* コンテナ幅に合わせる */
        height: auto;
        margin: 0 0 20px 0; /* マージンリセット */
        border-radius: 4px;
    }
    
    /* キャプション */
    .img-caption {
        position: relative;
        bottom: auto; right: auto; left: auto;
        text-align: right;
        display: block;
        margin-top: 5px;
        font-size: 0.85rem;
    }
    
    .section-lead { font-size: 1rem; margin-bottom: 40px; }
    .container-narrow { padding: 0 20px; }
}