/*
Theme Name: Astra Child
Template: astra
*/

/* ============================================================
   共通変数
   ============================================================ */
:root {
    --border-color: #e8e5de;
    --section-padding-top: 50px;
    --section-divider-margin-top: 80px;
    --section-divider-margin-bottom: 50px;
    --section-divider-color: #e6e4dd;
}

/* ============================================================
   共通ユーティリティ
   ============================================================ */

/* eyebrow（セクション上部の英字ラベル） */
.eyebrow {
    font-size: 14px;
    letter-spacing: 0.22em;
    color: #5C6B45;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px !important; /* Gutenberg .is-layout-flow の margin-block-start を上書き */
}

/* セクション見出しH2 */
.sec-h2 {
    margin-top: 0 !important; /* Gutenberg .is-layout-flow の margin-block-start: 24px を上書き */
}

/* SP用改行 [imdbr] */
.sp-br {
    display: none;
}
@media (max-width: 600px) {
    .sp-br {
        display: block;
    }
}

/* S5・S7・S8：ボディ部分の左右パディング（タイトルは除外） */
@media (min-width: 769px) {
    .s5 .s5-head-link,
    .s5 .s5-main,
    .s5 .s5-divider,
    .s5 .s5-sub,
    .s7 .s7-grid,
    .s7 .s7-base-cta,
    .s8 .s8-grid {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 固定ページ タイトル幅揃え */
.page .entry-header {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 40px;
}

/* ============================================================
   タイポグラフィ
   ============================================================ */
body {
    letter-spacing: 0.02em;
    line-height: 1.8;
}
h1 {
    font-size: 40px;
    line-height: 1.4;
    letter-spacing: 0.1em;
}
h2 {
    font-size: 32px;
    line-height: 1.5;
    letter-spacing: 0.05em;
    font-weight: 500;
}
@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    body { font-size: 16px; }
}
@media (max-width: 480px) {
    h1 {
        font-size: 28px;
        line-height: 1.3;
        letter-spacing: 0.03em;
    }
    h2 {
        font-size: 22px;
        line-height: 1.4;
        letter-spacing: 0.02em;
    }
    body {
        font-size: 16px;
        letter-spacing: 0.01em;
    }
}

/* ============================================================
   カラーパレット
   ============================================================ */
a         { color: #5C6B45; }
a:hover   { color: #4A5737; }
a:visited { color: #7A8E63; }
a:active  { color: #3A4429; }

/* 塗りボタン */
.wp-block-button__link {
    background-color: #5C6B45;
    color: #F4F8EE;
}
.wp-block-button__link:hover {
    background-color: #4A5737 !important;
    color: #F4F8EE !important;
}
.wp-block-button__link:active {
    background-color: #3A4429;
    color: #EAF0E2;
}

/* アウトラインボタン */
.is-style-outline .wp-block-button__link {
    border-color: #5C6B45;
    color: #5C6B45;
}
.is-style-outline .wp-block-button__link:hover {
    background-color: #EAF0E2;
    border-color: #4A5737;
    color: #4A5737;
}

.is-style-outline--1 .wp-block-button__link:hover {
    background-color: #F0EDE6 !important;
    border-color: #4A5737 !important;
    color: #4A5737 !important;
}
/* ============================================================
   セクション上下パディング・区切り線
   ============================================================ */
.s3, .s4, .s5, .s6,
.s7 .s7-body,
.s8 .s8-body,
.s9 {
    padding-top: var(--section-padding-top);
    padding-bottom: 0;
}

.wp-block-separator {
    margin-top: var(--section-divider-margin-top) !important;
    margin-bottom: var(--section-divider-margin-bottom) !important;
    border-color: var(--section-divider-color) !important;
    border-top-width: 1px !important;
}

@media (max-width: 768px) {
    .s3, .s4, section.s5, .s6,
    .s7 .s7-body, .s8 .s8-body, .s9 {
        padding-top: 40px !important;
        padding-bottom: 0 !important;
    }
    .wp-block-separator {
        margin-top: 40px !important;
        margin-bottom: 24px !important;
    }
}

/* ============================================================
   SP：全セクション左右パディング統一
   ============================================================ */
@media (max-width: 768px) {
    .s4, .s5, .s6, .s7, .s8, .s9 {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

/* ============================================================
   ヘッダー（S1）
   ============================================================ */
.custom-logo {
    height: 40px !important;
    width: 40px !important;
}
.site-branding {
    gap: 5px !important;
    align-items: center !important;
}
.site-description {
    margin-left: 6px;
    letter-spacing: 0.3em !important;
}
.site-logo-img {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}
.ast-primary-header-bar {
    background: #fff !important;
}

/* ============================================================
   ヒーロー（S2）
   ============================================================ */
.hero-pc h1,
.hero-pc h2,
.hero-pc p,
.hero-sp h1,
.hero-sp h2,
.hero-sp p {
    text-shadow: 0 1px 4px rgba(0,0,0,0.6), 0 2px 12px rgba(0,0,0,0.4);
}

.hero-sp { display: none; }
@media (max-width: 480px) {
    .hero-pc { display: none; }
    .hero-sp { display: block; }
}

/* ============================================================
   農園紹介（S3）
   ============================================================ */
.s3-about .wp-block-image img {
    max-width: 480px;
    width: 100%;
    margin-inline: auto;
    display: block;
}
@media (min-width: 769px) {
    .s3 {
        padding-top: 80px;
    }
}

/* ============================================================
   大切にしていること（S4）
   ============================================================ */
.s4 .wp-block-columns {
    border-top: .5px solid #e8e5de;
}
.s4 .wp-block-column {
    border-right: .5px solid #e8e5de;
}
.s4 .wp-block-column:last-child {
    border-right: none;
}
@media (max-width: 768px) {
    .s4 .wp-block-columns {
        gap: 16px !important;
    }
}
@media (max-width: 600px) {
    .s4 .wp-block-column {
        border-right: none;
        border-bottom: .5px solid var(--border-color);
    }
    .s4 .wp-block-column:last-child {
        border-bottom: none;
    }
}

/* ============================================================
   土と野菜の話（S5）
   ============================================================ */

/* ヘッダー部分 */
.s5 .s5-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}
.s5 .s5-head-link {
    padding-top: .3rem;
}
.s5 .s5-lead {
    font-size: 22px;
    color: #666;
    margin-top: .5rem !important;
    margin-bottom: 0 !important;
    border-left: 1.5px solid #d8d5ce;
    padding-left: 1rem;
}
.s5 .s5-archive-link {
    font-size: 14px;
    color: #5C6B45;
    text-decoration: none;
    white-space: nowrap;
}
.s5 .s5-archive-link:hover {
    text-decoration: underline;
}

/* メイン記事（左画像・右テキスト 2カラム） */
.s5 .s5-main {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    margin-bottom: 38px;
}
.s5 .s5-main-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.s5 .s5-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.s5 .s5-noimg {
    width: 100%;
    height: 100%;
    background: #e8e5de;
}
.s5 .s5-main-body {
    padding: 36px 0 36px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

/* カテゴリラベル */
.s5 .s5-cat {
    font-size: 14px;
    letter-spacing: .18em;
    color: #5C6B45;
    text-transform: uppercase;
    display: block;
}

/* メイン記事タイトル */
.s5 .s5-main-body h3 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: .04em;
    color: #2a2a2a;
    margin: 0;
}
.s5 .s5-main-body h3 a {
    color: #2a2a2a;
    text-decoration: none;
}
.s5 .s5-main-body h3 a:hover {
    color: #5C6B45;
}

/* メイン記事の抜粋テキスト */
.s5 .s5-main-body p {
    font-size: 16px;
    line-height: 1.8;
    color: #777;
    margin: 0;
    letter-spacing: 0.01em;
}

/* 続きを読むリンク */
.s5 .s5-readmore {
    font-size: 14px;
    color: #5C6B45;
    letter-spacing: .1em;
    text-decoration: none !important;
    border-bottom: .5px solid #c5cdb8;
    padding-bottom: 2px;
    align-self: flex-start;
}

/* サブ記事（2列グリッド） */
.s5 .s5-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 56px;
}
.s5 .s5-sub-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    border: .5px solid var(--border-color);
    overflow: hidden;
    align-items: stretch;
}
.s5 .s5-sub-img {
    display: block;
    width: 180px;
    height: auto !important;
    min-height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}
.s5 .s5-sub-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.s5 .s5-sub-noimg {
    width: 100%;
    height: 100%;
    background: #e8e5de;
}
.s5 .s5-sub-body {
    padding: 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    border-left: .5px solid var(--border-color);
    overflow: hidden;
}
.s5 .s5-sub-body .s5-readmore {
    margin-top: auto;
}

/* サブ記事タイトル */
.s5 .s5-sub-body h4 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .03em;
    color: #2a2a2a;
    margin: 0;
}
.s5 .s5-sub-body h4 a {
    color: #2a2a2a;
    text-decoration: none;
}
.s5 .s5-sub-body h4 a:hover {
    color: #5C6B45;
}

/* サブ記事の抜粋テキスト */
.s5 .s5-sub-body p {
    font-size: 14px;
    line-height: 1.5;
    color: #888;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* S5 レスポンシブ */
@media (max-width: 768px) {
    .s5 .s5-head {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .s5-head {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .s5-head-titles {
        width: 100% !important;
    }
    .s5-head-link {
        align-self: flex-end !important;
    }
    .s5-lead {
        word-break: keep-all !important;
    }
    .s5-main-body p {
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .s5 .s5-sub-body h3 {
        font-size: 20px !important;
    }
}
@media (max-width: 600px) {
    .s5 {
        padding: 0 0 0px;
    }
    .s5 .s5-main {
        grid-template-columns: 1fr;
        margin-bottom: 32px;
    }
    .s5 .s5-main-body {
        padding: 28px 0 24px;
    }
    .s5 .s5-sub {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .s5 .s5-sub-card {
        grid-template-columns: 1fr;
    }
    .s5 .s5-sub-img {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    .s5 .s5-sub-body {
        border-left: none;
        border-top: .5px solid var(--border-color);
        padding: 16px 20px;
    }
}

/* ============================================================
   野菜セットのご案内（S6）
   ============================================================ */

/* プランラッパー */
.s6 .s6-plan-wrapper {
    background: #F0EDE6;
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
}

/* プラン1行 */
.s6 .s6-plan-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.2rem 0;
    border-top: 0.5px solid #d8d5ce;
    font-size: 17px;
    background: transparent;
}
.s6 .s6-plan-wrapper .s6-plan-item:first-of-type {
    border-top: none;
}
.s6 .s6-plan-item:last-of-type {
    border-bottom: none;
}

/* セット名 */
.s6 .s6-plan-name {
    font-weight: 500;
    color: #2a2a2a;
}

/* 価格 */
.s6 .s6-plan-price {
    color: #fff;
    font-size: 15px;
    white-space: nowrap;
}

/* 送料テキスト */
.s6 .s6-shipping {
    font-size: 18px;
    color: #666;
    margin-top: .6rem !important;
}

/* ボタン */
.s6 .wp-block-button {
    margin-top: 2.5rem !important;
}
.s6 .wp-block-button .wp-block-button__link {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
}

/* BASEリンク */
.s6 .s6-base-link {
    font-size: 18px !important;
    color: #888 !important;
    text-align: center;
    margin-top: 1rem !important;
}
.s6 .s6-base-link a {
    color: #5C6B45 !important;
}

/* 条件エリア */
.s6 .s6-conditions {
    padding: 1rem !important;
    margin-top: 16px !important;
}
.s6 .s6-conditions > .wp-block-column:not(:first-child) {
    border-left: 0.5px solid #d8d5ce !important;
    padding-left: 2rem !important;
}
.s6 .s6-cond-label {
    font-size: 16px !important;
    letter-spacing: .1em;
    color: #888 !important;
    margin-bottom: .4rem !important;
}
.s6 .s6-cond-value {
    font-size: 16px !important;
    color: #2a2a2a !important;
    margin: 0 !important;
}

/* PC：2カラム内パディング・左カラム垂直中央揃え */
@media (min-width: 769px) {
    .s6 .wp-block-columns:first-of-type > .wp-block-column:first-child {
        padding-right: 3rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding-top: 2.5rem !important;
    }
    .s6 .wp-block-columns:first-of-type > .wp-block-column:last-child {
        padding-left: 3rem !important;
    }
}

/* SP */
@media (max-width: 768px) {
    .s6 .s6-plan-wrapper {
        padding: 0.5rem 1rem;
    }
    .s6 .wp-block-columns:first-of-type {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .s6 .wp-block-columns:first-of-type > .wp-block-column {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .s6 .wp-block-button {
        margin-top: 1.5rem !important;
    }
    .s6 :where(.is-layout-flow) > * {
        margin-block-start: 12px;
    }
    .s6 .s6-conditions {
        padding: 1rem !important;
        margin-top: 16px !important;
    }
    .s6 .s6-conditions > .wp-block-column:not(:first-child) {
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 0.5px solid #d8d5ce !important;
        padding-top: 16px !important;
    }
    .s6-conditions.wp-block-columns {
        gap: 0 !important;
    }
    .s6-conditions .wp-block-column {
        padding-top: 16px !important;
        padding-bottom: 12px !important;
        margin-bottom: 0 !important;
    }
    .s6 .s6-conditions > .wp-block-column:last-child {
        border-bottom: 0.5px solid #d8d5ce !important;
        padding-bottom: 12px !important;
    }
    .s6 .s6-cond-label,
    .s6 .s6-cond-value {
        text-align: left !important;
    }
    .s6 .s6-base-link {
        text-align: left !important;
    }
}

/* ============================================================
   最近の野菜セット（S7）
   ============================================================ */
.s7 .s7-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}
.s7 .s7-archive-link {
    font-size: 14px;
    color: #5C6B45;
    text-decoration: none;
    white-space: nowrap;
}
.s7 .s7-archive-link:hover {
    text-decoration: underline;
}
.s7 .s7-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.s7 .s7-img-el {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
.s7 .s7-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #e0ddd6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 14px;
}
.s7 .s7-meta {
    font-size: 16px;
    color: #aaa;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.s7 .s7-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.s7 .s7-tag {
    font-size: 16px;
    color: #5C6B45;
    border: 0.5px solid #5C6B45;
    border-radius: 100px;
    padding: 3px 12px;
}
.s7 .s7-excerpt {
    font-size: 18px;
    color: #555;
    line-height: 1.85;
    margin: 0;
}
.s7 .s7-base-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    border-top: 0.5px solid #d8d5ce;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}
.s7 .s7-base-text {
    font-size: 16px;
    color: #999;
    line-height: 1.7;
    margin: 0;
}
.s7 .s7-base-btn {
    display: inline-block;
    font-size: 14px;
    color: #5C6B45;
    border: 0.5px solid #5C6B45;
    border-radius: 3px;
    padding: 8px 16px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.s7 .s7-base-btn:hover {
    background: #EAF0E2;
}

/* SP */
@media (max-width: 768px) {
    .s7 .s7-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .s7 .s7-base-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .s7-head {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .s7-head-link {
        align-self: flex-end !important;
    }
}

/* ============================================================
   農園日誌（S8）
   ============================================================ */
.s8 .s8-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}
.s8 .s8-archive-link {
    font-size: 14px;
    color: #5C6B45;
    text-decoration: none;
    white-space: nowrap;
}
.s8 .s8-archive-link:hover {
    text-decoration: underline;
}
.s8 .s8-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.s8 .s8-card {
    background: #fff;
    border: 0.5px solid #e0ded7;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color .2s;
}
.s8 .s8-card:hover {
    border-color: #b0b89e;
}
.s8 .s8-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.s8 .s8-card-img-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.s8 .s8-card-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #e8ede3;
}
.s8 .s8-card-body {
    padding: 14px 16px;
}
.s8 .s8-card-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.6;
}
.s8 .s8-card-excerpt {
    font-size: 12px;
    color: #777;
    line-height: 1.7;
    margin-bottom: 8px;
}
.s8 .s8-card-date {
    font-size: 11px;
    color: #aaa;
    letter-spacing: .04em;
}

/* SP */
@media (max-width: 768px) {
    .s8-grid {
        grid-template-columns: 1fr !important;
    }
    .s8 .s8-card-img {
        aspect-ratio: 2 / 1;
    }
    .s8 .s8-card-img-placeholder {
        aspect-ratio: 2 / 1;
    }
    .s8 .s8-card-title {
        font-size: 16px;
    }
    .s8 .s8-card-date {
        font-size: 14px;
    }
    .s8-card-title a,
    .s8-card-title {
        color: #1a1a18 !important;
        text-decoration: none !important;
    }
}
@media (max-width: 680px) {
    .s8 .s8-grid {
        gap: 10px;
    }
    .s8 .s8-card-body {
        padding: 10px 12px;
    }
    .s8 .s8-card-title {
        font-size: 12px;
    }
    .s8 .s8-card-excerpt {
        display: none;
    }
}

/* ============================================================
   FAQ（S9）
   ============================================================ */

/* FAQボタンのAstraデフォルトスタイルをリセット */
.imadafarm-faq-q,
.imadafarm-faq-q:focus,
.imadafarm-faq-q:active {
    background: transparent !important;
    color: #1a1a18 !important;
}
.imadafarm-faq-q:hover {
    background: #F3F2EE !important;
    color: #1a1a18 !important;
}
.imadafarm-faq-q:hover .imadafarm-faq-icon {
    color: #1a1a18 !important;
}

/* 絞り込みボタン群 */
.imadafarm-faq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2.5rem;
}
.imadafarm-faq-filters button {
    padding: 7px 18px;
    font-size: 16px;
    font-family: inherit;
    letter-spacing: 0.05em;
    background: transparent;
    color: #6a6860;
    border: 1px solid #c8c6be;
    border-radius: 2em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.imadafarm-faq-filters button:hover {
    background: #f0ede6;
    border-color: #a8a49c;
    color: #3a3a38;
}
.imadafarm-faq-filters button.active {
    background: #6a6860;
    color: #fafaf8;
    border-color: #6a6860;
}

/* カテゴリラベル */
.imadafarm-faq-cat-label {
    font-size: 18px !important; /* Astra .entry-content p のmarginを上書き */
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #3a3a38;
    margin-top: 3rem !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 0.6rem;
    padding-left: 0.85rem;
    border-bottom: 1px solid #d0cdc6;
    border-left: 3px solid #5C6B45;
}

/* FAQアイテム（カード風） */
.imadafarm-faq-item {
    border: 1px solid #dedad2;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}

/* 質問行 */
.imadafarm-faq-q {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 18px;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: 0.02em;
    cursor: pointer;
    background: transparent !important;
    color: #1a1a18 !important;
    border: none;
    text-align: left;
    transition: background 0.15s;
    gap: 0;
}
.imadafarm-faq-q::before {
    content: "›";
    color: #5C6B45;
    font-size: 20px;
    margin-right: 0.5rem;
    line-height: 1;
    flex-shrink: 0;
}
.imadafarm-faq-q-text {
    flex: 1;
}
.imadafarm-faq-q .imadafarm-faq-icon {
    font-size: 18px;
    color: #a0a099;
    flex-shrink: 0;
    transition: transform 0.25s;
    line-height: 1;
}
.imadafarm-faq-item.open .imadafarm-faq-icon {
    transform: rotate(45deg);
}

/* 回答エリア */
.imadafarm-faq-a {
    font-size: 16px;
    color: #5a5a55;
    line-height: 1.8;
    padding: 0 1.25rem 1rem;
}
.imadafarm-faq-a[hidden] {
    display: none;
}

/* FAQページ末尾リンク */
.imadafarm-faq-more {
    font-size: 18px;
    text-align: right;
    margin-top: 1.5rem;
}

/* orderページ用：リスト風に上書き */
.faq-order .imadafarm-faq-item {
    border-radius: 0;
    margin-bottom: 0;
    border-bottom: none;
}
.faq-order .imadafarm-faq-item:first-child {
    border-radius: 6px 6px 0 0;
}
.faq-order .imadafarm-faq-item:last-child {
    border-radius: 0 0 6px 6px;
    border-bottom: 1px solid #dedad2 !important;
}
.faq-order .imadafarm-faq-item + .imadafarm-faq-item {
    border-top: none; /* 二重線防止 */
}

.s9 {
    padding-bottom: 2rem;
}

/* SP */
@media (max-width: 768px) {
    .s9 {
        padding-bottom: 2rem !important;
    }
}
@media (max-width: 480px) {
    .imadafarm-faq-q {
        font-size: 16px;
        padding: 0.875rem 1rem;
    }
    .imadafarm-faq-a {
        font-size: 15px;
    }
    .imadafarm-faq-filters button {
        font-size: 14px;
        padding: 6px 14px;
    }
}

/* ============================================================
   フッター（S10）
   ============================================================ */
.s10-footer {
    font-family: sans-serif;
}
.s10-main {
    background: #F0EDE6;
    padding: 56px 40px 48px;
}
.s10-main-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 32px;
    align-items: stretch;
    flex-wrap: nowrap;
}
.s10-brand {
    flex: 0 0 200px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.s10-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}
.s10-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
.s10-logo-ja {
    font-size: 18px;
    font-weight: 500;
    color: #2a2520;
    letter-spacing: 0.08em;
    line-height: 1.2;
}
.s10-logo-en {
    font-size: 12px;
    color: #8a8070;
    letter-spacing: 0.3em;
    text-transform: none;
    margin-top: 0;
    margin-left: 6px;
}
.s10-brand-bottom {
    margin-top: auto;
}
.s10-address {
    font-size: 16px;
    color: #7a7060;
    line-height: 1.9;
    margin-bottom: 14px;
}
.s10-sns {
    display: flex;
    gap: 14px;
}
.s10-sns-link {
    color: #9a9080;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.15s;
}
.s10-sns-link:hover {
    color: #3a3020;
}
.s10-nav {
    display: flex;
    flex: 1;
    min-width: 0;
}
.s10-nav-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.s10-nav-heading {
    font-size: 14px;
    color: #9a9080;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    font-weight: 500;
    padding-left: 0;
    padding-bottom: 8px;
    border-bottom: 0.5px solid #d0c8bc;
    display: inline-block;
}
.s10-nav-link {
    font-size: 17px;
    color: #3a3020;
    text-decoration: none;
    margin-bottom: 12px;
    line-height: 1.5;
    transition: color 0.15s;
    padding-left: 8px;
}
.s10-nav-link:hover {
    color: #1a1410;
}
.s10-bottom {
    background: #2a2520;
    padding: 16px 40px;
}
.s10-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.s10-copyright {
    font-size: 11px;
    color: #5a5048;
}
.s10-bottom-links {
    display: flex;
    gap: 20px;
}
.s10-bottom-link {
    font-size: 11px;
    color: #5a5048;
    text-decoration: none;
    transition: color 0.15s;
}
.s10-bottom-link:hover {
    color: #a09880;
}

/* SP */
@media (max-width: 768px) {
    .s10-main {
        padding: 40px 20px;
    }
    .s10-main-inner {
        flex-direction: column;
        gap: 32px;
    }
    .s10-brand {
        flex: none;
        width: 100%;
    }
    .s10-brand-bottom {
        margin-top: 16px;
    }
    .s10-nav {
        flex-wrap: wrap;
        gap: 0;
    }
    .s10-nav-col {
        flex: none;
        width: 50%;
        margin-bottom: 24px;
    }
    .s10-bottom {
        padding: 14px 20px;
    }
    .s10-bottom-inner {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* ============================================================
   /order/ ページ
   ============================================================ */

/* Astraのブロックデフォルトpaddingを無効化 */
.entry-content > .step01-section,
.entry-content > .step02-section,
.entry-content > .shipping-section,
.entry-content > .faq-order,
.entry-content > .form-section {
    padding: 0 !important;
}

/* Gutenbergのグループ間デフォルトマージンを抑制 */
.post-183 .wp-block-group + .wp-block-group {
    margin-top: 0 !important;
}

/* コンテンツ幅 */
.post-183 .entry-content {
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 区切り線 */
.post-183 .wp-block-separator {
    border-color: #deddd6 !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

/* フォーム状態通知 */
.form-status-notice {
    margin-top: 16px;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.7;
    border-left: 3px solid;
}
.form-status-notice.status-waitlist {
    background: #FFF9E6;
    border-color: #EF9F27;
    color: #6B4700;
}
.form-status-notice.status-closed {
    background: #FFE5E5;
    border-color: #D32F2F;
    color: #8B0000;
}
.form-status-notice.status-shipping_suspended {
    background: #E8F5E9;
    border-color: #5C6B45;
    color: #2E5016;
}

/* ステップ見出し2段スタイル */
.step01-section > p:first-child,
.step02-section > p:first-child,
.form-section > p:first-child {
    font-size: 11px;
    font-weight: 500;
    color: #5C6B45;
    letter-spacing: 0.12em;
    margin-bottom: 0.25rem !important;
    margin-top: 0 !important;
}
.step01-section > h2,
.step02-section > h2,
.form-section > h2 {
    font-size: 25px !important;
    font-weight: 500;
    padding-bottom: 0.75rem;
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
}

/* Step01：発送曜日カード */
.step01-section {
    margin-bottom: 3rem !important;
}
.step01-section .wp-block-columns {
    gap: 1rem !important;
    margin-bottom: 0 !important;
}
.step01-section .availability-card {
    border: 1px solid #c8c6be !important;
    border-radius: 10px !important;
    overflow: hidden;
    padding: 0 !important;
}
.step01-section .availability-card > .wp-block-group:first-child {
    border-bottom: 1px solid #c8c6be;
    padding: 1rem 1.25rem 0.85rem !important;
    text-align: center;
    margin: 0 !important;
}
.step01-section .availability-card > .wp-block-group:first-child p:first-child {
    font-size: 15px;
    font-weight: 500;
    margin: 0 !important;
    line-height: 1.4;
}
.step01-section .availability-card > .wp-block-group:first-child p:last-child {
    font-size: 12px;
    color: #7a7a72;
    margin: 0 !important;
    line-height: 1.4;
}
.step01-section .availability-card > .wp-block-group:last-child {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}
.step01-section .availability-card > .wp-block-group:last-child > .wp-block-group {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    padding: 1rem 0.5rem !important;
    border-right: 1px solid #e0ded6;
    margin: 0 !important;
    box-sizing: border-box !important;
}
.step01-section .availability-card .wp-block-group-is-layout-constrained {
    max-width: none !important;
    width: auto !important;
}
.step01-section .availability-card > .wp-block-group:last-child > .wp-block-group:last-child {
    border-right: none;
}
.step01-section .availability-card > .wp-block-group:last-child > .wp-block-group > p:first-child {
    font-size: 16px;
    color: #7a7a72;
    margin: 0 !important;
    line-height: 1.4;
}
.step01-section .availability-card > .wp-block-group:last-child > .wp-block-group > p:last-child {
    margin: 0 !important;
    line-height: 1;
}
.step01-section .acf-status-badge {
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
}
.step01-section .acf-status-badge.status-ok      { background: #DFF0D0; color: #2E5016; }
.step01-section .acf-status-badge.status-limited { background: #FDEBD0; color: #7A4500; }
.step01-section .acf-status-badge.status-full    { background: #EBEBEB; color: #888; }

@media (max-width: 600px) {
    .step01-section .wp-block-columns { flex-direction: column !important; }
    .step01-section .availability-card { width: 100% !important; }
}

/* Step02：プランタブ */
.step02-section {
    margin-bottom: 2rem !important;
}
.step02-section > h2 {
    margin-bottom: 2rem !important;
}
.step02-section .wp-block-buttons {
    gap: 10px !important;
    margin-bottom: 1.25rem !important;
    justify-content: center !important;
}
.step02-section .plan-tab-btn {
    flex: 1 !important;
    max-width: none !important;
}
.step02-section .plan-tab-btn .wp-block-button__link {
    background: #fff !important;
    border: 1px solid #b0afa8 !important;
    border-radius: 6px !important;
    color: #7a7a72 !important;
    font-weight: 400 !important;
    font-size: 20px !important;
    padding: 10px 0 !important;
    width: 100% !important;
    text-align: center;
    transition: background 0.15s, color 0.15s;
}
.step02-section .plan-tab-btn.is-active .wp-block-button__link {
    background: #5C6B45 !important;
    border-color: #5C6B45 !important;
    color: #F4F8EE !important;
    font-weight: 500 !important;
}
.step02-section .plan-detail {
    border: 1px solid #b0afa8;
    border-radius: 8px;
    padding: 1.25rem 1.5rem !important;
    background: #F5F4ED !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.step02-section .plan-detail + .plan-detail {
    margin-top: 0 !important;
}
.step02-section .plan-detail p {
    margin-block-start: 0 !important;
    margin-bottom: 0.5rem !important;
}
.step02-section .plan-detail p:last-child  { margin-bottom: 0 !important; }
.step02-section .plan-detail p:first-child { font-size: 24px !important; font-weight: 500; line-height: 1.4; color: #1a1a1a; }
.step02-section .plan-detail p:nth-child(2){ font-size: 16px !important; color: #6B6558; margin-bottom: 0.75rem !important; }
.step02-section .plan-detail p:nth-child(3){ font-size: 18px !important; color: #6B6558; line-height: 1.7; }

/* 送料・クール便セクション */
.shipping-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.shipping-section > h2 {
    font-size: 20px !important;
    font-weight: 500 !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
}
.shipping-section > .wp-block-group {
    background: #f0ede6 !important;
    border-radius: 8px !important;
    padding: 1rem 1.25rem !important;
}
.shipping-section > .wp-block-group p {
    font-size: 18px !important;
    color: #6a6a62 !important;
    line-height: 1.8 !important;
    margin-bottom: 0.25rem !important;
}
.shipping-section > .wp-block-group p:last-child {
    margin-bottom: 0 !important;
    margin-top: 0.5rem !important;
    font-size: 16px !important;
}

/* よくあるご質問（orderページ内） */
.faq-order {
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
}
.faq-order h2 {
    font-size: 20px !important;
    font-weight: 500 !important;
    text-align: left !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
}
.faq-order > p:last-child {
    text-align: right !important;
    margin-top: 1rem !important;
    font-size: 18px !important;
}
.faq-order > p:last-child a {
    color: #5C6B45;
    text-decoration: none;
    font-size: 18px !important;
}
.faq-order > p:last-child a:hover {
    text-decoration: underline;
}

/* Step03：フォームエリア */
.form-section {
    margin-top: 0 !important;
}
.form-section .form-notice {
    font-size: 15px !important;
    color: #6a6a62;
    background: #f0ede6;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.form-section .form-notice p {
    margin: 0 !important;
}
.form-section .h-adr > label,
.form-section .h-adr > .imadafarm-radio-group {
    display: block;
    margin-bottom: 1rem;
}
.form-section .imadafarm-label {
    font-size: 16px !important;
    color: #6a6a62;
    display: block;
    margin-bottom: 6px;
}
.form-section .wpcf7-form-control.wpcf7-text,
.form-section .wpcf7-form-control.wpcf7-email,
.form-section .wpcf7-form-control.wpcf7-tel,
.form-section .wpcf7-form-control.wpcf7-select,
.form-section .wpcf7-form-control.wpcf7-textarea {
    border: 1px solid #b0afa8 !important;
    border-radius: 6px !important;
    background: #fff !important;
    font-size: 18px !important;
    padding: 10px 12px !important;
    height: auto !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.form-section .wpcf7-form-control.wpcf7-select {
    height: 44px !important;
    padding: 6px 12px !important;
}
.form-section .wpcf7-form-control.wpcf7-textarea {
    min-height: 80px !important;
    height: 80px !important;
    resize: vertical;
}
.form-section .h-adr > label .imadafarm-input-short  { max-width: 200px !important; }
.form-section .h-adr > label .imadafarm-input-medium { max-width: 320px !important; }
.form-section .h-adr > .form-row-2col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
}
.form-section .h-adr > .form-row-2col > label {
    display: block !important;
    margin-bottom: 0 !important;
}
.form-section .h-adr > .form-row-2col .wpcf7-form-control {
    max-width: 100% !important;
    width: 100% !important;
}
.form-section .imadafarm-radio-group .wpcf7-list-item {
    margin: 0 1rem 0 0 !important;
}
.form-section .wpcf7-submit {
    display: block !important;
    width: 100% !important;
    padding: 1rem !important;
    background: #5C6B45 !important;
    color: #F4F8EE !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    letter-spacing: 0.04em;
    margin-top: 2rem !important;
    box-shadow: none !important;
    transition: background 0.15s;
}
.form-section .wpcf7-submit:hover {
    background: #4A5737 !important;
}
.form-section .form-base-link,
.form-section .form-base-link + p {
    font-size: 18px !important;
    margin-top: 1rem !important;
    color: #6a6a62;
}

/* orderページフッターリンク */
.order-footer-links {
    font-size: 15px;
    color: #6a6a62;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.order-footer-links a {
    color: #5C6B45;
    text-decoration: none;
}
.order-footer-links a:hover {
    text-decoration: underline;
}
.order-footer-sub {
    display: flex;
    gap: 24px;
}

/* SP対応 */
@media (max-width: 600px) {
    .form-section .h-adr > .form-row-2col {
        grid-template-columns: 1fr !important;
    }
    .form-section .h-adr > label .imadafarm-input-short,
    .form-section .h-adr > label .imadafarm-input-medium {
        max-width: 100% !important;
    }
    .faq-order {
        margin-bottom: 2rem !important;
    }
}

/* ============================================================
   /contact/ お問い合わせページ
   ============================================================ */
.post-10990 .entry-content {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.post-10990 .entry-content > .wp-block-group:first-child {
    padding-top: 0 !important;
}
.post-10990 .entry-content h2:first-of-type {
    margin-top: 2rem;
}

/* 注意書きエリア */
.contact-notice {
    font-size: 14px;
    color: #5a5a55;
    line-height: 1.8;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* フォームセクション */
.contact-form-body .contact-field-row {
    margin-bottom: 1.25rem;
}
.contact-form-body label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a18;
    margin-bottom: 0.4rem;
}
.contact-form-body input[type="text"],
.contact-form-body input[type="email"],
.contact-form-body textarea,
.contact-form-body select {
    width: 100%;
    padding: 0.65rem 0.875rem;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid #dedad2;
    border-radius: 6px;
    background: #fff;
    color: #1a1a18;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.contact-form-body input[type="text"]:focus,
.contact-form-body input[type="email"]:focus,
.contact-form-body textarea:focus,
.contact-form-body select:focus {
    outline: none;
    border-color: #5C6B45;
}
.contact-form-body textarea {
    min-height: 160px;
    resize: vertical;
}
.contact-form-body .wpcf7-submit {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #5C6B45;
    color: #F4F8EE;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 0.5rem;
}
.contact-form-body .wpcf7-submit:hover {
    background: #4A5737;
}

/* 定期会員向け一文 */
.contact-member-note {
    font-size: 14px;
    color: #5C6B45;
    background: #EAF0E2;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Honeypot非表示 */
.contact-form-note {
    position: absolute;
    top: -9999px;
    left: -9999px;
    visibility: hidden;
}

/* SP */
@media (max-width: 480px) {
    .contact-form-body input[type="text"],
    .contact-form-body input[type="email"],
    .contact-form-body textarea,
    .contact-form-body select {
        font-size: 16px; /* iOSズーム防止 */
    }
}

/* ============================================================
   第二階層ページ 共通
   ============================================================ */
body:not(.home) .entry-content h2 {
    padding-left: 0.75rem;
    border-left: 3px solid #5C6B45;
    line-height: 1.4;
}

/* ============================================================
   農園紹介ページ（/about/）
   ============================================================ */
.page-about h3 {
    border-left: 3px solid #5C6B45;
    padding-left: 14px;
    border-radius: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.5;
}
.page-about .wp-block-image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    height: auto !important;
}
.page-about .wp-block-group + .wp-block-group {
    border-top: 0.5px solid #e6e4dd;
    padding-top: 56px;
}
.page-about blockquote {
    background: #f0ede6;
    border-left: none;
    border-radius: 4px;
    padding: 16px 20px;
    margin: 0;
}
.page-about blockquote p {
    font-size: 15px;
    color: #5a5248;
    line-height: 1.8;
    font-style: italic;
    margin: 0;
}

/* ============================================================
   発送予定表ページ カレンダー
   ============================================================ */
.calendar-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 40px;
}
.calendar-wrap iframe {
    min-width: 500px;
    display: block;
}

/* ============================================================
   農園日誌アーカイブ（/blog/）
   ============================================================ */
.ast-container:has(.blog-archive-wrap) {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    display: block;
}
.blog-archive-wrap {
    padding: 40px 20px 80px;
}
.blog-archive-inner {
    max-width: 680px;
    margin: 0 auto;
}
.blog-archive-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d0cfc8;
}
.blog-list {
    display: flex;
    flex-direction: column;
}
.blog-item {
    display: block;
    padding: 18px 0;
    border-bottom: 0.5px solid #e6e4dd;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s;
}
.blog-item:first-child {
    padding-top: 0;
}
.blog-item:hover {
    opacity: 0.7;
}
.blog-date {
    display: block;
    font-size: 14px;
    color: #9a9890;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}
.blog-item-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 6px;
    color: #2a2a2a;
}
.blog-item-excerpt {
    font-size: 16px;
    color: #6a6a62;
    line-height: 1.7;
}
.blog-pagination {
    margin-top: 40px;
}

/* ============================================================
   土と野菜の話アーカイブ（/topics/）
   ============================================================ */
.ast-container:has(.topics-archive-wrap) {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    display: block;
}
.topics-archive-wrap {
    padding: 40px 20px 80px;
}
.topics-archive-inner {
    max-width: 1000px;
    margin: 0 auto;
}
.topics-archive-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d0cfc8;
}
.topics-cat-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.topics-cat-btn {
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 0.5px solid #b0afa8;
    background: #fff;
    color: #6a6a62;
    text-decoration: none;
    transition: all 0.15s;
}
.topics-cat-btn:hover,
.topics-cat-btn.active {
    background: #5C6B45;
    color: #F4F8EE;
    border-color: #5C6B45;
}
.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.topics-card {
    background: #fff;
    border: 0.5px solid #e6e4dd;
    border-radius: 8px;
    overflow: hidden;
}
.topics-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0ede6;
}
.topics-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.topics-card-img--empty {
    background: #f0ede6;
}
.topics-card-body {
    padding: 12px 14px 14px;
}
.topics-card-cat {
    display: inline-block;
    font-size: 11px;
    color: #5C6B45;
    background: #eaf0e2;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.topics-card-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 6px;
}
.topics-card-title a {
    color: #2a2a2a;
    text-decoration: none;
}
.topics-card-title a:hover {
    color: #5C6B45;
}
.topics-card-excerpt {
    font-size: 14px;
    color: #6a6a62;
    line-height: 1.7;
}
.topics-pagination {
    margin-top: 40px;
}
@media (max-width: 768px) {
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .topics-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   個別記事 共通（single.php / single-topics.php）
   ============================================================ */
.imadafarm-single-wrap {
    background: #FAFAF8;
    padding: 48px 20px 80px;
    width: 100%;
    box-sizing: border-box;
}
.ast-container:has(.imadafarm-single-wrap) {
    max-width: 100% !important;
}
.imadafarm-single-inner {
    max-width: 1160px !important;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 48px;
    align-items: start;
}

/* 記事ヘッダー */
.imadafarm-single-header {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}
.imadafarm-single-cat a {
    font-size: 12px;
    letter-spacing: .12em;
    color: #5C6B45;
    text-transform: uppercase;
    text-decoration: none;
}
.imadafarm-single-cat a:hover {
    text-decoration: underline;
}
.imadafarm-single-title {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .03em;
    color: #1a1a18;
    margin: .5rem 0 .75rem;
}
.imadafarm-single-meta time {
    font-size: 14px;
    color: #aaa;
    letter-spacing: .05em;
}

/* アイキャッチ */
.imadafarm-single-thumb {
    margin-bottom: 2rem;
}
.imadafarm-single-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* 本文 */
.imadafarm-single-content {
    font-size: 18px;
    line-height: 2.0;
    color: #2a2a2a;
    letter-spacing: 0;
    margin-bottom: 3rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.imadafarm-single-content figure {
    margin: 1rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
}
.imadafarm-single-content h2 {
    font-size: 22px;
    font-weight: 500;
    margin: 2.5rem 0 1rem;
    padding-left: .75rem;
    border-left: 3px solid #5C6B45;
}
.imadafarm-single-content h3 {
    font-size: 19px;
    font-weight: 500;
    margin: 2rem 0 .75rem;
}
.imadafarm-single-content p {
    margin-bottom: 1.25rem;
}
.imadafarm-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

/* 関連記事 */
.imadafarm-single-footer {
    border-top: 0.5px solid #e8e5de;
    padding-top: 2.5rem;
}
.imadafarm-related-label {
    font-size: 12px;
    letter-spacing: .12em;
    color: #5C6B45;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.imadafarm-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 2.5rem;
}
.imadafarm-related-card {
    text-decoration: none;
    color: inherit;
    border: 0.5px solid #e8e5de;
    border-radius: 4px;
    overflow: hidden;
    display: block;
    transition: border-color .2s;
}
.imadafarm-related-card:hover {
    border-color: #b0b89e;
}
.imadafarm-related-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8e5de;
}
.imadafarm-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.imadafarm-related-noimg {
    width: 100%;
    height: 100%;
    background: #e8e5de;
}
.imadafarm-related-body {
    padding: 10px 12px;
}
.imadafarm-related-cat {
    font-size: 11px;
    color: #5C6B45;
    letter-spacing: .1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}
.imadafarm-related-date {
    font-size: 11px;
    color: #aaa;
    display: block;
    margin-bottom: 4px;
}
.imadafarm-related-title {
    font-size: 13px;
    font-weight: 500;
    color: #2a2a2a;
    line-height: 1.5;
    margin: 0;
}

/* CTA */
.imadafarm-single-cta {
    border-top: 0.5px solid #e8e5de;
    padding-top: 1.25rem;
}
.imadafarm-single-cta-text {
    font-size: 15px;
    color: #6a6a62;
    line-height: 1.8;
    margin: 0;
}
.imadafarm-single-cta-text a {
    color: #5C6B45;
    text-decoration: none;
    border-bottom: 0.5px solid #c5cdb8;
}
.imadafarm-single-cta-text a:hover {
    text-decoration: none;
    border-bottom-color: #5C6B45;
}

/* サイドバー（共通） */
.imadafarm-single-sidebar {
    position: sticky;
    top: 100px;
}
.imadafarm-sidebar-widget {
    background: #F0EDE6;
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
}
.imadafarm-sidebar-label {
    font-size: 12px;
    letter-spacing: .12em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 0.5px solid #d8d5ce;
}
.imadafarm-sidebar-cat-list,
.imadafarm-sidebar-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.imadafarm-sidebar-cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #3a3a38;
    text-decoration: none;
    padding: .5rem 0;
    border-bottom: 0.5px solid #d8d5ce;
}
.imadafarm-sidebar-cat-list li:last-child a {
    border-bottom: none;
}
.imadafarm-sidebar-cat-list li a span {
    font-size: 12px;
    color: #aaa;
}
.imadafarm-sidebar-cat-list li a:hover {
    color: #5C6B45;
}
.imadafarm-sidebar-post-list li a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: .5rem 0;
    border-bottom: 0.5px solid #d8d5ce;
    text-decoration: none;
}
.imadafarm-sidebar-post-list li:last-child a {
    border-bottom: none;
}
.imadafarm-sidebar-date {
    font-size: 11px;
    color: #aaa;
}
.imadafarm-sidebar-post-title {
    font-size: 14px;
    color: #3a3a38;
    line-height: 1.5;
}
.imadafarm-sidebar-post-list li a:hover .imadafarm-sidebar-post-title {
    color: #5C6B45;
}

/* ============================================================
   topics個別記事 上書き
   ============================================================ */
body.single-topics .imadafarm-single-wrap {
    padding-top: 24px;
}
.imadafarm-single-inner--topics {
    grid-template-columns: 240px 1fr;
}
.imadafarm-single-inner--topics .imadafarm-single-thumb {
    max-width: 620px;
    margin-bottom: 2rem;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.imadafarm-single-inner--topics .imadafarm-single-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.imadafarm-single-inner--topics .imadafarm-single-header {
    max-width: 620px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.imadafarm-single-inner--topics .imadafarm-single-title {
    font-size: 32px;
    margin: 0 0 .75rem;
}
.imadafarm-single-header-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: .5rem;
}
.imadafarm-single-inner--topics .imadafarm-single-content {
    margin-left: 0;
    margin-right: 0;
}

/* 著者サイドバー */
.imadafarm-sidebar-author-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 4px !important;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
.imadafarm-sidebar-author-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: .875rem;
}
.imadafarm-sidebar-author-name {
    display: flex;
    flex-direction: column;
    gap: 1px;
    align-items: center;
}
.imadafarm-sidebar-author-ja {
    font-size: 13px;
    font-weight: 500;
    color: #2a2a2a;
    letter-spacing: 0.03em;
}
.imadafarm-sidebar-author-en {
    font-size: 10px;
    color: #bbb;
    letter-spacing: 0.15em;
}
.imadafarm-sidebar-author-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.imadafarm-sidebar-author-cta {
    font-size: 12px;
    color: #5C6B45;
    text-decoration: none;
    border-bottom: 0.5px solid #c5cdb8;
    padding-bottom: 1px;
}
.imadafarm-sidebar-author-cta:hover {
    border-bottom-color: #5C6B45;
}
.imadafarm-topics-author-sp {
    display: none;
    padding: 2rem 0;
    border-top: 0.5px solid #e8e5de;
    margin-bottom: 1rem;
}

/* SP */
@media (max-width: 908px) {
    .imadafarm-topics-sidebar-pc {
        display: none;
    }
    .imadafarm-topics-author-sp {
        display: block;
    }
    .imadafarm-single-inner--topics {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
@media (max-width: 768px) {
    .imadafarm-single-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .imadafarm-single-sidebar {
        position: static;
        padding-top: 0;
    }
    .imadafarm-single-title {
        font-size: 22px;
    }
    .imadafarm-single-inner--topics .imadafarm-single-title {
        font-size: 24px;
    }
    .imadafarm-related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .imadafarm-single-wrap {
        padding: 32px 20px 60px;
    }
}

/* 本文カラムをコンテナとして定義 */
.imadafarm-single-main {
    container-type: inline-size;
}

/* ============================================================
   野菜セットアーカイブ（/category/vegetables/）
   ============================================================ */
.ast-container:has(.veg-archive-wrap) {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    display: block;
}
.veg-archive-wrap {
    background: #FAFAF8;
    min-height: 60vh;
}
.veg-archive-inner {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 60px 40px 80px;
}

/* ページヘッダー */
.veg-archive-header {
    margin-bottom: 36px;
}
.veg-archive-title {
    font-size: 22px;
    font-weight: 500;
    color: #222;
    margin-top: 6px !important;
}

/* フィルターブロック */
.veg-filter-block {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 0.5px solid #e0ded7;
}
.veg-filter-row {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}
.veg-filter-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 8px;
}

/* 年プルダウン */
.veg-filter-year {
    flex-shrink: 0;
}
.veg-year-select {
    font-size: 14px;
    font-family: inherit;
    padding: 7px 32px 7px 12px;
    border: 0.5px solid #ccc;
    border-radius: 2px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: border-color 0.15s;
}
.veg-year-select:hover,
.veg-year-select:focus {
    border-color: #5C6B45;
}

/* 月ボタン */
.veg-filter-months {
    flex: 1;
    min-width: 280px;
}
.veg-month-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 36px;
    align-items: center;
}
.veg-month-btn,
.veg-month-btn--disabled {
    font-size: 13px;
    font-family: inherit;
    padding: 6px 14px;
    border: 0.5px solid #ccc;
    border-radius: 2px;
    letter-spacing: 0.04em;
    line-height: 1;
}
.veg-month-btn {
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
}
.veg-month-btn:hover {
    border-color: #5C6B45;
    color: #5C6B45;
}
.veg-month-btn--active {
    background: #5C6B45;
    border-color: #5C6B45;
    color: #fff;
}
.veg-month-btn--active:hover {
    background: #4A5737;
    border-color: #4A5737;
    color: #fff;
}
.veg-month-btn--disabled {
    background: transparent;
    color: #555;
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}
.veg-month-placeholder {
    font-size: 13px;
    color: #bbb;
}

/* グリッドラベル */
.veg-grid-label {
    grid-column: 1 / -1;
    font-size: 18px;
    color: #666;
    margin-bottom: 4px;
    padding: 0;
}

/* カードグリッド */
.veg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.veg-card {
    background: #fff;
    border: 0.5px solid #e0ded7;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color 0.2s;
}
.veg-card:hover {
    border-color: #b0b89e;
}
.veg-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8ede3;
}
.veg-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    margin: 0;
}
.veg-card-noimg {
    width: 100%;
    height: 100%;
    background: #f0efea;
    display: flex;
    align-items: center;
    justify-content: center;
}
.veg-card-body {
    padding: 14px 16px;
}
.veg-card-date {
    font-size: 12px;
    color: #aaa;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.veg-card-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
    margin-bottom: 6px;
}
.veg-card-excerpt {
    font-size: 16px;
    color: #777;
    line-height: 1.7;
}
.veg-no-posts {
    grid-column: 1 / -1;
    font-size: 16px;
    color: #999;
    padding: 20px 0;
}

/* SP */
@media (max-width: 680px) {
    .veg-archive-inner {
        padding: 40px 20px 60px;
    }
    .veg-filter-row {
        flex-direction: column;
        gap: 20px;
    }
    .veg-filter-months {
        min-width: unset;
        width: 100%;
    }
    .veg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .veg-card-excerpt {
        display: none;
    }
}