@charset "utf-8";

/* ============================================
   トップページ 2026リニューアル
   デザイン案: 食の王国デザイン案20260724_3
============================================ */

:root {
    --t-green: #104533;
    --t-green-light: #eef4f0;
    --t-red: #c7000b;
    --t-blue: #1d50a2;
    --t-border: #dcdcdc;
    --t-text: #333;
}

.p-home2026 {
    color: var(--t-text);
    background: #fff;
    overflow-x: hidden;
    /* 書体は common2026.css の body（ゴシック体）を継承する */
}

/* input/button/select はフォントを継承しないため明示指定 */
.p-home2026 input,
.p-home2026 button,
.p-home2026 select,
.p-home2026 textarea {
    font-family: inherit;
}

.p-home2026 img {
    max-width: 100%;
    height: auto;
}

.tMain {
    display: block;
}

/* --------------------------------------------
   共通パーツ
-------------------------------------------- */
.tSec_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.tSec_ttl {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    color: var(--t-green);
}

.tSec_ttl svg,
.tSec_ttl img {
    flex-shrink: 0;
}

.tBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid var(--t-green);
    border-radius: 5px;
    background: #fff;
    color: var(--t-green);
    font-size: 14px;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.tBtn:hover {
    background: var(--t-green);
    color: #fff;
}


/* --------------------------------------------
   メインビジュアル
   本体は hero2026.css（/about/ と共用）。ここにはトップ専用の部品だけを置く
-------------------------------------------- */
/* 食べトクとやまアプリ訴求カード（現在はテンプレート側でコメントアウト中） */
.tHero_app {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 250px;
    padding: 26px 20px 22px;
    border-radius: 12px;
    background: #fff;
    color: var(--t-text);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
    transition: transform .2s;
}

.tHero_app:hover {
    transform: translateY(-2px);
}

.tHero_app_note {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--t-green);
}

.tHero_app_name {
    margin: 0 0 14px;
    font-size: 19px;
    font-weight: bold;
    color: var(--t-green);
    line-height: 1.5;
}

.tHero_app_icon {
    display: block;
    width: 90px;
    margin: 0 auto 14px;
}

.tHero_app_stores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

/* 元画像(高さ33px)を拡大しない。狭い画面では50%幅を上限に縮小のみ */
.tHero_app_stores img {
    width: auto;
    height: 33px;
    max-width: calc(50% - 4px);
    object-fit: contain;
}

.tHero_app_more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--t-green);
    font-size: 15px;
}

/* --------------------------------------------
   お知らせ + カレンダー
-------------------------------------------- */
.tInfoArea {
    display: flex;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.tNews {
    width: 44%;
    padding: 28px;
    border: 1px solid var(--t-border);
    border-radius: 8px;
}

.tNews_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tNews_list li {
    border-bottom: 1px dotted var(--t-border);
}

.tNews_list a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 13px 4px;
    color: var(--t-text);
    text-decoration: none;
    transition: color .2s;
}

.tNews_list a:hover {
    color: var(--t-green);
}

.tNews_list time {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--t-green);
}

.tNews_text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.tCal {
    flex: 1;
    padding: 28px;
    border: 1px solid var(--t-border);
    border-radius: 8px;
}

.tCal_cols {
    display: flex;
    gap: 24px;
}

.tCal_tableWrap {
    flex: 1;
}

/* 月送りナビ（矢印で今月〜11か月先を切り替える） */
.tCal_monthNav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
}

.tCal_navBtn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--t-border);
    border-radius: 50%;
    background: #fff;
    color: var(--t-green);
    cursor: pointer;
    transition: border-color .2s, opacity .2s;
}

.tCal_navBtn:hover:not(:disabled) {
    border-color: var(--t-green);
}

.tCal_navBtn:disabled {
    opacity: .3;
    cursor: default;
}

.tCal_month {
    margin: 0 0 10px;
    text-align: center;
    font-size: 16px;
    color: var(--t-green);
    font-weight: bold;
}

/* 月送りナビの中では下マージンを持たせない（ナビ側で調整する） */
.tCal_monthNav .tCal_month {
    min-width: 7em;
    margin: 0;
}

.tCal_table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 15px;
}

.tCal_table th {
    padding: 8px 0;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid var(--t-border);
}

