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

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

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

.en-font {
    font-family: 'Montserrat', sans-serif !important;
    font-style: normal !important;
    font-weight: 100 !important;
}

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

body, p, li, span {
    font-family: 'Noto Sans JP' !important;
    color: #000000 !important;
    font-weight: 400 !important;
}

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

/* ボタン等のアクセント背景内のテキスト色は白を維持 */
.bg-accent, .bg-primary, a[class*="bg-accent"], a[class*="bg-primary"], .bg-accent *, .bg-primary * {
    color: #ffffff !important;
}

/* SPサイズ時の本文フォントサイズ調整（読みやすさ重視で15pxへ） */
@media (max-width: 768px) {
    body, p, li, .text-base {
        font-size: 15px !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: 'Montserrat', sans-serif !important;
    font-style: normal !important;
    font-size: 4rem;
    font-weight: 100 !important;
    
    /* Bitter Brown solid color */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #5C534E !important;
    color: #5C534E !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: #5C534E !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: #5C534E !important; /* Elegant Bitter Brown */
}


/* カード内の見出しをビターブラウンに指定 */
#menu h3,
#voice h4,
.service-point-title {
    color: #5C534E !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: #5C534E;
    border-left-color: #5C534E;
    transition: width 0.3s ease, height 0.3s ease 0.3s;
}

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



/* 15. スライドイン横線アニメーション (Line Expand) */
.animate-expand-line {
    width: 0;
    height: 1px;
    background-color: #5C534E;
    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〜03用（ブラウン枠・線） */
.is-visible .frame-draw-white::before {
    border-top-color: #5C534E !important;
    border-left-color: #5C534E !important;
}
.is-visible .frame-draw-white::after {
    border-bottom-color: #5C534E !important;
    border-right-color: #5C534E !important;
}
.line-expand-white {
    background-color: #5C534E !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;
}

/* ヘッダー・フッター・ハンバーガーメニューのフォント指定（英字はMontserrat、日本語は明朝体） */
header, footer, #mobile-menu, header *, footer *, #mobile-menu * {
    font-family: 'Montserrat', 'Noto Serif JP', serif !important;
}
header a, footer a, #mobile-menu a, header span, footer span, #mobile-menu span {
    font-weight: 100 !important;
}

/* ヘッダーをブラウン（カーキブラウン）に変更し、文字やアイコンの色を反転 */
#main-header {
    background-color: #6D6350 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

#main-header a, #main-header span, #main-header button {
    color: #ffffff !important;
}

#main-header a:hover {
    color: #EAD183 !important; /* ホバー時はミモザイエロー */
}

/* ヘッダー内の各種SVGアイコンの線の色を白に強制 */
#main-header svg, #main-header svg path {
    stroke: #ffffff !important;
}

/* ただし、InstagramやThreadsなど塗りつぶし(fill)を使うアイコンの塗り色を白にする */
#main-header a svg[fill="currentColor"], #main-header a svg path[fill="currentColor"] {
    fill: #ffffff !important;
    stroke: none !important;
}

/* ハンバーガーメニューボタンの三本線の色を白に */
#menu-btn span {
    background-color: #ffffff !important;
}

/* ヘッダー内の電話ボタンの美化（白透過枠線からホバー時にスムーズに反転） */
#main-header a[href^="tel"] {
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    background-color: transparent !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}
#main-header a[href^="tel"]:hover {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #6D6350 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}
#main-header a[href^="tel"] svg {
    stroke: #ffffff !important;
    transition: all 0.3s ease !important;
}
#main-header a[href^="tel"]:hover svg {
    stroke: #6D6350 !important;
}

/* ヘッダー内のThreads黒ロゴ画像を白反転させる（スマホメニュー内は白背景なので反転不要） */
#main-header .threads-icon {
    filter: brightness(0) invert(1) !important;
}

/* アクセスカード内のテキスト色調整（グローバル!important上書き対策） */
#access-card, 
#access-card *, 
#access-card span, 
#access-card a {
    color: #ffffff !important;
}

#access-card span.text-white\/70 {
    color: rgba(255, 255, 255, 0.7) !important;
}

#access-card a:hover {
    color: #EAD183 !important; /* ホバー時はミモザイエロー */
}

/* FVキャッチコピー 1文字ずつの出現アニメーション */
.char-anim {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px) scale(0.9);
    filter: blur(2px);
    animation: char-reveal-anim 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    color: #ffffff !important;
    font-family: 'Noto Serif JP', serif !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45) !important;
}

@keyframes char-reveal-anim {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* 2行目「こころはずむ」用の弾むアニメーション */
.char-bounce-anim {
    display: inline-block;
    opacity: 0;
    filter: blur(2px);
    animation: char-bounce-reveal 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    color: #ffffff !important;
    font-family: 'Noto Serif JP', serif !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45) !important;
}

@keyframes char-bounce-reveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.6);
        filter: blur(2px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.1); /* 上に弾む */
        filter: blur(0);
    }
    75% {
        transform: translateY(4px) scale(0.95); /* 少し下に戻る */
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1); /* 定位置 */
        filter: blur(0);
    }
}

/* 3行目「フラワーアレンジメント教室」用のフェードインアニメーション */
.char-sub-anim {
    display: inline-block;
    opacity: 0;
    transform: translateY(6px);
    filter: blur(1px);
    animation: char-sub-reveal 0.6s ease-out forwards;
    color: #ffffff !important;
    font-family: 'Noto Serif JP', serif !important;
    font-weight: 700 !important;
}

@keyframes char-sub-reveal {
    to {
        opacity: 0.9;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* 英語フォント一括変更（Cormorant / Birthstone 等を Montserrat Thin 100 に上書き） */
[style*="Cormorant Garamond"],
[style*="Birthstone"],
.font-english {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 100 !important;
    font-style: normal !important;
}

/* すべてのセクションタイトルの色とボーダーをアースオレンジ（#D37A5B）に変更 */
html body header div[style*="Cormorant Garamond"],
html body header div[style*="Montserrat"],
html body [style*="Cormorant Garamond"][style*="color"],
html body [style*="Montserrat"][style*="color"],
header div[style*="Montserrat"],
header div.text-\[\#6D6350\],
header h3[style*="Noto Serif JP"],
header h3.text-\[\#6D6350\],
header h3[style*="color: #6D6350"],
header h3[style*="color:#6D6350"],
.pl-4.border-l-2.border-accent h3,
.px-4.border-x-2.border-accent h3,
.pl-4.border-l-2 h3,
.px-4.border-x-2 h3,
.pl-4.border-l-2,
.px-4.border-x-2 {
    color: #D37A5B !important;
    border-color: rgba(211, 122, 91, 0.4) !important;
}

/* 事業案内セクションの見出しタイトルを濃いブラウンにして可読性を向上 */
html body #business header div,
html body #business header h3 {
    color: #5C534E !important;
    border-color: rgba(92, 83, 78, 0.4) !important;
}

/* アクセスセクションの見出しタイトルを白色に上書き（1.png背景とのコントラスト確保のため） */
html body #contact header div,
html body #contact header h3 {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* プロフィール詳細リストのレスポンシブフォントサイズ指定 */
.profile-details-list,
.profile-details-list li,
.profile-details-list span {
    font-size: 16px !important; /* PCサイズでは16px */
}
@media (max-width: 768px) {
    .profile-details-list,
    .profile-details-list li,
    .profile-details-list span {
        font-size: 14px !important; /* SPサイズ（スマホ）では14px */
    }
}





