/*
Theme Name: Contrail Original LP
Theme URI: https://example.com/contrail-original-lp
Author: OpenAI
Author URI: https://openai.com/
Description: Contrail trailer house landing page original theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: contrail-original-lp
*/

/* --- Base Reset & Variables --- */
:root {
    --color-primary: #365c43;
    --color-accent: #caa86b;
    --color-text: #333333;
    --color-bg: #fdfcf9;
    --color-white: #ffffff;
    --color-gray-light: #f4f4f4;
    --color-work: #5a6268;
    --font-base: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-base); color: var(--color-text); background-color: var(--color-bg); line-height: 1.8; letter-spacing: 0.05em; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Common Utility Classes --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title .en { display: block; font-family: var(--font-serif); color: var(--color-primary); font-size: 1.1rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.15em; font-weight: bold; }
.section-title .ja { font-size: 2.2rem; font-weight: 700; font-family: var(--font-serif); letter-spacing: 0.05em; color: #333; }
.section-subtitle { margin-top: 15px; font-size: 0.95rem; color: #666; display: block; }
.btn { display: inline-block; padding: 16px 40px; background-color: var(--color-primary); color: var(--color-white); border-radius: 50px; font-weight: bold; text-align: center; min-width: 240px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); cursor: pointer; border: none; transition: transform 0.3s, box-shadow 0.3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); opacity: 1; }

/* --- Header --- */
header { position: fixed; top: 0; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.95); padding: 15px 0; z-index: 1000; box-shadow: 0 1px 10px rgba(0,0,0,0.03); backdrop-filter: blur(10px); }
header .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: nowrap !important; }
.logo { display: flex; flex-direction: column; white-space: nowrap !important; flex-shrink: 0; line-height: 1.2; font-family: var(--font-serif); font-size: 1.6rem; font-weight: bold; color: var(--color-primary); }
.logo::after { content: '自由な暮らしを叶えるトレーラーハウス'; display: block; white-space: nowrap !important; margin-top: 5px; font-size: 10px !important; letter-spacing: 0; font-family: var(--font-base); font-weight: normal; color: #666; }
nav { flex-grow: 1; }
.nav-menu { display: flex; justify-content: center; gap: min(2vw, 25px); list-style: none; margin: 0; padding: 0; }
.nav-menu li a { white-space: nowrap !important; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--color-text); transition: color 0.3s; }
.header-actions { display: flex; gap: 12px; flex-shrink: 0; }
.header-btn { white-space: nowrap !important; padding: 10px 18px !important; font-size: 13px !important; border-radius: 6px; text-decoration: none; display: flex; align-items: center; justify-content: center; font-weight: bold; color: white; }

@media (max-width: 991px) { .nav-menu { display: none; } }

