/* --- _common.css --- (v98.0: Modal Gallery & Profile) */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500&family=Zen+Old+Mincho:wght@400;500;600&family=Zen+Kaku+Gothic+New:wght@300;400;500&display=swap');

:root {
    --c-bg: #f4f4f4;       
    --c-white: #ffffff;
    --c-text: #1a1a1a;     
    --c-accent: #e27447;   /* 指定オレンジ */
    --c-line: #e0e0e0;
    
    --font-en: 'Cinzel', serif; 
    --font-jp: 'Zen Old Mincho', serif;
    --font-body: 'Zen Kaku Gothic New', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

::selection { background: var(--c-accent); color: #fff; }

body {
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 2.2;
    letter-spacing: 0.05em;
    overflow-x: hidden;
    word-wrap: break-word;
}
body.modal-open { overflow: hidden; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { width: 100%; height: auto; object-fit: cover; display: block; }
li { list-style: none; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

/* --- Section Header --- */
.sec-head {
    text-align: center; margin-bottom: 6rem;
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.sec-en {
    font-family: var(--font-en); font-size: 3.5rem; line-height: 1;
    color: var(--c-text);
}
.sec-line {
    width: 60px; height: 3px; background: var(--c-accent);
}
.sec-jp {
    font-family: var(--font-jp); font-size: 1rem; opacity: 0.7; letter-spacing: 0.2em; font-weight: 500; color: var(--c-text);
}

/* Button Style */
.btn-border {
    display: inline-block; padding: 1rem 3.5rem;
    border: 1px solid var(--c-text); background: transparent;
    font-family: var(--font-en); font-size: 0.9rem; letter-spacing: 0.1em;
    cursor: pointer; transition: 0.4s;
    color: var(--c-text); box-shadow: none;
}
.btn-border:hover {
    background: var(--c-text); color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}


/* --- Loader --- */
#loader { position: fixed; inset: 0; z-index: 9999; display: flex; justify-content: center; align-items: center; pointer-events: none; }
.curtain { position: absolute; inset: 0; background: #111; transform-origin: top; transition: transform 1.5s cubic-bezier(0.8, 0, 0.2, 1); }
.loader-logo { position: relative; z-index: 2; width: 180px; opacity: 0; transition: 0.5s; }
body.loading .loader-logo { opacity: 1; }
body.loaded .curtain { transform: scaleY(0); }


/* --- Navigation (Hamburger) --- */
.hamburger {
    position: fixed; top: 2rem; right: 2rem; width: 60px; height: 60px;
    z-index: 2000; cursor: pointer; mix-blend-mode: difference;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%; transition: transform 0.3s;
    background: rgba(255,255,255,0.1);
}
.hamburger:hover {
    background: var(--c-accent);
    transform: scale(1.1);
    mix-blend-mode: normal;
    transition: background 0.3s, transform 0.3s;
}
.hamburger span {
    display: block; position: absolute; width: 35px; height: 2px; background: #fff;
    transition: 0.3s;
}
.hamburger span:nth-child(1) { top: 24px; }
.hamburger span:nth-child(2) { top: 34px; }
.hamburger.active span:nth-child(1) { top: 29px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { top: 29px; transform: rotate(-45deg); }
.hamburger:hover span { background: #fff; }

#sp-menu {
    position: fixed; inset: 0; background: #111; z-index: 1500;
    opacity: 0; visibility: hidden; transition: 0.5s;
    display: flex; justify-content: center; align-items: center;
}
#sp-menu.active { opacity: 1; visibility: visible; }
#sp-menu ul { text-align: center; }
#sp-menu a {
    display: block; color: #fff; font-family: var(--font-en); font-size: 1.8rem;
    margin: 2rem 0; opacity: 0.7; transition: 0.3s;
}
#sp-menu a:hover { opacity: 1; color: var(--c-accent); }


/* --- Hero --- */
.hero {
    height: 100vh; position: relative; overflow: hidden;
    display: flex; align-items: center;
    padding-left: 10vw;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
.hero-content {
    position: relative; z-index: 1; color: #fff; text-align: left;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero h1 { font-family: var(--font-jp); font-weight: 500; font-size: clamp(1.5rem, 5vw, 3rem); line-height: 2; letter-spacing: 0.2em; }
.hero-logo { position: absolute; top: 2rem; left: 2rem; width: 140px; z-index: 2; filter: brightness(0) invert(1); }


/* --- PHILOSOPHY --- */
.phi-sec { padding: 10rem 0; background: var(--c-white); }
.phi-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.phi-img {
    height: 500px; overflow: hidden; border-radius: 8px;
    box-shadow: 20px 20px 0 var(--c-bg);
}
.phi-img img { width: 100%; height: 100%; transition: 1s; }
.phi-sec:hover .phi-img img { transform: scale(1.05); }
.phi-txt h2 { font-family: var(--font-jp); font-size: 2.2rem; margin-bottom: 2rem; line-height: 1.6; color: #e27447;}
.phi-txt span.highlight { color: inherit; font-weight: normal; } 
.phi-txt p { font-size: 1rem; margin-bottom: 2rem; color: #555; text-align: justify; }


/* --- SERVICE (4 Features) --- */
.service-sec { padding: 10rem 0; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 8rem; }
.ft-item {
    background: #fff; padding: 3rem;
    border: 1px solid var(--c-line);
    transition: 0.4s; border-radius: 4px;
    display: flex; flex-direction: column;
}
.ft-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border-color: var(--c-accent);
}
.ft-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.ft-num { font-family: var(--font-en); font-size: 2.5rem; color: var(--c-accent); opacity: 0.3; line-height: 1; }
.ft-ttl { font-family: var(--font-en); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.1em; }
.ft-desc { font-size: 0.95rem; margin-bottom: 2rem; color: #666; line-height: 1.8; }
.ft-img-box { width: 100%; height: 250px; margin-bottom: 2rem; overflow: hidden; border-radius: 4px; }
.ft-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.ft-item:hover .ft-img-box img { transform: scale(1.1); }

.ft-more {
    font-family: var(--font-en); font-size: 0.9rem; color: var(--c-text);
    border: 1px solid var(--c-text); padding: 0.8rem 0; text-align: center;
    cursor: pointer; transition: 0.3s; margin-top: auto;
}
.ft-more:hover { background: var(--c-text); color: #fff; }


/* --- PLANS --- */
.plans-sec { background: var(--c-white); padding: 10rem 0; }
.plans-grid { 
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; 
    align-items: stretch;
}

.plan-card {
    background: #fff; padding: 4rem 2rem;
    text-align: center; transition: 0.4s;
    border-radius: 4px;
    border: 1px solid var(--c-line);
    border-top: 4px solid var(--c-line);
    display: flex; flex-direction: column; justify-content: space-between;
}
.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border-top-color: var(--c-accent);
}

.plan-ttl { 
    font-family: var(--font-jp); font-size: 1.4rem; margin-bottom: 2rem; 
    font-weight: 600; color: var(--c-text);
    border-top: 1px solid var(--c-line);    
    border-bottom: 1px solid var(--c-line); 
    padding: 1.5rem 0;
    letter-spacing: 0.1em;
}

.plan-desc { 
    font-size: 0.95rem; color: #666; margin-bottom: 3rem; text-align: justify; 
    line-height: 2; flex-grow: 1;
}

.plans-grid .plan-card:nth-child(1)::before {
    content: 'RECOMMENDED';
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: #fff; color: var(--c-text); border: 1px solid var(--c-line);
    padding: 0.2rem 1.2rem; font-size: 0.75rem; letter-spacing: 0.1em; font-family: var(--font-en);
}


/* --- WORKS (Infinite Scroll) --- */
.works-sec { padding: 10rem 0; background: #111; color: #fff; overflow: hidden; }
.sec-head.white .sec-en { color: #fff; }
.sec-head.white .sec-jp { color: #888; }
.works-wrapper { width: 100%; cursor: grab; }
.works-track { display: flex; width: max-content; gap: 4vw; will-change: transform; }
.wk-item {
    width: 40vw; height: 55vh; position: relative; flex-shrink: 0;
    cursor: pointer; opacity: 0.7; transition: 0.4s;
    border-bottom: none;
}
.wk-item:hover { opacity: 1; transform: scale(1.02); }
.wk-meta {
    position: absolute; bottom: 2rem; left: 2rem;
    font-family: var(--font-en); font-size: 1.2rem; letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    background: transparent; color: #fff;
}


/* --- FLOW (5 Steps) --- */
.flow-sec { padding: 10rem 0; background: var(--c-bg); }
.flow-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.flow-row {
    display: flex; align-items: flex-start; gap: 3rem;
    border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 2rem;
    position: relative;
}
.flow-row::before {
    content: ''; position: absolute; left: 1.2rem; top: 3.5rem; bottom: -1rem;
    width: 1px; background: var(--c-accent); opacity: 0.3;
}
.flow-list .flow-row:last-child::before { display: none; }

.flow-num {
    font-family: var(--font-en); font-size: 2.5rem; color: var(--c-accent);
    line-height: 1; width: 4rem; flex-shrink: 0; background: transparent;
    text-align: center; white-space: nowrap;
}
.flow-cnt h4 { font-family: var(--font-jp); font-size: 1.4rem; margin-bottom: 0.8rem; font-weight: 600; }
.flow-cnt p { font-size: 1rem; color: #555; line-height: 1.8; }


/* --- VOICE (6 Items) --- */
.voice-sec { padding: 10rem 0; background: var(--c-white); }
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.voice-box {
    background: var(--c-bg); padding: 3rem; position: relative;
    border-radius: 8px; transition: 0.4s;
    border-left: none;
}
.voice-box:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.voice-box::before {
    content: '“'; position: absolute; top: 1rem; left: 1.5rem;
    font-size: 5rem; color: rgba(0,0,0,0.05); font-family: serif; line-height: 1;
}
.voice-txt { font-size: 1rem; line-height: 1.9; margin-bottom: 1.5rem; position: relative; z-index: 1; font-style: italic; }
.voice-name { font-size: 0.9rem; color: var(--c-text); text-align: right; display: block; font-family: var(--font-jp); font-weight: 600; }


/* --- FAQ (4 Items) --- */
.faq-sec { padding: 10rem 0; }
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-q {
    padding: 2rem 0; cursor: pointer; font-weight: 600; font-family: var(--font-jp);
    display: flex; justify-content: flex-start; align-items: center; transition: 0.3s;
    text-align: left;
}
.faq-q::before {
    content: 'Q.'; color: var(--c-accent); font-size: 1.2rem; margin-right: 1rem; font-weight: 700;
    flex-shrink: 0;
}
.faq-q:hover { color: var(--c-accent); }
.faq-q::after {
    content: '+'; color: var(--c-accent); font-size: 1.8rem; transition: 0.3s; font-weight: 300;
    margin-left: auto;
}
.faq-item.active .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: 0.5s ease; color: #666; font-size: 1rem; }
.faq-item.active .faq-a { max-height: 300px; padding-bottom: 2.5rem; }


/* --- CONTACT --- */
.contact-sec {
    padding: 12rem 0;
    position: relative;
    color: #fff;
    text-align: center;
}
.contact-bg {
    position: absolute; inset: 0; z-index: -1;
    background: url('img/WORK01_4.jpg') center/cover;
}
.contact-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(10,10,10,0.95));
}

.contact-container { max-width: 900px; margin: 0 auto; }
.contact-lead { 
    margin-bottom: 6rem; font-size: 1.1rem; line-height: 2.2; 
    opacity: 0.9; font-family: var(--font-jp); 
}

.contact-methods {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
    margin-bottom: 8rem;
}
.contact-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(5px);
    transition: 0.4s;
    text-align: left;
    position: relative; overflow: hidden;
}
.contact-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%;
    background: var(--c-accent); opacity: 0.1; transition: 0.4s; z-index: 0;
}
.contact-card:hover { border-color: var(--c-accent); transform: translateY(-5px); }
.contact-card:hover::before { width: 100%; }

.cc-icon {
    font-size: 2.5rem; margin-right: 1.5rem; color: #fff;
    width: 60px; text-align: center; position: relative; z-index: 1;
}
.cc-txt { flex-grow: 1; position: relative; z-index: 1; }
.cc-txt h3 { 
    font-family: var(--font-en); font-size: 1.4rem; margin-bottom: 0.5rem; 
    letter-spacing: 0.1em; 
}
.cc-txt p { font-size: 0.9rem; opacity: 0.7; }
.cc-arrow { font-family: var(--font-en); opacity: 0.5; font-size: 1.2rem; transition: 0.3s; position: relative; z-index: 1; }
.contact-card:hover .cc-arrow { transform: translateX(10px); color: var(--c-accent); opacity: 1; }

.sns-wrapper {
    display: flex; flex-direction: column; align-items: center; gap: 2rem;
    padding-top: 4rem; border-top: 1px solid rgba(255,255,255,0.1);
}
.sns-label { font-family: var(--font-en); font-size: 0.9rem; letter-spacing: 0.2em; opacity: 0.5; }
.sns-links { display: flex; gap: 2rem; }
.sns-icon {
    width: 50px; height: 50px; border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    color: #fff; font-size: 1.2rem; transition: 0.3s;
}
.sns-icon:hover { border-color: var(--c-accent); background: var(--c-accent); transform: scale(1.1); }


/* --- FOOTER --- */
footer { padding: 4rem 0; text-align: center; font-size: 0.8rem; color: #999; background: #111; border-top: none; }


/* --- MODAL --- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 9000;
    opacity: 0; visibility: hidden; transition: 0.4s;
    display: flex; justify-content: center; align-items: center; padding: 2rem;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: #fff; width: 100%; max-width: 900px; max-height: 90vh;
    overflow-y: auto; padding: 4rem; position: relative; border-radius: 4px;
    transform: translateY(30px); transition: 0.4s;
    border-top: none;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 2rem; cursor: pointer; transition: 0.3s; }
.modal-close:hover { color: var(--c-accent); }
.modal-body h3 { font-size: 1.8rem; margin-bottom: 2rem; border-bottom: 1px solid #eee; padding-bottom: 1rem; font-family: var(--font-jp); color: var(--c-text); }
.modal-body p { margin-bottom: 1.5rem; color: #444; line-height: 2; }
.modal-body strong { color: var(--c-accent); font-weight: 600; display: inline-block; width: 80px; }

/* Modal Profile (About) */
.about-profile {
    display: flex; align-items: center; gap: 2rem; margin-bottom: 2rem;
}
.about-icon {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--c-line);
}
.about-info h4 { font-family: var(--font-en); font-size: 1.4rem; margin-bottom: 0.2rem; }
.about-info span { font-size: 0.9rem; color: #888; font-family: var(--font-jp); }

/* Modal Gallery (Works) */
.modal-gallery {
    display: flex; gap: 1.5rem; overflow-x: auto; 
    scroll-snap-type: x mandatory; padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}
.modal-gallery img {
    height: 400px; flex: 0 0 85%; object-fit: cover;
    scroll-snap-align: center; border-radius: 4px;
}

/* Modal Iframe Wrapper (v100.0) */
.modal-iframe-box {
    position: relative; width: 100%; padding-bottom: 56.25%; /* 16:9 */
    height: 0; overflow: hidden; margin-bottom: 2rem; background: #000;
    border-radius: 4px;
}
.modal-iframe-box iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}

/* --- ANIMATION UTILS --- */
.reveal { opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }


/* --- Responsive --- */
@media (max-width: 900px) {
    .sec-en { font-size: 2.8rem; }
    .phi-wrapper, .features-grid, .plans-grid, .voice-grid { grid-template-columns: 1fr; gap: 3rem; }
    .contact-methods { grid-template-columns: 1fr; gap: 1.5rem; }
    .phi-img { height: 300px; }
    .wk-item { width: 85vw; height: 40vh; }
    .modal-content { padding: 2rem; }
    .c-btn { width: 100%; }
    
    /* FLOW SP調整 */
    .flow-row { 
        flex-direction: row; 
        align-items: flex-start;
        gap: 1.5rem; 
    }
    .flow-num { 
        font-size: 1.8rem; 
        width: 3rem; 
        flex-shrink: 0; 
    }
    .flow-cnt {
        flex: 1; 
        width: auto;
        min-width: 0;
    }
    .flow-row::before { left: 1.5rem; top: 3.5rem; bottom: -2rem; }
    
    /* About Modal Mobile */
    .about-profile { flex-direction: column; text-align: center; gap: 1rem; }
    .modal-gallery img { height: 250px; flex: 0 0 90%; }
}