/*
 * 砂田商店テーマ（sunada）
 * EC-CUBE 標準の style.css の上に重ねて読み込む。
 *
 * 色は田んぼまわりのものから:
 *   水鏡 … 空を映した田んぼの水面   苔墨 … 文字
 *   早苗 … 植えたばかりの苗          甲羅 … ニホンイシガメの甲羅（購入ボタン）
 *   クラフト … 紙の米袋               白 … 読み物の地
 */
:root {
    --sn-mizu: #e4ebe3;
    --sn-sumi: #1e2a1f;
    --sn-sanae: #4a7436;
    --sn-sanae-deep: #34552a;
    --sn-koura: #744b24;
    --sn-koura-deep: #5a3918;
    --sn-kraft: #c9a678;
    --sn-kraft-light: #dcc19b;
    --sn-shiro: #f7f9f4;
    --sn-line: #bfccbc;
    --sn-muted: #4e5b4d;

    /* 見出しも本文もポップ体（Mochiy Pop One）。
       ※プロポーショナル版の Mochiy Pop P One は全角「！」「：」「・」が表示されないので使わない */
    --sn-hand: "Mochiy Pop One", "Hiragino Maru Gothic ProN", sans-serif;
    --sn-body: "Mochiy Pop One", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;

    --sn-measure: 34em;
    --sn-gutter: clamp(16px, 5vw, 56px);
}

/* ---------- 全体 ---------- */
body {
    background: var(--sn-shiro);
    color: var(--sn-sumi);
    font-family: var(--sn-body);
    font-size: 16px;
    line-height: 1.95;
    letter-spacing: .02em;
    font-feature-settings: "palt" 0;
    /* ポップ体は太さが1種類だけなので、太字の疑似表示をしない */
    font-synthesis: none;
}
/* フォームの部品やボタンにも同じ書体を使う */
button, input, select, textarea { font-family: inherit; }
a { color: var(--sn-sanae-deep); }
a:hover { color: var(--sn-koura); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--sn-koura);
    outline-offset: 3px;
    border-radius: 2px;
}

.sn-front .ec-layoutRole__main { max-width: none; padding: 0; }
.sn-front .ec-layoutRole__contents { max-width: none; }

.sn-h2 {
    font-family: var(--sn-hand);
    font-weight: 400;
    font-size: clamp(24px, 3.4vw, 34px);
    line-height: 1.5;
    letter-spacing: .06em;
    margin: 0 0 1.2em;
}
.sn-h3 {
    font-family: var(--sn-hand);
    font-weight: 400;
    font-size: clamp(20px, 2.4vw, 24px);
    line-height: 1.55;
    letter-spacing: .05em;
    margin: 0 0 1em;
}
.sn-page p { margin: 0 0 1.1em; }
.sn-h2, .sn-h3, .sn-hero__lead { word-break: auto-phrase; }
/* ローカル開発時のデバッグ表示（本番では出ない） */
.ec-debugModeAlert__icon img, .ec-maintenanceAlert__icon img { width: 20px; height: 20px; }
.sn-small { font-size: 13px; line-height: 1.8; color: var(--sn-muted); }