.tCal_table td {
    padding: 4px 0;
}

/* 全セルの日付を同サイズの30x30ボックスに統一（○印による行ズレ防止） */
.tCal_table td > b,
.tCal_table td > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    vertical-align: middle;
}

.tCal_table th.-sun,
.tCal_table td.-sun {
    color: var(--t-red);
}

.tCal_table th.-sat,
.tCal_table td.-sat {
    color: var(--t-blue);
}

.tCal_table td.-today > b {
    border: 1px solid var(--t-green);
}

.tCal_table td b {
    font-weight: 600;
}

.tCal_table td.-event a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--t-green);
    color: #fff;
    text-decoration: none;
    transition: opacity .2s;
}

.tCal_table td.-event a:hover {
    opacity: .8;
}

.tCal_side {
    width: 260px;
    flex-shrink: 0;
}

.tCal_side_ttl {
    margin: 0 0 10px;
    padding-bottom: 6px;
    font-size: 15px;
    color: var(--t-green);
}

.tCal_eventList {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.tCal_eventList li + li {
    border-top: 1px dotted var(--t-border);
}

.tCal_eventList a {
    display: block;
    padding: 10px 2px;
    color: var(--t-text);
    text-decoration: none;
    transition: color .2s;
}

.tCal_eventList a:hover {
    color: var(--t-green);
}

.tCal_eventDate {
    display: block;
    font-size: 13px;
    color: var(--t-green);
}

.tCal_eventName {
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 1.6;
}

.tCal_eventNone {
    margin: 0 0 16px;
    font-size: 14px;
}

/* イベント掲載申請バナー: ベージュ地にテキスト、写真は右下に配置 */
.tCal_release {
    /* 写真と、その上に重ねるグラデーションで共用する */
    --release-img-w: 46%;
    --release-img-h: 82px;
    --release-bg: #f2eee9;
    --release-bg-clear: rgba(242, 238, 233, 0);

    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    background: var(--release-bg);
    color: var(--t-text);
    text-decoration: none;
    transition: opacity .2s;
}

.tCal_release:hover {
    opacity: .85;
}

/* 写真の高さは「ボタン行の高さ」と揃えた固定値。
   カード幅が変わってもテキストと段が重ならない
   （.p-home2026 img の height:auto に負けないよう親クラスを重ねている） */
.tCal_release > .tCal_release_img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: var(--release-img-w);
    height: var(--release-img-h);
    object-fit: cover;
    object-position: 50% 18%;
}

/* 写真の上辺・左辺を背景色にぼかしてなじませる。
   2枚重ねているので、左上の角がいちばん強くフェードする */
.tCal_release::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: var(--release-img-w);
    height: var(--release-img-h);
    background:
        linear-gradient(to bottom, var(--release-bg) 0%, var(--release-bg-clear) 38%),
        linear-gradient(to right, var(--release-bg) 0%, var(--release-bg-clear) 32%);
    pointer-events: none;
}

.tCal_release_body {
    position: relative;
    z-index: 1;
    display: block;
    padding: 16px 16px 18px;
}

.tCal_release_ttl {
    display: block;
    font-size: 15px;
    line-height: 1.6;
    color: var(--t-green);
}

.tCal_release_text {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.7;
    /* 「す。」だけが最終行に残らないようにする。
       auto-phrase は日本語を文節単位で折り返す（未対応ブラウザは通常の折り返し） */
    text-wrap: pretty;
    word-break: auto-phrase;
}

/* 右下の写真の左に並ぶ。margin-top + 高さ + 下padding = 写真の高さ(82px) */
.tCal_release_btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    max-width: 50%;
    margin-top: 20px;
    padding: 10px 12px;
    border-radius: 4px;
    background: var(--t-green);
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
}

.tCal_release_btn svg {
    flex-shrink: 0;
}

/* --------------------------------------------
   クイックナビ
-------------------------------------------- */
.tQuick {
    padding-bottom: 70px;
}

.tQuick_list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tQuick_list > li {
    display: flex;
    flex-direction: column;
}

.tQuick_main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 16px;
    border: 1px solid var(--t-border);
    border-radius: 8px;
    color: var(--t-text);
    text-align: center;
    text-decoration: none;
    transition: box-shadow .2s, border-color .2s;
}

