/**
 * 全ページ共通のカスタムコンポーネントスタイル（Tailwindユーティリティで表現できない部分）。
 * 元々は各ページのHTML内<style>にページごとコピーされていた（内容は全ページ一致を確認済み）。
 * inc/head.php から読み込む。ページ固有のスタイルは assets/css/pages/*.css を使うこと。
 */

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--brand-charcoal);
    background-color: var(--brand-bg);
    line-height: 1.9;
    letter-spacing: 0.03em;
}

.font-mincho {
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
}

.font-en {
    font-family: 'Montserrat', sans-serif;
}

/* Sidebar Navigation active and hover states */
.sidebar-nav-link {
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
}
.sidebar-nav-link:hover, .sidebar-nav-link.active {
    background-color: var(--brand-tint);
    border-left-color: var(--brand-fuka);
    color: var(--brand-fuka);
    font-weight: 700;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(27, 59, 43, 0.12);
}

/* FAQ accordion（全ページ共通） */
.faq-item .faq-header {
    cursor: pointer;
}
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    overflow: hidden;
    transition:
        grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease;
}
.faq-answer[hidden] {
    display: none;
}
.faq-answer > .faq-answer__inner {
    min-height: 0;
    overflow: hidden;
}
.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
}
.faq-item .faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.is-open .faq-icon {
    transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
    .faq-answer {
        transition: none;
    }
    .faq-item .faq-icon {
        transition: none;
    }
}

/* 共通 CTA ボタン（電話 / WEB）高さ揃え */
.cta-contact__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .cta-contact__actions {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}
.cta-contact__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 4.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    box-sizing: border-box;
}
.cta-contact__label {
    display: block;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 500;
}
.cta-contact__value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
}
.cta-contact__btn--tel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #57534e;
    color: #e7e5e4;
}
.cta-contact__btn--tel:hover {
    background: rgba(255, 255, 255, 0.2);
}
.cta-contact__btn--tel .cta-contact__label {
    color: #a8a29e;
}
.cta-contact__btn--tel .cta-contact__value {
    color: #fde68a;
}
.cta-contact__btn--web {
    background: var(--brand-accent);
    border: 1px solid var(--brand-accent);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.cta-contact__btn--web:hover {
    background: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
}
.cta-contact__btn--web .cta-contact__label {
    color: rgba(255, 255, 255, 0.85);
}
.cta-contact__btn--web .cta-contact__value {
    color: #fff;
}

/* Image slots（実ファイルがあれば表示、なければプレースホルダ） */
.img-slot {
    position: relative;
    overflow: hidden;
    width: 100%;
    background-color: var(--brand-tint);
}
.img-slot--filled img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-slot--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed var(--brand-border);
    min-height: 8rem;
}
.img-slot__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    padding: 1rem;
}
.img-slot__title {
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand-fuka);
    letter-spacing: 0.08em;
}
.img-slot__file {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--brand-muted);
    letter-spacing: 0.04em;
    word-break: break-all;
}

/* PC等の発信できない端末では tel: リンクを非クリック表示にする（main.js が is-tel-static を付与） */
.tel-link.is-tel-static {
    cursor: default;
    pointer-events: none;
}

/* JS無効時の保険。ポインタが精密（=PC）なら hover 演出とカーソルを出さない */
@media (hover: hover) and (pointer: fine) {
    .tel-link {
        cursor: default;
    }
}

/* スマートフォンでフォーム入力時に自動ズームされるのを防止（P10 UX方針） */
@media (max-width: 640px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* スクリーンリーダー専用（table の caption 等）。Tailwind CDN 非到達時のフォールバック。 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
