/* ------------------------------
カスタムプロパティ
------------------------------ */

:root {
    /* Colors */
    --color-primary: #d2a362;
    --color-text: #231815;
    --color-text-light: #666;
    --color-text-muted: #999;
    --color-background: #fff;
    --color-background-gray: #f5f5f5;
    --color-border: #ddd;
    --color-border-light: #eee;
    --color-map-placeholder: #d9d9d9;
    --color-nav-current: #bd873d;

    /* Font sizes */
    --font-size-xs: 1.2rem;
    --font-size-sm: 1.3rem;
    --font-size-base: 1.4rem;
    --font-size-md: 1.6rem;
    --font-size-lg: 2.4rem;
    --font-size-xl: 2.2rem;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 24px;
    --spacing-xl: 30px;
    --spacing-2xl: 32px;
    --spacing-3xl: 40px;
    --spacing-4xl: 48px;

    /* Layout */
    --content-max-width: 1280px;
    --content-padding: 12px;
    --news-max-width: 800px;
    --header-height: 49px;
}

/* ------------------------------
リセット
------------------------------ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 10px;
}

body {
    margin: 0;
    color: var(--color-text);
    font-family: "Noto Sans JP", sans-serif;
    font-size: var(--font-size-md);
    font-weight: 400;
    line-height: 1.5;
    background: var(--color-background);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

/* ------------------------------
レイアウト
------------------------------ */

#wrapper {
    overflow-x: clip;
    min-height: 100vh;
}

#headWrapper,
#footerWrapper,
.keyVisual_inner,
.pageVisual_inner,
.contentSection_inner,
.newsSection_inner,
.topIndex_inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

#header {
    padding: 10px 0 var(--spacing-md);
}

@media screen and (min-width: 500px) {
    #header {
        padding: 16px 0 18px;
    }
}

#headInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: var(--header-height);
}

#mainColumn {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    padding: 0 0 var(--spacing-4xl);
}

#footerInner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-3xl);
    padding: var(--spacing-4xl) var(--content-padding) var(--spacing-2xl);
}

/* ------------------------------
ヘッダー
------------------------------ */

.headerLogo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.headerLogo_link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.headerLogo_image {
    display: block;
    width: 245px;
    height: auto;
}

.headerLogo_note {
    display: inline-flex;
    align-items: center;
    align-self: center;
    margin: 0;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-text-muted);
    font-family: Inter, sans-serif;
    font-size: var(--font-size-xs);
    line-height: 1;
    white-space: nowrap;
}

.headerLogo_noteLink {
    color: inherit;
}

.headerLogo_noteLink:hover {
    opacity: 0.7;
}

.navToggle {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    z-index: 110;
}

.navToggle_bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.3s, opacity 0.3s;
}

.navToggle[aria-expanded="true"] .navToggle_bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navToggle[aria-expanded="true"] .navToggle_bar:nth-child(2) {
    opacity: 0;
}

.navToggle[aria-expanded="true"] .navToggle_bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.globalNav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    padding: calc(var(--header-height) + var(--spacing-xl)) var(--spacing-lg) var(--spacing-lg);
    background: var(--color-background);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 100;
}

.globalNav.is-open {
    transform: translateX(0);
}

.globalNav_list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.globalNav_link {
    display: block;
    font-size: var(--font-size-md);
}

.globalNav_line {
    display: none;
}

.globalNav_link:hover,
.footerNav_link:hover,
.newsList_link:hover {
    opacity: 0.7;
}

.navOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 90;
}

.navOverlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ------------------------------
キービジュアル
------------------------------ */

.keyVisual_inner {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.keyVisual_inner picture {
    display: block;
    height: 200px;
}

.keyVisual_image {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.keyVisual_catch {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 60px);
    max-width: 666px;
    margin: 0;
    padding: 29px 24px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-md);
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    transform: translate(-50%, -50%);
}

/* ------------------------------
トップページ インデックス
------------------------------ */

.topIndex {
    padding: var(--spacing-lg) 0 var(--spacing-lg);
    background: var(--color-background);
}