.tQuick_main:hover {
    border-color: var(--t-green);
    box-shadow: 0 4px 12px rgba(16, 69, 51, .12);
}

.tQuick_list img {
    width: 80px;
}

.tQuick_list b {
    font-size: 18px;
    color: var(--t-green);
}

.tQuick_main span {
    font-size: 13px;
    color: #666;
}

/* --------------------------------------------
   主要コンテンツ
-------------------------------------------- */
.tContents {
    padding: 0px 0 70px;
}

.tContents_ttl {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0 0 36px;
    font-size: 24px;
    color: var(--t-green);
    text-align: center;
}

.tContents_list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tContents_list > li {
    margin: 0 0 20px;
}

.tContents_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 22px 12px 18px;
    border: 1px solid var(--t-border);
    border-radius: 8px;
    background: #fff;
    color: var(--t-text);
    text-align: center;
    text-decoration: none;
    transition: box-shadow .2s, border-color .2s;
}

.tContents_item:hover {
    border-color: var(--t-green);
    box-shadow: 0 4px 12px rgba(16, 69, 51, .12);
}

.tContents_item.is-nolink {
    cursor: default;
}

.tContents_item.is-nolink:hover {
    border-color: var(--t-border);
    box-shadow: none;
}

.tContents_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 93px;
    height: 93px;
}

.tContents_icon img {
    max-height: 93px;
    object-fit: contain;
}

/* 横長ロゴのアイコン（main_contents.php の icon_wide 指定）は枠いっぱいまで拡大 */
.tContents_icon-wide {
    width: 100%;
    max-width: 180px;
}

.tContents_icon-wide img {
    width: 100%;
    height: auto;
    max-height: 93px;
}

.tContents_name {
    font-size: 15px;
    color: var(--t-green);
    line-height: 1.4;
}

.tContents_text {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* --------------------------------------------
   調べる
-------------------------------------------- */
.tSearch {
    padding: 60px 0;
}

.tSearch_panel {
    padding: 40px;
    border: 2px solid var(--t-green);
    border-radius: 10px;
}

.tSearch_ttl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 30px;
    font-size: 24px;
    color: var(--t-green);
}

.tSearch_cols {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 30px;
}

.tSearch_col {
    flex: 1;
}

.tSearch_subTtl {
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--t-green);
}

.tSearch_keyword {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 14px;
    border: 1px solid var(--t-border);
    border-radius: 5px;
    overflow: hidden;
    background: #f7f7f7;
    color: var(--t-green);
}

.tSearch_keyword svg {
    flex-shrink: 0;
}

.tSearch_keyword input {
    flex: 1;
    min-width: 0;
    padding: 11px 18px 11px 0;
    border: none;
    background: transparent;
    color: var(--t-text);
    font-size: 14px;
    outline: none;
}

.tSearch_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* クリックでキーワード欄に入る。選択中は塗りつぶし */
.tSearch_tags button {
    display: block;
    padding: 6px 16px;
    border: 1px solid var(--t-green);
    border-radius: 100px;
    background: transparent;
    color: var(--t-green);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.tSearch_tags button:hover,
.tSearch_tags button[aria-pressed="true"] {
    background: var(--t-green);
    color: #fff;
}

.tSearch_cats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

/* 左＝写真、右＝ベージュ背景にカテゴリ名。チェックボックスで複数選択できる */
.tSearch_cat {
    display: flex;
    align-items: stretch;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: #f2eee9;
    cursor: pointer;
    transition: opacity .2s, box-shadow .2s;
}

.tSearch_cat:hover {
    opacity: .85;
}

/* チェックボックス本体は隠すが、キーボード操作は残す */
.tSearch_catCheck {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.tSearch_catCheck:checked ~ .tSearch_catLabel {
    background: var(--t-green);
    color: #fff;
}

.tSearch_cat:has(.tSearch_catCheck:checked) {
    box-shadow: inset 0 0 0 2px var(--t-green);
}

.tSearch_cat:has(.tSearch_catCheck:focus-visible) {
    outline: 2px solid var(--t-green);
    outline-offset: 2px;
}

.tSearch_catImage {
    display: block;
    width: 45%;
    flex-shrink: 0;
    aspect-ratio: 7 / 5;
    background: var(--t-green-light) center / cover no-repeat;
}

.tSearch_catLabel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: var(--t-green);
    font-size: 16px;
    letter-spacing: .05em;
}

.tSearch_selects {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.tSearch_select {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.tSearch_select span {
    flex-shrink: 0;
    font-size: 15px;
    color: var(--t-green);
}

.tSearch_select select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--t-border);
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: var(--t-text);
}

/* 「地域」が食材と協力店の両方に効くことの補足 */
.tSearch_note {
    margin: -12px 0 24px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--t-text);
}

