@charset "utf-8";

/* ================================================
    1. Base & Reset
    現代のブラウザ向けに最適化したリセットと基本設定
================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f0f0f0 url(../img/wm_saiph_bg_body.gif) repeat-x;
font-family: "Inter", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic,  Meiryo, sans-serif;
    color: #4a4a4a; /* 真っ黒ではなく、少しグレーを混ぜて目に優しく */
    -webkit-font-smoothing: antialiased; /* 文字の縁を滑らかにする（Mac/Chrome向け） */
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.8;
    text-align: center;
    -webkit-text-size-adjust: 100%;
}

a {
    color: #61ADB5;
    text-decoration: underline;
    transition: 0.2s ease-in-out;
}

a:hover {
    text-decoration: none;
    color: #3d7e85;
}

/* ================================================
    2. Layout Structure
================================================ */
#container {
    max-width: 1080px !important;
    width: 95% !important;
    margin: 20px auto !important;
    text-align: left;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ================================================
    3. Header & Navigation (最適化済)
================================================ */
#header {
    background-color: #ffffff !important;
    display: flex;
    flex-direction: column; /* 上下に積み上げる */
    padding: 0 !important;
    height: auto !important;
}

#title {
    order: 1; /* 一番上 */
    padding: 15px;
    background: #ffffff !important; /* 背景を白に固定 */
    text-align: center;
}

#title h1 {
    font-size: 1.1rem;
    color: #333333 !important; /* 文字を読みやすく */
    line-height: 1.5;
}

/* ナビゲーションメニュー */
#menu {
    margin-top: auto; /* コンテナの下側に配置 */
}

#menu .menu {
    order: 2; /* 2番目 */
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    background: #808080 url(../img/wm_saiph_bg_menu.gif) repeat-x;
}

#menu .menu li {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

#menu .menu li a {
    display: block;
    padding: 8px 5px; /* 縦幅を狭く調整 */
    color: #f5f5f5;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    border-right: 1px solid #858585;
    background: #9c9c9c url(../img/wm_saiph_bg_menu_item.gif) repeat-x;
}

#menu .menu li a:hover {
    background: #808080;
    color: #ffffff;
}

#header::after {
    content: "";
    display: block;
    order: 3; /* 3番目（一番下） */
    width: 100%;
    /* 画像の比率に合わせて高さを調整 (横4:縦1なら25%) */
    padding-bottom: 25%; 
    background-image: url(../img/wm_saiph_title_image.jpg) !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important; /* 全体を収める */
    background-color: #ffffff;
    border-bottom: 1px solid #e1e1e1;
}

/* ================================================
    4. Main Content Area
================================================ */
#main {
    padding: 40px 5% !important; /* 左右の余白を％指定にして、広くなった幅を活かす */
    background: #ffffff;
}

/* 記事本文の横幅をいっぱいまで使う */
#entry, .content {
    width: 100% !important;
}


h1 {
    font-size: 1.55rem; /* サイズを適正化 */
    color: #2c3e50;
    margin-bottom: 35px;
    padding-bottom: 2px;
    border-bottom: 1px solid #eee; /* 全体は細い線に */
    position: relative;
    text-align: left;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1::after {
    content: "";
    position: absolute;
    bottom: -1px; /* border-bottomに重ねる */
    left: 0;
    width: 80px; /* 左側だけアクセント */
    height: 3px;
    background-color: #61ADB5;
}

h2 {
    margin: 19px 0;
    padding: 6px 15px;
    border-left: 12px solid #F0F0F0;
    color: #333333;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.4;
}

/* H3: 線と白抜きを使ったクリーンなデザイン */
h3 {
    margin: 18px 0 15px;
    padding: 5px 0;
    font-size: 1.25rem;
    color: #2c3e50;
    border-bottom: 2px solid #61ADB5;
    display: inline-block; /* 下線を文字の長さに合わせる */
    padding-right: 30px;
}

/* H4: 小見出しとしてシンプルに */
h4 {
    margin: 17px 0 10px;
    font-size: 1.1rem;
    color: #555;
    display: flex;
    align-items: center;
}

h4::before {
    content: "■";
    color: #61ADB5;
    margin-right: 8px;
    font-size: 0.9rem;
}

p {
    font-size: 1rem; /* 1.05からわずかに下げて「まとも」な密度に */
    line-height: 1.85;
    margin-bottom: 0.8em;
    font-weight: 620; /* 太すぎないように設定 */
    letter-spacing: 0.02em; /* 文字の間隔をわずかに広げると「垢抜け」ます */
    text-align: justify; /* 両端を揃えて、本のような整然とした見た目に */
}





/* 画像制御 */
.entry-image img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
}