/* ---------- ヘッダー ---------- */
.ec-layoutRole__header {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px var(--sn-gutter);
    border: 0;
}
.ec-layoutRole__header > .sn-logo { order: -1; margin-right: auto; }
.sn-logo__link {
    font-family: var(--sn-hand);
    font-weight: 400;
    font-size: 22px;
    letter-spacing: .12em;
    color: var(--sn-sumi);
    text-decoration: none;
}
.sn-header { display: flex; align-items: center; gap: 28px; }
.sn-header__nav { display: flex; gap: 22px; font-size: 14px; }
.sn-header__nav a { color: var(--sn-sumi); text-decoration: none; }
.sn-header__nav a:hover { color: var(--sn-koura); text-decoration: underline; text-underline-offset: 4px; }
.sn-header__tools { display: flex; align-items: center; gap: 12px; }
.sn-header__login .ec-headerNav { display: flex; gap: 4px; }
.sn-header__login .ec-headerNav__item { margin: 0; }
.sn-header__login .ec-headerNav__itemLink { font-size: 12px; }
.sn-header .ec-cartNavi { background: var(--sn-mizu); }
.sn-header .ec-cartNavi__badge { background: var(--sn-koura); }
.sn-header .ec-headerRole__navSP { display: none; }
.sn-logo__link, .sn-header__nav a { white-space: nowrap; }
/* タブレット幅: ログイン等は文字を消してアイコンだけにする */
@media (min-width: 768px) and (max-width: 1099px) {
    .ec-layoutRole__header { gap: 12px; }
    .sn-header { gap: 16px; }
    .sn-header__nav { gap: 14px; font-size: 13px; }
    .sn-header__login .ec-headerNav__itemLink { display: none; }
    .sn-header .ec-cartNavi__label { display: none; }
}

@media (max-width: 767px) {
    .ec-layoutRole__header { padding: 10px 16px; }
    .sn-header__nav, .sn-header__login { display: none; }
    .sn-header .ec-headerRole__navSP { display: block; position: static; }
    .sn-header .ec-cartNavi__label { display: none; }
    /* 標準のメニューボタン（左上に固定表示）とロゴが重ならないように */
    .ec-layoutRole__header > .sn-logo { padding-left: 44px; }
}

/* ---------- ファーストビュー ---------- */
.sn-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: min(88vh, 820px);
    padding: clamp(32px, 6vw, 72px) var(--sn-gutter);
    color: var(--sn-sumi);
    /* 写真がないあいだは、植えたばかりの苗の列を描いておく */
    background-color: var(--sn-mizu);
    background-image:
        linear-gradient(180deg, var(--sn-mizu) 0%, rgba(228, 235, 227, .9) 40%, rgba(228, 235, 227, .35) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='64' viewBox='0 0 64 56'%3E%3Cg fill='none' stroke='%234a7436' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M16 40c0-7-3-11-7-14M16 40c0-8 1-13 3-17M16 40c1-6 4-9 8-11'/%3E%3Cpath d='M48 12c0-7-3-11-7-14M48 12c0-8 1-13 3-17M48 12c1-6 4-9 8-11' transform='translate(0 28)'/%3E%3C/g%3E%3Cpath d='M6 42h20M38 42h20' stroke='%239fb6a0' stroke-width='1' opacity='.6'/%3E%3C/svg%3E");
    background-size: auto, 88px 64px;
    background-position: 0 0, center bottom;
    overflow: hidden;
}
.sn-hero.has-photo {
    color: #fff;
    /* 文字が読めるよう、下のほうだけ少し暗くする */
    background: linear-gradient(180deg, rgba(20, 28, 20, 0) 30%, rgba(20, 28, 20, .6) 100%), var(--hero) center / cover no-repeat;
}
.sn-hero > * { position: relative; z-index: 1; }

