html body {
    font-family: "Zen Kaku Gothic New","Noto Sans JP", "Yu Gothic",
        'Meiryo', sans-serif;
    font-size: 23px;
}

a {
    text-decoration: none;
    color: #3b3b3b;
}

.w_inner {
    max-width: 1200px;
    width: 80%;
    margin: 0 auto;
}

.spacer {
    height: 20px;
}

.link-btn {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
}
.link-btn:hover{
    background-color: #0056b3;
}

/*ヘッダー*/
.header {
    width: 100%;
    margin: 0 auto;
}

.page_name {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #79a1b1;
}

.page_name img {
    height: 50px;
    /* お好みで調整 */
    width: auto;
    display: block;
}

/*.header .page_name a { 
    font-family: "游ゴシック","メイリオ";
    color: #eeeeee;
    font-weight: 500;
    margin-top: 5px;
    margin-bottom: 10px;    
}*/

.header_contents {
    display: flex;
    justify-content: center;
    background-color: #eeeeee;
}

.header ul {
    display: flex;
    background-color: #eeeeee;
    max-width: 1200px;
    width: 100%;
}

.header ul li {
    flex: 1;
    min-width: 200px;
    text-align: center;
    margin-top: 1px;
    position: relative;
}

.header ul li a {
    font-family: "Zen Maru Gothic New";
    display: block;
    color: #3b3b3b;
    font-weight: bold;
}

/*ホバー時、サブメニューを表示*/
.header ul li .sub-menu {
    display: none;
}

.header ul li:hover .sub-menu {
    display: block;
}

/* Global Menu */
ul>li>a {
    padding: 15px 30px;
    display: block;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: .2em;
}

ul>li:hover>a {
    background-color: #efefef;
    color: #444;
}

/* サブメニュー */
ul li ul {
    position: absolute;
    top: 55px;
    left: 0;
}

ul li ul li {
    display: block;
}

ul li ul li a {
    background-color: #d0e3eb;
    color: #444;
}

ul li ul li a:hover {
    background-color: #ddd;
}

/*ヘッダー画像 画像比32:7*/
.header_img img {
    height: auto;
    max-width: 100%;
}

/*診断選択ブロック*/
.test_block {
    display: flex;
    justify-content: space-between;
}

.test {
    text-align: center;
}

.test img {
    width: 25%;
    height: auto;
}

.test .ttl {
    text-align: center;
    font-weight: bold;
    font-size: 27px;
    margin-bottom: 20px;
}

.test .explain {
    margin: 20px auto 50px auto;
    /* 上下のマージン＋中央寄せ */
    text-align: center;
    width: 90%;
    /* または max-width を使用 */
    max-width: 500px;
    /* 最大幅を制限 */
}

.btn {
    background: #79a1b1;
    color: white;
    padding: 15px 20px 12px;
    border: 2px solid #3b3b3b;
    border-radius: 20px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s, transform 0.2s;
}

.btn:hover {
    box-shadow: 4px 4px 8px #3b3b3b;
    transform: scale(1.05);
}

.btn-small {
    background: #ffffff;
    padding: 1px 10px;
    border: 2px solid #3b3b3b;
    border-radius: 10px;
    box-shadow: 5px 5px 10px #0000004d;
    transition: box-shadow 0.3s, transform 0.2s;
}

.btn-small:hover {
    box-shadow: 4px 4px 8px #3b3b3b;
    transform: scale(1.05);
}

.btn-small::after {
    content: "→";
    margin-left: 5px;
    font-size: 1em;
    font-weight: bold;
}

/*フッター*/
.footer {
    margin-top: 80px;
}

.page_link {
    text-align: left;
    margin-left: 50px;
}

.page_link a {
    margin-right: 10px;
}

.copy {
    text-align: center;
    width: 100%;
    background: #79a1b1;
    color: #fff;
    font-size: 12px;
    padding: 10px 0;
}

/*ニューリリース情報欄*/
.new-releases {
    background-color: #f0f0f0;
}

#topNewRelease {
    margin-top: 60px;
}

#topNewRelease img {
    width: 100%;
    height: auto;
}

.release-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.date {
    color: #888;
    font-size: 1.5rem;
    white-space: nowrap;
    min-width: 6.5rem;
    /* 揃えると綺麗 */
}

h3.r_title {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    text-shadow: none;
    border-bottom: none;

}


/*よく読まれている対策*/
.popular_section {
    background-color: #f0f0f0;
    margin-top: 70px;
    margin-bottom: 50px;
    padding: 20px 10px;
}