.img-center {
    text-align: center;
    margin: 20px 0;
}

.img-float-left {
    float: left;
    margin: 0 20px 10px 0;
}

/* float解除 */
.entry-body::after {
    content: "";
    display: block;
    clear: both;
}

/* CTA Button (ボタンデザインの現代化) */
.cta-container {
    clear: both;
    margin: 40px 0;
    text-align: center;
}

.btn-cta {
    display: inline-block;
    padding: 12px 24px;
    color: #61ADB5;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #61ADB5;
    border-radius: 50px;
    background: #fff;
    box-shadow: 0 4px 0 #4e8a91;
    transition: 0.2s;
}

.btn-cta:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #4e8a91;
    background: #61ADB5;
    color: #ffffff;
}


/* ================================================
    追加：コンテンツメニュー (Card Grid)
================================================ */
.content-menu-wrap {
    margin: 60px 0 20px;
    padding: 40px;
    background-color: #fcfcfc; /* ほんの少し色を変えて「エリア」を分ける */
    border-radius: 12px;
    border: 1px solid #eee;
}

.menu-title {
    text-align: center;
    margin-bottom: 30px !important;
    border-left: none !important; /* H2のデフォルト装飾を消す */
    background: none !important;
    padding: 0 !important;
    font-size: 1.4rem !important;
    color: #2c3e50;
    position: relative;
}

.menu-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: #61ADB5;
    margin: 15px auto 0;
}

.content-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PCは3列 */
    gap: 20px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none !important; /* 下線を消す */
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.menu-item:hover {
    transform: translateY(-5px);
    border-color: #61ADB5;
    box-shadow: 0 8px 20px rgba(97, 173, 181, 0.15);
}

.menu-icon {
    font-size: 1.2rem;
    color: #61ADB5;
    margin-bottom: 10px;
}

.menu-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4a4a4a;
}

.menu-item:hover .menu-text {
    color: #61ADB5;
}


/* ================================================
    5. Footer
================================================ */

#footer {
    padding: 60px 20px; /* 余白を広めにとり、ゆとりを持たせる */
    text-align: center;
    background: #fcfcfc;
    border-top: 1px solid #eee;
}

/* 関連カテゴリーリンクのスタイル */
.footer-links {
    max-width: 800px;
    margin: 0 auto 40px; /* 下のコピーライトとの間に余白を確保 */
    padding: 30px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
}

.footer-links p {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 20px !important;
    text-align: center !important;
}

.footer-links ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px; /* リンク同士の間隔 */
    flex-wrap: wrap; /* スマホで折り返す設定 */
}

.footer-links li a {
    font-size: 0.95rem;
    font-weight: 700;
    color: #61ADB5;
    text-decoration: none;
    padding: 5px 10px;
    position: relative;
    transition: 0.3s;
}

/* マウスホバー時に下線がスッと出るアニメーション */
.footer-links li a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #61ADB5;
    transition: 0.3s;
}

.footer-links li a:hover::after {
    width: 100%;
}

/* コピーライト（address） */
#footer address {
    font-style: normal;
    font-size: 0.85rem;
    color: #bbb;
    letter-spacing: 0.05em;
}

/* ================================================
    6. Responsive (Mobile)
================================================ */


@media screen and (max-width: 480px) {
    .content-menu-wrap {
        padding: 25px 15px;
        margin-top: 40px;
    }
    
    .menu-item {
        padding: 20px 10px;
    }
    
    .menu-text {
        font-size: 0.85rem;
    }
}


/* --- レスポンシブ調整 --- */
@media screen and (max-width: 768px) {
    .content-menu-grid {
        grid-template-columns: repeat(2, 1fr); /* タブレット・スマホは2列 */
        gap: 12px;
    }
}



@media screen and (max-width: 640px) {
    #container {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    #header {
        padding-top: 15px;
        padding-bottom: 50px; /* スマホではさらに低く */
    }

    #header::after {
        padding-bottom: 35%; /* スマホでは高さを少し出す */
    }

    #menu .menu li {
        width: 50%;
        flex: none;
    }

    #menu .menu li a {
        padding: 10px 5px;
        border-bottom: 1px solid #858585;
    }

    .img-float-left {
        float: none;
        margin: 0 0 15px 0;
        text-align: center;
    }

    h2 {
        font-size: 1.1rem;
        padding-left: 10px;
        border-left-width: 8px;
    }

    .footer-links {
        padding: 20px 10px;
    }
    
    .footer-links ul {
        flex-direction: column; /* 縦に並べる */
        gap: 15px;
    }
    
    .footer-links li a {
        display: block;
        border-bottom: 1px solid #f9f9f9;
        padding-bottom: 10px;
    }
}