/* 全体のリセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'YuGothic', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    color: #333333;
    line-height: 1.5;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

/* ヘッダー部分 */
header {
    width: 100%;
}

.top-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    width: 100%;
}

.description {
    width: 100%;
    text-align: left;
    padding: 6px 10px 10px;
}

.description p {
    font-size: 12px;
    font-weight: 700;
    color: #666;
}

.header-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 24px;
    position: relative;
}

.logo img {
    height: 50px;
}

.contact-area {
    display: flex;
    align-items: center;
    gap: 24px;
}

.phone-contact {
    border: 1px solid #EB6D26;
    border-radius: 6px;
    padding-top: 5px;
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
    align-items: center;
}

.phone-contact .icon {
    position: relative;
    top: 3px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    margin-left: 8px;
}

.contact-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #666666;
    text-align: center;
}

.phone-number {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #666666;
    margin-top: -8px;
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #EB6D26;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mail-contact {
    display: flex;
    align-items: center;
    background-color: #EB6D26;
    padding: 10px 32px;
    border-radius: 6px;
    color: #fff;
}

.mail-contact .icon {
    position: relative;
    top: 4px;
}

.mail-text {
    font-size: 18px;
    font-weight: 700;
    margin-left: 10px;
    letter-spacing: 0.1em;
}

.icon img {
    width: 24px;
    height: 24px;
}

.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #EB6D26;
    z-index: 999;
    transition: right 0.3s ease-in-out;
    padding: 80px 30px 30px;
}

.main-nav.active {
    right: 0;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-close span {
    font-size: 24px;
    color: #fff;
    font-weight: bold;
    line-height: 1;
}

.menu-close:hover span {
    color: rgba(255, 255, 255, 0.8);
}

.main-nav ul {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}

.main-nav a {
    font-size: 18px;
    display: block;
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* スライダー部分 */
.slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 24px;
    width: 100%;
    overflow: hidden;
}

.swiper {
    width: 100%;
    max-width: 1200px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.slide-image {
    width: 100%;
    height: 100%;
}

.swiper-slide-next,
.swiper-slide-prev {
    opacity: 0.8;
}

.swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) {
    opacity: 0.6;
    transform: scale(0.9);
}

.slide-text {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.swiper-pagination-bullets.swiper-pagination-horizontal {
    position: static;
    margin-top: -15px;
}

.swiper-pagination-bullets.swiper-pagination-horizontal .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    opacity: 1;
}

.swiper-pagination-bullets.swiper-pagination-horizontal .swiper-pagination-bullet-active {
    background-color: #EB6D26;
}

/* お客様の声セクション */
.voice-section {
    max-width: 1312px;
    margin: 0 auto;
    padding: 0 0 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 80px;
}

.section-title {
    width: 100%;
    text-align: center;
    padding: 16px 0;
}

.subtitle {
    font-family: 'DIN 2014', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #999;
    letter-spacing: 0.18em;
}

.title {
    font-size: 24px;
    font-weight: 700;
    color: #EB6D26;
    letter-spacing: 0.06em;
}

.category-filter {
    width: 100%;
    border-radius: 6px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.filter-header {
    background-color: #fff;
    padding: 8px 16px;
    width: 100%;
}

.filter-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.filter-buttons {
    background-color: #fff;
    padding: 16px 24px 24px;
}

.filter-buttons.mobile {
    display: none;
    padding: 0;
}


.filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    row-gap: 20px;
}

.filter-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 6px 32px;
    background-color: #ffffff;
    border: 2px solid #F8EADB;
    border-radius: 80px;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    cursor: pointer;
}

.filter-btn span {
    font-size: 12px;
}

.filter-btn.active {
    background-color: #F8EADB;
}

.filter-btn.selected {
    background-color: #F8EADB;
}

.card-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    max-width: 1200px;
    gap: 32px;
    margin: 0 auto;
    padding: 0 24px;
}

.card-row {
    display: none;
    /* カード行は不要になるため非表示に */
}

.card {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 16px 12px 20px;
    width: 100%;
}

.card-image {
    width: 95%;
    height: 324px;
    border-radius: 10px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-title h3 {
    font-size: 20px;
    font-weight: 700;
    color: #324661;
    line-height: 1.4;
}

.card-title p {
    font-size: 16px;
    color: #324661;
    line-height: 1.5;
}

.card-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-tag {
    background-color: #F8EADB;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 2px 24px;
    border-radius: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 14px;
    font-weight: 700;
    color: #555;
    background-color: #F5F5F5;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #E0E0E0;
}

.page-link.active {
    color: #fff;
    background-color: #FF6B35;
}

.page-nav {
    width: auto;
    padding: 0 16px;
}

.no-results {
    width: 100%;
    text-align: center;
    padding: 40px 0;
    font-size: 16px;
    color: #666;
}

.error-message {
    color: #E53935;
    text-align: center;
    padding: 40px 0;
    font-size: 16px;
}

/* 紹介セクション */
.about-section {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 50px 0;
}

.about-content {
    width: 1040px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 2px solid #EB6D26;
    border-radius: 10px;

}

.about-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #FF8C42;
}