.popular_list {
    list-style: none;
    /* リストの点を非表示 */
    padding: 0;
    margin: 0;
}

.popular_list li {
    display: flex;
    /* Flexboxで横並びにする */
    align-items: baseline;
    /* ベースラインで揃える（タイトルとリンクの文字の下端） */
    margin: 20px 5px;
    /* 各項目の間隔 */
}

.popular_title_item {
    margin-right: 10px;
    /* タイトルとリンクの間隔 */
}

/* 本サイトについて */
.purpose {
    margin-bottom: 20px;
}

.purpose ul {
    background-color: #fff;
    width: auto;
    height: auto;
}

.character_block {
    display: flex;
    flex-direction: column;
    /* 縦に並べる */
    gap: 1.5rem;
    /* キャラ同士の間隔 */
    max-width: 600px;
    margin: 0 auto;
    /* 中央寄せ */
}

.character {
    display: flex;
    align-items: center;
    /* 垂直中央揃え */
    gap: 1rem;
}

.character_block img {
    width: 15%;
    height: auto;
    border-radius: 8px;
}

.character p {
    margin: 0;
    font-size: 1rem;
}

.author-box {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px;
}

.author-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.author-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.author-social li {
    margin: 0 10px;
}

/* 記事 */
.blog_container {
    width: 100%;
    margin: 0 auto;
}

article {
    font-family: Arial, sans-serif;
    margin-top: 20px;
    line-height: 1.7;
}

article p {
    margin-bottom: 1.6em;
    letter-spacing: 2px;
}

h1 {
    color: #333;
    font-size: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
}

h2 {
    color: #555;
    font-size: 27px;
    font-weight: bold;
    background: #f5f4f2;
    border-left: solid 4px #006633;
    margin: 35px 0 20px;
    padding: 10px 12px;
}

h3 {
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    color: #2c3e50;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    margin: 15px 0;
}

h4 {
    padding: 10px;
    color: #2c3e50;
    border-radius: 5px;
}

.article_type {
    display: flex;
}

.datetime_check {
    background-image: url('../img/clock_blog.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 21px 21px;
    padding-left: 22px;
    margin-left: 1em;
    line-height: 1.8;
    display: inline-block;
}

.article_meta {
    font-size: 18px;
    text-align: left;
}

.blog_img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

article ul {
    background-color: antiquewhite;
    width: auto;
    height: auto;
    margin-bottom: 0.5em;
}

/* まとめ */
.summary {
    background-color: #014121;
    /* 黒板の色 */
    border: 5px solid #555;
    /* 黒板の枠線 */
    padding: 20px;
    border-radius: 10px;
    /* 角を丸くする */
    margin: 30px 20px 25px 20px;
    /* 周りの余白 */
    box-shadow: 5px 5px 10px #111;
    /* 全体的な影 */
}

.summary h4 {
    color: #f0f0f0;
    /* チョークのような色 */
    font-family: 'Segoe Script', cursive;
    /* 手書き風フォント */
    text-shadow: 2px 2px 3px #333;
    /* 文字に影をつけて立体感を出す */
    margin: 10px;
    /* ulとの余白を調整 */
    font-size: 2em;
    /* まとめを大きく強調 */
    text-align: center;
    /* 中央揃え */
}

#summary_list {
    list-style-type: disc;
    padding-left: 40px;
    /* リストのインデントを調整 */
    padding-top: 20px;
    padding-bottom: 10px;
    background-color: #006633;
    border-radius: 10px;
    /* 角を丸くする */
}

article .summary li {
    color: #f0f0f0;
    /* チョークのような色 */
    font-family: 'Segoe Script', cursive;
    /* 手書き風フォント */
    text-shadow: 1px 1px 2px #333;
    /* 文字に影をつけて立体感を出す */
    margin-bottom: 8px;
    font-size: 1.2em;
    /* リストの文字を少し大きく */
}

/* 会話形式 */
.conversation {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
    margin: 6% 0;
}

.conversation p {
    margin-bottom: 0;
}

.speaker {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.speaker-left {
    justify-content: flex-start;
    /* 左寄せ */
}

.speaker-right {
    justify-content: flex-end;
    /* 右寄せ */
}

.speaker img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.bubble {
    max-width: 70%;
    padding: 15px;
    border-radius: 20px;
    background-color: #e0f7fa;
    position: relative;
}

.bubble-left {
    background-color: #e1f5fe;
    align-self: flex-start;
    margin-left: 30px;
}

.bubble-left::after {
    content: '';
    position: absolute;
    top: 10px;
    left: -20px;
    margin-top: 10px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: #e1f5fe;
}

.bubble-right {
    background-color: #fce4ec;
    align-self: flex-end;
    margin-right: 20px;
}

.bubble-right::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    /* 吹き出しの右側に配置 */
    margin-top: -10px;
    border-width: 10px 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent transparent #fce4ec;
    /* 尖った部分の色 */
}

