/* ======== ルート変数（全体の文字サイズ） ======== */

:root {
    --font-size: 18px;
    --bg-color: #F7F5EF;
    --gradient-bg: linear-gradient(to right, #ff7e5f, #feb47b);
    --text-color: #4a4a4a;
}

/* ======== 基本リセット ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "BIZ UDGothic", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: var(--bg-color);
    color: var(--text-color);
    text-align: center;
    font-size: var(--font-size);
}

.nav-list a,
.settings-container,
.header,
.nav__submenu {
    font-size: var(--font-size);
    color: var(--text-color);
}

section,
footer,
header,
.nav__link,
.dropdown-menu,
.image_link {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* ======== 色変更・文字サイズ変更ボタン ======== */

.settings-container {
    width: fit-content;
    margin: 0 0 0 auto;
    padding: 15px 0 0 0;
}

.is-small .settings-container {
    padding: 10px 0 0 0;
}

.settings button {
    padding: 5px 10px;
    /*border: 1px solid #ccc;*/
    cursor: pointer;
    font-size: .9em;
}

.is-small .settings button {
    padding: 3px 7px;
}

.settings button:hover {
    background: #ddd;
}

.settings span {
    margin: 0 5px 0 0;
    align-items: center;
    vertical-align: middle;
    color: #fff;
}

.settings div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    vertical-align: middle;
    align-items: center;
    gap: 3px;
}

.settings div:nth-child(1) {
    margin: 0 0 15px 0;
}

.is-small .settings div:nth-child(1) {
    margin: 0 0 7px 0;
}

@media (min-width: 768px) {

    .settings-container {
        width: fit-content;
        display: flex;
        vertical-align: middle;
        align-items: center;
        margin: 20px 0 0 0;
        padding: 0 50px 0 0;
        text-align: left;
    }

    .is-small .settings-container {
        margin: 20px 0 0 0;
        padding: 0 3% 0 0;
    }

    .settings {
        display: flex;
        gap: 10px;
    }

    .settings span {
        margin: 0 5px 0 0;
        align-items: center;
        vertical-align: middle;
    }

    .settings button {
        padding: 5px 10px;
        margin: 0 5px 0 0;
        cursor: pointer;
        align-items: center;
        vertical-align: middle;
    }

    .settings button:hover {
        background: #ddd;
    }

    .settings div:nth-child(1) {
        margin: 0;
    }

    .is-small .settings div:nth-child(1) {
        margin: 0;
    }

    .settings div {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        vertical-align: middle;
        align-items: center;
    }
}


@media (min-width: 1025px) {

    .settings-container {
        justify-content: flex-end;
        vertical-align: middle;
        align-items: center;
        margin: 10px 0 0 auto;
        padding: 0 20px 20px 0;
    }

    .is-small .settings-container {
        margin: 0 0 20px auto;
        padding: 0 3% 0 0;
    }

    .settings span {
        margin: 0 5px 0 0;
    }

    .settings button {
        padding: 5px 10px;
        margin: 0 5px 0 0;
    }

}

@media (min-width: 1280px) {

    .settings-container {
        margin: 10px 0 0 auto;
        padding: 0 30px 20px 0;
    }

    .is-small .settings-container {
        margin: 0 0 20px auto;
        padding: 0 3% 0 0;
    }

    .settings span {
        margin: 0 5px 0 0;
    }

    .settings button {
        padding: 5px 10px;
        margin: 0 5px 0 0;
    }

}

@media (min-width: 1920px) {

    .settings-container {
        margin: 10px 0 0 auto;
        padding: 0 50px 20px 0;
    }

    .is-small .settings-container {
        margin: 0 0 20px auto;
        padding: 0 3% 0 0;
    }

    .settings span {
        margin: 0 5px 0 0;
    }

    .settings button {
        padding: 5px 10px;
        margin: 0 5px 0 0;
    }

}

/* ======== 小見出し ======== */

.subheading {
    font-size: 1.2em;
    font-weight: 600;
    position: relative;
    text-align: left;
    padding-left: 30px;
    line-height: 1.3;
}

.subheading span {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-50%);
    color: #fa505e;
}

.subheading-wrap {
    display: flex;
    flex-wrap: wrap;
}

.subtr.break {
    width: 100%;
    height: 0;
}

.fukushi-text {
    line-height: 1.6;
    max-width: 800px;
    margin: 2em auto;
}

