/* ========================================
   共通設定
======================================== */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;

    background-color: rgb(11, 40, 74);

    background-image:
        linear-gradient(45deg,
            rgba(255, 255, 255, 0.025) 25%,
            transparent 25%,
            transparent 75%,
            rgba(255, 255, 255, 0.025) 75%),
        linear-gradient(45deg,
            rgba(255, 255, 255, 0.025) 25%,
            transparent 25%,
            transparent 75%,
            rgba(255, 255, 255, 0.025) 75%);

    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;

    overflow-x: hidden;

    font-family: "Noto Sans JP", sans-serif;
}


/* ========================================
   共通ヘッダー(work.html等と統一)
======================================== */

header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 140px;

    box-sizing: border-box;

    background-color: #ffffff;

    background-image:
        repeating-linear-gradient(45deg,
            transparent 0,
            transparent 29px,
            rgba(11, 40, 74, 0.10) 29px,
            rgba(11, 40, 74, 0.10) 30px),
        repeating-linear-gradient(-45deg,
            transparent 0,
            transparent 29px,
            rgba(11, 40, 74, 0.10) 29px,
            rgba(11, 40, 74, 0.10) 30px);

    box-shadow:
        0 2px 5px rgba(11, 40, 74, 0.15);

    z-index: 10000;
}

.header-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: none;
    height: 100%;

    margin: 0;
    padding: 0 40px;

    box-sizing: border-box;
}

.logo {
    margin: 0;
    flex-shrink: 0;
}

.logo a {
    display: block;
}

.logo img {
    display: block;
    width: clamp(140px, 15vw, 230px);
    height: auto;
    max-height: 110px;
}

.navi-list {
    display: inline-flex;
    align-items: center;

    list-style: none;

    margin: 0;
    padding: 0;

    gap: clamp(8px, 1.6vw, 20px);

    font-size: clamp(15px, 1.6vw, 22px);
    letter-spacing: clamp(1px, 0.2vw, 3px);
    font-weight: 700;

    color: #000000;

    flex-wrap: wrap;
    justify-content: flex-end;
}

.navi-list li {
    flex-shrink: 0;
}

.navi-list a {
    position: relative;

    display: block;

    padding: 8px 4px;

    text-decoration: none;

    white-space: nowrap;

    color: #000000;
}

.navi-list a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 2px;

    background: currentColor;

    transform: scaleX(0);

    transform-origin: right;

    transition:
        transform 0.3s ease;
}

.navi-list a:hover::after {
    transform: scaleX(1);

    transform-origin: left;
}

.navi-list a:link,
.navi-list a:visited,
.navi-list a:hover,
.navi-list a:active {
    color: #000000;
}

.navi-list a.active {
    color: #c9a227;
}

.navi-list a.active::after {
    background: #c9a227;
    transform: scaleX(1);
    transform-origin: left;
}

.navi-list a.nav-cta {
    background-color: #c9a227;
    color: rgb(11, 40, 74);
    padding: 8px 20px;
    border-radius: 20px;
}

.navi-list a.nav-cta::after {
    display: none;
}

.navi-list a.nav-cta:hover {
    background-color: #ddb733;
    color: rgb(11, 40, 74);
}

.navi-list a.nav-cta.active {
    color: rgb(11, 40, 74);
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 2;
}

.hamburger-btn span {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background-color: rgb(11, 40, 74);
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {

    header {
        height: auto;
        min-height: 90px;
    }

    .header-container {
        flex-wrap: nowrap;
        padding-top: 20px;
        padding-right: 6px;
        padding-bottom: 4px;
        padding-left: 2px;
        /* ★ 修正：ロゴを左端ぎりぎりまで寄せ(padding-leftを2pxまで縮小)、
           ロゴ・ハンバーガーの位置を下げるため(padding-topを増やしpadding-bottomを縮小)。
           上下の合計は変えていない(20+4=24=12+12)ため、ヘッダー自体の高さは変わらず、
           他ページのtopView等のheader高さオフセット計算に影響しない */
    }

    .logo img {
        width: 120px;
        max-height: 65px;
    }

    .hamburger-btn {
        display: flex;
    }

    .navi-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 8px 20px 20px;
        background-color: #ffffff;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    }

    .navi-list.open {
        display: flex;
    }

    .navi-list li {
        width: 100%;
    }

    .navi-list a {
        display: block;
        width: 100%;
        padding: 14px 8px;
        text-align: center;
        font-size: 18px;
    }

    .navi-list a.nav-cta {
        margin-top: 8px;
    }
}


/* ========================================
   口コミ一覧エリア
======================================== */

.voice-list-wrap {
    position: relative;
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding-bottom: 100px;
    box-sizing: border-box;
}

.no-result {
    text-align: center;

    padding: 40px 0 80px;

    color: rgba(255, 255, 255, 0.6);

    font-size: 14px;

    display: none;
}


/* ========================================
   口コミカード一覧
======================================== */

.testimonial-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;

    margin-bottom: 20px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;

    width: 100%;

    background-color: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 12px;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

    box-sizing: border-box;
}