.sn-hero__title {
    font-family: var(--sn-hand);
    font-weight: 400;
    /* 「ニホンイシガメ」が1行に収まる大きさ */
    font-size: min(10.5vw, 96px);
    line-height: 1.2;
    letter-spacing: .04em;
    margin: 0 0 .45em;
    animation: sn-rise 1.4s cubic-bezier(.2, .7, .2, 1) both;
}
.sn-hero__title { white-space: nowrap; }
.sn-hero__meta > :not(.sn-hero__title) { max-width: 30em; }
.sn-hero__lead {
    font-family: var(--sn-hand);
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.7;
    margin: 0 0 .6em;
}
.sn-hero__note { font-size: 14px; margin: 0 0 1.6em; }
.sn-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0; }
.sn-hero.has-photo .sn-link { color: #fff; }
.sn-hero.has-photo .sn-hero__title,
.sn-hero.has-photo .sn-hero__meta { text-shadow: 0 1px 12px rgba(20, 28, 20, .55), 0 0 2px rgba(20, 28, 20, .4); }
@media (max-width: 599px) {
    .sn-hero.has-photo { background-position: center, 22% center; }
}

@keyframes sn-rise {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .sn-hero__title { animation: none; }
}
@media (max-width: 599px) {
    .sn-hero { min-height: 82vh; }
}

/* ---------- ボタン ---------- */
.sn-btn {
    display: inline-block;
    padding: .8em 1.6em;
    border-radius: 999px;
    background: var(--sn-koura);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .08em;
    text-decoration: none;
    transition: background-color .2s;
}
.sn-btn:hover, .sn-btn:focus-visible { background: var(--sn-koura-deep); color: #fff; }
.sn-btn--large { font-size: 17px; padding: 1em 2.2em; }
.sn-link {
    color: var(--sn-sumi);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

/* ---------- 写真 ---------- */
.sn-photo { margin: 0; }
.sn-photo img, .sn-photo__todo {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 6px;
}
.sn-photo--square img, .sn-photo--square .sn-photo__todo { aspect-ratio: 1; }
.sn-photo--tall img, .sn-photo--tall .sn-photo__todo { aspect-ratio: 3 / 4; }
.sn-photo__todo {
    display: grid;
    place-items: center;
    background: var(--sn-mizu);
    border: 1.5px dashed var(--sn-line);
    color: var(--sn-muted);
    font-size: 13px;
}
.sn-photo figcaption {
    margin-top: .6em;
    font-size: 13px;
    line-height: 1.6;
    color: var(--sn-muted);
}

/* ---------- はじめに ---------- */
.sn-intro {
    display: grid;
    grid-template-columns: minmax(0, var(--sn-measure)) minmax(0, 360px);
    justify-content: center;
    align-items: center;
    gap: clamp(32px, 6vw, 88px);
    padding: clamp(64px, 10vw, 128px) var(--sn-gutter);
}
.sn-intro__text p { font-size: 17px; line-height: 2.1; }
@media (max-width: 859px) {
    .sn-intro { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- このお米について ---------- */
.sn-about {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--sn-gutter) clamp(48px, 8vw, 96px);
}
.sn-about__heading {
    padding-top: clamp(40px, 6vw, 72px);
    border-top: 1px solid var(--sn-line);
}
.sn-topic {
    display: grid;
    grid-template-columns: minmax(0, 15em) minmax(0, var(--sn-measure));
    gap: 8px clamp(24px, 5vw, 64px);
    padding: clamp(32px, 5vw, 56px) 0;
}
.sn-topic + .sn-topic { border-top: 1px dashed var(--sn-line); }
.sn-topic > .sn-h3 { grid-column: 1; }
.sn-topic__body { grid-column: 2; }
.sn-topic > .sn-photo, .sn-topic > .sn-strip { grid-column: 2; margin-top: 16px; }
@media (max-width: 859px) {
    .sn-topic { grid-template-columns: minmax(0, 1fr); }
    .sn-topic > * { grid-column: 1 !important; }
}

.sn-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 1.6em 0 0;
    background: var(--sn-line);
    border: 1px solid var(--sn-line);
    border-radius: 6px;
    overflow: hidden;
}
@media (max-width: 599px) { .sn-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sn-facts > div { background: var(--sn-shiro); padding: .8em 1em; }
.sn-facts dt { font-size: 12px; color: var(--sn-muted); line-height: 1.4; }
.sn-facts dd { margin: .2em 0 0; font-weight: 500; line-height: 1.5; }

.sn-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
@media (max-width: 479px) {
    .sn-strip { gap: 8px; }
    .sn-strip .sn-photo figcaption { font-size: 11px; }
}

.sn-creatures {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 1em 0 0;
}
.sn-creatures li {
    padding: .25em .9em;
    border: 1px solid var(--sn-line);
    border-radius: 999px;
    background: var(--sn-mizu);
    font-size: 14px;
}

/* イシガメの話は、読み物として少し間を取る */
.sn-kame {
    grid-column: 2;
    margin-top: 32px;
    padding: clamp(24px, 4vw, 40px);
    background: var(--sn-mizu);
    border-radius: 6px;
    font-size: 16px;
    line-height: 2.1;
}
.sn-kame__photo { margin: 0 0 1.4em; max-width: 320px; }
.sn-kame__photo img { display: block; width: 100%; height: auto; border-radius: 6px; }
.sn-kame__reveal {
    font-family: var(--sn-hand);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 400;
    color: var(--sn-koura);
    margin: 1em 0 !important;
}

/* ---------- お米ができるまで ---------- */
.sn-process {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(48px, 8vw, 96px) var(--sn-gutter);
}
.sn-timeline {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    /* 用水路のように1本の線でつなぐ */
    background: linear-gradient(var(--sn-sanae), var(--sn-sanae)) 7.5em 0 / 2px 100% no-repeat;
}
.sn-timeline li {
    display: grid;
    grid-template-columns: 7.5em 1fr;
    column-gap: 28px;
    padding: 14px 0;
    position: relative;
}
.sn-timeline li::before {
    content: "";
    position: absolute;
    left: calc(7.5em - 6px);
    top: 24px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--sn-shiro);
    border: 2px solid var(--sn-sanae);
}
.sn-timeline p { margin: 0 !important; }
.sn-timeline__when { font-family: var(--sn-hand); font-weight: 400; padding-right: 16px; text-align: right; }
.sn-timeline__what { padding-left: 4px; }

/* ---------- 購入 ---------- */
.sn-buy {
    background: var(--sn-kraft);
    padding: clamp(56px, 9vw, 112px) var(--sn-gutter);
}
.sn-buy__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 32em);
    justify-content: center;
    align-items: start;
    gap: clamp(32px, 6vw, 80px);
}
@media (max-width: 767px) {
    .sn-buy__inner { grid-template-columns: minmax(0, 1fr); justify-items: center; }
}
.sn-sticker {
    display: grid;
    place-content: center;
    justify-items: center;
    width: clamp(180px, 22vw, 240px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--sn-shiro);
    box-shadow: 0 0 0 6px var(--sn-shiro), 0 0 0 7.5px var(--sn-sanae);
    text-align: center;
    transform: rotate(-6deg);
}
.sn-sticker__name { font-family: var(--sn-hand); font-weight: 400; font-size: clamp(20px, 2.3vw, 24px); line-height: 1.45; }
.sn-sticker__sub { margin-top: .5em; font-size: 12px; letter-spacing: .1em; color: var(--sn-sanae-deep); }

.sn-prices {
    list-style: none;
    padding: 0;
    margin: 1.6em 0;
    border-top: 1px solid rgba(30, 42, 31, .35);
}
.sn-prices li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: .8em 0;
    border-bottom: 1px solid rgba(30, 42, 31, .35);
}
.sn-prices__size { font-family: var(--sn-hand); font-weight: 400; font-size: 24px; }
.sn-prices__price { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sn-prices__price small { font-size: 12px; font-weight: 400; margin-left: .3em; }
.sn-notes { padding-left: 1.2em; margin: 0 0 2em; font-size: 14px; line-height: 1.8; }
.sn-notes li + li { margin-top: .4em; }
.sn-buy .sn-btn { background: var(--sn-sumi); }
.sn-buy .sn-btn:hover, .sn-buy .sn-btn:focus-visible { background: var(--sn-koura-deep); }
.sn-buy__closed { font-weight: 700; }

/* ---------- 田んぼだより ---------- */
.sn-news {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(56px, 8vw, 96px) var(--sn-gutter) 0;
}
.sn-news__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sn-line); }
.sn-news__list li { border-bottom: 1px solid var(--sn-line); }
.sn-news summary {
    display: grid;
    grid-template-columns: 6.5em 1fr;
    gap: 16px;
    padding: 1em 0;
    cursor: pointer;
    list-style: none;
}
.sn-news summary::-webkit-details-marker { display: none; }
.sn-news time { font-variant-numeric: tabular-nums; color: var(--sn-muted); font-size: 14px; }
.sn-news__body { padding: 0 0 1.2em 8.5em; font-size: 15px; }
@media (max-width: 599px) {
    .sn-news summary { grid-template-columns: 1fr; gap: 0; }
    .sn-news__body { padding-left: 0; }
}