.topIndex_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
}

.topIndex_list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    width: 100%;
    max-width: 1000px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topIndex_item {
    width: 100%;
}

.topIndex_card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    background: var(--color-background);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.topIndex_card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    opacity: 1;
}

.topIndex_cardImage {
    height: 120px;
    overflow: hidden;
}

.topIndex_cardImage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.topIndex_cardBody {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: calc(var(--spacing-md) + var(--spacing-xs));
    padding: var(--spacing-lg);
}

.topIndex_cardTitle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
    color: var(--color-nav-current);
}

.topIndex_cardTitle::after {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 1px;
    border-right: 1px solid var(--color-nav-current);
    border-bottom: 1px solid var(--color-nav-current);
    transform: rotate(-45deg);
}

.topIndex_cardText {
    margin: 0;
    color: var(--color-text-light);
    font-size: var(--font-size-md);
    font-weight: 400;
    line-height: 1.625;
}

/* ------------------------------
セクションタイトル
------------------------------ */

.sectionTitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    margin: 0;
    padding: var(--spacing-md) 0;
}

.sectionTitle_text {
    font-size: var(--font-size-lg);
    font-weight: 400;
    line-height: 1.5;
}

.sectionTitle_line {
    display: block;
    width: 20px;
    height: 8px;
    border-radius: 7px;
    background: var(--color-primary);
}

/* ------------------------------
ページビジュアル
------------------------------ */

.pageVisual_inner {
    padding-bottom: var(--spacing-md);
}

.pageVisual_image {
    display: block;
    width: 100%;
    height: 196px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

.pageVisual-products .pageVisual_frame {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 196px;
    border: 2px solid #2362af;
    border-radius: 12px;
    background: var(--color-background);
}

.pageVisual-products .pageVisual_logo {
    display: block;
    width: 385px;
    max-width: calc(100% - 48px);
    height: auto;
}

/* ------------------------------
コンテンツセクション
------------------------------ */

.contentSection {
    padding-bottom: var(--spacing-2xl);
}

.contentSection_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
}

/* ------------------------------
定義リスト
------------------------------ */

.definitionList {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    width: 100%;
    max-width: var(--news-max-width);
    margin: 0;
}

.definitionList_item {
    display: flex;
    flex-direction: column;
    border-bottom: 0;
}

.definitionList_term {
    margin: 0;
    padding: 20px 16px 0;
    border-top: 1px solid var(--color-primary);
    border-bottom: 0;
    font-size: var(--font-size-md);
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
}

.definitionList_termBr {
    display: none;
}

.definitionList_data {
    margin: 0;
    padding: 20px 16px;
    font-size: var(--font-size-md);
    font-weight: 400;
    line-height: 1.625;
}

/* ------------------------------
カードリスト
------------------------------ */

.cardList {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    width: 100%;
    max-width: var(--news-max-width);
    margin: 0;
    padding: 0;
    list-style: none;
}

.cardList_item {
    width: 100%;
}

.card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    height: 100%;
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
}

.card_image {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
}

.card_title {
    margin: 0;
    padding: var(--spacing-sm) 0 var(--spacing-xs);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.card_text {
    margin: 0;
    font-size: var(--font-size-md);
    font-weight: 400;
    line-height: 1.625;
}

@media screen and (max-width: 767px) {
    .card {
        padding: var(--spacing-md);
    }
}

/* ------------------------------
宅配商品
------------------------------ */

.productGroup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    width: 100%;
    padding-top: 16px;
}

.title-sub {
    margin: 0;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
}

.title-sub-center {
    text-align: center;
}

.productList {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 860px;
    margin: 0;
    padding: 0 0 28px;
    list-style: none;
}

.productCard {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    border: 1px solid rgba(221, 221, 221, 0.87);
    border-radius: 12px;
}

.productCard_image {
    display: block;
    flex-shrink: 0;
    width: 176px;
    max-width: none;
    height: 176px;
    object-fit: fill;
    object-position: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) 40px;
    border-radius: 50px;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-background);
}

.button-strong {
    background: var(--color-nav-current);
}

