/* style.css - 陸羽製茶所 共有スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #ddd;
    font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans JP", sans-serif;
    line-height: 1.7;
}

/* ----- ヘッダー (全ページ共通) ----- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 30px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    z-index: 999;
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 48px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 6px;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #00d084;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: #00d084;
}

.menu-toggle {
    display: none;
    font-size: 32px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 700px) {
    .header {
        padding: 14px 20px;
        width: 95%;
    }
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.96);
        backdrop-filter: blur(12px);
        padding: 28px 24px;
        gap: 24px;
        z-index: 98;
        border-radius: 0 0 20px 20px;
    }
    .nav.show {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .nav a {
        white-space: normal;
        font-size: 16px;
    }
}

/* ----- メインビジュアル (共通) ----- */
.mv {
    margin-top: 88px;
    width: 100%;
    height: 460px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 6%;
    background-size: cover;
    background-position: center;
}
.mv::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}
.mv-inner {
    position: relative;
    z-index: 2;
}
.mv-ja {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: #fff;
}
.mv-en {
    font-size: 18px;
    letter-spacing: 4px;
    opacity: 0.9;
    color: #eee;
}
@media (max-width: 700px) {
    .mv {
        height: 320px;
        margin-top: 76px;
    }
    .mv-ja { font-size: 28px; }
    .mv-en { font-size: 14px; }
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 3px;
    margin-bottom: 16px;
    color: #00d084;
}

/* ボタン */
.btn-primary {
    background: #00d084;
    color: #000;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.3s;
    display: inline-block;
    font-size: 16px;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: #00e094;
    transform: translateY(-2px);
}
.btn-outline {
    border: 1px solid #00d084;
    color: #00d084;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    background: transparent;
    display: inline-block;
    font-size: 16px;
}
.btn-outline:hover {
    background: #00d084;
    color: #000;
}

/* ----- フッター (共通) ----- */
.footer {
    background: #111;
    padding: 50px 24px 30px;
    color: #ccc;
    font-size: 14px;
    border-top: 1px solid #2a2a2a;
    margin-top: 40px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}
.footer-col {
    flex: 1;
    min-width: 200px;
}
.footer-col h4 {
    color: #00d084;
    margin-bottom: 16px;
    font-size: 17px;
    font-weight: 600;
}
.footer-col p, .footer-col a {
    color: #ccc;
    line-height: 1.9;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}
.footer-col a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #00d084;
    transition: width 0.3s ease;
}
.footer-col a:hover::after {
    width: 100%;
}
.footer-col a:hover {
    color: #00d084;
}
.copyright {
    text-align: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #2a2a2a;
    color: #777;
    font-size: 12px;
}
.to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    background: #00d084;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    z-index: 990;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.to-top:hover {
    background: #fff;
    transform: translateY(-4px);
}

/* 画像ポップアップ */
.img-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10000;
    cursor: pointer;
}
.img-popup.show {
    display: flex;
}
.img-popup img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 24px;
    border: 2px solid #00d084;
    background: #080808;
}

/* ============================================
   index.html 専用スタイル
   ============================================ */