/* ---------- むすび ---------- */
.sn-closing {
    max-width: var(--sn-measure);
    margin: 0 auto;
    padding: clamp(72px, 10vw, 128px) var(--sn-gutter);
    font-size: 17px;
    line-height: 2.2;
}
.sn-closing p:not(.sn-closing__sign) br { display: none; }
@media (min-width: 600px) { .sn-closing p:not(.sn-closing__sign) br { display: inline; } }
.sn-closing__sign { margin-top: 2em !important; color: var(--sn-muted); font-size: 15px; }

/* ---------- ご利用ガイド・プライバシーポリシーなどの読み物ページ ---------- */
.sn-doc {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 72px) var(--sn-gutter) clamp(56px, 8vw, 96px);
}
.sn-doc section { padding: 28px 0; border-top: 1px dashed var(--sn-line); }
.sn-doc p { margin: 0 0 1em; }
.sn-doc .sn-h3 { margin-bottom: .8em; }
.sn-list, .sn-steps { margin: 0 0 1em; padding-left: 1.4em; }
.sn-list li + li, .sn-steps li + li { margin-top: .5em; }
.sn-defs { margin: 0; }
.sn-defs > div { padding: 12px 0; }
.sn-defs > div + div { border-top: 1px solid var(--sn-mizu); }
.sn-defs dt { font-family: var(--sn-hand); color: var(--sn-sanae-deep); margin-bottom: .3em; }
.sn-defs dd { margin: 0; }
.sn-fee { width: 100%; margin-top: .8em; border-collapse: collapse; font-size: 14px; }
.sn-fee th, .sn-fee td { padding: .6em .8em; border-bottom: 1px solid var(--sn-line); text-align: left; vertical-align: top; }
.sn-fee th { white-space: nowrap; font-weight: 400; font-variant-numeric: tabular-nums; }