.fukushi-text .subtr {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.3em;
    width: 1em;
    height: 1em;
    color: #fa505e;
}

.fukushi-text .subtr svg {
    width: 100%;
    height: auto;
    display: block;
}

.fukushi-box p {
    margin: 0;
}

.search-text {
    width: 80%;
    text-align: left;
}

@media (min-width: 768px) {

    .subheading {
        font-size: 1.65em;
        padding-left: 40px;
    }

    .subheading::before {
        position: absolute;
        top: 50%;
        left: 0;
        width: 1.1em;
        height: 1.1em;
    }

}

@media (min-width: 968px) {

    .subheading {
        font-size: 1.9em;
    }

}

@media (min-width: 1025px) {

    .subheading {
        font-size: 2em;
    }

    .subheading::before {
        position: absolute;
        top: 50%;
        left: 0;
        width: 1.1em;
        height: 1.1em;
    }

}

/* ======== 色変更ボタンのデザイン ======== */

.color-btn {
    padding: 5px 15px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: opacity 0.2s ease;
    border-radius: 5px;
}

.color-btn[data-color="white"] {
    background-color: white;
    color: black;
    border: 1px solid black;
}

.color-btn[data-color="blue"] {
    background-color: blue;
    color: yellow;
}

.color-btn[data-color="yellow"] {
    background-color: yellow;
    color: black;
}

.color-btn[data-color="black"] {
    background-color: black;
    color: white;
}

.color-btn:hover {
    opacity: 0.8;
}

/* ======== ヘッダー ======== */

header {
    width: 100%;
    height: 180px;
    padding: 20px;
    position: fixed;
    display: flex;
    flex-direction: column-reverse;
    background-image: linear-gradient(-20deg, #fc6076 0%, #ff9a44 100%);
    z-index: 100;
    transition: height 0.4s ease, padding 0.4s ease;
}

header.is-small {
    height: 155px;
    padding: 20px;
    font-size: 1.1em;
}

.header {
    display: none;
}

.header-sp {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    vertical-align: middle;
    align-items: center;
    z-index: 100;
}

.logo a {
    width: fit-content;
    text-align-last: justify;
    font-size: 1.1em;
    color: #fff;
    line-height: 1.3;
    transition: font-size 0.4s ease;
    text-decoration: none;
}

.is-small .logo a {
    font-size: .8em;
}

.logo p:nth-child(1) {
    font-size: .7em;
}

.logo p:nth-child(2) {
    font-size: 1.1em;
}

.hamburger {
    position: fixed;
    top: 10px;
    right: 7%;
    z-index: 9999;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.is-small .hamburger {
    width: 35px;
    height: 35px;
}

.hamburger__line {
    position: absolute;
    left: 11px;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    transition: all .4s;
    border-radius: 50vh;
}

.hamburger__line:nth-of-type(1) {
    top: 14px;
}

.is-small .hamburger__line:nth-of-type(1) {
    top: 15px;
}

.hamburger__line:nth-of-type(2) {
    top: 28px;
}

.is-small .hamburger__line:nth-of-type(2) {
    top: 26px;
}

.hamburger__line:nth-of-type(3) {
    top: 41px;
}

.is-small .hamburger__line:nth-of-type(3) {
    top: 37px;
}

.hamburger.active .hamburger__line:nth-of-type(1) {
    transform: translateY(17px) rotate(-45deg);
    background-color: #261C19;
}

.is-small .hamburger.active .hamburger__line:nth-of-type(1) {
    transform: translateY(13px) rotate(-45deg);
    background-color: #261C19;
}

.hamburger.active .hamburger__line:nth-of-type(2) {
    opacity: 0;
    background-color: #261C19;
}

.hamburger.active .hamburger__line:nth-of-type(3) {
    transform: translateY(-9px) rotate(45deg);
    background-color: #261C19;
}

.navs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    transform: translateX(-100%);
    transition: transform .4s ease-in-out;
    z-index: 1000;
}

.navs.active {
    transform: translateX(0);
}

.nav__list {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    list-style: none;
    vertical-align: middle;
    align-items: center;
}

.nav__item {
    padding: 0 10%;
    text-align: left;
    vertical-align: middle;
    align-items: center;
}

.nav__link {
    display: flex;
    padding: 15px 30px;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    align-items: center;
}

.nav__link span {
    padding: 0 20px 0 0;
    vertical-align: middle;
    align-items: center;
}

.icon {
    width: 25px;
    height: 25px;
    fill: var(--text-color);
    transition: fill 0.3s ease;
}

.nav__arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    width: 0;
    height: 0;
    border-style: solid;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-top: 6px solid #555555;
    border-bottom: 0;
}

