/* キバコヤ デザイン・システム */

/* コピー・右クリック保護 */
body {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+/Edge */
    user-select: none;         /* Standard */
}

/* 0. グローバルフォント設定 */
h1, h2, h3, h4 {
    font-family: 'Noto Serif JP', serif !important;
}

.signature-title {
    font-family: 'Noto Serif JP', serif !important;
    color: #D4A396 !important;
}

.en-font {
    font-family: 'Cormorant Garamond', serif !important;
    font-style: italic;
    font-weight: 500;
}

/* 1. リセット & ベース */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-size: 16px;
}

/* SPサイズ時の本文フォントサイズ調整（16pxから14pxへ） */
@media (max-width: 768px) {
    body, p, li, .text-base {
        font-size: 14px !important;
    }
}

/* 3. セクション見出し */
.section-title-wrap {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

@media (max-width: 640px) {
    .section-title-wrap {
        width: 80%;
        height: 80px;
    }
}

/* 5. インタラクション & 装飾 */

/* Scroll Top Button Visibility */
#scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-10px);
}

/* Mobile Menu Transition */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

/* 6. 画像の扱い共通 */
img {
    vertical-align: bottom;
    object-fit: cover;
}


/* 11. Signature Drawing Title (Common) */
.signature-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-style: italic;
    font-size: 4rem;
    font-weight: 500;
    
    /* Bitter Brown solid color */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #D4A396 !important;
    color: #D4A396 !important;
    
    display: inline-flex;
    flex-direction: column;
    line-height: 1.2;
    letter-spacing: 0.1em;
    padding: 0.1em 0.3em;
    opacity: 0;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    white-space: nowrap;
}

.signature-title .sub-title {
    font-family: 'Noto Sans JP', sans-serif !important;
    font-style: normal;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    margin-top: 8px;
    opacity: 0.8;
    
    /* Solid Brand Color override to prevent gradient inherit */
    -webkit-text-fill-color: #D4A396 !important;
    background: none !important;
}

/* スクロールして表示された時にアニメーション開始 */
.signature-title.is-visible {
    animation: premium-reveal 1.5s ease-in-out forwards;
}

@media (max-width: 1024px) {
    .signature-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
    .signature-title .sub-title {
        font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    }
}

@media (max-width: 640px) {
    .signature-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
        letter-spacing: 0.05em;
        padding: 0.1em 0.2em;
    }
    .signature-title .sub-title {
        font-size: clamp(1rem, 4.5vw, 1.4rem);
    }
}

@keyframes premium-reveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}


/* 本文タイトル（About, Service, Recommend などの見出しカード内）のカラー統一 */
h3:not(.signature-title):not(.section-title):not(.text-accent) {
    color: #D4A396 !important; /* Sage Green */
}


/* カード内の見出しをセージグリーンに指定 */
#menu h3,
#voice h4,
.service-point-title {
    color: #D4A396 !important;
}

/* 12. Voice Readmore Style */
.readmore-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.readmore-content.is-open {
    display: inline;
    opacity: 1;
}
.readmore-btn {
    outline: none;
    margin-top: 12px;
}



/* 14. 枠線描画アニメーション (Draw Border Frame) */
.frame-draw-container {
    position: relative;
    padding: 16px 20px;
    display: block;
    text-align: inherit;
    background: transparent;
    overflow: hidden;
}

.frame-draw-container::before,
.frame-draw-container::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 1px solid transparent;
    box-sizing: border-box;
}

/* 左上からスタート */
.frame-draw-container::before {
    top: 0;
    left: 0;
}

/* 右下からスタート */
.frame-draw-container::after {
    bottom: 0;
    right: 0;
}

/* スクロールイン (is-visible) 時のアニメーション発火（左側縦線と上下横線） */
.is-visible .frame-draw-container::before {
    width: 10%;
    height: 30%;
    border-top-color: #D4A396;
    border-left-color: #D4A396;
    transition: width 0.3s ease, height 0.3s ease 0.3s;
}

.is-visible .frame-draw-container::after {
    width: 90%;
    border-bottom-color: #D4A396;
    transition: width 0.6s ease 0.3s;
}



/* 15. スライドイン横線アニメーション (Line Expand) */
.animate-expand-line {
    width: 0;
    height: 1px;
    background-color: #B39F7A; /* アクセントカラーのサンドゴールド */
    margin-bottom: 32px;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s;
}

.is-visible .animate-expand-line {
    width: 48px; /* w-12 相当 */
}

/* 16. POINT 01〜04用（セージグリーン枠・線） */
.is-visible .frame-draw-white::before {
    border-top-color: #D4A396 !important;
    border-left-color: #D4A396 !important;
}
.is-visible .frame-draw-white::after {
    border-bottom-color: #D4A396 !important;
    border-right-color: #D4A396 !important;
}
.line-expand-white {
    background-color: #D4A396 !important;
}

/* 17. Slideshow Styles */
.fv-slideshow-container {
    position: relative;
}
.fv-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}
.fv-slide-img.active {
    opacity: 1;
    z-index: 2;
}

/* 18. グラデーションテキストアニメーション */
.gradient-text-animate {
    background: linear-gradient(120deg, #B39F7A 0%, #D4A396 35%, #B39F7A 70%, #D4A396 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent !important;
    background-clip: text;
    color: transparent !important;
    animation: shine-gradient 5s linear infinite;
    display: inline-block;
}

@keyframes shine-gradient {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* 19. FV左側背景 of グラデーションアニメーション（木漏れ日グロウ＆ミストは削除、白背景に統一） */
.gradient-bg-animate {
    position: relative;
    background-color: #ffffff;
    overflow: hidden;
}

/* 21. About Concept Slideshow Styles */
.about-slideshow-container {
    position: relative;
}
.about-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}
.about-slide-img.active {
    opacity: 1;
    z-index: 2;
}