.sn-bank { margin: 24px auto 0; padding: 20px 24px; max-width: 30em; text-align: left; background: var(--sn-mizu); border-radius: 6px; line-height: 1.9; }

/* ---------- フッター ---------- */
.ec-layoutRole__footer { background: var(--sn-sumi); }
.sn-footer { color: #dfe6dd; }
.sn-footer__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px var(--sn-gutter) 32px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 32px;
}
.sn-footer a { color: #dfe6dd; }
.sn-footer__name { font-family: var(--sn-hand); font-size: 20px; margin: 0; }
.sn-footer__name a { text-decoration: none; }
.sn-footer__place { margin: 0; font-size: 13px; align-self: center; }
.sn-footer__links {
    grid-column: 1 / -1;
    display: flex; flex-wrap: wrap; gap: 8px 24px;
    list-style: none; padding: 0; margin: 24px 0 0; font-size: 13px;
}
.sn-footer__copy { grid-column: 1 / -1; margin: 24px 0 0; color: #9fae9c; }

/* ---------- 下層ページ（商品詳細・カートなど）も色だけ合わせる ---------- */
.ec-blockBtn--action, .ec-inlineBtn--action {
    background-color: var(--sn-koura);
    border-color: var(--sn-koura);
}
.ec-blockBtn--action:hover, .ec-inlineBtn--action:hover,
.ec-blockBtn--action:focus, .ec-inlineBtn--action:focus {
    background-color: var(--sn-koura-deep);
    border-color: var(--sn-koura-deep);
}
.ec-productRole__title .ec-headingTitle { font-family: var(--sn-hand); font-weight: 400; }
.ec-price__price { color: var(--sn-sumi); }
.ec-productRole .ec-headingTitle { color: var(--sn-sumi); font-size: clamp(22px, 2.6vw, 30px); }
.ec-productRole .ec-price__tax { color: var(--sn-muted); }
.ec-productRole__category a { color: var(--sn-sanae-deep); }