.nav__item--has-submenu.active .nav__arrow {
    transform: scaleY(-1);
}

.nav__submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav__submenu li {
    padding: 10px 15px;
}

.nav__submenu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    padding: 10px 30px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.nav__submenu li:last-child a {
    border-bottom: none;
}

.nav__submenu a::after {
    content: "→";
    font-size: 14px;
    color: #666;
    transition: transform 0.2s ease;
}

@media (min-width: 768px) {

    header {
        height: 150px;
        padding: 20px 30px;
    }

    header.is-small {
        height: 130px;
        padding: 20px 30px;
    }

    .logo a {
        font-size: 1.2em;
    }

    .is-small .logo a {
        font-size: 1em;
    }

    .hamburger {
        top: 50px;
        right: 7%;
        width: 50px;
        height: 50px;
    }

    .is-small .hamburger {
        width: 40px;
        height: 40px;
    }

    .hamburger__line {
        height: 4px;
    }

    .hamburger__line:nth-of-type(1) {
        top: 13px;
    }

    .is-small .hamburger__line:nth-of-type(1) {
        top: 8px;
    }

    .hamburger__line:nth-of-type(2) {
        top: 27px;
    }

    .is-small .hamburger__line:nth-of-type(2) {
        top: 21px;
    }

    .hamburger__line:nth-of-type(3) {
        top: 40px;
    }

    .is-small .hamburger__line:nth-of-type(3) {
        top: 33px;
    }

    .hamburger.active .hamburger__line:nth-of-type(3) {
        transform: translateY(-10px) rotate(45deg);
    }

    .is-small .hamburger.active .hamburger__line:nth-of-type(3) {
        transform: translateY(-11px) rotate(45deg);
    }

    .nav__item {
        padding: 0 20%;
        font-size: 1.2em;
    }

    .nav__link {
        border-bottom: 2px solid #eee;
    }

    .icon {
        width: 35px;
        height: 35px;
    }

    .nav__arrow {
        border-right: 10px solid transparent;
        border-left: 10px solid transparent;
        border-top: 11px solid #555555;
    }

    .nav__submenu a {
        font-size: 1.1em;
    }

    .nav__submenu a::after {
        font-size: 1.2em;
    }

}

@media (min-width: 968px) {

    header {
        height: 180px;
        padding: 30px;
    }

    header.is-small {
        height: 150px;
    }

    .logo a {
        font-size: 1.7em;
    }

    .is-small .logo a {
        font-size: 1.2em;
    }

    .hamburger {
        top: 48px;
        right: 7%;
        width: 70px;
        height: 70px;
    }

    .is-small .hamburger {
        width: 60px;
        height: 60px;
    }

    .hamburger__line {
        height: 5px;
    }

    .hamburger__line:nth-of-type(1) {
        top: 12px;
    }

    .is-small .hamburger__line:nth-of-type(1) {
        top: 14px;
    }

    .hamburger__line:nth-of-type(2) {
        top: 30px;
    }

    .is-small .hamburger__line:nth-of-type(2) {
        top: 32px;
    }

    .hamburger__line:nth-of-type(3) {
        top: 48px;
    }

    .is-small .hamburger__line:nth-of-type(3) {
        top: 48px;
    }

    .hamburger.active .hamburger__line:nth-of-type(3) {
        transform: translateY(-17px) rotate(45deg);
    }

    .is-small .hamburger.active .hamburger__line:nth-of-type(3) {
        transform: translateY(-19px) rotate(45deg);
    }

    .nav__item {
        padding: 0 25%;
        font-size: 1.6em;
    }

    .nav__link {
        padding: 30px;
    }

    .icon {
        width: 45px;
        height: 45px;
    }

    .nav__submenu a {
        font-size: 1.6em;
    }

    .nav__submenu a::after {
        font-size: 1.5em;
    }

}