.about-content p {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}

/* フッター部分 */
footer {
    background-color: #216AC9;
    padding: 60px 64px 32px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 64px;
}

.footer-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 12.5px;
    padding: 10px 50px;
}

.footer-logo img {
    height: 50px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: -10px;
}

.logo-title {
    font-family: 'Zen Maru Gothic', serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.5;
}

.logo-company {
    font-family: 'Zen Maru Gothic', serif;
    font-size: 13.75px;
    font-weight: 500;
    letter-spacing: -0.03em;
    text-align: right;
}

.footer-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 56px;
}

.footer-links {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
}

.footer-links a {
    font-size: 16px;
    font-weight: 700;
}

.footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 75px;
}

.footer-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 9px 37px 5px;
    border: 2px solid #fff;
    border-radius: 7px;
    height: 3.5rem;
}

.footer-phone-icon {
    margin-right: 9px;
    position: relative;
    top: 5px;
}

.footer-phone-info {
    display: flex;
    flex-direction: column;
}

.footer-contact-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.footer-phone-number {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-top: -8px;
}

.footer-mail {
    display: flex;
    align-items: center;
    padding: 9px 47px;
    border: 2px solid #fff;
    border-radius: 7px;
    height: 3.5rem;
}

.footer-mail-icon {
    margin-right: 12px;
    position: relative;
    top: 5px;
}

.footer-mail-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.footer-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #fff;
}

.footer-bottom-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.footer-bottom-links {
    display: flex;
    gap: 48px;
}

.footer-bottom-links a {
    font-size: 16px;
    font-weight: 500;
}

.copyright {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* トップに戻るボタン */
.scroll-top {
    position: fixed;
    bottom: 50px;
    right: 50px;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 1px 8px rgba(18, 88, 178, 1);
    z-index: 100;
}

.scroll-top img {
    width: 20px;
    height: 20px;
}

/* デスクトップ表示のナビゲーション */
@media (min-width: 769px) {
    .main-nav {
        position: static;
        width: 100%;
        height: auto;
        padding: 24px 64px;
        transition: none;
    }

    .menu-close {
        display: none;
    }

    .main-nav ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 160px;
        max-width: 1312px;
        margin: 0 auto;
    }

    .main-nav a {
        font-size: 16px;
        font-weight: 700;
        color: #fff;
        letter-spacing: 0.1em;
        padding: 0;
        background-color: transparent;
        border-radius: 0;
    }

    .main-nav a:hover {
        background-color: transparent;
    }
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .main-nav ul {
        gap: 80px;
    }

    .card-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-right {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        position: relative;
        width: 100%;
    }
    
    .logo {
        order: 1;
        width: 100%;
        text-align: start;
    }

    .logo img {
        height: 60px;
    }
    
    .contact-area {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
        z-index: 100;
    }
    
    .main-nav a {
        font-size: 18px;
        font-weight: 600;
        display: block;
        margin-bottom: 12px;
        padding: 14px 18px;
        background: #ffffff; /* ← 透過なしの白背景に */
        color: #ff6600;      /* ← 文字色はオレンジに */
        border: 1px solid rgba(255, 255, 255, 0.4); /* ←コントラスト高めに */
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); /* ←ボタンの立体感UP */
        transition: background 0.3s, transform 0.2s;
    }

    .footer-bottom-content{
        display: block;
    }

    .phone-contact,
    .mail-contact {
        padding: 8px 16px;
        justify-content: center;
        width: 80%;
    }

    .phone-contact{
        padding: 4px 16px;
    }

    .category-filter{
        margin: -60px;
    }

    .about-content {
        padding: 24px 16px;
    }

    .footer-links,
    .footer-contact {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
    }

    .filter-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        row-gap: 0;
        /* 横スクロールバーを隠したい場合は下記を追加 */
        scrollbar-width: none; /* Firefox */
    }
    .filter-row::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    .filter-btn {
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    .slider-content {
        height: 220px;
        padding: 0 20px;
    }

    footer {
        padding: 20px 8px;
    }

    .footer-phone {
        width: 100%;
        padding: 9px 16px 5px;
    }

    .footer-mail {
        width: 100%;
        padding: 9px 16px 5px;
    }

    .footer-logo {
        flex-direction: column;
    }

    .scroll-top {
        bottom: 24px;
        right: 24px;
    }

    .card-container {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
}