.hero-wrapper {
    margin-top: 88px;
    position: relative;
    width: 100%;
}
.slider {
    width: 100%;
    height: 520px;
    position: relative;
    overflow: hidden;
}
.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    text-decoration: none;
}
.slide.active { opacity: 1; }
.slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}
.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}
.slide-content h1 {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}
.slide-content p {
    font-size: 18px;
    color: rgba(255,255,240,0.95);
    max-width: 700px;
    margin: 0 auto;
}
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 20;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.arrow:hover { background: #00d084; color: #000; }
.prev { left: 20px; }
.next { right: 20px; }
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 20;
}
.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}
.dot.active { background: #00d084; width: 28px; border-radius: 8px; }
@media (max-width: 700px) {
    .slider { height: 420px; }
    .slide-content h1 { font-size: 28px; }
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
    margin-top: 20px;
}
.strength-item {
    background: #111;
    padding: 32px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #2a2a2a;
}
.strength-item h3 { color: #00d084; margin-bottom: 12px; }
.oem-section {
    background: #0a0a0a;
    border-radius: 32px;
    padding: 50px 40px;
    margin: 30px 0;
}
.oem-flex {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}
.service-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
}
.flow-step {
    background: #1a1a1a;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 13px;
    color: #00d084;
    border-left: 2px solid #00d084;
}
.factory-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: #0d0d0d;
    border-radius: 28px;
    padding: 40px;
    margin: 50px 0;
}
.stat-number { font-size: 36px; font-weight: bold; color: #00d084; }
.cert-badge {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.cert-badge span {
    background: #1e1e1e;
    padding: 8px 20px;
    border-radius: 60px;
    font-size: 13px;
    border-left: 3px solid #00d084;
}
.contact-cta {
    text-align: center;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    padding: 55px 30px;
    border-radius: 32px;
}

/* ============================================
   concept.html 専用スタイル
   ============================================ */
.concept-lead {
    text-align: center;
    font-size: 22px;
    margin-bottom: 60px;
    color: #e0e0e0;
}
.concept-block {
    display: flex;
    gap: 50px;
    margin-bottom: 70px;
    align-items: center;
    flex-wrap: wrap;
}
.concept-block.reverse { flex-direction: row-reverse; }
.concept-text { flex: 1; }
.concept-text h3 { font-size: 28px; color: #00d084; margin-bottom: 20px; }
.concept-img { flex: 1; }
.concept-img img { width: 100%; border-radius: 24px; }
.concept-message {
    background: rgba(0,212,132,0.05);
    padding: 50px;
    border-radius: 40px;
    text-align: center;
    font-size: 18px;
    margin-top: 40px;
}
.sign { margin-top: 30px; color: #00d084; }

/* ============================================
   field.html 専用スタイル
   ============================================ */
.field-grid { display: flex; flex-direction: column; gap: 64px; margin-bottom: 80px; }
.field-card {
    display: flex;
    flex-wrap: wrap;
    background: #0a0a0a;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid #262626;
}
.field-card.reverse { flex-direction: row-reverse; }
.field-img { flex: 1.2; min-width: 280px; }
.field-img img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.field-info { flex: 1; padding: 40px 44px; }
.field-year { font-size: 22px; font-weight: 600; color: #00d084; border-left: 4px solid #00d084; padding-left: 18px; }
.field-name { font-size: 30px; font-weight: 600; margin-bottom: 18px; }
.gallery-section { margin-top: 60px; text-align: center; }
.gallery-title { font-size: 28px; margin-bottom: 42px; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 32px;
}
.gallery-item {
    border-radius: 28px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #2a2a2a;
}
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover { border-color: #00d084; }

/* ============================================
   collection.html 専用スタイル
   ============================================ */
.intro-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: #0c0c0c;
    border-radius: 32px;
    padding: 36px 40px;
    margin-bottom: 70px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
}
.product-card {
    background: #0c0c0c;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #2a2a2a;
}
.product-card:hover { border-color: #00d084; transform: translateY(-5px); }
.product-img { width: 100%; aspect-ratio: 1/1; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}
.page-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
}
.page-btn.active { background: #00d084; color: #000; }

/* ============================================
   contact.html 専用スタイル（间距完全统一 28px）
   ============================================ */

/* 必須マークの赤いバッジ */
.required-badge {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 30px;
    margin-left: 10px;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* 2カラムレイアウト（お名前 + 電話番号） */
.form-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.form-row .form-group.half {
    flex: 1;
    min-width: 160px;
}

/* タイトルとサブタイトルを中央揃え */
.contact-form-title {
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #00d084;
    margin-bottom: 12px;
}
.contact-form-sub {
    text-align: center;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 32px;
}

/* 内容のテキストエリア - 2倍の高さ */
.contact-form .form-group.full textarea {
    min-height: 180px;
    resize: vertical;
    font-family: inherit;
}

/* フォーム全体のデザイン */
.contact-form {
    max-width: 780px;
    margin: 0 auto;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 32px;
    padding: 40px 48px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

/* ★ すべてのフォームグループの下部マージンを統一 28px ★ */
.contact-form .form-group {
    margin-bottom: 28px;
}
.contact-form .form-group:last-of-type {
    margin-bottom: 28px;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #e0e0e0;
}
.contact-form .form-group input,
.contact-form .form-group textarea,
.contact-form .form-group select {
    width: 100%;
    padding: 14px 18px;
    background: #141414;
    border: 1px solid #333;
    border-radius: 16px;
    color: #fff;
    font-size: 15px;
    transition: all 0.25s ease;
}
.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus,
.contact-form .form-group select:focus {
    outline: none;
    border-color: #00d084;
    box-shadow: 0 0 0 3px rgba(0,212,132,0.15);
    background: #1a1a1a;
}

/* 送信ボタン */
.contact-form .btn-submit {
    background: #00d084;
    color: #000;
    font-weight: bold;
    font-size: 18px;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    margin-top: 16px;
}
.contact-form .btn-submit:hover {
    background: #00e094;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,212,132,0.3);
}

/* フォームメッセージ */
.contact-form .form-message {
    margin-top: 24px;
    padding: 14px 20px;
    border-radius: 40px;
    text-align: center;
    font-size: 14px;
    display: none;
}
.contact-form .form-message.success {
    background: rgba(0,212,132,0.15);
    border: 1px solid #00d084;
    color: #b0ffc0;
    display: block;
}
.contact-form .form-message.error {
    background: rgba(231,76,60,0.15);
    border: 1px solid #e74c3c;
    color: #ffb0b0;
    display: block;
}

/* お問い合わせ情報ボックス */
.contact-info {
    background: rgba(255,255,255,0.03);
    border-left: 4px solid #00d084;
    padding: 24px 32px;
    border-radius: 20px;
    margin-bottom: 48px;
    font-size: 14px;
    line-height: 1.7;
}
.contact-info .note {
    font-size: 12px;
    color: #888;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #333;
}

/* ============================================
   レスポンシブ対応（全体）
   ============================================ */
@media (max-width: 860px) {
    .strength-grid { grid-template-columns: repeat(2,1fr); }
    .field-card, .field-card.reverse { flex-direction: column; }
}

@media (max-width: 700px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .contact-form {
        padding: 28px 24px;
    }
    .contact-form .form-group.full textarea {
        min-height: 150px;
    }
    .contact-form-title {
        font-size: 24px;
    }
}