/* リセットと基本設定 */
html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; font-family: 'Noto Sans JP', sans-serif; color: #333; overflow-x: hidden; }

/* ヘッダー：両端寄せ */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    /* ★ここが重要：背景を白くし、下に薄い影をつける */
    background-color: rgba(255, 255, 255, 0.95); 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-link { text-decoration: none; color: inherit; }
.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-img { width: 100px; height: auto; }

.nav-list { display: flex; list-style: none; gap: 30px; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; color: #333; font-weight: bold; font-size: 0.9rem; }

/* ヒーローエリアとスライダー */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }

.slider { position: absolute; inset: 0; z-index: 1; }
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
}
.slide.active { opacity: 1; }

/* ★黒文字を見やすくするための白幕（オーバーレイ） */
.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.5); /* 0.5で50%の白。数値を上げるとより白くなります */
}

/* 縦書き文字 */
.hero-content { position: relative; z-index: 10; }
.vertical-text {
    writing-mode: vertical-rl;
    font-family: 'Shippori Mincho', serif;
    font-size: 3rem;
    letter-spacing: 0.4em;
    color: #333; /* 墨色 */
    line-height: 1.5;
}

/* お知らせ（中央寄せ） */
.section { padding: 100px 20px; text-align: center; }
.news-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 40px auto 0;
    text-align: left;
}
.news-list li { padding: 15px 0; border-bottom: 1px solid #eee; display: flex; gap: 20px; }
.news-list .date { color: #888; font-weight: bold; }

/* --- 追加セクションのスタイル --- */
.bg-light {
    background-color: #fafafa;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 2rem;
    margin-bottom: 40px;
    letter-spacing: 0.2em;
}

.service-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    padding: 40px;
    width: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.contact-info {
    margin-top: 30px;
    font-size: 1.2rem;
    line-height: 2;
}

/* スクロール位置の調整（ヘッダーに被らないように） */
section {
    scroll-margin-top: 80px;
}


/* --- COMPANYセクションのスタイル --- */
.company-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.info-list {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 左が1、右が2の比率 */
    border-top: 1px solid #ddd;
}

.info-list dt {
    padding: 25px 20px;
    font-weight: bold;
    background-color: #f9f9f9; /* 項目側にうっすら色付け */
    border-bottom: 1px solid #ddd;
}

.info-list dd {
    padding: 25px 20px;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

/* スマホで見るときは縦に並べる */
@media (max-width: 600px) {
    .info-list {
        grid-template-columns: 1fr;
    }
    .info-list dt {
        padding: 15px 20px;
        background-color: #eee;
    }
}

/* --- セクションごとの背景色でリズムをつける --- */
#news { background-color: #fff; }
#service { background-color: #fafafa; } /* 薄いグレー */
#company { background-color: #fff; }
#contact { background-color: #fafafa; }

/* フッターのデザイン */
.footer {
    background-color: #333; /* 濃いグレーで引き締める */
    color: #fff;            /* 文字は白 */
    padding: 40px 0;        /* 上下にゆとりを持たせる */
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.footer p {
    margin: 0;
}

/* ぽちゃんエフェクト */
#ripple-container { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
.ripple {
    position: absolute;
    border: 1px solid rgba(142, 35, 35, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple-anim 1s ease-out forwards;
}
@keyframes ripple-anim {
    from { width: 0; height: 0; opacity: 1; }
    to { width: 200px; height: 200px; opacity: 0; }
}