/* ========================================
   Common CSS - ヘッダー・フッター共通スタイル
   base_common.css優先で統合
======================================== */

/* CSS変数のインポート */
@import url('/base_assets/css/variables.css');

/* ========== Global Reset & Base Styles ========== */
/* base_common.cssより */
* {
    box-sizing: border-box;
    font-family: "Roboto", "Arial", "Yu Gothic", "游ゴシック体", YuGothic,
    "游ゴシック Medium", "Yu Gothic Medium", "Hiragino Kaku Gothic ProN",
    "ヒラギノ角ゴ ProN W3", メイリオ, sans-serif;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: calc(1 / 1920 * 100vw);
}

body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #000;
}

button {
    cursor: pointer;
}

/* ========== Utility Classes ========== */
/* base_common.cssより */
.flex {
    display: flex;
}

.col {
    flex-direction: column;
}

.a-c {
    align-items: center;
}

.a-b {
    align-items: baseline;
}

.j-c {
    justify-content: center;
}

.j-b {
    justify-content: space-between;
}

.j-a {
    justify-content: space-around;
}

.container {
    width: 960px;
}

.sentence-space {
    display: inline-block;
    width: 20px;
}

/* ========== Header ========== */
/* base_common.cssより */
header {
    width: 100%;
}

header .site_name {
    width: 100%;
    height: 27px;
    background-color: rgba(28, 26, 16, 1);
}

header .site_name p,
header .site_name h1 {
    font-size: 14px;
    color: #ffffff;
    font-weight: bold;
}

header .menu_part .num {
    gap: 12px;
}

header .menu_part .num_s {
    width: 100%;
    height: 60px;
    background-color: #eee;
}

header .num_s .data {
    gap: 3px;
}

header .num_s .data p {
    font-size: 12px;
    color: #4d4d4d;
}

header .num_s .data p:nth-of-type(2) {
    font-size: 26px;
}

header .search_c {
    gap: 10px;
}

header .search {
    width: 226px;
    height: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #ffffff;
}

header .search_c .s_btn {
    height: 40px;
    padding-inline: 8px;
    border: none;
    background-color: #6782ae;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
}

header .search input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 12px;
    color: #4d4d4d;
    background-color: #ffffff;
    outline: none;
}

header .search button img {
    width: 20px;
    height: auto;
}

header .search button {
    background-color: #5b7bb0;
    border: none;
    width: 50px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

header .menuBar .t_part {
    position: relative;
    padding-top: 47px;
    padding-bottom: 22px;
    margin-bottom: 12px;
}

header .menuBar .ribbon {
    background: url("../img/ribbon.png") no-repeat center / cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 91px;
    height: 116px;
    padding-top: 16px;
}

header .menuBar .ribbon .heart {
    font-size: 18px;
    margin-bottom: 4px;
    width: 20px;
    height: auto;
}

header .menuBar .ribbon .count {
    font-size: 16px;
    margin-bottom: 2px;
    color: #ffffff;
}

header .menuBar .ribbon .label {
    font-size: 14px;
    color: #ffffff;
}

header .menuBar .title {
    width: 225px;
    height: auto;
}

header .menu_list {
    width: 100%;
    margin-bottom: 20px;
    gap: 16px;
}

header .menu_list .menu {
    border: 1px solid #000;
    flex: 1;
    min-width: 111px;
    height: 67px;
    color: #000;
    font-size: 13px;
    text-align: center;
}

header .menu_list .menu:hover {
    background-color: #000;
    color: #ffffff;
}

header .menuBar .ad {
    width: 100%;
    font-size: 12px;
}

header .menuBar .ad .ad_img {
    width: 100%;
    height: auto;
}

header .menuBar .ad p {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
}

header .menuBar .ad .ad_more {
    width: 100%;
    height: fit-content;
    margin-top: -3px;
    justify-content: right;
    padding-right: 40rem;
    background-color: #86a9c0;
}

header .menuBar .ad .ad_more img {
    height: 25px;
}

header .adSp {
    width: 100%;
    height: auto;
    display: none;
}

header .sp-search {
    width: 100%;
    display: none;
    padding: 7px;
    background-color: #d9d9d9;
}

header .sp-search .search {
    width: 100%;
}

/* ========== Hamburger Menu ========== */
/* base_common.cssより */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 32px;
    cursor: pointer;
    position: absolute;
    right: 40rem;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #222;
    border-radius: 2px;
}

