/* 
   ==========================================================================
   STYLE.CSS - Base Styles & Common Components
   ========================================================================== 
*/

:root {
    /* Colors */
    --gold: #d4af37;
    --gold-light: #f5e6a2;
    --gold-gradient: linear-gradient(135deg, #d4af37, #f5e6a2, #d4af37);
    --ink: #1B1B1B;
    --bg: #F2F0EB;
    --paper: #fff;
    --accent: #3B6147;
    --accent-light: #5a8760;
    --accent-gradient: linear-gradient(135deg, #3B6147, #5a8760);
    --line-green: #06C755;
    --line-gradient: linear-gradient(135deg, #06C755, #05b14c);
    --muted: #666;
    --border: rgba(0, 0, 0, 0.08);

    /* Shadows - More layered and soft */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 10px 25px rgba(212, 175, 55, 0.12);

    /* Transition */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Base --- */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Noto Serif JP', serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.9;
    word-break: normal;
    overflow-wrap: break-word;
    min-height: 100vh;
}

/* --- Utilities --- */
.ibr {
    display: inline-block;
}

.pc-pipe {
    display: inline;
}

.sp-br {
    display: none;
}

@media (max-width: 768px) {
    .pc-pipe {
        display: none;
    }

    .sp-br {
        display: block;
        height: 0;
    }
}


img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-light);
}

/* --- Layout --- */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 16px;
}

.section {
    padding: 5rem 1rem;
}

@media (max-width: 768px) {
    .section {
        padding: 3.5rem 1rem;
    }
}

/* --- Typography --- */
.headline {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: 3rem;
    border-left: 8px solid var(--gold);
    padding-left: 1.2rem;
    font-weight: 900;
    line-height: 1.2;
    font-family: 'Zen Old Mincho', serif;
    letter-spacing: 0.02em;
}

.headline+p {
    margin-top: -2rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* --- Components --- */
.card {
    background: var(--paper);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

@media (max-width: 600px) {
    .card {
        padding: 1.5rem 1rem;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1rem 2.5rem;
    min-height: 52px;
    background: var(--accent-gradient);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 6px 16px rgba(59, 97, 71, 0.2);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(59, 97, 71, 0.35);
    text-decoration: none;
}

.btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 2.5rem;
    padding: 1.2rem 3.2rem;
    background: var(--line-gradient);
    color: #fff !important;
    border-radius: 60px;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 8px 18px rgba(6, 199, 85, 0.25);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) {
    .btn-line {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
}


.section-cta-wrap {
    text-align: center;
    margin-top: 3rem;
}

.btn-line::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-line:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(6, 199, 85, 0.35);
    text-decoration: none;
}

.btn-line:hover::before {
    left: 100%;
}

.btn-line svg,
.btn-line i {
    width: 24px;
    height: 24px;
}

/* --- Header --- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--gold);
    transition: var(--transition);
}

@media (max-width: 1250px) {
    header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
        overflow-x: hidden;
    }
}

header .wrap {
    max-width: 1100px;
    margin: auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--ink);
    font-weight: 900;
    flex-shrink: 0;
}

.brand:hover {
    opacity: 0.8;
}

.brand img {
    height: 42px;
    width: auto;
}

.brand span {
    font-size: 1.25rem;
    font-family: 'Zen Old Mincho', serif;
    letter-spacing: 0.05em;
}

nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

nav a {
    font-weight: 600;
    color: var(--ink);
    padding: 8px 10px;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

nav a:hover {
    background: rgba(var(--accent), 0.05);
    /* Wait, rgba doesn't work with var unless specified */
    background: rgba(59, 97, 71, 0.08);
    color: var(--accent);
    text-decoration: none;
}

.nav-cta {
    margin-left: 10px;
    padding: 0.6rem 1.4rem;
    min-height: 42px;
    font-size: 0.95rem;
    border-radius: 50px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 1250px) {
    nav {
        display: flex;
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        padding: 40px 0;
        z-index: 1000;
        /* Ensure it's above sticky-cta */
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav.active {
        transform: translateX(0);
        visibility: visible;
    }

    nav a {
        width: 100%;
        text-align: center;
        font-size: 1.25rem;
        padding: 1.2rem;
        border-bottom: none;
    }

    .nav-cta {
        margin: 2rem auto 0;
        width: 80%;
        font-size: 1.1rem;
        padding: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- Footer --- */
.site-footer {
    position: relative;
    background: #0E0E0E;
    color: #EDEBE6;
    margin-top: 5rem;
    padding: 5rem 0 3rem;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    gap: 60px;
    grid-template-columns: 1.5fr 1fr;
}

@media (max-width: 820px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.site-footer a {
    color: #F5F3EE;
    opacity: 0.8;
}

.site-footer a:hover {
    opacity: 1;
    color: var(--gold-light);
}

.footer-title {
    font-weight: 900;
    font-size: 1.3rem;
    margin-bottom: 1.8rem;
    font-family: 'Zen Old Mincho', serif;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--gold);
    border-radius: 50px;
    padding: 1rem 2.2rem;
    font-weight: 800;
    color: var(--gold) !important;
    transition: var(--transition);
    background: transparent;
}

.footer-cta:hover {
    background: var(--gold);
    color: #1B1B1B !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    text-decoration: none;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 2.2;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.copyright {
    margin-top: 5rem;
    padding-top: 2.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.5;
    letter-spacing: 0.05em;
}

/* --- Sticky CTA --- */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    display: none;
}

@media (max-width: 1150px) {
    .sticky-cta {
        display: block;
    }

    body {
        padding-bottom: 74px;
        /* sticky-cta height */
    }
}

.sticky-cta a {
    width: 100%;
    margin-top: 0;
    border-radius: 0;
    padding: 1.2rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* --- Shared Components --- */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 2rem;
}

.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-table th,
.info-table td {
    padding: 1.8rem;
    border-bottom: 1px solid #f8f8f8;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

.info-table th {
    background: #fbfaf7;
    color: var(--accent);
    font-weight: 800;
    text-align: left;
    width: 32%;
    font-family: 'Zen Old Mincho', serif;
}

@media (max-width: 600px) {

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        padding: 1rem;
    }

    .info-table th {
        padding-bottom: 0.4rem;
        background: transparent;
    }

    .info-table td {
        padding-top: 0;
        border-bottom: 1px solid #f0f0f0;
    }
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}