.button-strong:hover {
    opacity: 0.85;
}

/* ------------------------------
採用情報
------------------------------ */

.recruitLead {
    margin: 0;
    font-size: var(--font-size-md);
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.recruitList {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    width: 100%;
    max-width: 600px;
    margin: 0;
    padding: var(--spacing-lg) 0;
    list-style: none;
}

.recruitCard {
    border: 1px solid rgba(221, 221, 221, 0.87);
    border-radius: 12px;
}

.recruitCard_link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    color: var(--color-nav-current);
}

.recruitCard_link:hover {
    opacity: 0.85;
}

/* ------------------------------
営業所一覧
------------------------------ */

.officeList {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    width: 100%;
    max-width: var(--news-max-width);
    margin: 0;
    padding: 0;
    list-style: none;
}

.officeCard {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    padding: var(--spacing-lg) var(--spacing-2xl);
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
}

.officeCard_body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.officeCard_title {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: 400;
    line-height: 1.5;
}

.officeCard_text {
    margin: 0;
    font-size: var(--font-size-md);
    font-weight: 400;
    line-height: 1.625;
}

.officeCard_map {
    flex-shrink: 0;
    width: 100%;
    height: 250px;
    background: var(--color-map-placeholder);
}

.officeCard_iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media screen and (max-width: 767px) {
    .officeCard {
        padding: calc(var(--spacing-md) + 4px) calc(var(--spacing-2xl) / 2) var(--spacing-md) calc(var(--spacing-2xl) / 2);
    }
}

/* ------------------------------
配達エリア
------------------------------ */

.deliveryArea {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    width: 100%;
    max-width: 566px;
}

.deliveryArea_image {
    display: block;
    width: 100%;
    height: auto;
}

.deliveryArea_text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
    padding: 0 16px;
}

.deliveryArea_text .text {
    margin: 0;
    font-size: var(--font-size-md);
    font-weight: 400;
    line-height: 1.625;
}

/* ------------------------------
お知らせ一覧
------------------------------ */

.newsSection {
    margin-top: calc(-1 * var(--spacing-sm));
    padding-bottom: var(--spacing-3xl);
}

.newsSection_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
}

.newsList {
    width: 100%;
    max-width: var(--news-max-width);
    border-top: 1px solid var(--color-border);
}

.newsList_item {
    border-bottom: 1px solid var(--color-border);
}

.newsList_link {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) 0;
}

.newsList_date {
    color: var(--color-text-light);
    font-size: var(--font-size-md);
    line-height: 1.5;
    text-align: left;
}

.newsList_title {
    font-size: var(--font-size-md);
    line-height: 1.5;
}

.newsArticle {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    width: 100%;
    max-width: var(--news-max-width);
    padding: 40px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.newsArticle_header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.newsArticle_date {
    color: var(--color-text-light);
    font-size: var(--font-size-md);
    line-height: 1.5;
}

.newsArticle_title {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: 400;
    line-height: 1.5;
}

.newsArticle_body .text {
    margin: 0;
    font-size: var(--font-size-md);
    font-weight: 400;
    line-height: 1.75;
}

.newsArticle_body .text + .text {
    margin-top: var(--spacing-xl);
}

.newsArticle_actions {
    padding-top: 16px;
}

@media screen and (max-width: 767px) {
    .newsArticle {
        padding: var(--spacing-lg);
    }
}

/* ------------------------------
プライバシーポリシー
------------------------------ */

.contentSection-first {
    padding-top: var(--spacing-4xl);
}

.policyDocument {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    width: 100%;
    max-width: var(--news-max-width);
}

.policyDocument_lead,
.policyDocument_meta,
.policySection_text {
    margin: 0;
    font-size: var(--font-size-md);
    font-weight: 400;
    line-height: 1.75;
}

.policyDocument_meta {
    margin-top: var(--spacing-md);
    text-align: right;
}

.policySection {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.policySection_title {
    margin: 0;
    padding-top: var(--spacing-sm);
    font-size: var(--font-size-md);
    font-weight: 700;
    line-height: 1.5;
}

.policyList {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin: 0;
    padding-left: 1.5em;
    list-style: disc;
}

.policyList_item {
    font-size: var(--font-size-md);
    line-height: 1.75;
}

.policyContact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin: calc(var(--spacing-lg) + var(--spacing-md)) 0 0;
    font-style: normal;
}

.policyContact_item {
    margin: 0;
    font-size: var(--font-size-md);
    line-height: 1.75;
}

.policyContact_item a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ------------------------------
フッター
------------------------------ */

#footer {
    background: var(--color-background-gray);
}

