@charset "UTF-8";

/* Reset & Variables */
:root {
    --color-main: #1a1a1a; /* Black */
    --color-sub: #f5f5f5; /* Light Gray */
    --color-accent: #6b4c3a; /* Brown */
    --color-text: #333333;
    --color-text-light: #ffffff;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Zen Kaku Gothic New', sans-serif;
    --transition: all 0.3s ease;
    
    --header-height-pc: 80px;
    --header-height-sp: 60px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.8;
    overflow-x: hidden;
    word-break: normal;
    overflow-wrap: break-word;
    position: relative;
}

/* Safari / iOS Compatible Fixed Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-image: url('images/BodyBg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    pointer-events: none;
}

/* Base Styles */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 500;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    text-align: center;
    color: var(--color-main);
    margin-bottom: 2rem;
}

p {
    margin: 0 0 1rem;
}

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

ul, ol, dl {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    object-fit: cover;
}

.inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* Section Colors & Styles */
/* 
   We alternate between solid background colors and transparent backgrounds.
   Transparent backgrounds will show the BodyBg.png, adding a nice texture 
   effect without overwhelming the user with a single static image. 
*/

.cta-section { background-color: #2c2c2c; color: #fff; text-align: center; }
.cta-section-alt { background-color: #4a3525; }

.problem { background-color: #ffffff; }
.about { background-color: transparent; }
.service { background-color: #f9f9f9; }
.brandlist { background-color: #ffffff; }
.coordinate { background-color: #1a1a1a; color: #fff; }
.coordinate h2 { color: #fff; }
.message { background-color: transparent; }
.onlinestore { background-color: #f5f5f5; }
.faq { background-color: #ffffff; }
.access { background-color: #f9f9f9; }
.contact { background-color: transparent; }

/* Cards for transparent sections to stand out */
.card-style {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin: 80px auto;
}
.card-style-dark {
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    margin: 80px auto;
    color: #fff;
}
.card-style-dark h2 {
    color: #fff;
}

.section-title {
    text-align: center;
}

/* Flex Layouts for Images + Text */
.flex-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}
.flex-img {
    flex: 1;
}
.flex-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.flex-text {
    flex: 1;
}

/* Utilities */
.pc-only { display: block; }
.sp-only { display: none; }

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 250px;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 4px;
    text-align: center;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
}

.btn-line {
    background-color: #06C755;
    color: #fff;
    font-weight: bold;
}
.btn-line:hover { background-color: #05a345; color: #fff; }

.btn-shop {
    background-color: var(--color-accent);
    color: #fff;
    font-weight: bold;
}
.btn-shop:hover { background-color: #52392b; color: #fff; }

.btn-link {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 500;
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 2px;
    margin-top: 15px;
}
.btn-link:hover {
    color: var(--color-main);
    border-color: var(--color-main);
}
.coordinate .btn-link, .card-style-dark .btn-link {
    color: var(--color-sub);
    border-color: var(--color-sub);
}
.coordinate .btn-link:hover, .card-style-dark .btn-link:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height-pc);
    background-color: rgba(26, 26, 26, 0.95);
    z-index: 1000;
    transition: background-color 0.3s;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 40px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text-light);
    letter-spacing: 0.1em;
}

.pc-menu ul {
    display: flex;
    gap: 30px;
}

.pc-menu a {
    color: var(--color-text-light);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.pc-menu a:hover {
    color: var(--color-accent);
}

/* First View */
.fv {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-main);
    padding-top: var(--header-height-pc);
}

.fv-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/fv_bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 1;
}

.fv-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-text-light);
}

.fv-copy {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    line-height: 1.4;
    letter-spacing: 0.15em;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.fv-highlights ul {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.fv-highlights li {
    font-size: 1.1rem;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

/* CTA Section */
.cta-section .inner {
    padding: 60px 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Problem */
.problem-list-wrap {
    text-align: center;
    margin-bottom: 30px;
}
.problem-list {
    display: inline-block;
    text-align: left;
    background-color: #f9f9f9;
    padding: 40px 60px;
    border-radius: 8px;
    border-left: 6px solid var(--color-accent);
}
.problem-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.problem-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
}
.problem-desc {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
}

/* About */
.about-text h3 {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Service */
.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 30px;
}
.service-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.service-img img {
    width: 100%;
    aspect-ratio: 3/2;
}
.service-text {
    padding: 30px;
}
.service-text h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-main);
    line-height: 1.4;
}

/* Brandlist */
.brand-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.brand-item {
    background: #ffffff;
    padding: 20px 30px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
}
.brand-item h3 {
    font-size: 1.3rem;
    color: var(--color-main);
    margin-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 5px;
}

/* Coordinate */
.coordinate-text {
    text-align: left;
}
.coordinate-cta {
    margin-top: 30px;
}

/* Message */
.message-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Online Store */
.onlinestore .flex-layout {
    flex-direction: row-reverse;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-list dl {
    border-top: 1px solid #eaeaea;
}
.faq-list dt {
    font-weight: 500;
    padding: 20px 0 10px;
    font-size: 1.1rem;
    color: var(--color-main);
}
.faq-list dd {
    margin: 0;
    padding: 0 0 20px;
    border-bottom: 1px solid #eaeaea;
    color: #555;
}

/* Access */
.map-wrap {
    width: 100%;
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.map-wrap iframe {
    display: block;
    width: 100%;
}

/* Contact */
.contact-card {
    padding: 20px;
    text-align: center;
}
.contact-title {
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: #111;
    color: #888;
    padding: 60px 20px 30px;
    text-align: center;
}
.sns-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.sns-links a {
    color: #fff;
    letter-spacing: 0.1em;
}
.sns-links a:hover {
    color: var(--color-accent);
}
.copyright {
    font-size: 0.9rem;
}

/* --- Responsive (SmartPhone) --- */
@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    body::before {
        background-image: url('images/BodyBgSp.png');
    }
    
    .pc-only { display: none !important; }
    .sp-only { display: block; }
    
    .inner, .card-style, .card-style-dark {
        padding: 50px 20px;
    }
    
    /* Ensure cards take full width but have margin to show body bg on sides */
    .card-style, .card-style-dark {
        margin: 40px 15px;
        width: calc(100% - 30px);
        padding: 40px 20px;
    }

    h2 {
        font-size: 2rem;
    }
    
    .header {
        height: var(--header-height-sp);
    }
    .header-inner {
        padding: 0 15px;
    }
    
    /* Hamburger Menu Button */
    .hamburger-btn {
        background: transparent;
        border: none;
        width: 44px;
        height: 44px;
        position: relative;
        z-index: 10001;
        cursor: pointer;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
    }
    .hamburger-line {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--color-text-light);
        transition: var(--transition);
    }
    
    /* SP Menu Overlay */
    .sp-menu {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        background-color: rgba(26, 26, 26, 0.98);
        z-index: 9999;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .sp-menu.is-active {
        opacity: 1;
        visibility: visible;
    }
    .sp-menu-inner {
        padding: 80px 20px 40px;
        position: relative;
        min-height: 100%;
    }
    .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: transparent;
        border: 1px solid rgba(255,255,255,0.3);
        color: #fff;
        padding: 10px 20px;
        border-radius: 4px;
        font-size: 1rem;
        cursor: pointer;
    }
    .sp-menu ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-top: 40px;
    }
    .sp-menu a {
        color: #fff;
        font-size: 1.2rem;
        display: block;
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Disable background scroll */
    body.menu-open {
        overflow: hidden;
    }

    /* FV */
    .fv {
        padding-top: var(--header-height-sp);
        min-height: 100svh;
    }
    .fv-copy {
        font-size: 2.2rem;
    }
    .fv-highlights ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    /* CTA */
    .btn {
        width: 100%;
        min-width: unset;
    }
    .cta-section .inner {
        padding: 40px 20px;
    }
    
    /* Layout Overrides for SP */
    .flex-layout, .onlinestore .flex-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Important rule: Image ALWAYS on top in SP */
    .flex-img {
        order: 1;
        width: 100%;
    }
    .flex-text {
        order: 2;
        width: 100%;
    }
    
    /* Service */
    .service-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-item {
        display: flex;
        flex-direction: column;
    }
    
    /* Problem */
    .problem-list {
        padding: 20px;
    }
    
    .contact-card {
        padding: 10px 5px;
    }
}