.testimonial-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);

    border-color: var(--gold);
}

.testimonial-card-photo {
    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background-color: rgba(255, 255, 255, 0.06);
}

.testimonial-card-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.testimonial-card-body {
    padding: 24px 26px 28px;

    display: flex;
    flex-direction: column;
    gap: 12px;

    flex: 1;
}

.testimonial-card-quote {
    font-family: "Shippori Mincho", serif;

    font-size: 15px;

    line-height: 1.9;

    color: rgba(255, 255, 255, 0.88);

    margin: 0;

    white-space: pre-line;

    flex: 1;
}

.testimonial-card-author {
    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 13px;

    color: var(--gold);

    font-weight: 700;

    letter-spacing: 1px;

    padding-top: 10px;

    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card-author::before {
    content: "";

    display: inline-block;

    width: 18px;
    height: 2px;

    background-color: var(--gold);
}


/* ========================================
   ページネーション(work.htmlと統一)
======================================== */

.pagination {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    margin-top: 20px;

    padding-bottom: 20px;
}

.page-btn {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    border: 1.5px solid rgba(255, 255, 255, 0.3);

    background: transparent;

    color: #fff;

    font-size: 14px;

    font-weight: bold;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    transition:
        border-color 0.25s ease,
        color 0.25s ease,
        background-color 0.25s ease;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--gold);

    color: var(--gold);
}

.page-btn.active {
    background-color: var(--gold);

    border-color: var(--gold);

    color: var(--navy-deep);
}

.page-btn:disabled {
    opacity: 0.3;

    cursor: not-allowed;
}

.page-arrow {
    font-size: 16px;
}


/* ========================================
   タブレット
======================================== */

@media (max-width: 900px) {

    .testimonial-grid {
        grid-template-columns: 1fr;

        gap: 24px;
    }
}


/* ========================================
   スマートフォン
======================================== */

@media (max-width: 600px) {

    .voice-list-wrap {
        width: calc(100% - 24px);
        padding-bottom: 60px;
    }

    .testimonial-grid {
        gap: 20px;
    }

    .testimonial-card-body {
        padding: 18px 18px 20px;
    }

    .testimonial-card-quote {
        font-size: 14px;
    }
}


/* ========================================
   フッター色の上書き(このページ専用)
   フッターが紺色だとbody背景の紺色と重なって見づらいため、
   ヘッダーと統一感が出るよう白背景に変更しています。
   あわせて、白背景でも読みやすいよう文字色を紺系に変更。
   (footer.cssより読み込み順が先でも確実に効くよう、
    bodyを付けて詳細度を上げています)
======================================== */

body footer {
    background-color: #ffffff;
    background-image:
        repeating-linear-gradient(45deg,
            transparent 0,
            transparent 29px,
            rgba(11, 40, 74, 0.10) 29px,
            rgba(11, 40, 74, 0.10) 30px),
        repeating-linear-gradient(-45deg,
            transparent 0,
            transparent 29px,
            rgba(11, 40, 74, 0.10) 29px,
            rgba(11, 40, 74, 0.10) 30px);
}

body footer .footer-brand-name {
    color: #0b284a;
}

body footer .footer-catch {
    color: rgba(11, 40, 74, 0.75);
}

body footer .footer-nav a {
    color: #0b284a;
}

body footer .footer-info p {
    color: rgba(11, 40, 74, 0.85);
}

body footer .footer-info p.footer-company {
    color: #0b284a;
}

body footer .footer-info a {
    color: rgba(11, 40, 74, 0.85);
}

body footer .footer-legal a {
    color: rgba(11, 40, 74, 0.6);
}

body footer .footer-line {
    border-top: 1px solid rgba(11, 40, 74, 0.2);
}

body footer .footer-copyright {
    color: rgba(11, 40, 74, 0.55);
}


/* ========================================
   SEO/アクセシビリティ用：視覚的には非表示だが、
   検索エンジンやスクリーンリーダーには読み取れる見出し
======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