@media (min-width: 1025px) {

    header {
        display: flex;
        flex-direction: column;
        height: 180px;
        padding: 20px 20px 20px 30px;
    }

    header.is-small {
        height: 150px;
        padding: 20px 20px 20px 30px;
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-sp,
    .hamburger {
        display: none;
    }

    .logo a {
        width: fit-content;
        text-align-last: justify;
        font-size: 1em;
        line-height: 1.3;
        transition: font-size 0.4s ease;
        text-decoration: none;
    }

    .logo {
        font-size: 1.1em;
        line-height: 1.3;
    }

    .is-small .logo {
        font-size: .8em;
    }

    .logo p:nth-child(1) {
        font-size: .8em;
    }

    .logo p:nth-child(2) {
        font-size: 1.3em;
    }

    .nav {
        display: block;
    }

    .nav-list {
        display: flex;
        align-items: center;
        gap: 10px;
        list-style: none;
        padding: 0;
    }

    .nav-list li {
        width: 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
        padding: 0 10px 20px 0;
        transition: width 0.4s ease, padding 0.4s ease;
    }

    .is-small .nav-list li {
        width: 100px;
    }

    .nav-list a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-decoration: none;
        color: #fff;
        transition: font-size 0.4s ease;
        font-size: .9em;
    }

    .is-small .nav-list a {
        font-size: .8em;
    }

    .icon {
        width: 25px;
        height: 25px;
        margin: 0 0 5px 0;
    }

    .is-small .icon {
        width: 25px;
        height: 25px;
    }

    .nav-list li:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 70%;
        border-right: 2px dotted #ffffff;
    }

    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 45%;
        transform: translateX(-55%) translateY(0);
        background-color: #fff;
        list-style: none;
        padding: 10px 20px;
        border: 1px solid #ddd;
        border-radius: 20px;
        width: 100%;
        min-width: 200px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        text-align: left;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-55%) translateY(0);
    }

    .nav-list .dropdown {
        position: relative;
    }

    .nav-list .dropdown .triangle {
        position: absolute;
        bottom: 6px;
        left: 46%;
        transform: translateX(-62%);
        width: 0;
        height: 0;
        border-style: solid;
        border-right: 5px solid transparent;
        border-left: 5px solid transparent;
        border-top: 6px solid #fff;
        border-bottom: 0;
    }

    .dropdown-menu div {
        padding: 10px 0;
        text-align: left;
        position: relative;
    }

    .dropdown-menu div a {
        display: block;
        text-align: left;
        padding: 8px 10px;
        text-decoration: none;
        color: #261C19;
        line-height: 1.6;
    }

    .dropdown-menu div:not(:last-child) {
        border-bottom: 1px dotted #261C19;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

}


@media (min-width: 1280px) {

    /*header {
        height: 200px;
    }*/

    header.is-small {
        height: 160px;
    }

    .logo a {
        font-size: 1em;
        line-height: 1.3;
    }

    .logo {
        font-size: 1.3em;
        line-height: 1.3;
    }

    .is-small .logo {
        font-size: .9em;
    }

    .logo p:nth-child(1) {
        font-size: .8em;
    }

    .logo p:nth-child(2) {
        font-size: 1.3em;
    }

    .nav {
        display: block;
    }

    .nav-list {
        display: flex;
        align-items: center;
        gap: 20px;
        list-style: none;
        padding: 0;
    }

    .nav-list li {
        width: 110px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
        padding: 0 20px 20px 0;
        transition: width 0.4s ease, padding 0.4s ease;
    }

    .is-small .nav-list li {
        width: 100px;
    }

    .nav-list a {
        font-size: 1em;
    }

    .is-small .nav-list a {
        font-size: .8em;
    }

    .icon {
        width: 30px;
        height: 30px;
        margin: 0 0 5px 0;
    }

    .is-small .icon {
        width: 25px;
        height: 25px;
    }

    .nav-list li:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 70%;
        border-right: 2px dotted #ffffff;
    }

    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 45%;
        transform: translateX(-55%) translateY(0);
        background-color: #fff;
        list-style: none;
        padding: 10px 20px;
        border: 1px solid #ddd;
        border-radius: 20px;
        width: 100%;
        min-width: 200px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        text-align: left;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-55%) translateY(0);
    }

    .nav-list .dropdown {
        position: relative;
    }

    .nav-list .dropdown .triangle {
        position: absolute;
        bottom: 6px;
        left: 38%;
        transform: translateX(-62%);
        width: 0;
        height: 0;
        border-style: solid;
        border-right: 5px solid transparent;
        border-left: 5px solid transparent;
        border-top: 6px solid #fff;
        border-bottom: 0;
    }

    .dropdown-menu div {
        padding: 10px 0;
        text-align: left;
        position: relative;
    }

    .dropdown-menu div a {
        display: block;
        text-align: left;
        padding: 8px 10px;
        text-decoration: none;
        color: #261C19;
        line-height: 1.6;
    }

    .dropdown-menu div:not(:last-child) {
        border-bottom: 1px dotted #261C19;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

}


