/* SHIOGORI Base v0.2：theme.json で書けない部分。クラス接頭辞 sg- / shiogori-
 *
 * 見た目の考え方（v0.2）
 * - 紙（paper）と紺（brand-navy）と海（sea）の3色で組む。サイトごとの差し色は持たない（D17）。
 * - サイトの違いは、表紙の図柄（川・山並み・浜・点の地図・貼り合わせた紙）と英字の大きな名前で出す。
 * - 見出しは明朝を大きく、英字のラベルはゴシック700＋広い字間（ロゴの SHIOGORI に寄せる）。
 * - 写真が届くまでは文字と図柄だけで成立させる。表紙にアイキャッチがあれば図柄の代わりに出す。
 */

:root {
	--sg-sea: var(--wp--preset--color--sea, #245C66);
	--sg-ink: var(--wp--preset--color--ink, #243A40);
	--sg-paper: var(--wp--preset--color--paper, #F7F4EE);
	--sg-mist: var(--wp--preset--color--mist, #F3F7F6);
	--sg-line: var(--wp--preset--color--line, #D6E2E1);
	--sg-navy: var(--wp--preset--color--brand-navy, #0C132E);
	--sg-hero-bg: url(../motif/river.svg) right 4% top 14% / 50% auto no-repeat;
	--sg-word: "SHIOGORI";
	--sg-ease: cubic-bezier(.2, .7, .2, 1);
	/* ロゴの黒四角の下辺のような、少し荒れた端 */
	--sg-torn: polygon(0 0, 100% 0, 100% calc(100% - 14px), 93% 100%, 81% calc(100% - 9px), 66% calc(100% - 3px), 52% calc(100% - 12px), 37% calc(100% - 4px), 22% calc(100% - 13px), 9% calc(100% - 5px), 0 calc(100% - 11px));
	--sg-torn-top: polygon(0 11px, 8% 4px, 21% 13px, 36% 3px, 51% 12px, 67% 2px, 80% 10px, 92% 1px, 100% 9px, 100% 100%, 0 100%);
}

/* --- 操作（AC08） --- */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline: var(--wp--custom--focus-width, 3px) solid var(--sg-sea);
	outline-offset: 2px;
}
.wp-block-button__link, .wp-element-button, .shiogori-status__button { min-height: var(--wp--custom--tap-size, 44px); display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.wp-block-navigation a, .shiogori-network-menu summary, .shiogori-network__item a { min-height: var(--wp--custom--tap-size, 44px); display: inline-flex; align-items: center; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 100000; background: var(--wp--preset--color--base); padding: 12px 16px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], textarea, select {
	border: 1px solid var(--sg-sea); border-radius: var(--wp--custom--radius, 4px); padding: 8px 12px; min-height: 44px; font: inherit; color: inherit; background: var(--wp--preset--color--base);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

body { overflow-wrap: anywhere; font-feature-settings: "palt" 0; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; }
.wp-block-table { overflow-x: auto; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.wp-site-blocks { overflow-x: clip; }

/* ボタン：主は海の色の塗り、補助（枠線スタイル）は線だけ。矢印は文字の後ろに付ける */
.wp-block-button__link::after { content: ""; width: .5em; height: .5em; margin-left: .7em; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .3s var(--sg-ease); flex: none; }
.wp-block-button__link:hover::after { transform: translateX(3px) rotate(45deg); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--sg-sea); border: 2px solid currentColor; padding: 12px 26px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--sg-sea); color: var(--wp--preset--color--base); }
a.wp-element-button, .sg-footer a.wp-element-button, .sg-next-action a.wp-element-button { color: var(--wp--preset--color--base); text-decoration: none; }
a.wp-element-button:hover, .sg-footer a.wp-element-button:hover { color: var(--wp--preset--color--base); }
.wp-block-buttons { gap: 12px 16px; }

/* 英字の小さなラベル（例：01 — IDEA） */
.sg-eyebrow { font-family: var(--wp--preset--font-family--gothic); font-weight: 700; font-size: .8125rem; letter-spacing: .28em; text-transform: uppercase; color: var(--sg-sea); margin: 0; display: flex; align-items: center; gap: 12px; }
.sg-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }

/* 文中のリンクに矢印をつけた「続きへ」 */
.sg-more { margin-top: 24px; }
.sg-more a { font-weight: 700; text-decoration: none; color: var(--sg-sea); border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.sg-more a::after { content: " →"; }
.sg-more a:hover { color: var(--sg-ink); }

/* --- ヘッダー UI01（白地固定：設計 §10） --- */
.sg-header { background: var(--wp--preset--color--base); border-bottom: 1px solid var(--sg-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .sg-header { top: 32px; }
.sg-header__inner { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding-block: 10px; }
.sg-brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.sg-brand__logo { display: block; line-height: 0; }
.sg-brand__logo-full svg { display: block; width: 92px; height: auto; }
.sg-brand__logo-word { display: none; }
.sg-brand__logo-word svg { display: block; width: 128px; height: auto; }
.sg-brand__site { display: flex; flex-direction: column; text-decoration: none; color: var(--sg-ink); line-height: 1.35; padding-left: 18px; border-left: 1px solid var(--sg-line); }
.sg-brand__site-name { font-weight: 700; letter-spacing: .3em; font-size: 1.0625rem; }
.sg-brand__site-label { font-size: .75rem; letter-spacing: .08em; color: var(--sg-sea); }
.sg-header__nav { margin-left: auto; display: flex; align-items: center; gap: 8px 28px; }
.sg-header__nav .wp-block-navigation__container { gap: 8px 24px; }
.sg-header .wp-block-navigation { font-size: .9375rem; font-weight: 700; letter-spacing: .06em; }
.sg-header .wp-block-navigation a { text-decoration: none; color: var(--sg-ink); position: relative; }
.sg-header .wp-block-navigation a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--sg-sea); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--sg-ease); }
.sg-header .wp-block-navigation a:hover::after, .sg-header .wp-block-navigation .current-menu-item > a::after { transform: scaleX(1); }
@media (max-width: 781px) {
	.sg-brand__logo-full { display: none; }
	.sg-brand__logo-word { display: block; }
	.sg-brand__logo-word svg { width: 104px; }
	.sg-header__inner { gap: 8px 14px; }
	.sg-brand { gap: 12px; }
	.sg-brand__site { padding-left: 12px; }
	.sg-brand__site-name { font-size: .9375rem; letter-spacing: .22em; }
	.sg-header { position: relative; }
}

/* SHIOGORI全体メニュー */
.shiogori-network-menu { position: relative; }
.shiogori-network-menu summary { cursor: pointer; list-style: none; padding: 0 18px; border: 1px solid var(--sg-ink); border-radius: 999px; color: var(--sg-ink); font-weight: 700; font-size: .875rem; letter-spacing: .1em; transition: background .2s, color .2s; }
.shiogori-network-menu summary:hover, .shiogori-network-menu[open] summary { background: var(--sg-navy); color: #fff; border-color: var(--sg-navy); }
.shiogori-network-menu summary::-webkit-details-marker { display: none; }
.shiogori-network-menu summary::after { content: ""; width: .45em; height: .45em; margin-left: .6em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.shiogori-network-menu[open] summary::after { transform: rotate(-135deg); }
.shiogori-network-menu__list { position: absolute; right: 0; z-index: 20; min-width: 280px; margin: 10px 0 0; padding: 10px; list-style: none; background: var(--wp--preset--color--base); border: 1px solid var(--sg-line); border-radius: 8px; box-shadow: 0 18px 40px -18px rgba(12, 19, 46, .35); }
@media (max-width: 781px) { .shiogori-network-menu__list { position: static; margin-top: 8px; box-shadow: none; } .shiogori-network-menu { width: 100%; } }
.shiogori-network__item a { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 8px 12px; text-decoration: none; color: var(--sg-ink); border-radius: 4px; }
.shiogori-network__item a:hover { background: var(--sg-mist); }
.shiogori-network__item a[aria-current="page"] .shiogori-network__name { color: var(--sg-sea); }
.shiogori-network__name { font-weight: 700; letter-spacing: .2em; }
.shiogori-network__label { font-size: var(--wp--preset--font-size--small); }

/* --- 表紙 sg-hero（トップ） --- */
.sg-front { padding-top: 0; }
.sg-front > .wp-block-post-content > :first-child { margin-top: 0; }
.sg-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--sg-paper); padding-block: clamp(56px, 9vw, 128px) clamp(64px, 10vw, 140px) !important; margin-top: 0 !important; clip-path: var(--sg-torn); }
.sg-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--sg-hero-bg); opacity: .95; }
.sg-hero::after { content: var(--sg-word); position: absolute; z-index: -1; right: -.04em; bottom: -.2em; font: 700 clamp(5rem, 17vw, 15rem)/1 var(--wp--preset--font-family--gothic); letter-spacing: .12em; color: transparent; -webkit-text-stroke: 1.5px rgba(36, 92, 102, .22); white-space: nowrap; pointer-events: none; }
.sg-hero__inner { position: relative; }
.sg-hero__inner > * { max-width: 680px; }
.sg-hero__lead { max-width: 34em !important; }
.sg-hero .sg-eyebrow { margin-bottom: 28px; }
.sg-hero__title { font-family: var(--wp--preset--font-family--mincho); font-size: var(--wp--preset--font-size--display) !important; line-height: 1.3 !important; letter-spacing: .04em; font-weight: 700; margin: 0 0 32px; color: var(--sg-navy); }
.sg-hero__lead { font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 2.05; margin: 0 0 36px; }
.sg-hero__lead + .sg-hero__lead { margin-top: -20px; }
@media (max-width: 781px) {
	.sg-hero::before { opacity: .35; }
	.sg-hero__title br { display: none; }
}
@media (min-width: 1100px) {
	.sg-hero__inner > * { max-width: 620px; }
}

/* サイトごとの図柄と英字の名前（色は全サイト共通） */
/* 川の線は全サイト共通。その奥にサイトごとの図柄を重ねる */
.sg-site-main { --sg-word: "SHIOGORI"; }
.sg-site-story { --sg-word: "STORY"; --sg-hero-bg: url(../motif/river.svg) right 4% top 14% / 50% auto no-repeat, url(../motif/hills.svg) center bottom / 100% 44% no-repeat; }
.sg-site-campus { --sg-word: "CAMPUS"; --sg-hero-bg: url(../motif/river.svg) right 4% top 14% / 50% auto no-repeat, url(../motif/grid.svg) 0 0 / 28px 28px repeat; }
.sg-site-beach { --sg-word: "BEACH"; --sg-hero-bg: url(../motif/river.svg) right 4% top 14% / 50% auto no-repeat, url(../motif/sun.svg) center bottom / 100% auto no-repeat; }
.sg-site-collage { --sg-word: "COLLAGE"; --sg-hero-bg: url(../motif/river.svg) right 4% top 14% / 50% auto no-repeat, url(../motif/paper.svg) right center / 52% 92% no-repeat; }

/* --- 区切りのある節 sg-section --- */
.sg-section { padding-block: clamp(64px, 9vw, 120px) !important; margin-block: 0 !important; }
.sg-section + .sg-section:not([class*="sg-section--"]) { border-top: 1px solid var(--sg-line); }
.sg-section--paper { background: var(--sg-paper); }
.sg-section--mist { background: var(--sg-mist); }
.sg-section__grid { display: grid; gap: 32px 64px; }
@media (min-width: 960px) {
	.sg-section__grid { grid-template-columns: minmax(220px, 300px) 1fr; }
	.sg-section__head { position: sticky; top: 110px; align-self: start; }
}
.sg-section__head { display: flex; flex-direction: column; gap: 18px; }
.sg-section__head > * { margin: 0 !important; }
.sg-section__head h2 { font-size: var(--wp--preset--font-size--heading-2); color: var(--sg-navy); }
.sg-section__body { min-width: 0; }
.sg-section__body > * { margin-block: 0; }
.sg-section__body > * + * { margin-block-start: 20px; }
.sg-section__body > p { font-size: 1.0625rem; line-height: 2.05; max-width: 40em; }
.sg-lead { font-family: var(--wp--preset--font-family--mincho); font-weight: 700; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem) !important; line-height: 1.7 !important; color: var(--sg-navy); max-width: none !important; }

/* --- 紺の帯 sg-band（ひとことで言う節） --- */
.sg-band { position: relative; isolation: isolate; background: var(--sg-navy); color: #fff; padding-block: clamp(80px, 11vw, 150px) !important; margin-block: 0 !important; clip-path: var(--sg-torn-top); overflow: hidden; }
.sg-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../motif/river.svg) center / cover no-repeat; opacity: .22; filter: brightness(2.2) saturate(.6); }
.sg-band .sg-eyebrow { color: #9FD3D8; }
.sg-band h2, .sg-band h3, .sg-band .sg-statement { color: #fff; }
.sg-band a:not(.wp-element-button) { color: #fff; }
.sg-band .sg-more a { color: #fff; }
.sg-band .wp-block-button__link { background: #fff; color: var(--sg-navy); }
.sg-band .wp-block-button__link:hover { background: #9FD3D8; color: var(--sg-navy); }
.sg-statement { font-family: var(--wp--preset--font-family--mincho); font-weight: 700; font-size: clamp(1.75rem, 1.1rem + 3vw, 3.5rem) !important; line-height: 1.5 !important; letter-spacing: .06em; margin: 24px 0 !important; }
.sg-band p:not(.sg-statement):not(.sg-eyebrow) { line-height: 2.05; max-width: 38em; color: rgba(255, 255, 255, .88); }

/* --- 並べるカード sg-tiles --- */
.sg-tiles { display: grid !important; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.sg-tiles.is-two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.sg-tile { position: relative; background: var(--wp--preset--color--base); border: 1px solid var(--sg-line); border-radius: 6px; padding: 28px 26px 26px !important; margin: 0 !important; display: flex; flex-direction: column; gap: 10px; transition: transform .35s var(--sg-ease), box-shadow .35s var(--sg-ease), border-color .35s; }
.sg-tile > * { margin: 0 !important; }
.sg-tile:has(a):hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(12, 19, 46, .4); border-color: var(--sg-sea); }
.sg-tile__num { font: 700 .8125rem/1 var(--wp--preset--font-family--gothic); letter-spacing: .2em; color: var(--sg-sea); }
.sg-tile__big { font: 700 clamp(2rem, 1.6rem + 1.5vw, 2.75rem)/1.1 var(--wp--preset--font-family--mincho); color: var(--sg-navy); }
.sg-tile h3 { font-size: 1.25rem; color: var(--sg-navy); line-height: 1.5; }
.sg-tile p { line-height: 1.9; }
.sg-tile__tag { align-self: flex-start; font-size: .75rem !important; font-weight: 700; letter-spacing: .08em; border: 1px solid var(--sg-sea); color: var(--sg-sea); border-radius: 999px; padding: 2px 12px; }
.sg-tile a { color: var(--sg-sea); font-weight: 700; text-decoration: none; }
.sg-tile a::after { content: " →"; }
.sg-tile a:only-child { position: static; }
.sg-tile .sg-tile__link { margin-top: auto !important; padding-top: 8px; }
/* カード全体をリンクの押せる範囲にする */
.sg-tile .sg-tile__link a::before { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.sg-section--paper .sg-tile, .sg-section--mist .sg-tile { border-color: transparent; }
.sg-band .sg-tile { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #fff; }
.sg-band .sg-tile h3, .sg-band .sg-tile__big { color: #fff; }
.sg-band .sg-tile__num { color: #9FD3D8; }

/* --- 手順 sg-steps --- */
.sg-steps { list-style: none; padding: 0 !important; margin: 0; counter-reset: sg-step; display: grid; gap: 0; }
.sg-steps > li { counter-increment: sg-step; position: relative; padding: 4px 0 28px 76px; margin: 0; line-height: 1.9; }
.sg-steps > li::before { content: counter(sg-step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sg-navy); color: #fff; font: 700 .9375rem/1 var(--wp--preset--font-family--gothic); letter-spacing: .06em; }
.sg-steps > li::after { content: ""; position: absolute; left: 25px; top: 56px; bottom: 4px; width: 2px; background: var(--sg-line); }
.sg-steps > li:last-child::after { display: none; }
.sg-steps > li strong { display: block; font-family: var(--wp--preset--font-family--mincho); font-size: 1.1875rem; color: var(--sg-navy); }

/* --- 表 sg-table（概要・条件） --- */
.sg-table table { border-collapse: collapse; width: 100%; border-top: 2px solid var(--sg-navy); }
.sg-table th, .sg-table td { border: 0; border-bottom: 1px solid var(--sg-line); padding: 18px 8px; text-align: left; vertical-align: top; line-height: 1.8; }
.sg-table th, .sg-table tr > td:first-child { width: 9em; font-weight: 700; color: var(--sg-navy); white-space: nowrap; }
@media (max-width: 600px) { .sg-table tr { display: grid; padding: 14px 0; border-bottom: 1px solid var(--sg-line); } .sg-table th, .sg-table td { border: 0; padding: 0; } }

/* --- よくある質問 sg-faq（details） --- */
.sg-faq { border-top: 1px solid var(--sg-line); }
.sg-section__body > .wp-block-details { margin-top: 0 !important; border-bottom: 1px solid var(--sg-line); }
.wp-block-details summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-family: var(--wp--preset--font-family--mincho); font-weight: 700; font-size: 1.125rem; color: var(--sg-navy); }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 400 1.75rem/1 var(--wp--preset--font-family--gothic); color: var(--sg-sea); transition: transform .3s var(--sg-ease); }
.wp-block-details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.wp-block-details > :not(summary) { margin: 0 0 20px; line-height: 1.9; }

/* --- 行動をうながす帯 sg-cta --- */
.sg-cta { background: var(--sg-sea); color: #fff; padding-block: clamp(56px, 8vw, 104px) !important; margin-block: 0 !important; position: relative; overflow: hidden; isolation: isolate; }
.sg-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../motif/river.svg) right center / cover no-repeat; filter: brightness(3) saturate(0); opacity: .18; }
.sg-cta__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.sg-cta__inner > * { margin: 0 !important; }
.sg-cta__text { max-width: 620px; }
.sg-cta__text > * { margin: 0; }
.sg-cta__text > * + * { margin-top: 16px; }
.sg-cta .sg-eyebrow { color: #CDEBEE; }
.sg-cta h2 { color: #fff; font-size: var(--wp--preset--font-size--heading-2); }
.sg-cta p { line-height: 1.95; }
.sg-cta a:not(.wp-element-button) { color: #fff; }
.sg-cta .wp-block-button__link { background: #fff; color: var(--sg-navy); }
.sg-cta .wp-block-button__link:hover { background: var(--sg-navy); color: #fff; }
.sg-cta .is-style-outline > .wp-block-button__link { background: transparent; color: #fff; }
.sg-cta .is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--sg-navy); }
.sg-cta .shiogori-contact { background: rgba(255, 255, 255, .1); border-radius: 8px; padding: 20px 24px; }
.sg-cta .shiogori-contact a { color: #fff; font-weight: 700; font-size: 1.25rem; }
.sg-notice { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; padding: 10px 20px; font-weight: 700; }

/* --- 状態のお知らせ sg-status-panel（BEACH の今の案内など） --- */
.sg-status-panel { background: var(--wp--preset--color--base); border-left: 6px solid var(--sg-sea); border-radius: 0 8px 8px 0; padding: 28px 32px !important; box-shadow: 0 20px 40px -30px rgba(12, 19, 46, .45); }
.sg-status-panel > * { margin: 0; }
.sg-status-panel > * + * { margin-top: 12px; }
.sg-status-panel .sg-tile__tag { width: fit-content; }
.sg-status-panel h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); color: var(--sg-navy); }

/* --- 問い合わせの窓口を並べる sg-contacts --- */
.sg-contacts .sg-tile h3 { font-size: 1.0625rem; }

/* --- フッター UI02（紺） --- */
.sg-footer { background: var(--sg-navy); color: rgba(255, 255, 255, .86); margin-top: 0; clip-path: var(--sg-torn-top); }
.sg-cta + .sg-footer, .wp-site-blocks > footer:first-of-type { margin-top: 0; }
main + footer, main + .wp-block-template-part { margin-top: var(--wp--preset--spacing--70); }
.sg-front + footer, .sg-front + .wp-block-template-part { margin-top: 0; }
.sg-footer__inner { padding-block: clamp(72px, 9vw, 112px) 40px; display: grid; gap: 40px 64px; grid-template-columns: 1fr; }
@media (min-width: 782px) { .sg-footer__inner { grid-template-columns: 2fr 1fr; } }
.sg-footer__word { grid-column: 1 / -1; margin: 0; font: 700 clamp(2.5rem, 1.5rem + 5vw, 6rem)/1 var(--wp--preset--font-family--gothic); letter-spacing: .32em; color: #fff; opacity: .95; }
.sg-footer__label, .sg-footer .shiogori-contact__heading { font-size: .75rem; letter-spacing: .24em; font-weight: 700; color: #9FD3D8; margin: 0 0 12px; text-transform: uppercase; }
.sg-footer a { color: #fff; }
.sg-footer .shiogori-network-list__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 24px; }
.sg-footer .shiogori-network__item a { color: #fff; padding: 6px 0; }
.sg-footer .shiogori-network__item a:hover { background: none; text-decoration: underline; }
.sg-footer .shiogori-network__label { color: rgba(255, 255, 255, .7); font-size: .75rem; }
.sg-footer__contact { line-height: 1.9; }
.sg-footer__copy { grid-column: 1 / -1; font-size: .75rem; letter-spacing: .12em; margin: 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .6); }
.shiogori-network-list__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }

/* --- ページ見出し UI03（トップ以外） --- */
.sg-page-intro { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 48px) !important; }
.sg-page-intro::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--sg-paper); }
.sg-page-intro { isolation: isolate; margin-bottom: clamp(32px, 5vw, 64px); }
.sg-page-intro > * { margin-block: 0; }
.sg-page-intro > * + * { margin-block-start: 18px; }
.sg-page-intro .wp-block-post-title { color: var(--sg-navy); letter-spacing: .04em; }
.sg-page-intro .wp-block-post-excerpt { font-size: 1.0625rem; line-height: 2; }
.sg-page-intro__image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
@media (max-width: 781px) { .sg-page-intro__image img { aspect-ratio: 4 / 3; } }
.sg-page-intro > .sg-page-intro__image, .sg-page-intro > .wp-block-post-featured-image { max-width: none; width: 100%; }

/* 本文の読みやすさ（固定ページ・記事） */
.wp-block-post-content > p, .wp-block-post-content > ul, .wp-block-post-content > ol { line-height: 2; }
.wp-block-post-content > h2 { margin-top: var(--wp--preset--spacing--60); padding-top: 20px; border-top: 2px solid var(--sg-navy); color: var(--sg-navy); }
.wp-block-post-content > h3 { margin-top: var(--wp--preset--spacing--50); color: var(--sg-navy); }

/* --- カード UI04 / UI05 --- */
.sg-card-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--wp--preset--spacing--40); list-style: none; padding: 0; }
.sg-card-grid > li { margin: 0; }
.sg-card { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.sg-card .wp-block-post-featured-image { margin: 0; overflow: hidden; border-radius: 6px; }
.sg-card .wp-block-post-featured-image img { width: 100%; height: auto; object-fit: cover; transition: transform .6s var(--sg-ease); }
.sg-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.sg-card--article .wp-block-post-featured-image img { aspect-ratio: 3 / 2; }
.sg-card--entry .wp-block-post-featured-image img { aspect-ratio: 4 / 3; }
.sg-card .wp-block-post-title { font-size: 1.25rem; margin: 0; line-height: 1.5; }
.sg-card .wp-block-post-title a { color: var(--sg-navy); text-decoration: none; }
.sg-card .wp-block-post-title a::before { content: ""; position: absolute; inset: 0; }
.sg-card:hover .wp-block-post-title a { text-decoration: underline; text-underline-offset: 4px; }
.sg-card .wp-block-post-excerpt { margin: 0; line-height: 1.85; }
.sg-card .wp-block-post-excerpt__more-text { display: none; }
.sg-card .wp-block-post-date { font-size: .8125rem; letter-spacing: .1em; color: var(--sg-sea); font-weight: 700; }
.sg-card--entry { background: var(--wp--preset--color--base); border: 1px solid var(--sg-line); border-radius: 6px; padding: 0 0 22px; transition: transform .35s var(--sg-ease), box-shadow .35s var(--sg-ease), border-color .35s; }
.sg-card--entry:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(12, 19, 46, .4); border-color: var(--sg-sea); }
.sg-card--entry > :not(.wp-block-post-featured-image) { margin-inline: 22px; }
.sg-card--entry:not(:has(img)) { padding-top: 24px; }
.sg-card--entry:not(:has(img))::before { content: ""; display: block; height: 6px; margin: -24px -1px 18px; background: var(--sg-sea); border-radius: 6px 6px 0 0; }
.sg-card .shiogori-status a { position: relative; z-index: 1; }

/* --- 状態 UI06 --- */
.shiogori-status__label { margin: 0; }
.shiogori-status__text { display: inline-block; padding: 2px 12px; border: 1px solid var(--sg-sea); border-radius: 999px; font-weight: 700; color: var(--sg-sea); font-size: .8125rem; letter-spacing: .04em; }
.shiogori-status.is-entry-open .shiogori-status__text { background: var(--sg-sea); color: var(--wp--preset--color--base); }
.shiogori-status__note { font-size: var(--wp--preset--font-size--small); }
.shiogori-status__action { margin: 12px 0 0; }
.shiogori-status__button { background: var(--sg-sea); color: var(--wp--preset--color--base); padding: 12px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.shiogori-status__button:hover { background: var(--sg-navy); }

/* --- 概要・条件表 UI07 --- */
.shiogori-facts { margin: 0; }
.shiogori-facts__list { margin: 0; border-top: 2px solid var(--sg-navy); }
.shiogori-facts__heading { margin: 0 0 18px; font-size: var(--wp--preset--font-size--heading-2); color: var(--sg-navy); }
.shiogori-facts__row { display: grid; grid-template-columns: 9em 1fr; gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--sg-line); }
.shiogori-facts dt { font-weight: 700; color: var(--sg-navy); }
.shiogori-facts dd { margin: 0; }
@media (max-width: 600px) { .shiogori-facts__row { grid-template-columns: 1fr; gap: 0; } }

/* --- 問い合わせ・次の行動 UI09 --- */
.shiogori-contact__heading { font-weight: 700; margin: 0 0 8px; }
.shiogori-contact__name { margin: 0 0 4px; font-weight: 700; }
.shiogori-contact__list { list-style: none; margin: 0; padding: 0; }
.shiogori-contact__note { font-size: var(--wp--preset--font-size--small); }
.sg-next-action { background: var(--sg-paper); padding: var(--wp--preset--spacing--40) !important; border-radius: 8px; margin-top: var(--wp--preset--spacing--60) !important; }
.sg-next-action:not(:has(*)) { display: none; }

/* --- 資料 UI08 --- */
.sg-material-list { list-style: none; padding: 0; margin: 0; }
.sg-material-list > li { padding: 14px 0; border-bottom: 1px solid var(--sg-line); margin: 0; }

/* --- ページ送り UI10 --- */
.wp-block-query-pagination { gap: 8px; justify-content: center; margin-top: var(--wp--preset--spacing--50); }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--sg-sea); border-radius: 999px; text-decoration: none; padding: 0 12px; box-sizing: border-box; }
.wp-block-query-pagination .page-numbers.current { background: var(--sg-sea); color: var(--wp--preset--color--base); }

/* 表示されたときに少しだけ浮かび上がる（動きの軽減設定では止まる） */
@media (prefers-reduced-motion: no-preference) {
	.sg-hero__inner > * { animation: sg-rise .9s var(--sg-ease) both; }
	.sg-hero__inner > :nth-child(2) { animation-delay: .08s; }
	.sg-hero__inner > :nth-child(3) { animation-delay: .16s; }
	.sg-hero__inner > :nth-child(4) { animation-delay: .24s; }
	@keyframes sg-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
.sg-footer .shiogori-network__item a[aria-current="page"] .shiogori-network__name { color: #9FD3D8; }
.sg-site-beach .sg-hero { padding-bottom: clamp(150px, 20vw, 260px) !important; }

/* --- STORY：写真が主役の表紙・特集・過ごし方・記事（指示書 2026-10-03） --- */
.sg-front > .wp-block-post-content > .sg-story-hero:first-child { margin-top: 0 !important; }
.sg-story-hero { margin-block: 0 !important; padding: clamp(56px, 8vw, 112px) var(--wp--style--root--padding-right, 24px) clamp(56px, 7vw, 96px) !important; clip-path: var(--sg-torn); color: #fff; }
.sg-story-hero:not(:has(.wp-block-cover__image-background))::before { content: ""; position: absolute; inset: 0; z-index: 1; background: url(../motif/river.svg) right 6% top 12% / 46% auto no-repeat, url(../motif/hills.svg) center bottom / 100% 40% no-repeat; opacity: .16; filter: invert(1); }
/* 写真の上の文字：下から濃くなるグラデーションで読みやすさを保つ */
.sg-story-hero:has(.wp-block-cover__image-background)::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(12, 19, 46, .82) 0%, rgba(12, 19, 46, .45) 42%, rgba(12, 19, 46, 0) 72%); pointer-events: none; }
.sg-story-hero .wp-block-cover__inner-container { width: 100%; max-width: var(--wp--style--global--wide-size, 1240px); margin-inline: auto; }
.sg-story-hero__inner > * { max-width: 680px; }
.sg-story-hero .sg-eyebrow { color: #9FD3D8; margin-bottom: 24px; }
.sg-story-hero .sg-hero__title { color: #fff; margin-bottom: 24px; text-shadow: 0 2px 24px rgba(12, 19, 46, .35); }
.sg-story-hero .sg-hero__lead { color: rgba(255, 255, 255, .92); max-width: 34em; }
.sg-story-hero .wp-block-button__link { background: #fff; color: var(--sg-navy); }
.sg-story-hero .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #fff; }
.sg-story-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--sg-navy); }

.sg-section > .alignwide > .sg-section__head { position: static; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; margin-bottom: clamp(28px, 4vw, 48px); }

/* 写真がまだない場所の枠 */
.sg-photo-frame { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; margin: 0 !important; border-radius: 6px; background: var(--sg-mist) url(../motif/river.svg) center / 60% auto no-repeat; border: 1px dashed var(--sg-line); }
.sg-photo-frame p { margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: .8125rem; letter-spacing: .12em; color: var(--sg-ink); }

/* 特集：大きな写真＋見出し＋短い導入 */
.sg-feature { display: grid; gap: 24px 56px; align-items: center; }
@media (min-width: 960px) { .sg-feature { grid-template-columns: 7fr 5fr; } }
.sg-feature__image, .sg-feature .wp-block-post-featured-image { margin: 0; overflow: hidden; border-radius: 6px; }
.sg-feature .wp-block-post-featured-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sg-feature__image.sg-photo-frame { aspect-ratio: 3 / 2; }
.sg-feature__text > * { margin-block: 0; }
.sg-feature__text > * + * { margin-block-start: 16px; }
.sg-feature .wp-block-post-title { font-family: var(--wp--preset--font-family--mincho); font-size: var(--wp--preset--font-size--heading-2); line-height: 1.5; }
.sg-feature .wp-block-post-title a { color: var(--sg-navy); text-decoration: none; }
.sg-feature .wp-block-post-date { font-size: .8125rem; letter-spacing: .1em; color: var(--sg-sea); font-weight: 700; }
.sg-feature .wp-block-post-excerpt { line-height: 2; }
.sg-feature .wp-block-post-excerpt__more-text { display: none; }
.sg-read-more { display: inline-block; font-weight: 700; color: var(--sg-sea); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.sg-read-more::after { content: " →"; }

/* 海・街・低山 */
.sg-ways { display: grid; gap: 40px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.sg-way { display: flex; flex-direction: column; gap: 12px; }
.sg-way > * { margin: 0 !important; }
.sg-way > .sg-photo-frame, .sg-way > .wp-block-image { margin-bottom: 8px !important; }
.sg-way > .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.sg-way h3 { font-family: var(--wp--preset--font-family--mincho); font-size: 1.5rem; color: var(--sg-navy); }
.sg-way p:not(.sg-tile__num):not(.sg-more) { line-height: 1.9; }

/* 記事ページ：行の長さ・段落の間・写真の説明 */
.sg-article { padding-block: clamp(40px, 6vw, 80px) 0; }
.sg-article__head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(28px, 4vw, 48px); }
.sg-article__head > * { margin: 0 !important; max-width: 760px; }
.sg-article__title { font-family: var(--wp--preset--font-family--mincho); font-size: var(--wp--preset--font-size--heading-1) !important; line-height: 1.45; color: var(--sg-navy); }
.sg-article__lead { font-size: 1.125rem; line-height: 2; }
.sg-article__lead .wp-block-post-excerpt__more-text { display: none; }
.sg-article__head .wp-block-post-date { font-size: .875rem; color: var(--sg-sea); letter-spacing: .08em; }
.sg-article__image { margin-block: 0 clamp(36px, 5vw, 64px) !important; border-radius: 6px; overflow: hidden; }
.sg-article__body { font-size: 1.0625rem; }
.sg-article__body > p { line-height: 2.1; margin-block: 0 1.6em; }
.sg-article__body > .wp-block-image, .sg-article__body > figure { margin-block: 2.4em !important; }
.sg-article__body figcaption, .sg-article__body .wp-element-caption { margin-top: 10px; font-size: .8125rem; line-height: 1.7; color: #4F6268; text-align: left; }
.sg-article__body > .wp-block-image.alignwide img, .sg-article__body > .wp-block-image.alignfull img { width: 100%; }
.sg-article__updated { margin-block: clamp(36px, 5vw, 56px) !important; color: #4F6268; }
.sg-article__next .sg-article__actions { margin-top: 36px; }
.sg-site-story .sg-hero__title, .sg-article__title, .sg-feature .wp-block-post-title, .sg-card .wp-block-post-title { word-break: auto-phrase; }
@media (max-width: 600px) { .sg-section > .alignwide > .sg-section__head { flex-direction: column; align-items: flex-start; } }

/* --- CAMPUS：言葉と活動写真の表紙、活動カード（指示書 2026-10-03） --- */
.sg-hero--split .sg-hero__inner { display: grid; gap: 40px 64px; align-items: center; }
.sg-hero--split .sg-hero__inner > * { max-width: none; }
.sg-hero--split .sg-hero__text > * { max-width: 620px; }
@media (min-width: 960px) { .sg-hero--split .sg-hero__inner { grid-template-columns: 6fr 5fr; } }
.sg-hero__photo { margin: 0 !important; }
.sg-hero__photo .sg-photo-frame { aspect-ratio: 4 / 3; background-color: rgba(255, 255, 255, .7); }
.sg-hero__photo .wp-block-image { margin: 0; }
.sg-hero__photo .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
/* 人・活動の写真には説明を添える */
.sg-hero__photo figcaption, .sg-way figcaption, .sg-section figcaption { margin-top: 10px; font-size: .8125rem; line-height: 1.7; color: #4F6268; text-align: left; }
.sg-card--project .shiogori-status { margin: 0; }
.sg-card--project .shiogori-status__label { margin: 0; font-size: .8125rem; }
.sg-tile:has(> p:only-of-type) > p:last-child { color: #4F6268; }
.sg-hero--split { --sg-hero-bg: url(../motif/grid.svg) 0 0 / 28px 28px repeat; }
.sg-hero__title { word-break: auto-phrase; }

/* --- BEACH：海の代表写真の表紙、状態の札、イベントカード（指示書 2026-10-03） --- */
.sg-front > .wp-block-post-content > .sg-beach-hero:first-child { margin-top: 0 !important; }
.sg-beach-hero { margin-block: 0 !important; padding: clamp(56px, 8vw, 112px) var(--wp--style--root--padding-right, 24px) clamp(120px, 14vw, 200px) !important; clip-path: var(--sg-torn); color: var(--sg-navy); }
.sg-beach-hero .wp-block-cover__inner-container { width: 100%; max-width: var(--wp--style--global--wide-size, 1240px); margin-inline: auto; color: inherit; }
.sg-beach-hero:not(:has(.wp-block-cover__image-background))::before { content: ""; position: absolute; inset: 0; z-index: 1; background: url(../motif/sun.svg) center bottom / 100% auto no-repeat; opacity: .95; pointer-events: none; }
.sg-beach-hero:has(.wp-block-cover__image-background) { color: #fff; }
.sg-beach-hero:has(.wp-block-cover__image-background)::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(12, 19, 46, .8) 0%, rgba(12, 19, 46, .55) 45%, rgba(12, 19, 46, .25) 80%, rgba(12, 19, 46, .12) 100%); pointer-events: none; }
.sg-beach-hero:has(.wp-block-cover__image-background) .sg-hero__title, .sg-beach-hero:has(.wp-block-cover__image-background) .sg-hero__lead { text-shadow: 0 2px 18px rgba(12, 19, 46, .45); }
.sg-beach-hero .sg-story-hero__inner > * { max-width: 640px; }
.sg-beach-hero .sg-hero__title { color: inherit; margin-bottom: 24px; }
.sg-beach-hero .sg-hero__lead { color: inherit; max-width: 34em; }
.sg-beach-hero:has(.wp-block-cover__image-background) .sg-eyebrow { color: #fff; }
.sg-beach-hero:has(.wp-block-cover__image-background) .wp-block-button__link { background: #fff; color: var(--sg-navy); }
.sg-beach-hero:has(.wp-block-cover__image-background) .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #fff; }
.sg-status-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.sg-status-grid > .sg-status-panel { margin: 0 !important; }
.sg-tile > .sg-photo-frame { margin: -28px -26px 8px !important; border-radius: 6px 6px 0 0; border: 0; aspect-ratio: 3 / 2; }
.sg-card--event .shiogori-facts { margin: 0; font-size: .875rem; }
.sg-card--event .shiogori-facts__list { border: 0; }
.sg-card--event .shiogori-facts__row { grid-template-columns: auto 1fr; gap: 12px; }
.sg-card--event .shiogori-facts__row { border: 0; padding: 0; }
.sg-card--event .shiogori-status, .sg-card--event .shiogori-status__label { margin: 0; font-size: .8125rem; }
.sg-card--event .shiogori-facts dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sg-card--event .shiogori-facts__row { display: block; font-weight: 700; color: var(--sg-navy); }

/* --- COLLAGE：プログラムの比較カード、詳細ページ、資料（指示書 2026-10-03） --- */
.sg-site-collage .sg-hero--split { --sg-hero-bg: none; }
.sg-card--program .shiogori-facts, .sg-card--material .shiogori-facts { font-size: .875rem; }
.sg-card--program .shiogori-facts__list, .sg-card--material .shiogori-facts__list { border-top: 1px solid var(--sg-line); }
.sg-card--program .shiogori-facts__row, .sg-card--material .shiogori-facts__row { grid-template-columns: 6.5em 1fr; gap: 4px 12px; padding: 9px 0; }
.sg-card--program .shiogori-status, .sg-card--program .shiogori-status__label { margin: 0; font-size: .8125rem; }
.sg-program__summary { margin-top: 8px !important; margin-bottom: 24px !important; max-width: 760px; }
.sg-program__summary .shiogori-facts__list { border-top-width: 1px; }
.sg-program__body { font-size: 1.0625rem; }
.sg-program__body > p { line-height: 2.05; }
.sg-program__facts { margin-top: clamp(40px, 5vw, 64px) !important; max-width: 760px; }
@media (max-width: 600px) { .sg-card--program .shiogori-facts__row, .sg-card--material .shiogori-facts__row { grid-template-columns: 6.5em 1fr; } }

/* --- 仮のイメージ画像（assets/placeholder/）。本番の写真に差し替えると同じ枠に入る --- */
.sg-tile > .wp-block-image { margin: -28px -26px 8px !important; overflow: hidden; border-radius: 6px 6px 0 0; }
.sg-tile > .wp-block-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sg-way > .wp-block-image { margin: 0 0 8px !important; overflow: hidden; border-radius: 6px; }