/* 検索ボタン。/product/ の .search_submit と同じ見た目 */
.tSearch_submit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 25px;
    margin-bottom: 24px;
}

.tSearch_submit > button:not(.tSearch_clear) {
    min-width: 280px;
    height: 56px;
    padding: 0 30px;
    border: none;
    border-radius: 5px;
    background-color: var(--t-green);
    color: #fff;
    font-size: 18px;
    font-family: inherit;
    cursor: pointer;
    transition: background-color .2s;
}

.tSearch_submit > button:not(.tSearch_clear):hover {
    background-color: #0a2f22;
}

.tSearch_clear {
    min-width: 0;
    height: auto;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--t-green);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
}

.tSearch_clear:hover {
    background: transparent;
    text-decoration: underline;
}

.tSearch_more {
    margin: 0;
    text-align: center;
}

.tSearch_more a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--t-green);
    font-size: 15px;
    text-decoration: none;
}

.tSearch_more a:hover {
    text-decoration: underline;
}

/* --------------------------------------------
   SNS
-------------------------------------------- */
.tSns {
    padding-bottom: 70px;
}

.tSns_list {
    display: flex;
    justify-content: center;
    gap: 24px;
    list-style: none;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.tSns_list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: var(--t-text);
    font-size: 15px;
    text-decoration: none;
    transition: box-shadow .2s;
}

.tSns_list a:hover {
    opacity: .8;
}

.tSns_ig {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}


/* --------------------------------------------
   タブレット・スマホ
-------------------------------------------- */
@media screen and (max-width: 1080px) {
    .tContents_list {
        grid-template-columns: repeat(4, 1fr);
    }

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

@media screen and (max-width: 767px) {
    /* SPではアプリ訴求カードを非表示 */
    .tHero_app {
        display: none;
    }

    /* お知らせ・カレンダー */
    .tInfoArea {
        flex-direction: column;
        gap: 24px;
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .tNews,
    .tCal {
        width: auto;
        padding: 20px 16px;
    }

    .tSec_ttl {
        font-size: 18px;
    }

    .tBtn {
        font-size: 12px;
        padding: 7px 12px;
        flex-shrink: 0;
    }

    .tCal_cols {
        flex-direction: column;
    }

    .tCal_side {
        width: auto;
    }

    /* クイックナビ */
    .tQuick {
        padding-bottom: 40px;
    }

    .tQuick_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .tQuick_main {
        padding: 20px 10px;
    }

    .tQuick_list img {
        width: 64px;
    }

    .tQuick_list b {
        font-size: 16px;
    }

    .tQuick_main span {
        font-size: 12px;
    }

    /* 主要コンテンツ */
    .tContents {
        padding: 40px 0;
    }

    .tContents_ttl {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .tContents_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0 12px;
    }

    .tContents_list > li {
        margin-bottom: 12px;
    }


    /* 調べる */
    .tSearch {
        padding: 40px 0;
    }

    .tSearch_panel {
        padding: 24px 16px;
    }

    .tSearch_ttl {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .tSearch_cols {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }

    .tSearch_cats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }

    .tSearch_catLabel {
        font-size: 13px;
        letter-spacing: 0;
    }

    .tSearch_selects {
        flex-direction: column;
        gap: 12px;
    }

    .tSearch_note {
        font-size: 13px;
    }

    .tSearch_submit > button:not(.tSearch_clear) {
        width: 100%;
        min-width: 0;
        height: 48px;
        font-size: 16px;
    }

    /* SNS */
    .tSns {
        padding-bottom: 40px;
    }

    .tSns_list {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .tSns_list a {
        justify-content: center;
    }

}
