/* style.css */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --bg-base: #41A5A0;
    --bg-dark: #358c87;
    --accent-beige: #BEB99B;
    --text-main: #FFFFFF;
    --text-sub: #E0E0E0;
    --white: #FFFFFF;
}

body {
    margin: 0; padding: 0;
    font-family: 'Noto Serif JP', serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 2.0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 500; margin: 0; line-height: 1.4; color: var(--white); }
a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
p { margin-bottom: 1.5em; }
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; position: relative; }
.text-center { text-align: center; }

/* Font Settings */
.staff-name-en, .staff-role, .staff-more, .btn-mail, .scroll-indicator, 
.studio-caption h3, .section-title h2, .presented-by span, .slider-nav {
    font-family: 'Cormorant Garamond', serif;
}

/* スマホのみ改行用クラス */
.sp-br { display: none; }
@media (max-width: 768px) {
    .sp-br { display: block; }
}

/* Animations */
.fade-up {
    opacity: 0; transform: translateY(40px);
    transition: opacity 1.0s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.0s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; } .delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; } .delay-400 { transition-delay: 0.4s; }

/* Components */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 {
    font-size: 2.6rem; letter-spacing: 0.1em; color: var(--white);
    margin-bottom: 12px; text-shadow: 0 0 10px rgba(0,0,0,0.1); font-weight: 500;
}
.section-title h2::after {
    content: ''; display: block; width: 40px; height: 1px;
    background-color: var(--white); margin: 12px auto 0; opacity: 0.8;
}

/* Hero 
.hero {
    height: 100vh; width: 100%; display: flex; justify-content: center; align-items: center;
    background-color: #fff; position: relative; z-index: 10;
}
.hero-inner { text-align: center; max-width: 800px; padding: 0 20px; opacity: 0; animation: fadeInLogo 1.5s ease 0.5s forwards; }
.logo-img { max-width: 100%; height: auto; width: 800px; display: block; margin: 0 auto; }
.logo-img:not([src]) { display: none; }
.logo-fallback { display: none; color: #333; border: 1px dashed #ccc; padding: 40px; }
.logo-fallback h1 { color: #333; font-size: 2rem; } .logo-fallback p { color: #666; }
@keyframes fadeInLogo { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
*/