@media (min-width: 1920px) {

    header {
        display: flex;
        flex-direction: column;
        height: 200px;
        padding: 30px 30px 30px 60px;
    }

    header.is-small {
        height: 160px;
        padding: 20px 30px 20px 60px;
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-sp,
    .hamburger {
        display: none;
    }

    .logo a {
        width: fit-content;
        text-align-last: justify;
        font-size: 1.1em;
        line-height: 1.3;
        transition: font-size 0.4s ease;
        text-decoration: none;
    }

    .logo {
        font-size: 1.5em;
        line-height: 1.3;
    }

    .is-small .logo {
        font-size: 1.3em;
    }

    .logo p:nth-child(1) {
        font-size: .8em;
    }

    .logo p:nth-child(2) {
        font-size: 1.3em;
    }

    .nav {
        display: block;
    }

    .nav-list {
        display: flex;
        align-items: center;
        gap: 30px;
        list-style: none;
        padding: 0;
    }

    .nav-list li {
        width: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
        padding: 0 30px 20px 0;
        transition: width 0.4s ease, padding 0.4s ease;
    }

    .is-small .nav-list li {
        width: 100px;
    }

    .nav-list a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-decoration: none;
        color: #fff;
        transition: font-size 0.4s ease;
    }

    .is-small .nav-list a {
        font-size: .8em;
    }

    .icon {
        width: 30px;
        height: 30px;
        margin: 0 0 5px 0;
    }

    .is-small .icon {
        width: 25px;
        height: 25px;
    }

    .nav-list li:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 70%;
        border-right: 2px dotted #ffffff;
    }

    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 45%;
        transform: translateX(-55%) translateY(0);
        background-color: #fff;
        list-style: none;
        padding: 10px 20px;
        border: 1px solid #ddd;
        border-radius: 20px;
        width: 100%;
        min-width: 200px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        text-align: left;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-55%) translateY(0);
    }

    .nav-list .dropdown {
        position: relative;
    }

    .nav-list .dropdown .triangle {
        position: absolute;
        bottom: 6px;
        left: 38%;
        transform: translateX(-62%);
        width: 0;
        height: 0;
        border-style: solid;
        border-right: 5px solid transparent;
        border-left: 5px solid transparent;
        border-top: 6px solid #fff;
        border-bottom: 0;
    }

    .dropdown-menu div {
        padding: 10px 0;
        text-align: left;
        position: relative;
    }

    .dropdown-menu div a {
        display: block;
        text-align: left;
        padding: 8px 10px;
        text-decoration: none;
        color: #261C19;
        line-height: 1.6;
    }

    .dropdown-menu div:not(:last-child) {
        border-bottom: 1px dotted #261C19;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

}

/* ======== フッター ======== */

footer {
    background-color: #fff;
    color: #333;
    padding: 50px 20px 30px 20px;
    z-index: 1000;
}