/* Sliding menu styles */
.ham_menu {
    position: fixed;
    top: 0;
    right: -125%;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    transition: right 0.3s ease-in-out;
    z-index: 9999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.ham_menu.show {
    right: 0;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    color: #333;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.3s;
}

.close-btn:hover {
    opacity: 0.7;
}

/* ハンバーガーメニュー内のメニューアイテム */
.ham_menu .menu-items {
    margin-top: 55px;
    padding: 0 20px;
    overflow-y: auto;
}

/* ハンバーガーメニュー内のメニューリンク */
.ham_menu .menu-items a {
    height: 80px;
}

.menu-items {
    padding-top: 10px;
    padding-inline: 30px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 11px;
}

.menu-items a {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #000;
    padding: 8px;
    width: 159px;
    height: 66px;
    border: 1px solid #808080;
    border-radius: 4px;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
}

.menu-items img {
    width: 50px;
    height: auto;
    margin-right: 10px;
}

/* TOPボタン */
.ham-menu-footer {
    margin: 0 auto !important;
    text-align: center !important;
    padding: 20px !important;
}

.ham-menu-footer .top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.ham-menu-footer .top-btn:hover {
    opacity: 0.7;
}

.ham-menu-footer .top-btn img {
    width: auto;
    height: 40px;
}

/* ========== SP用ヘッダー要素 ========== */
/* base_common.cssより */
header .ribbonSp {
    display: none;
}

header .ribbonSpimg {
    position: relative;
    background: url("../img/ribbon.png") no-repeat center / cover;
    width: 40px;
    height: 50px;
}

header .ribbonSp p {
    font-size: 8px;
    color: #424031;
    font-weight: bold;
}

header .noti {
    background-color: #ffffff;
    position: absolute;
    top: 10px;
    right: -40px;
    padding-inline: 8px;
    padding-block: 3px;
    border: 1px solid #6782ae;
    border-radius: 10px;
    z-index: 10;
    color: #1c1a10;
    font-size: 20px;
}

/* スマホ用キーワード検索 */
.sp-keyword-search {
    display: none;
    width: 100%;
    padding: 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid #E5E5E5;
}

.sp-keyword-search .search-container {
    display: flex;
    align-items: center;
    background: #F8F8F8;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.sp-keyword-search .search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    padding: 10px 15px;
    color: #333;
}

.sp-keyword-search .search-input::placeholder {
    color: #999;
}

.sp-keyword-search .search-btn {
    background: #6782AE;
    border: none;
    width: 44px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sp-keyword-search .search-btn:hover {
    background: #5670A0;
}

.sp-keyword-search .search-btn img {
    width: 20px;
    height: 20px;
}

/* 検索ボタンの背景色を#6782AEに統一 */
header .search button,
header .sBtn,
header .search_c .search button {
    background-color: #6782AE !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

header .search button:hover,
header .sBtn:hover,
header .search_c .search button:hover {
    background-color: #5670A0 !important;
}

header .search button img,
header .sBtn img,
header .search_c .search button img {
    width: 20px;
    height: 20px;
}

/* ========== Footer ========== */
/* base_common.cssより */
footer {
    width: 100%;
}

footer .container {
    width: 100%;
    background-color: #f2f2f2;
    padding-top: 119px;
    padding-inline: 64px;
}

footer .top {
    margin-bottom: 50px;
}

footer .top img {
    width: 250px;
    height: auto;
}

footer .snsG {
    gap: 15px;
}

footer .snsG img {
    width: 50px;
    height: auto;
}

footer .menuG {
    gap: 15px;
    padding-bottom: 42px;
}

footer .sectionG {
    width: 20%;
}

footer .section .sectionT {
    font-size: 16px;
    color: #737373;
    font-weight: bold;
    margin-bottom: 14px;
    width: 100%;
}

footer .section .sContents {
    padding-left: 5px;
}

footer .section .sContent:nth-of-type(1) {
    margin-bottom: 14px;
}

footer .section .sContent .contentT {
    font-size: 15px;
    color: #737373;
    font-weight: bold;
    margin-bottom: 3px;
}

footer .section .sContent p:nth-of-type(2) {
    font-size: 13px;
    color: #737373;
}

footer .guide {
    width: 200px;
}

footer .guide_list {
    margin-bottom: 40px;
}

footer .guide_list p {
    font-size: 16px;
    font-weight: bold;
    color: #737373;
}

footer .map_lists {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

footer .maplist {
    gap: 5px;
}

footer .maplist p {
    font-size: 15px;
    font-weight: bold;
    color: #737373;
}

footer .bottom {
    width: 100%;
    height: 66px;
    padding-inline: 72rem;
    justify-content: space-between;
    background-color: #262626;
}

footer .bottom p {
    font-size: 12px;
    color: #ffffff;
}

footer .bottom .btm_list {
    gap: 16px;
}

footer .guideListG {
    display: none;
}

footer .guideList {
    width: 45%;
}

footer .guideList p {
    font-size: 12px;
    color: #737373;
}

footer .btnG {
    background-color: rgba(0, 0, 0, 0.2);
    width: 100%;
    padding-inline: 21px;
    padding-block: 15px;
}

footer .bottom_btn a {
    width: 351px;
    height: 48px;
    background-color: #ff7c00;
    padding-inline: 26px;
    padding-block: 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
}

/* ========== Footer SP Dropdown ========== */
/* base_common.cssより */
.sectionG_sp {
    display: none;
    width: 100%;
    margin: auto;
    background-color: #f2f2f2;
}

.section_sp {
    border-bottom: 1px solid #cccccc;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0px;
    cursor: pointer;
}

.menu-header:hover {
    background-color: #f0f0f0;
}

.menu-header span {
    font-size: 16px;
    color: #737373;
    font-weight: bold;
}

.f_arrow {
    transition: transform 0.3s ease;
}

.f_arrow.rotate {
    transform: rotate(90deg);
}

.menu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafafa;
    padding: 0 20px;
}

.menu-content p {
    padding: 10px 0;
    margin: 0;
    color: #666;
    font-size: 14px;
}

.section_sp.open .menu-content {
    max-height: 500px;
    height: fit-content;
}

/* ========== Responsive Header & Footer ========== */
/* base_common.cssより */
@media (max-width: 1024px) {
    html {
        scroll-behavior: smooth;
        font-size: calc(1 / 1024 * 100vw);
    }
    header .menu_list {
        display: none;
    }
    header .search_c {
        display: none;
    }
    header .menu_part .num {
        gap: 40rem;
        width: 100%;
        justify-content: center;
    }
    .hamburger {
        display: flex;
    }
}

@media (max-width: 965px) {
    html {
        font-size: calc(1 / 965 * 100vw);
    }
    .container {
        width: 750px;
    }
    footer .top {
        flex-direction: column;
        gap: 25px;
    }
    footer .bottom {
        flex-direction: column;
        justify-content: center;
    }
    footer .menuG {
        flex-wrap: wrap;
        justify-content: center;
    }
    footer .sectionG {
        width: 90%;
    }
    footer .guide {
        width: 90%;
    }
    footer .map_lists {
        padding-top: 20px;
        padding-bottom: 40px;
    }
    footer .guideListG {
        display: flex;
    }
    footer .guide_list {
        display: none;
    }
}

@media (max-width: 768px) {
    html {
        font-size: calc(1 / 768 * 100vw);
    }
    .container {
        width: 100%;
    }
    header .menuBar .t_part {
        padding-inline: 19px;
        justify-content: space-between;
    }
    /* スマホでメニューのmargin-topを0に */
    .menu-items {
        margin-top: 0;
    }
    /* スマホでスクロール時にヘッダー固定 */
    body.scrolled header .menuBar .t_part {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background-color: #ffffff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    /* 固定ヘッダー分の余白を確保 */
    body.scrolled {
        padding-top: 80px;
    }
    .hamburger {
        position: unset;
    }
    header .ribbon {
        display: none;
    }
    header .ribbonSp {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    header .ad {
        display: none;
    }
    header .adSp {
        display: block;
    }
    header .sp-search {
        display: flex;
    }
    header .num_s .data p {
        font-size: 10px;
        font-weight: 700;
    }
    header .num_s .data p:nth-of-type(2) {
        font-size: 10px;
    }
    header .menu_part .num_s {
        height: fit-content;
        padding: 3px 0px;
    }
    header .menu_part .num {
        gap: 8px;
    }
    header .site_name p {
        font-size: 10px;
    }
    .sp-keyword-search {
        display: block;
    }
    footer .container {
        padding-inline: 49px;
    }
    footer .sectionG {
        display: none;
    }
    footer .guide {
        width: 100%;
    }
    footer .snsG img {
        width: 40px;
    }
    footer .bottom .btm_list {
        display: none;
    }
    footer .sectionG_sp {
        display: block;
    }
    footer .bottom p {
        width: 245px;
        text-align: center;
    }
    footer .btnG {
        display: flex;
    }
}

/* iPadサイズ（768px〜1024px）で2列レイアウト */
@media (min-width: 768px) and (max-width: 1024px) {
    .ham_menu .menu-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 40px;
        margin-top: 80px;
        justify-content: center;
        align-items: center;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .ham_menu .menu-items a {
        width: 100%;
        height: 100px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .ham_menu .menu-items a:hover {
        background-color: #f5f5f5;
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .ham_menu .menu-items img {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }

    .ham_menu .menu-items span {
        flex: 1;
        font-size: 14px;
        line-height: 1.3;
    }
}

/* スマホ表示（425px以下）で2カラムレイアウト */
@media (max-width: 425px) {
    .menu-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding-inline: 15px;
    }

    .menu-items a {
        width: 100%;
        height: 60px;
        font-size: 14px;
        line-height: 1.2;
        padding: 6px;
    }

    .menu-items img {
        width: 40px;
        margin-right: 8px;
    }
}

@media (max-width: 500px) {
    header .menuBar .title {
        width: 117px;
    }
    header .hamburger {
        width: 24px;
        height: 24px;
    }
    header .menuBar .t_part {
        padding: 16px;
        margin: 0;
    }
    header .ribbonSpimg {
        width: 20px;
        height: 25px;
    }
    header .noti {
        top: 3px;
        right: -25px;
        padding-inline: 5px;
        padding-block: 2px;
        border-radius: 3px;
        font-size: 10px;
    }
    footer .snsG {
        flex-wrap: wrap;
        width: 300px;
        justify-content: center;
    }
}

@media (max-width: 390px) {
    .thumbnail {
        width: 97px;
        height: 60px;
    }
}

@media (max-width: 375px) {
    header .menu_part .num_s {
        height: fit-content;
        padding: 3px 0px;
    }
    header .num_s .data p {
        font-size: 9px;
        font-weight: 700;
    }
    header .num_s .data p:nth-of-type(2) {
        font-size: 9px;
    }
}

/* ========== 閲覧履歴 (Browsing History) ========== */
/* detail-layout.cssから移動 */
main .b_history {
    width: 100%;
    padding-top: 60px;
}

main .b_history .b_historyT {
    font-size: 14px;
    font-weight: bold;
    padding-left: 18px;
    padding-block: 7px;
    border-left: 3px solid #2f689d;
}

main .b_history .h_slide {
    padding-block: 12px;
    margin-bottom: 34px;
    gap: 12px;
    overflow-x: scroll;
}

main .b_history .slideBlock {
    width: 150px;
    flex-shrink: 0;
    padding: 8px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

main .b_history .slideBlock img {
    width: 134px;
    height: auto;
    margin-bottom: 4px;
}

/* ========== フッターテキスト (Footer Text) ========== */
/* detail-layout.cssから移動 */
main .footer_txt {
    width: 100%;
    font-size: 12px;
    color: #696652;
    padding-left: 15px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    main .b_history {
        padding-top: 30px;
    }

    main .b_history .h_slide {
        margin: 0;
    }

    main .footer_txt {
        background-color: #fafaf5;
        padding-left: 34px;
        padding-right: 19px;
        padding-top: 40px;
        padding-bottom: 60px;
    }
}