/* --- Hero (Gradient Adjusted) --- */
.hero {
    height: 100vh; width: 100%; display: flex; justify-content: center; align-items: center;
    background-color: #fff; position: relative; z-index: 10;
    background: linear-gradient(135deg, #ffffff 0%, #c8e8e5 50%, #ffffff 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-inner { text-align: center; max-width: 800px; padding: 0 20px; opacity: 0; animation: fadeInLogo 1.5s ease 0.5s forwards; }
.logo-img { max-width: 100%; height: auto; width: 800px; display: block; margin: 0 auto; }
.logo-img:not([src]) { display: none; }
.logo-fallback { display: none; color: #333; border: 1px dashed #ccc; padding: 40px; }
.logo-fallback h1 { color: #333; font-size: 2rem; } .logo-fallback p { color: #666; }
@keyframes fadeInLogo { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    color: #333; font-size: 0.9rem; letter-spacing: 0.2em;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    opacity: 0; animation: appearScroll 1.5s ease 2.0s forwards; 
}
@keyframes appearScroll { to { opacity: 1; } }
.scroll-indicator span, .scroll-indicator .scroll-line { animation: fadeUp 2s infinite; }
.scroll-line { width: 1px; height: 50px; background-color: #333; }
@keyframes fadeUp { 0%, 100% { opacity: 0.4; transform: translate(0, 0); } 50% { opacity: 1; transform: translate(0, 8px); } }


/* Scroll Indicator (Delayed) */
.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    color: #333; font-size: 0.9rem; letter-spacing: 0.2em;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    opacity: 0; animation: appearScroll 1.5s ease 2.0s forwards; 
}
@keyframes appearScroll { to { opacity: 1; } }
.scroll-indicator span, .scroll-indicator .scroll-line { animation: fadeUp 2s infinite; }
.scroll-line { width: 1px; height: 50px; background-color: #333; }
@keyframes fadeUp { 0%, 100% { opacity: 0.4; transform: translate(0, 0); } 50% { opacity: 1; transform: translate(0, 8px); } }

/* Philosophy */
#philosophy { padding: 140px 0; background-color: var(--bg-base); }
.philosophy-lead { font-size: 1.5rem; margin-bottom: 40px; line-height: 2.0; color: var(--white); display: inline-block; font-weight: 500; }
.philosophy-content { font-size: 1.05rem; color: #f0f0f0; font-weight: 400; }
.highlight-accent { color: var(--white); font-weight: 600; }
.highlight-beige { color: #fdfcf5; font-weight: 600; }
.philosophy-core-message { font-size: 1.3rem; color: var(--white); margin: 60px 0; letter-spacing: 0.15em; text-shadow: 0 0 10px rgba(0,0,0,0.1); }

/* Slider */
.studio-visual-wrapper {
    width: 100%; height: 80vh; position: relative;
    background-color: #000; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.studio-visual-inner { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.slide {
    width: 100%; height: 100%; position: absolute; top: 0; left: 0;
    opacity: 0; transition: opacity 1.5s ease; z-index: 1;
}
.slide.active { opacity: 1; z-index: 2; }
.studio-img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.9; filter: contrast(1.1); transition: transform 0.1s linear;
}
.studio-caption {
    position: absolute; bottom: 60px; right: 60px; z-index: 10; text-align: right; pointer-events: none;
}
.studio-caption h3 { font-size: 1.8rem; color: var(--white); letter-spacing: 0.1em; margin-bottom: 5px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: transparent; border: none; color: rgba(255,255,255,0.6);
    font-size: 3rem; cursor: pointer; z-index: 20;
    padding: 20px; transition: all 0.3s ease; font-weight: 300;
}
.slider-nav:hover { color: var(--white); transform: translateY(-50%) scale(1.1); }
.prev { left: 20px; } .next { right: 20px; }

/* Staff */
#staff { padding: 120px 0; background-color: var(--bg-base); }
.staff-profile {
    display: flex; flex-direction: column; align-items: center; max-width: 720px; margin: 0 auto;
    background: rgba(255, 255, 255, 0.1); padding: 80px 60px; border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2); position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.staff-name-group { text-align: center; margin-bottom: 30px; }
.staff-name-ja { font-size: 2.0rem; display: block;  color: var(--white); letter-spacing: 0.2em; }
.staff-name-en { font-size: 1.1rem; color: rgba(255,255,255,0.9); letter-spacing: 0.1em; }
.staff-role {
    font-size: 1.0rem; letter-spacing: 0.05em; margin-bottom: 40px;
    color: var(--white); background: rgba(0,0,0,0.1); padding: 5px 20px; border-radius: 20px;
}
.staff-bio { text-align: left; line-height: 2.0;  color: #fdfdfd; width: 100%; font-weight: 300; }
.staff-bio p { margin-bottom: 2.0em; }
.staff-more { margin-top: 60px; text-align: center; color: rgba(255,255,255,0.8); font-style: italic; font-size: 1.1rem; }

/* Contact */
#contact { padding-top:100px; background-color: var(--bg-dark); text-align: center; }
.mail-link-container { 
    margin-top: 20px; margin-bottom: 50px; 
    display: inline-flex; flex-direction: column; align-items: center; 
}
.btn-mail {
    display: flex; align-items: center; justify-content: center; gap: 15px;
    border: 1px solid rgba(255,255,255,0.4); padding: 15px 50px; font-size: 1.2rem; letter-spacing: 0.05em;
    color: var(--white); background: rgba(255,255,255,0.05); transition: all 0.4s ease;
    text-transform: lowercase; border-radius: 50px;
}
.btn-mail i { font-size: 1.0rem; color: var(--white); }
.btn-mail:hover { background: rgba(255, 255, 255, 0.2); border-color: var(--white); transform: translateY(-2px); }
.contact-note {
    font-size: 0.75rem; color: rgba(255,255,255,0.7); 
    margin-top: 20px; line-height: 1.6; max-width: 450px; margin-left: auto; margin-right: auto; 
    padding-bottom: 100px;
}

/* --- Footer --- */
footer { padding: 80px 0; background-color: #2a736f; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.presented-by span { display: block; font-size: 0.8rem; margin-bottom: 10px; color: rgba(255,255,255,0.6); }
.presented-by strong { font-weight: 400; font-size: 1.1rem; letter-spacing: 0.05em; }

/* Footer Link: Line Animation */
.footer-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}
.footer-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--white);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}
.footer-link:hover {
    color: var(--white);
    opacity: 1;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}
.footer-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

@media (max-width: 768px) {
    .section-title h2 { font-size: 2.0rem; }
    .philosophy-lead { font-size: 1.2rem; }
    .studio-visual-wrapper { height: 50vh; }
    .slider-nav { padding: 10px; font-size: 2rem; }
    .staff-profile { padding: 50px 20px; background: rgba(255,255,255,0.05); }
    .btn-mail { padding: 15px 30px; width: 100%; font-size: 1.0rem; border-radius: 50px; }
}