/*
Theme Name: Hakutoshin Group Theme
Author: Ohtoro Technology Inc.
Description: 白兎神グループ 公式サイトテーマ
Version: 1.1
*/

/* --- 基本設定 --- */
:root {
    --bg-color-main: #ffffff;
    --bg-gradient-top: #ffffff;
    --bg-gradient-bottom: #f0f2f5;
    
    --text-color: #333333;
    --accent-color: #ff3300;
    --sub-color: #cfa000;
    --border-color: rgba(0, 0, 0, 0.1);

    --font-mincho: "Yu Mincho", "Hiragino Mincho ProN", serif;
    --font-gothic: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color-main);
    background-image: linear-gradient(to bottom, var(--bg-gradient-top), var(--bg-gradient-bottom));
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-gothic);
    line-height: 1.8;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { opacity: 0.7; }
ul { list-style: none; padding: 0; }
img { max-width: 100%; height: auto; }

/* --- 雪のアニメーション --- */
.snow-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; /* ←これが重要（クリックを邪魔しない） */
    
    /* ▼▼▼ 修正箇所：0 から 9999 に変更 ▼▼▼ */
    z-index: 9999; 
    /* ▲▲▲ 修正ここまで ▲▲▲ */

    background-image: 
        radial-gradient(circle at 50% 50%, rgba(150, 150, 150, 0.5) 3px, transparent 4px),
        radial-gradient(circle at 20% 80%, rgba(150, 150, 150, 0.3) 2px, transparent 3px),
        radial-gradient(circle at 80% 30%, rgba(150, 150, 150, 0.4) 2.5px, transparent 3.5px);
    background-size: 500px 500px, 400px 400px, 300px 300px;
    animation: snow 15s linear infinite;
}
@keyframes snow {
    0% { background-position: 0 0, 0 0, 0 0; }
    100% { background-position: 0 500px, 0 400px, 0 300px; }
}

.inner {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
	padding: 0 5%;
	box-sizing: border-box; /* ←これを追加 */
}

/* --- ヘッダー --- */
header {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.header-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-logo img {
    height: 40px;
    width: auto;
    border-radius: 50%;
}
.header-text {
    font-family: var(--font-mincho);
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
    letter-spacing: 0.05em;
}

/* ナビゲーション (PC用) */
.header-nav ul { display: flex; gap: 20px; font-size: 0.9rem; font-weight: 500; margin: 0; }

/* ハンバーガーボタン (PCでは非表示) */
.hamburger-btn { display: none; }


/* --- セクション共通 --- */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}
.section-title {
    font-family: var(--font-mincho);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    color: #000;
}
.section-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    margin: 20px auto 0;
}