/* 診断ページ*/
.explanation {
    max-width: 1200px;
    margin: 20px;
    padding: 20px;
    background: #f9f9f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 2px solid #ddd;
}

.explanation p {
    font-size: 25px;
    margin-top: 25px;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

/* 縦スクロール */
.question-form {
    max-width: 1200px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 質問 */
.question_page a {
    display: flex;
    align-items: right;
    max-width: 30%;
}

.question-block {
    margin-top: 5px;
    margin-bottom: 5px;
}

.question-block p {
    font-size: 25px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
}

.answer-options {
    margin-bottom: 10px;
    margin-left: 20px;
}

.answer-options label {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #ccc;
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    /* アニメーションの設定 */
    cursor: pointer;
    /* 選択を可能にする */
    background-color: #ffffff;
}

/* 回答欄ホバー時 */
.answer-options input[type="radio"]:hover+label {
    transform: scale(1.04);
    /* わずかに拡大 */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    /* より強調された影 */
    background-color: #bbdefb;
    /* 強調された背景色 */
}

/* ラジオボタン自体のスタイルを非表示にする */
.answer-options input[type="radio"] {
    display: none;
}

/* 選択時、label要素に適用*/
.answer-options input[type="radio"]:checked+label {
    transform: scale(1.07);
    background-color: #90caf9;
    border-color: #42a5f5;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* ボタン */
button[type="submit"] {
    background-color: #42a5f5;
    color: #fff;
    font-size: 25px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button[type="submit"]:hover {
    background-color: #1e88e5;
    transform: scale(1.05);
}

/*回答ゲージ*/
.progress-container {
    width: 100%;
    background-color: #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    height: 30px;
}

.progress-bar {
    height: 30px;
    background-color: #79a1b1;
    color: white;
    text-align: center;
    line-height: 30px;
    transition: width 0.4s ease;
    border-radius: 5px 0 0 5px;
    position: relative;
    z-index: 1;
}

/* 区切り線のオーバーレイ */
.progress-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(to right,
            transparent,
            transparent calc(100% / 10 - 1px),
            white calc(100% / 10 - 1px),
            white calc(100% / 10));
    z-index: 2;
    pointer-events: none;
}

/* 診断結果の表示 */
.result_comment {
    max-width: 90%;
    margin: 30px 20px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 2px solid #4a4a8e;
}

.result_comment h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #4a4a8e;
    padding-bottom: 5px;
    border-left: none;
}

.result_icon {
    max-width: 8%;
    max-height: 5%;
    margin-left: 6%;
    margin: 0 0 -10px 0;
}

.result_comment a {
    font-size: 20px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.common_comment {
    background-color: #f9f9f9;
    border-left: 6px solid #4CAF50;
    /* やさしい緑 */
    padding: 1em;
    margin: 0 0 1em 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    line-height: 1.6;
}

.result_comment a:hover {
    color: #007BFF;
    /* ホバー時に青色に */
}

.result_comment a {
    background-color: #f9f9f9;
    padding: 0.5em;
    margin: 1.5em 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    line-height: 1.6;
}

.result_img {
    text-align: center;
}

.result_img img {
    max-width: 80%;
    height: auto;
}

/*苦手対策ページ一覧*/
.nigate_page_list {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

.nigate_page_list h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 20px;
    color: #4a4a8e;
    border-bottom: 2px solid #4a4a8e;
    padding-bottom: 5px;
}

.nigate_page_list ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /*2列に分割*/
    gap: 20px;
}

.nigate_page_list ul li {
    padding: 10px;
    background: #f9f9ff;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nigate_page_list ul li a {
    text-decoration: none;
    color: #4a4a8e;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

/*リストホバー時*/

.nigate_page_list ul li:hover {
    background: #e4e0b7;
    transform: translateY(-3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nigate_page_list ul li a:hover {
    background: #e4e0b7;
}

/*追加のメディアクエリ*/
@media (max-width: 768px) {
    .w_inner {
        width: 100%;
        /*スマホの幅に揃える*/
    }

    .header_img img {
        max-width: 100%;
        height: auto;
    }

    .blog_img img {
        max-width: 100%;
        height: auto;
    }

    .header {
        min-width: 400px;
        width: 100%;
        /*スマホの幅にヘッダーを揃えるため*/
    }

    .header .page_name {
        padding-top: 6px;
        padding-bottom: 10px;
    }

    .header ul {
        flex-direction: column;
    }

    .header ul li {
        min-width: auto;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .header ul li:first-child {
        border-left: none;
    }

    .test_block {
        flex-direction: column;
        align-items: center;
    }

    .test {
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .test .explain {
        width: 75%;
    }

    .question_page .btn {
        margin-left: 20px;
    }

    .result_icon {
        max-width: 20%;
        margin-left: 0;
        margin: 0 0 -15px 0;
    }

    .result_img {
        max-width: 100%;
        display: block;
    }

    .nigate_page_list {
        max-width: 80%;
        margin: 30px auto;
    }

    .nigate_page_list ul {
        grid-template-columns: 1fr;
        /* 1列にする */
    }

    article {
        width: 93%;
        /*スマホ時の記事内容の幅*/
        margin: 0 20px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 18px;
    }

    .test .ttl {
        font-size: 22px;
    }

    h1 {
        color: #333;
        font-size: 20px;
        margin-top: 0.8em;
        margin-bottom: 0.6em;
    }

    h2 {
        font-size: 19px;
        margin: 0 0 20px 0;
    }

    h3.r_title {
        font-size: 1em;
        margin: 0.9em 0 0 0;
    }

    .date {
        font-size: 1em;
    }

    .answer-options label {
        font-size: 16px;
    }

    .result_comment h2 {
        font-size: 1.1em;
    }
}

body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .header ul {
        flex-direction: column;
    }

    .header ul li {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .answer-options label {
        width: 80%;
        box-sizing: border-box;
        font-size: 16px;
    }

    button[type="submit"] {
        width: 100%;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .bubble {
        max-width: 100%;
        font-size: 16px;
    }
}

/* ===== ハンバーガーメニューの基本スタイル ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 39px;
    height: 32.5px;
    cursor: pointer;
    z-index: 1000;
}

.hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    transition: 0.4s;
}

/* ===== 開閉時のアニメーション ===== */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6.5px, 6.5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7.8px, -7.8px);
}

/* ===== スマホ表示の設定 ===== */
@media (max-width: 768px) {

    /* ハンバーガーメニュー */
    .hamburger {
        display: flex;
        position: absolute;
        top: 14px;
        right: 10px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        /* 影をつけて立体感 */
        cursor: pointer;
        z-index: 1000;
        /* 他の要素に埋もれないように */
    }

    /* メニュー本体 */
    .header_contents {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
        /* メニューが下に埋もれないように追加 */
    }

    /* メニュー表示状態（JSでactiveクラス付与） */
    .header_contents.active {
        display: flex;
    }

    /* メニュー内のリスト */
    .header_contents ul {
        flex-direction: column;
        margin: 0;
        padding: 0;
    }

    .header_contents li {
        padding: 10px;
        border-bottom: 1px solid #ccc;
    }

    /* サブメニューの表示切替 */
    .header_contents .sub-menu {
        display: none;
        position: static;
        flex-direction: column;
        z-index: auto;
        gap: 10px;
    }

    .header_contents li:hover .sub-menu {
        display: block;
    }

    .sub-menu li {
        position: static;
        margin-top: 0;
    }

    /* 診断フォームなどの下層要素が重ならないように */
    .question-form,
    .result_comment {
        position: static;
        z-index: auto;
    }

    .character {
        align-items: flex-start;
    }

    .character img {
        width: 10%;
        max-width: 200px;
    }

    .author-box img {
        max-width: 150px;
        object-fit: cover;
        border-radius: 50%;
        margin-bottom: 20px;
    }

    .speaker img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
    }
}

/*パンくずリスト*/
.breadcrumb ol {
    display: flex;
    list-style: none;
    padding: 0;
    font-size: 0.9em;
    margin-top: 0.5em
}

.breadcrumb li+li::before {
    content: " > ";
    padding: 0 0.5em;
    color: #888;
}

/*2025の5月追加*/
@media screen and (max-width: 768px) {
    .header ul {
        display: block;
    }

    .header ul li {
        display: block;
        border-right: none;
        margin-bottom: -5px;
    }

    .header ul li .sub-menu {
        display: block;
        /* スマホでは常時表示にする */
        position: static;
    }

}