html {
    /* 上部のオーバースクロール領域とモバイルのステータスバー背後を、
       ヘッダーと同じ黒にする（白が覗くのを防ぐ） */
    background-color: #1c1917;
}

body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    color: #404040;
    background-color: #fdfcfa;
    overflow-x: hidden;
    line-height: 1.75;
    letter-spacing: 0.01em;
}

.fade-in { animation: fadeIn 0.5s ease-out forwards; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-link {
    position: relative;
    font-weight: 700;
    font-size: 0.9rem;
    color: #e7e5e4;
    transition: color 0.2s;
}
.nav-link:hover, .nav-link.current { color: #d4bc8a; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #b8975a;
    transition: width 0.25s;
}
.nav-link.current::after, .nav-link:hover::after { width: 100%; }

#mobile-menu-overlay {
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}
#mobile-menu-content {
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
}
#mobile-menu-overlay:not(.invisible) {
    opacity: 1;
}
#mobile-menu-overlay:not(.invisible) #mobile-menu-content {
    transform: translateX(0);
}

.card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #eae7e2;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
/* ホバーの浮き上がりは「実際にクリックできるカード」だけに適用する。
   カード自体がリンク（a.card）か、カード全体がリンクで包まれている場合のみ。
   リンクでないカードに反応があると、押せると誤認させてしまうため。 */
a.card:hover,
a:hover > .card {
    border-color: #b8975a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(30,30,30,0.05);
}

.faq-filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #eae7e2;
    background: #fff;
    color: #57534e;
    transition: background .2s, color .2s, border-color .2s;
    cursor: pointer;
}
.faq-filter-btn:hover { background: #f9f8f6; }
.faq-filter-btn.active { background: #1e3e50; color: #fff; border-color: #1e3e50; }

@media (prefers-reduced-motion: reduce) {
    .fade-in { animation: none; }
}

/* ヒーロー：対角線で写真パネルを切る */
.hero-photo-panel {
    position: relative;
}
@media (min-width: 768px) {
    .hero-photo-panel {
        clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

.hero-badge {
    box-shadow: 0 10px 30px rgba(30,30,30,0.18);
}

/* コラム記事本文 */
.blog-article h2 {
    font-size: 1.35rem;
    font-weight: 900;
    color: #292524;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    scroll-margin-top: 5rem;
}
.blog-article h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #292524;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}
.blog-article p {
    color: #44403c;
    line-height: 1.9;
    margin-bottom: 1.25rem;
}
.blog-article ul, .blog-article ol {
    margin: 0 0 1.25rem 1.25rem;
    color: #44403c;
    line-height: 1.9;
}
.blog-article ul { list-style: disc; }
.blog-article ol { list-style: decimal; }
.blog-article li { margin-bottom: 0.4rem; }
.blog-article strong { font-weight: 700; color: #1c1917; }
.blog-article .article-highlight {
    background: #f9f8f6;
    border-left: 4px solid #b8975a;
    border-radius: 0 1rem 1rem 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}
.blog-article .article-highlight p { margin-bottom: 0; }

/* ファーストビューのイントロローダー */
#intro { display: none; }
html.intro-playing #intro {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    background: #1c1917;
    transition: transform .9s cubic-bezier(.76, 0, .24, 1);
    will-change: transform;
}
html.intro-playing #intro.is-leaving { transform: translateY(-100%); }
html.intro-lock, html.intro-lock body { overflow: hidden; }

/* イントロの書体：Shippori Mincho B1。端正な明朝を字間広めで組む */
#intro p {
    font-family: 'Shippori Mincho B1', serif;
    font-weight: 800;
    letter-spacing: .06em;
}
.intro-line { display: block; opacity: 0; transform: translateY(14px); }
html.intro-playing .intro-line {
    animation: introLineIn .9s cubic-bezier(.22, 1, .36, 1) var(--d, 0s) forwards;
}
@keyframes introLineIn { to { opacity: 1; transform: none; } }

html.intro-playing .hero-item { opacity: 0; transform: translateY(14px); }
html.intro-done .hero-item {
    animation: heroItemIn .7s cubic-bezier(.22, 1, .36, 1) var(--d, 0s) forwards;
}
@keyframes heroItemIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    html.intro-playing #intro { display: none; }
    html.intro-playing .hero-item,
    html.intro-done .hero-item { opacity: 1; transform: none; animation: none; }
    html.intro-lock, html.intro-lock body { overflow: visible; }
}

/* ファーストビュー：3枚クロスフェードのスライドショー */
.fv-slider { position: absolute; inset: 0; overflow: hidden; }
.fv-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: fvFade 21s cubic-bezier(.4, 0, .2, 1) infinite;
}
.fv-slide:nth-child(1) { animation-delay: 0s; }
.fv-slide:nth-child(2) { animation-delay: 7s; }
.fv-slide:nth-child(3) { animation-delay: 14s; }
.fv-slide img { width: 100%; height: 100%; object-fit: cover; }
@keyframes fvFade {
    0%     { opacity: 0; transform: scale(1.08); }
    5%     { opacity: 1; }
    33.33% { opacity: 1; }
    38.33% { opacity: 0; transform: scale(1); }
    100%   { opacity: 0; transform: scale(1.08); }
}

.fv-dot { position: relative; width: 32px; height: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.fv-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    animation: fvDot 21s linear infinite;
}
.fv-dot:nth-child(1)::after { animation-delay: 0s; }
.fv-dot:nth-child(2)::after { animation-delay: 7s; }
.fv-dot:nth-child(3)::after { animation-delay: 14s; }
@keyframes fvDot {
    0%     { opacity: 0; }
    5%     { opacity: 1; }
    33.33% { opacity: 1; }
    38.33% { opacity: 0; }
    100%   { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .fv-slide { animation: none; opacity: 0; transform: none; }
    .fv-slide:first-child { opacity: 1; }
    .fv-dot::after { animation: none; opacity: 0; }
    .fv-dot:first-child::after { opacity: 1; }
}

/* ヘッダー：ファーストビュー上では透過（スクロールで通常の状態に戻る） */
/* 横スライダー（Google口コミ／お客様の声）
   自動で流れつつ、指・トラックパッド・ドラッグで自分で動かせる。
   カード自体はリンクではないため、ホバーの浮き上がりは無効化している。 */
.review-marquee,
.voice-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}
.review-marquee::-webkit-scrollbar,
.voice-marquee::-webkit-scrollbar { display: none; }
.review-marquee.is-dragging,
.voice-marquee.is-dragging { cursor: grabbing; }

.review-marquee-track,
.voice-marquee-track {
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    width: max-content;
    padding: 0 1rem;
}

.review-marquee .card,
.voice-marquee .card { cursor: inherit; }
.review-marquee .card:hover,
.voice-marquee .card:hover {
    border-color: #eae7e2;
    transform: none;
    box-shadow: none;
}