/* --- High-end Animations --- */
@keyframes heroBgZoom {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.anim-fade-up { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1); }
.anim-fade-left { opacity: 0; transform: translateX(-40px); transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1); }
.anim-fade-right { opacity: 0; transform: translateX(40px); transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1); }
.anim-scale { opacity: 0; transform: scale(0.95); transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1); }
.is-visible { opacity: 1; transform: translate(0) scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* --- Hero Section --- */
.hero { height: 90vh; min-height: 650px; background-color: #fdfcf9; position: relative; display: flex; align-items: center; margin-top: 70px; overflow: hidden; }
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://contrail-wood.jp/wp-content/uploads/2026/04/TOP.png');
    background-size: cover;
    background-position: center right;
    animation: heroBgZoom 8s ease-out forwards;
    z-index: 1;
}
.hero-content { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; text-align: left; }
.hero-copy-main { font-family: var(--font-serif); font-size: clamp(2.5rem, 4vw, 3.8rem); line-height: 1.4; margin-bottom: 15px; color: #333; font-weight: bold; }
.hero-copy-sub { font-size: 1.1rem; margin-bottom: 35px; font-weight: bold; color: #333; letter-spacing: 0.1em; }

/* --- Concept Section --- */
.concept { background-color: var(--color-white); overflow: hidden; }
.concept-flex-container { display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; }
.concept-text-box { flex: 1; min-width: 320px; padding: 100px 40px 100px max(28px, calc((100vw - 1100px) / 2)); display: flex; align-items: center; }
.concept-text-inner { display: flex; flex-wrap: wrap; gap: 30px; width: 100%; justify-content: flex-start; }
.concept-title-box { flex: 0 0 auto; }
.concept-desc-box { flex: 1; min-width: 280px; }
.concept-img-group { flex: 0 0 55%; min-width: 320px; display: flex; gap: 10px; background-color: #fff;}
.concept-img-main { flex: 2; }
.concept-img-main img { width: 100%; height: 100%; object-fit: cover; }
.concept-img-sub { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.concept-img-sub img { width: 100%; height: calc(50% - 5px); object-fit: cover; }

@media (min-width: 992px) { .exact-break-text { white-space: nowrap !important; } }
@media (max-width: 1100px) {
    .concept-flex-container { flex-direction: column; }
    .concept-text-box { padding: 80px 20px; }
    .concept-img-group { flex: 100%; height: 500px; }
}

/* --- Strengths Section --- */
.strength-grid { display: flex; flex-wrap: wrap; border-top: 1px solid #eaeaea; border-bottom: 1px solid #eaeaea; }
@media(min-width: 992px) { .strength-grid { flex-wrap: nowrap; } .strength-card { width: calc(100% / 6); border-right: 1px solid #eaeaea; } .strength-card:last-child { border-right: none; } }
.strength-card { padding: 40px 15px; text-align: center; }
.strength-icon { color: var(--color-primary); margin-bottom: 20px; display: block; transition: transform 0.3s; }
.strength-card:hover .strength-icon { transform: scale(1.1); }
.strength-title { font-size: 1rem; font-weight: bold; margin-bottom: 10px; }
.strength-desc { font-size: 0.85rem; color: #666; text-align: left; }

/* --- Use Case Section --- */
.usecase-wrapper { position: relative; max-width: 1300px; margin: 0 auto; display: flex; align-items: center; justify-content: center; padding: 0 50px;}
.usecase-scroller { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; scrollbar-width: none; flex-grow: 1; scroll-snap-type: x mandatory;}
.usecase-scroller::-webkit-scrollbar { display: none; }
.usecase-item { flex: 0 0 calc(25% - 15px); min-width: 260px; background: #fff; border-radius: 8px; border: 1px solid #eaeaea; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.03); scroll-snap-align: start; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.usecase-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.usecase-img { height: 180px; background-color: #eee; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;}
.usecase-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.usecase-item:hover .usecase-img img { transform: scale(1.05); }
.usecase-header { padding: 20px 10px 5px; font-weight: bold; text-align: center; color: var(--color-primary); font-size: 1.05rem; flex-shrink: 0;}
.usecase-content { padding: 0 20px 25px; text-align: center; font-size: 0.9rem; color: #666; line-height: 1.6; display: flex; flex-direction: column; align-items: center; flex-grow: 1; justify-content: space-between; }
.usecase-content p { margin-bottom: 15px; }
.usecase-btn { display: inline-block; padding: 10px 24px; font-size: 0.85rem; font-weight: bold; color: var(--color-primary); border: 1px solid var(--color-primary); border-radius: 4px; text-decoration: none; transition: all 0.3s ease; width: 100%; max-width: 200px; }
.usecase-btn:hover { background-color: var(--color-primary); color: #fff; }

.usecase-nav-btn { background-color: #fff; border: 1px solid #ddd; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.08); color: var(--color-primary); position: absolute; top: 40%; transform: translateY(-50%); z-index: 10; font-size: 1.2rem; transition: all 0.3s; }
.usecase-nav-btn:hover { background-color: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.usecase-nav-btn.prev { left: 0; }
.usecase-nav-btn.next { right: 0; }

.usecase-indicators { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.indicator { width: 10px; height: 10px; border-radius: 50%; background-color: #ddd; cursor: pointer; transition: background-color 0.3s; }
.indicator.active { background-color: var(--color-primary); }

@media(max-width: 1100px) { .usecase-item { flex: 0 0 calc(33.333% - 14px); } }
@media(max-width: 767px) { .usecase-wrapper { padding: 0 20px; } .usecase-nav-btn { display: none; } .usecase-item { flex: 0 0 85%; } }

/* --- Plans Section --- */
.plans { background-color: #fbfaf6; padding: 100px 0; }
.plans-container { max-width: 1000px; margin: 0 auto; }
.tab-nav { display: flex; border-radius: 8px 8px 0 0; overflow: hidden; border: 1px solid #e0e0e0; border-bottom: none; background: #fff; }

.tab-item { flex: 1; padding: 18px 10px; text-align: center; cursor: pointer; color: #333; border-right: 1px solid #e0e0e0; transition: background-color 0.3s, color 0.3s; }
.tab-item:last-child { border-right: none; }
.tab-item:not(.active):hover { background-color: #f9f9f9; }

.tab-item.active { color: #fff; }
.tab-item[data-target="plan-base"].active { background-color: var(--color-primary); }
.tab-item[data-target="plan-living"].active { background-color: var(--color-accent); }
.tab-item[data-target="plan-work"].active { background-color: var(--color-work); }

.tab-title { display: block; font-weight: bold; font-size: 1.1rem; }
.tab-sub { display: block; font-size: 0.8rem; margin-top: 5px; color: #666; transition: color 0.3s; }
.tab-item.active .tab-sub { color: rgba(255, 255, 255, 0.8); }

.tab-content { border: 1px solid #e0e0e0; border-radius: 0 0 8px 8px; background: #fff; padding: 40px; }
.tab-panel { display: none; animation: fadeIn 0.5s ease; }
.tab-panel.active { display: block; }

.plan-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 767px) { .plan-cards-grid { grid-template-columns: 1fr; } .tab-content { padding: 20px; } }

.plan-card-new { display: flex; flex-direction: column; }

.plan-tag { display: inline-block; color: #fff; font-size: 0.75rem; padding: 4px 12px; border-radius: 4px; font-weight: bold; margin-bottom: 15px; align-self: flex-start; }
.tag-base { background: var(--color-primary); }
.tag-living { background: var(--color-accent); }
.tag-work { background: var(--color-work); }
.tag-transparent { background: transparent; color: transparent; user-select: none; }

.plan-name { font-size: 1.4rem; font-family: var(--font-serif); margin-bottom: 5px; color: #333; font-weight: bold; }
.plan-subname { font-size: 0.8rem; color: #888; margin-bottom: 20px; }

.plan-body { display: flex; gap: 15px; margin-bottom: 20px; align-items: stretch; }
@media (max-width: 991px) { .plan-body { flex-direction: column; } }
.plan-img-new { flex: 1.2; border-radius: 4px; overflow: hidden; }
.plan-img-new img { width: 100%; height: 100%; object-fit: cover; }
.plan-specs-new { flex: 1; display: flex; flex-direction: column; gap: 10px; }

.spec-item { border: 1px solid #e0e0e0; border-radius: 4px; padding: 10px 15px; display: flex; align-items: center; gap: 15px; background: #fff; flex-grow: 1;}
.spec-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid #ccc; border-radius: 50%; font-size: 1rem; color: #666; flex-shrink: 0; }
.spec-text { display: flex; flex-direction: column; }
.spec-label { font-size: 0.7rem; color: #888; margin-bottom: 2px;}
.spec-value { font-size: 1.1rem; font-weight: bold; color: #333; line-height: 1; }
.spec-tax { font-size: 0.65rem; color: #888; margin-top: 4px;}

.plan-features { background: #f8f9f7; padding: 20px; border-radius: 4px; margin-bottom: 20px; flex-grow: 1; }
.plan-features ul { list-style: none; padding: 0; margin: 0; }
.plan-features li { font-size: 0.85rem; color: #555; position: relative; padding-left: 20px; margin-bottom: 10px; line-height: 1.5; }
.plan-features li::before { content: '✔'; position: absolute; left: 0; top: 0; color: var(--color-primary); font-size: 0.9rem; }
.plan-features li:last-child { margin-bottom: 0; }

.plan-btn { display: block; text-align: center; padding: 16px; border-radius: 4px; font-weight: bold; font-size: 0.95rem; text-decoration: none; transition: 0.3s; }
.btn-base { background: var(--color-primary); color: #fff; border: 1px solid var(--color-primary); }
.btn-base:hover { background: #2a4934; color: #fff; }
.btn-living { background: var(--color-accent); color: #fff; border: 1px solid var(--color-accent); }
.btn-living:hover { background: #b5955a; color: #fff; }
.btn-work { background: var(--color-work); color: #fff; border: 1px solid var(--color-work); }
.btn-work:hover { background: #4a5156; color: #fff; }

.btn-white { background: #fff; color: #333; border: 1px solid #ccc; }
.btn-white:hover { background: #f0f0f0; color: #333; }

.plans-merit { background: #f8f9f7; border-radius: 12px; padding: 30px; display: flex; align-items: center; gap: 30px; margin-top: 30px; border: 1px solid #eaeaea; }
.merit-left { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.merit-icon { color: var(--color-primary); }
.merit-left-text { font-weight: bold; font-size: 1.1rem; line-height: 1.4; color: #333;}
.merit-left-text span { font-size: 0.85rem; display: block; font-weight: normal; margin-top: 4px;}
.merit-right { display: flex; flex-wrap: wrap; gap: 20px; flex-grow: 1; justify-content: space-between; }
.merit-item { display: flex; align-items: flex-start; gap: 8px; flex: 1; min-width: 140px;}
.merit-item-icon { color: var(--color-primary); display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 50%; width: 18px; height: 18px; margin-top: 2px;}
.merit-item-text { font-size: 0.85rem; font-weight: bold; line-height: 1.4; color: #333;}
.merit-item-sub { display: block; font-size: 0.7rem; color: #666; font-weight: normal; margin-top: 4px; }

@media (max-width: 991px) {
    .plans-merit { flex-direction: column; align-items: flex-start; gap: 20px;}
    .merit-right { flex-direction: column; gap: 15px; width: 100%;}
}

/* --- FAQ Section --- */
.faq { background-color: #fbfaf6; padding: 100px 0; }
.faq-container { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 15px; }
.faq-item { background: #fff; border: 1px solid #eee; padding: 20px; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: box-shadow 0.3s; }
.faq-item:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.03); }

/* --- Area & Support Section --- */
.area-support { background-color: #fbfaf6; padding: 0 0 100px 0; overflow: hidden; }
.area-support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.as-box { display: flex; background: #fff; border-radius: 12px; border: 1px solid #e0e0e0; overflow: hidden; }
.as-text { flex: 1; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.as-img { flex: 1; }
.as-img img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: 2000 / 1414; }

/* --- CTA Section --- */
.cta-section {
    background-image: url('https://contrail-wood.jp/wp-content/uploads/2026/05/top-obi.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 60px 20px;
    color: #fff;
    position: relative;
}
.cta-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.cta-text-wrap {
    flex: 1;
    min-width: 300px;
}
.cta-heading {
    font-size: 1.8rem;
    font-family: var(--font-serif);
    margin-bottom: 10px;
}
.cta-subtext {
    font-size: 0.95rem;
    opacity: 0.9;
}
.cta-buttons {
    display: flex;
    gap: 15px;
}
.cta-btn {
    padding: 15px 40px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    text-align: center;
    min-width: 200px;
    display: inline-block;
    transition: transform 0.3s, opacity 0.3s;
}
.cta-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.cta-btn-doc {
    background-color: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
}
.cta-btn-contact {
    background-color: #fff;
    color: #333;
    border: 1px solid #fff;
}

@media(max-width: 767px) {
    .cta-inner { flex-direction: column; text-align: center; justify-content: center; }
    .cta-buttons { flex-direction: column; width: 100%; align-items: center; }
    .cta-btn { width: 100%; max-width: 300px; }
}