.footer {
    width: 94%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.footer-left {
    width: 100%;
}

.footer__top {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.footer__contact {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.footer__contact-item {
    width: 100%;
    margin: 0 0 10px 0;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    background-color: #fab950;
}

.footer__contact-item.f-02 {
    background-color: #fa7d50;
}

.footer__contact-item.f-03 {
    background-color: #fa505e;
}

.footer__contact-item a {
    display: flex;
    vertical-align: middle;
    align-items: center;
    text-decoration: none;
    width: 100%;
    color: #fff;
    justify-content: space-around;
}

.footer__contact-item svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
    align-items: center;
}

.footer__info {
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    margin: 20px 0 0 0;
    padding: 10px;
}

.footer__info p {
    width: fit-content;
    position: relative;
    padding-left: 5px;
    margin: 5px 0;
    border-left: 3px solid #fa505e;
    white-space: nowrap;
    overflow-wrap: normal;
    /* 念のため追加 */
    display: inline-block;
    max-width: 98%;
}

.footer__middle {
    border-top: 2px solid #fa505e;
    border-bottom: none;
    margin: 30px 0 0 0;
    padding: 30px 0;
}

.footer__nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
    padding: 0;
}

.footer__nav li {
    text-align: left;
    width: 46%;
    margin: 0 0 20px 0;
}

.footer__nav a {
    font-weight: bold;
    text-decoration: none;
    color: #474747;
    font-size: 1em;
}

.footer__nav .footer__nav_a {
    font-weight: normal;
}

.footer__nav p {
    margin-top: 5px;
    font-size: .8em;
    line-height: 1.5;
    padding-left: 7px;
}

.footer__nav p:nth-child(3) {
    margin-top: 3px;
}

.footer-right {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.footer__address {
    width: 100%;
    text-align: left;
    margin-bottom: 50px;
}

.footer__address h3 {
    margin: 0 0 20px 0;
    line-height: 1.5;
    font-weight: 600;
}

.footer__address p:nth-child(2),
.footer__address p:nth-child(3),
.footer__address p:nth-child(4) {
    line-height: 1.5;
    font-size: .9em;
}

.footer__address p:nth-child(5) {
    display: flex;
    flex-direction: column;
    margin: 15px 0;
    font-size: .9em;
}

.footer__address p:nth-child(5) span:nth-child(1) {
    padding-right: 20px;
}

.footer__address p:nth-child(6) {
    font-size: .9em;
    line-height: 1.3;
}

.footer__map {
    width: 100%;
    line-height: 120px;
}

.footer__map img {
    width: 100%;
    border: 2px solid #666666;
    border-radius: 3px;
    box-shadow: 0px 10px 10px -6px rgba(0, 0, 0, 0.3);
}

.footer__copyright {
    text-align: center;
    font-size: .8em;
    margin-top: 50px;
}

.footer__sns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
}

.footer__sns__box {
    width: calc((100% - 15px) / 2);
    padding: 15px;
}

.footer__sns__box img {
    width: 100%;
}

@media (min-width: 768px) {

    .footer__contact {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .footer__contact-item {
        width: 49%;
        margin: 0 0 15px 0;
        padding: 10px;
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer__contact-item a {
        display: flex;
        align-items: center;
        text-decoration: none;
        width: 100%;
        font-size: 1em;
        font-weight: 600;
    }

    .footer__contact-item svg {
        width: 24px;
        height: 24px;
        margin-right: 10px;
    }

    .footer__sns {
        display: flex;
        flex-direction: row;
        width: 80%;
        margin: 0 auto;
    }

    .footer__sns__box {
        width: calc((80% - 20px) / 3);
        padding: 20px;
        margin: 0 auto;
    }

    .footer__info {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        border-radius: 5px;
        margin: 20px 0 0 0;
        padding: 10px 0;
    }

    .footer__nav a {
        font-size: 1.2em;
    }

    .footer__nav li {
        margin: 0 0 50px 0;
    }

    .footer__nav p {
        margin-top: 20px;
        padding-left: 20px;
        font-size: .9em;
        line-height: 1.7;
    }

    .footer__nav p:nth-child(3),
    .footer__nav p:nth-child(4),
    .footer__nav p:nth-child(5) {
        margin-top: 5px;
    }

    .footer-right {
        width: 100%;
        display: flex;
        flex-direction: row;
    }


    .footer__address p:nth-child(2),
    .footer__address p:nth-child(3),
    .footer__address p:nth-child(4) {
        font-size: 1em;
    }

    .footer__address p:nth-child(5) {
        font-size: 1em;
    }

    .footer__address p:nth-child(5) span:nth-child(1) {
        padding-right: 30px;
        margin-bottom: 10px;
    }

    .footer__address p:nth-child(6) {
        font-size: 1em;
        line-height: 1.3;
        margin: 0 0 30px 0;
    }


}

@media (min-width: 968px) {

    .footer__nav {
        display: flex;
        justify-content: space-between;
        list-style: none;
        padding: 0;
    }

}

@media (min-width: 1025px) {

    footer {
        padding: 50px 50px 30px 50px;
    }

    .footer {
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: row;
    }

    .footer-left {
        width: 55%;
        padding: 0 20px;
    }

    /* 上部の連絡先 */
    .footer__top {
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .footer__contact {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .footer__contact-item {
        width: 100%;
        padding: 15px;
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer__contact-item a {
        display: flex;
        align-items: center;
        text-decoration: none;
        width: 100%;
    }

    .footer__contact-item svg {
        width: 24px;
        height: 24px;
        margin-right: 10px;
    }

    .footer__info {
        display: flex;
        flex-direction: column;
        border-radius: 5px;
        margin: 20px 0 0 0;
    }

    .footer__middle {
        margin: 50px 0 0 0;
        padding: 30px 0 15px 0;
    }

    .footer__nav {
        display: flex;
        justify-content: space-between;
        list-style: none;
        padding: 0;
    }

    .footer__nav li {
        width: fit-content;
    }

    .footer__nav a {
        font-size: 1em;
        ;
        font-weight: 600;
        text-decoration: none;
    }

    .footer__nav p {
        margin-top: 15px;
        padding-left: 5px;
        font-size: .9em;
        line-height: 1.7;
    }

    .footer__nav p:nth-child(3),
    .footer__nav p:nth-child(4),
    .footer__nav p:nth-child(5) {
        margin-top: 5px;
    }

    .footer-right {
        width: 45%;
        display: flex;
        flex-direction: column;
        padding: 0 20px;
    }

    .footer__address {
        width: 100%;
        text-align: left;
        margin-bottom: 0;
    }

    .footer__address h3 {
        margin: 0 0 20px 0;
        white-space: nowrap;
        overflow-wrap: normal;
        display: inline-block;
        max-width: 100%;
    }

    .footer__address p:nth-child(5) {
        margin: 20px 0;
    }

    .footer__copyright {
        text-align: center;
        font-size: 12px;
        margin-top: 50px;
    }

}

@media (min-width: 1280px) {

    footer {
        padding: 50px 50px 30px 50px;
    }

    .footer {
        width: 94%;
        margin: 0 auto;
        display: flex;
        flex-direction: row;
    }

    .footer-left {
        width: 60%;
        padding: 0 50px;
    }

    /* 上部の連絡先 */
    .footer__top {
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .footer__contact {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .footer__contact-item {
        width: 49%;
        padding: 15px;
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer__contact-item a {
        display: flex;
        align-items: center;
        text-decoration: none;
        width: 100%;
    }

    .footer__contact-item svg {
        width: 24px;
        height: 24px;
        margin-right: 10px;
    }

    .footer__info {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        border-radius: 5px;
        margin: 20px 0 0 0;
    }

    .footer__middle {
        margin: 50px 0 0 0;
        padding: 30px 0 15px 0;
    }

    .footer__nav {
        display: flex;
        justify-content: space-between;
        list-style: none;
        padding: 0;
    }

    .footer__nav li {
        width: fit-content;
    }

    .footer__nav a {
        font-size: 1em;
        ;
        font-weight: 600;
        text-decoration: none;
    }

    .footer__nav p {
        margin-top: 15px;
        padding-left: 5px;
        font-size: .9em;
        line-height: 1.7;
    }

    .footer__nav p:nth-child(3),
    .footer__nav p:nth-child(4),
    .footer__nav p:nth-child(5) {
        margin-top: 5px;
    }

    .footer-right {
        width: 40%;
        display: flex;
        flex-direction: column;
        padding: 0 50px;
    }

    .footer__address {
        width: 100%;
        text-align: left;
        margin-bottom: 0;
    }

    .footer__address h3 {
        margin: 0 0 20px 0;
    }

    .footer__address p:nth-child(5) {
        margin: 20px 0;
    }

    .footer__copyright {
        text-align: center;
        font-size: 12px;
        margin-top: 50px;
    }

}

/* ======== 文字サイズボタンのデザイン ======== */

.font-size-btn {
    border: 1px solid #261C19;
    cursor: pointer;
    font-weight: bold;
    background-color: white;
    transition: opacity 0.2s ease;
    border-radius: 5px;
}

/* ======== 展示品検索システムの見出し ======== */

.search_subheading {
  width: 80%;
  margin: 0 auto;
}

.search_box {
  padding: 50px 0 30px 0;
}

.search_text {
    width: 100%;
    text-align: left;
    line-height: 1.6;
    font-size: .9em;
}

@media (min-width: 768px) {
.search_text {
    width: 80%;
    font-size: 1em;
}
}

@media (min-width: 1025px) {
.search_box {
  padding: 100px 0 50px 0;
}
}

@media (min-width: 1280px) {
.search_box {
  padding: 100px 0 50px 0;
}
}

/* ======== 展示品検索システムの中身 ======== */

.product-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  width: 48%;
  background: #fff;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.product-card img {
  width: 100%;
  height: auto;
  display: block;
}

.product-info {
  padding: 12px;
}

.product-name {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 6px;
}

.manufacturer {
  font-size: 14px;
  color: #555;
  margin: 0 0 8px;
}

.features {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

.categories span {
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  font-size: 12px;
  padding: 4px 8px;
  margin: 2px 4px 0 0;
  border-radius: 5px;
}

.genre-filter-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 16px;
}

.genre-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  background-color: #f8f8f8;
  border-radius: 8px;
}

.custom-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 12px 10px 36px;
  /* 左に余白を追加 */
  margin: 4px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  background-color: #fff;
  border: 1px solid #0a0a0a;
  border-radius: 6px;
  box-sizing: border-box;
  width: 46%;
  text-align: left;
  line-height: 1.5;
  /* モバイルでは2列表示 */
}

/* チェックボックス非表示 */
.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* チェックマークの見た目 */
.custom-checkbox .checkmark {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  height: 16px;
  width: 16px;
  background-color: #fff;
  border: 2px solid #999;
  border-radius: 3px;
  box-sizing: border-box;
}

/* チェックされた時 */
.custom-checkbox input:checked~.checkmark {
  background-color: #ef4181;
  border-color: #ef4181;
}

/* チェックマークに✓を追加 */
.custom-checkbox input:checked~.checkmark::after {
  content: "";
  position: absolute;
  left: 3px;
  top: -1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 検索ボタン */
.search-button-wrapper {
  text-align: center;
  margin-top: 24px;
}

.search-button {
  background-color: #4CAF50;
  color: #fff;
  font-size: 16px;
  padding: 10px 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-button:hover {
  background-color: #45a049;
}

.selected-categories {
  display: flex;
  flex-wrap: wrap;
  padding: 16px;
  max-width: 1200px;
  margin: 1rem auto 0 auto;
  gap: 0.5rem;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  background-color: #e0f7fa;
  color: #00796b;
  padding: 0.4rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  position: relative;
}

.remove-button {
  background-color: none;
  border: none;
  color: #00796b;
  font-size: 1rem;
  margin-left: 0.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.remove-button:hover {
  color: #d32f2f;
}

.selected-label {
  align-self: center;
  font-weight: bold;
  margin-right: 0.5rem;
}

.pagination {
  display: flex;
  justify-content: center;
  text-align: center;
}

.pagination a {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  background-color: #eee;
  text-decoration: none;
  color: black;
}

.pagination a:hover,
.pagination a:focus {
  background-color: #ddd;
}

.pagination__prev::before {
  content: '<';
}

.pagination__next::before {
  content: '>';
}

.pagination__items {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  counter-reset: pagination;
  margin: 0 1px;
}

.pagination__items li {
  position: absolute;
  top: -100vh;
  counter-increment: pagination;
  margin: 0 1px;
}

.pagination__items li:first-child,
.pagination__items li:last-child {
  position: static;
}

.pagination__items li.is-active {
  position: static;
}

.pagination__items li.is-active:not(:nth-child(1)):not(:nth-child(2))::before {
  content: '...';
  display: inline-block;
  padding: 0.5rem 0.7rem;
  background-color: #eee;
  margin-right: 2px;
}

.pagination__items li.is-active+li,
.pagination__items li.is-active+li+li {
  position: static;
}

.pagination__items li.is-active+li+li:not(:last-child):not(:nth-last-child(2))::after {
  content: '...';
  display: inline-block;
  padding: 0.5rem 0.7rem;
  background-color: #eee;
  margin-left: 2px;
}

.pagination__items a::before {
  content: counter(pagination);
}

.pagination__items .is-active a {
  background-color: black;
  color: white;
}


/* タブレット以上（4列） */
@media (min-width: 768px) {
  .product-card {
    width: 23%;
    margin-bottom: 8%;
  }

  .custom-checkbox {
    width: 23%;
  }

  .genre-filter-wrapper {
  padding: 80px 16px;
}

}