/* =========================================
   1. Base Variables & Reset
   ========================================= */
:root {
    --primary: #0f172a; /* Deep Navy: 信頼・知性 */
    --accent: #d4af37;  /* Gold: 品質・成果 */
    --accent-hover: #b8962e;
    --text: #333333;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --white: #ffffff;
    --radius: 12px;
    --max-width: 1200px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s; }
img { max-width: 100%; height: auto; vertical-align: bottom; display: block;}

/* Utilities */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }
.section { padding: 100px 0; position: relative; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--primary); color: var(--white); }
.text-center { text-align: center; }
.text-navy { color: var(--primary); }
.font-bold { font-weight: 700; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* Typography */
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 1.5rem 0; font-weight: 700; }
h1 { 
    font-size: clamp(28px, 5vw, 48px); 
    /* ▼ 変更箇所：文字の影を濃く・大きくしました ▼ */
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}
h2 { font-size: clamp(24px, 4vw, 36px); position: relative; display: inline-block; }
h2::after {
    content: ''; display: block; width: 60px; height: 4px; 
    background: var(--primary); margin: 20px auto 0;
}
.section.dark h2::after { background: var(--white); }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
p { margin-bottom: 1.5rem; color: var(--text-light); }
.section.dark p { color: #cbd5e1; }
.small { font-size: 0.85rem; color: #888; line-height: 1.6; }

/* =========================================
   2. Components (Buttons, Loaders)
   ========================================= */
/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 18px 50px; border-radius: 50px; font-weight: 700; font-size: 1.1rem;
    min-width: 300px; transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    position: relative; overflow: hidden;
}
.btn-gold {
    background: var(--accent); color: var(--white);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}
.btn-gold:hover {
    background: var(--accent-hover); transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}
.btn-white {
    background: var(--white); color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.btn-white:hover {
    background: #f1f5f9; transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Loading Animation */
.loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--white); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
.spinner {
    width: 40px; height: 40px;
    border: 4px solid #f3f3f3; border-top: 4px solid var(--accent);
    border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* =========================================
   3. Navigation & Logo
   ========================================= */
.navbar {
    position: absolute; top: 0; left: 0; width: 100%; z-index: 100; padding: 20px 0;
}
/* Text Logo Style */
.text-logo {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900; font-size: 1.5rem; color: var(--primary);
    text-decoration: none; letter-spacing: -0.02em;
    display: inline-flex; align-items: center;
}
.logo-accent { color: var(--accent); }
.logo-sub {
    font-size: 0.8rem; color: var(--text-light); margin-left: 5px;
    font-weight: 500; letter-spacing: 0.05em; position: relative; top: 2px;
}
.text-logo:hover { opacity: 0.8; }

/* =========================================
   4. Hero Section
   ========================================= */
.hero {
    position: relative; height: 100vh; min-height: 600px; max-height: 900px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white); background: var(--primary);
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; z-index: 0;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* ▼ 変更箇所：明るい写真に合わせて、濃さを 0.6 → 0.75 に上げました ▼ */
    background: rgba(15, 23, 42, 0.75);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-catch { 
    font-size: 1.2rem; margin-bottom: 20px; font-weight: 700; color: #e2e8f0; 
    letter-spacing: 0.1em; text-transform: uppercase;
}
.text-white-shadow { text-shadow: 0 1px 3px rgba(0,0,0,0.5); color: #fff; }

/* =========================================
   5. LP Sections (Problem, Features, Plan)
   ========================================= */
/* Problem Split Layout */
.split-layout { display: flex; align-items: center; gap: 60px; }
.split-image, .split-content { flex: 1; }
.split-image img { 
    border-radius: var(--radius); box-shadow: var(--shadow-lg); transition: transform 0.3s;
}
.split-image:hover img { transform: scale(1.02); }

.check-list { list-style: none; padding: 0; }
.check-list li { margin-bottom: 18px; padding-left: 35px; position: relative; font-size: 1.1rem; font-weight: 500; }
.check-list li::before {
    content: '✔'; position: absolute; left: 0; top: 2px; 
    color: var(--accent); font-weight: 900; font-size: 1.3rem;
}

/* Base Plan Box */
.base-plan {
    background: var(--white); border: 3px solid var(--primary); border-radius: var(--radius);
    padding: 50px 40px; margin-bottom: 80px; text-align: center;
    max-width: 800px; margin-left: auto; margin-right: auto; box-shadow: var(--shadow-lg);
}
.base-plan-title { 
    background: var(--primary); color: white; display: inline-block; 
    padding: 10px 30px; border-radius: 30px; margin-bottom: 25px; 
    font-size: 1.1rem; letter-spacing: 0.05em; font-weight: 700;
}
.base-price { 
    font-size: 3.5rem; font-weight: 900; color: var(--primary); 
    margin: 15px 0 30px; line-height: 1; 
}
.base-price small { font-size: 1.2rem; font-weight: normal; color: var(--text-light); }

/* Feature Buttons (Clickable) */
.base-features { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 10px; }
.feature-btn {
    background: #f1f5f9; padding: 12px 24px; font-size: 1rem; 
    border-radius: 50px; color: var(--primary); font-weight: 600;
    display: flex; align-items: center; gap: 10px; border: 1px solid transparent;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.feature-btn:hover {
    background: var(--white); border-color: var(--primary);
    transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.icon-check::before { content: '★'; color: var(--accent); }
.icon-info {
    font-style: normal; background: var(--primary); color: white;
    width: 18px; height: 18px; border-radius: 50%;
    display: inline-flex; justify-content: center; align-items: center;
    font-size: 0.7rem; margin-left: 5px;
}
.icon-info::before { content: 'i'; }

.base-notes-area {
    text-align: left; padding: 25px; background: #f8fafc;
    border-radius: 8px; border-left: 5px solid var(--border); font-size: 0.9rem;
}

/* Guidance (Selection Path) */
.guidance-box { display: flex; gap: 30px; margin-bottom: 60px; justify-content: center; }
.guidance-item {
    flex: 1; max-width: 550px; background: var(--white);
    border-radius: var(--radius); border: 1px solid var(--border);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s, box-shadow 0.3s;
}
.guidance-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.guidance-img-wrapper { height: 220px; overflow: hidden; }
.guidance-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.guidance-item:hover .guidance-img { transform: scale(1.05); }
.guidance-body { padding: 30px; }
.guidance-title { 
    font-size: 1.3rem; font-weight: bold; color: var(--primary); 
    margin-bottom: 15px; padding-bottom: 10px; border-bottom: 3px solid var(--primary); display: block;
}

/* Pricing Grid Cards */
.grid-plans {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; align-items: stretch;
}
.card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    display: flex; flex-direction: column; overflow: hidden;
    transition: all 0.3s ease; box-shadow: var(--shadow-sm);
    position: relative;
}
.card:hover { 
    transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--primary);
}
.card-img-wrapper { height: 160px; overflow: hidden; position: relative; }
.card-img-top { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img-top { transform: scale(1.1); }
.card-header { padding: 20px; background: var(--white); text-align: center; border-bottom: 1px solid #f1f5f9; }
.card-header h3 { margin: 0; font-size: 1.2rem; color: var(--primary); }
.card-price { padding: 25px; text-align: center; background: #f8fafc; border-bottom: 1px dashed var(--border); }
.price-label { font-size: 0.8rem; color: #64748b; display: block; margin-bottom: 5px; font-weight: 600; }
.price-val { font-size: 1.6rem; font-weight: 900; color: var(--primary); }
.card-body { padding: 25px; flex-grow: 1; font-size: 0.9rem; }
.card-body ul { padding-left: 18px; margin: 0; list-style: disc; }
.card-body li { margin-bottom: 8px; color: var(--text); }
.recommend-block {
    background: #fffbf0; padding: 15px; border-radius: 6px;
    margin-bottom: 20px; border: 1px dashed var(--accent);
}
.recommend-title {
    font-weight: bold; color: var(--accent); font-size: 0.8rem;
    display: block; margin-bottom: 5px; text-transform: uppercase;
}

/* Q&A Accordion */
details { 
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); 
    padding: 20px; margin-bottom: 15px; box-shadow: var(--shadow-sm); transition: all 0.3s;
}
details[open] { border-color: var(--primary); box-shadow: var(--shadow-md); }
summary { 
    cursor: pointer; font-weight: bold; color: var(--primary); 
    position: relative; padding-right: 40px; list-style: none; font-size: 1.1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { 
    content: '+'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    font-size: 1.5rem; color: #ccc; transition: transform 0.3s;
}
details[open] summary::after { content: '-'; color: var(--primary); transform: translateY(-50%) rotate(180deg); }
.answer { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; color: var(--text-light); }

/* =========================================
   6. Form Page Styles (contact.html)
   ========================================= */
.form-section { padding: 60px 0; background: var(--bg-alt); }
.form-container {
    background: var(--white); padding: 50px; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); max-width: 800px; margin: 0 auto;
    border-top: 5px solid var(--primary);
}
.form-header-note {
    background: #fff1f2; border: 1px solid #e11d48; color: #be123c;
    padding: 20px; border-radius: 6px; margin-bottom: 40px;
    font-weight: bold; line-height: 1.6;
}
.form-group { margin-bottom: 30px; }
.form-label { 
    display: block; margin-bottom: 10px; font-weight: 700; 
    color: var(--primary); font-size: 1.05rem;
}
.small-label {
    display: block; margin-bottom: 5px; font-weight: bold; 
    font-size: 0.9rem; color: #555;
}
.label-required {
    background: #e11d48; color: white; padding: 2px 8px; 
    font-size: 0.75rem; border-radius: 4px; margin-left: 8px; vertical-align: middle;
}
.label-any {
    background: #94a3b8; color: white; padding: 2px 8px; 
    font-size: 0.75rem; border-radius: 4px; margin-left: 8px; vertical-align: middle;
}
.form-control {
    width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 6px;
    font-size: 1rem; font-family: inherit; transition: border-color 0.3s; background: #fdfdfd;
}
.form-control:focus { 
    outline: none; border-color: var(--accent); 
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1); background: #fff; 
}
.btn-submit {
    width: 100%; border: none; cursor: pointer; font-size: 1.3rem; 
    margin-top: 30px; padding: 20px;
}
.radio-group label { margin-right: 20px; cursor: pointer; font-weight: bold; }
.helper-text {
    display: block; font-size: 0.85rem; color: #64748b; margin-top: 5px; font-weight: normal;
}

/* Plan Selection Cards (In Form) */
.plan-selector { display: flex; flex-direction: column; gap: 15px; }
.plan-select-card { display: block; cursor: pointer; position: relative; }
.plan-select-card input[type="radio"] { position: absolute; opacity: 0; }
.plan-select-content {
    border: 2px solid var(--border); border-radius: 8px; padding: 20px;
    transition: all 0.2s; background: #fff;
}
.plan-select-card input[type="radio"]:checked + .plan-select-content {
    border-color: var(--primary); background: #f0f9ff; box-shadow: 0 0 0 1px var(--primary);
}
.plan-name { font-weight: 900; color: var(--primary); font-size: 1.1rem; }
.plan-cost { margin: 5px 0 10px; font-weight: bold; font-size: 1rem; color: #444; }
.plan-cost .cost-val { color: #e11d48; font-size: 1.3rem; }
.plan-specs {
    margin: 0; padding-left: 20px; font-size: 0.9rem; color: #555;
    display: grid; grid-template-columns: 1fr 1fr; gap: 5px;
}

/* Domain Grid */
.domain-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px; margin-top: 10px;
}
.domain-category {
    grid-column: 1 / -1; font-weight: bold; margin-top: 15px; margin-bottom: 5px;
    color: var(--primary); border-bottom: 1px solid #ddd; font-size: 0.9rem;
}
.domain-radio {
    display: flex; align-items: center; gap: 5px; font-size: 0.9rem; cursor: pointer;
    background: white; padding: 8px; border: 1px solid #ddd; border-radius: 4px;
}
.domain-radio:hover { background: #f1f5f9; }
.domain-radio input { transform: scale(1.1); }

/* Contract Terms & Agreement */
.contract-terms {
    background: #fff; border: 1px solid #ccc; padding: 20px; 
    border-radius: 6px; margin-bottom: 20px; font-size: 0.9rem;
}
.contract-terms h4 { margin-top: 0; color: var(--primary); border-bottom: 1px dashed #ccc; padding-bottom: 10px; }
.contract-terms p { margin-bottom: 15px; }
.contract-check {
    margin: 20px 0; padding: 30px; background: #f8fafc; 
    border: 2px solid var(--primary); border-radius: 8px;
}
.contract-check label { 
    display: flex; align-items: flex-start; gap: 15px; 
    cursor: pointer; font-weight: bold; font-size: 1.1rem;
}
.contract-check input { margin-top: 5px; transform: scale(1.5); }

/* =========================================
   7. Footer & Modal
   ========================================= */
footer { background: var(--primary); color: #94a3b8; padding: 60px 0; font-size: 0.9rem; }

/* Modal Styles */
.modal {
    display: none; position: fixed; z-index: 10000; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto; 
    background-color: rgba(0,0,0,0.6); backdrop-filter: blur(4px); animation: fadeIn 0.3s;
}
.modal-content {
    background-color: #fefefe; margin: 10% auto; padding: 40px;
    border: 1px solid #888; width: 90%; max-width: 600px;
    border-radius: var(--radius); position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); animation: slideDown 0.3s;
}
.close-modal {
    color: #aaa; position: absolute; top: 15px; right: 20px;
    font-size: 28px; font-weight: bold; cursor: pointer; transition: color 0.2s;
}
.close-modal:hover { color: var(--primary); }
.modal-title {
    color: var(--primary); margin-top: 0; padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);
}
.modal-body { color: var(--text); font-size: 1rem; line-height: 1.8; }

/* =========================================
   8. Animations & Responsive
   ========================================= */
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
@keyframes fadeInDown { from {opacity: 0; transform: translateY(-20px);} to {opacity: 1; transform: translateY(0);} }
@keyframes slideDown { from {transform: translateY(-50px); opacity: 0;} to {transform: translateY(0); opacity: 1;} }

.fade-in-up {
    opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.fade-in-down { animation: fadeInDown 0.8s ease-out forwards; }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .grid-plans { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .split-layout { flex-direction: column-reverse; }
    .guidance-box { flex-direction: column; }
    .hero { height: auto; padding: 150px 0 100px; }
    .section { padding: 60px 0; }
    .modal-content { margin: 20% auto; padding: 30px 20px; }
}
@media (max-width: 600px) {
    .grid-plans { grid-template-columns: 1fr; }
    h1 { font-size: 2rem; }
    .base-price { font-size: 2.5rem; }
    .plan-specs { grid-template-columns: 1fr; }
}

/* =========================================
   Added Styles for Plan Refinement
   ========================================= */

/* Demo Grid Styles */
.frame-selection {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}
.frame-label {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}
.demo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 8px;
}
.demo-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: white;
    border: 1px solid #cbd5e1;
    color: var(--primary);
    font-size: 0.75rem;
    padding: 6px 0;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}
.demo-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Plan Features List Refinement */
.plan-features {
    padding-left: 20px !important; /* Ensure bullets show */
    margin: 0;
    font-size: 0.9rem;
}
.plan-features li {
    margin-bottom: 8px;
    color: var(--text);
}

/* Responsive adjustment for Demo Grid */
@media (max-width: 1200px) {
    .demo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 600px) {
    .demo-grid {
        grid-template-columns: repeat(4, 1fr); /* Keep 4 cols on mobile for compact look, or change to 2 */
    }
    .demo-btn {
        font-size: 0.7rem;
        padding: 8px 0;
    }
}