.footerLogo_image {
    width: 150px;
    height: auto;
}

.footerNav_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md) var(--spacing-xl);
}

.footerNav_link {
    font-size: var(--font-size-base);
    line-height: 1.5;
}

.footerGroup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    max-width: 720px;
    text-align: center;
}

.footerGroup_text {
    margin: 0;
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
    line-height: 1.6;
}

.footerGroup_logo {
    display: block;
    flex-shrink: 0;
    width: auto;
    height: 50px;
}

.copyright {
    margin: 0;
}

.copyright_text {
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

/* ------------------------------
汎用
------------------------------ */

.d-n {
    display: none;
}

/* 極小画面（500px未満） */

@media screen and (max-width: 499px) {
    .headerLogo {
        gap: 12px;
        padding-right: var(--spacing-sm);
    }

    .headerLogo_image {
        width: 160px;
    }

    .headerLogo_note {
        padding: 4px 6px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 364px) {
    .headerLogo_note {
        display: none;
    }
}

/* ------------------------------
TB以上
------------------------------ */

@media screen and (min-width: 768px) {
    .keyVisual_inner {
        height: auto;
        overflow: visible;
    }

    .keyVisual_inner picture {
        height: auto;
    }

    .keyVisual_image {
        height: auto;
        object-fit: fill;
    }

    .keyVisual_catch {
        font-size: var(--font-size-lg);
    }

    .newsList_link {
        flex-direction: row;
        gap: var(--spacing-xl);
    }

    .newsList_date {
        flex-shrink: 0;
    }

    .definitionList {
        gap: 0;
    }

    .definitionList_item {
        flex-direction: row;
        gap: var(--spacing-sm);
        border-bottom: 1px solid var(--color-border);
    }

    .definitionList_term {
        width: 165px;
        flex-shrink: 0;
        padding: 20px 16px;
        border-top: 0;
        border-bottom: 1px solid var(--color-primary);
        font-weight: 400;
    }

    .definitionList_termBr {
        display: inline;
    }

    .cardList_item {
        width: calc((100% - var(--spacing-xl)) / 2);
    }

    .topIndex_item {
        width: calc((100% - var(--spacing-lg)) / 2);
    }

    .officeCard {
        flex-direction: row;
        align-items: stretch;
    }

    .officeCard_body {
        flex: 1;
        padding: 0 var(--spacing-2xl) var(--spacing-md) 0;
    }

    .officeCard_map {
        width: 350px;
    }

    .footerGroup {
        flex-direction: row;
        justify-content: center;
        gap: var(--spacing-lg);
        text-align: left;
    }
}

/* ------------------------------
PC以上
------------------------------ */

@media screen and (min-width: 1025px) {
    .navToggle {
        display: none;
    }

    .globalNav {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        padding: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .globalNav_list {
        flex-direction: row;
        justify-content: flex-end;
        gap: 36px;
    }

    .globalNav_item-current .globalNav_link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xs);
        font-weight: 500;
        color: var(--color-nav-current);
    }

    .globalNav_item-current .globalNav_line {
        display: block;
        width: 100%;
        height: 1px;
        background: var(--color-nav-current);
    }

    .globalNav_item-current .globalNav_link:hover {
        opacity: 1;
    }

    .globalNav_item-top {
        display: none;
    }

    .keyVisual_catch {
        padding: 29px 69px;
    }

    .topIndex_item {
        width: calc((100% - (2 * var(--spacing-lg))) / 3);
    }

    .topIndex_cardImage {
        height: 140px;
    }
}