/* --- FV (Hero) --- */
.hero {
    height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* ▼ カスタマイザー背景画像用に追加・調整した部分 ▼ */
    background-size: cover;       /* 領域全体を埋める */
    background-position: center;  /* 画像の中央を表示 */
    background-repeat: no-repeat; /* 繰り返しなし */
    background-color: var(--bg-color-main); /* 画像未設定時のフォールバック色 */
    /* ▲ 追加・調整ここまで ▲ */

    position: relative;
    color: var(--text-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* 重要: ここで画像の上に「薄い白のフィルター」をかけています。
       画像をもっとくっきり見せたい場合は、0.7 を 0.3 などに下げてください。
    */
    background: rgba(255, 255, 255, 0.7);
    z-index: 0;
}

/* 以下の部分は元のままでOKですが、念のため記載します */
.hero .inner { z-index: 1; width: 100%; }
.hero-logo {
    width: 240px;
    height: 240px;
    margin-bottom: 30px;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.hero h1 {
    font-family: var(--font-mincho);
    font-size: 3rem;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
    color: #000;
    white-space: normal;
}
.hero p {
    color: var(--sub-color);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    font-weight: bold;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.hero h1 {
    font-family: var(--font-mincho);
    font-size: 3rem;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
    color: #000;
    white-space: normal;
}
.hero p {
    color: var(--sub-color);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    font-weight: bold;
}

/* --- 理念セクション --- */
#philosophy {
    background-color: #fafafa;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.philosophy-text {
    text-align: center;
    font-size: 0.8rem;
    line-height: 2.4;
    font-family: var(--font-mincho);
    max-width: 600px;
    margin: 0 auto;
}

/* --- 運営店舗 --- */
#shops { background-color: #f8f9fa; }
.shop-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.shop-images {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}
.shop-logo { width: 150px; height: auto; }
.shop-cast {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.shop-info { flex: 1; min-width: 300px; text-align: left; }
.shop-name {
    font-family: var(--font-mincho);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #000;
}
.shop-description {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

/* --- お知らせセクション --- */
#news {
    background-color: #fafafa;
    border-top: 1px solid var(--border-color);
}
.news-list { max-width: 800px; margin: 0 auto; }
.news-item { border-bottom: 1px solid var(--border-color); }
.news-link {
    display: flex;
    padding: 25px 15px;
    align-items: center;
    /* ↓ここを変更：折り返しをしない設定に */
    flex-wrap: nowrap; 
    gap: 15px;
    transition: background 0.3s;
}
.news-link:hover {
    background: rgba(0,0,0,0.03);
    padding-left: 25px;
}
.news-date {
    /* 日付は固定幅にして縮まないように */
    flex-shrink: 0;
    width: 110px;
    color: var(--sub-color);
    font-family: monospace;
    font-size: 1rem;
    font-weight: bold;
}
.news-title {
    flex: 1; /* 余ったスペースをすべて使う */
    font-weight: 500;
    /* 長いタイトルは...で省略する場合 */
    /* white-space: nowrap; overflow: hidden; text-overflow: ellipsis; */
}
.news-arrow {
    flex-shrink: 0; /* 矢印は縮めない */
    margin-left: auto;
    color: var(--accent-color);
}
.news-archive-btn {
    display: block;
    width: 240px;
    margin: 50px auto 0;
    padding: 18px;
    text-align: center;
    border: 1px solid var(--text-color);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    background: #fff;
    color: var(--text-color);
    transition: 0.3s;
}
.news-archive-btn:hover {
    background: var(--text-color);
    color: #fff;
}

/* --- フッター --- */
footer {
    background: #eaeaea;
    padding: 80px 0 30px;
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
    color: #555;
}
.company-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 60px;
    gap: 50px;
}
.company-logo-area { flex: 1; min-width: 200px; text-align: center; }
.company-details { flex: 2; min-width: 300px; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td {
    text-align: left;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    color: var(--text-color);
}
.company-table th { width: 130px; color: #777; font-weight: normal; }

/* 関連会社ロゴ */
.group-section-wrapper {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.group-section { text-align: center; }
.related-title {
    text-align: center;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 20px;
    letter-spacing: 0.15em;
    display: inline-block;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
.footer-logo {
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.footer-logo:hover { transform: translateY(-5px); }
.parent-logo { max-width: 220px; max-height: 80px; }
.related-logo { max-width: 240px; max-height: 100px; }
.logo-container a { display: inline-block; transition: opacity 0.3s; }
.logo-container a:hover { opacity: 0.7; }

.copyright {
    text-align: center;
    color: #888;
    font-size: 0.75rem;
    margin-top: 50px;
}

/* WordPress Admin Bar 調整 */
body.admin-bar header { top: 32px; }

/* ------------------------------------------------------------------
   モバイル対応 (max-width: 900px でメニュー切り替え)
------------------------------------------------------------------ */
@media (max-width: 900px) {
    /* --- ハンバーガーメニュー関連 --- */
    .header-logo img { height: 35px; }
    .header-text { font-size: 1rem; }
    
    /* ボタンを表示 */
    .hamburger-btn {
        display: block;
        width: 40px;
        height: 40px;
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 200;
    }
    .hamburger-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background: #333;
        position: absolute;
        left: 8px;
        transition: 0.3s;
    }
    .hamburger-btn span:nth-child(1) { top: 12px; }
    .hamburger-btn span:nth-child(2) { top: 19px; }
    .hamburger-btn span:nth-child(3) { top: 26px; }
    
    /* メニューが開いた時のボタン変形 */
    .hamburger-btn.active span:nth-child(1) {
        top: 19px;
        transform: rotate(45deg);
    }
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.active span:nth-child(3) {
        top: 19px;
        transform: rotate(-45deg);
    }

    /* ナビゲーションメニュー（通常は隠す） */
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #ffffff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 150;
        transition: 0.4s;
        padding-top: 80px;
    }
    .header-nav.active {
        right: 0;
    }
    .header-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        font-size: 1.2rem;
    }
    
    /* --- 理念の改行修正 --- */
    /* モバイルではbrタグを無効化して自然に改行させる */
    .philosophy-text br {
        display: none;
    }
    .philosophy-text {
        padding: 0 10px;
        line-height: 2;
    }
    
    /* --- お知らせリスト修正 --- */
    .news-link {
        flex-direction: column; /* スマホでは縦積みに戻す */
        align-items: flex-start;
        gap: 5px;
    }
    .news-date {
        font-size: 0.85rem;
        margin-bottom: 2px;
    }
    .news-title {
        width: 100%;
    }
    .news-arrow {
        align-self: flex-end; /* 矢印だけ右下に */
        margin-top: -20px; /* 少し詰める */
    }

    /* その他スマホ調整 */
    .hero h1 { font-size: 2rem; }
    .hero-logo { width: 160px; height: 160px; }
    .section-title { font-size: 1.8rem; margin-bottom: 40px; }
    .shop-container { flex-direction: column; text-align: center; padding: 25px; }
    .shop-info { text-align: center; min-width: 100%; }
	.shop-description {font-size: 0.8rem;}
    .company-info { flex-direction: column; text-align: left; gap: 30px; }
    .logo-container { flex-direction: column; gap: 20px; }
    .parent-logo { max-width: 180px; max-height: 70px; }
    .related-logo { max-width: 240px; max-height: 140px; }
    body.admin-bar header { top: 0; }
    body { font-size: 0.95rem; }
}