/* サンプルの「月・淡い色・明朝・余白」を、実際のコンテンツに合わせて構成する。 */
/* 本文・見出しのフォントと基本配色はWordPressのグローバルスタイルに任せる。 */
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
/* サイト外枠の余白はWordPressのグローバルスタイルと個別設定に任せる。 */
.aura-home, .aura-header, .aura-footer, .aura-page { box-sizing: border-box; }
.aura-home *, .aura-header *, .aura-footer * { box-sizing: border-box; }
.aura-home { overflow: clip; }
/* ブラウザーの既定余白だけをリセットし、ブロックの間隔とスタイルを優先する。 */
:where(.aura-home) :where(h1, h2, h3, p) { margin: 0; }
.aura-home img { display: block; max-width: 100%; }
.aura-home a:focus-visible, .aura-header a:focus-visible, .aura-header button:focus-visible, .aura-footer a:focus-visible { outline: 3px solid var(--wp--preset--color--action); outline-offset: 5px; }
/* ホームの共通幅と左右余白は外側グループの標準レイアウトで管理。 */
.aura-header { position: relative; z-index: 5; }
/* ホーム用パーツだけを写真に重ねる。色・幅・余白は各標準ブロックが管理する。 */
body.home .wp-site-blocks > .aura-home-header { position: absolute; inset: 0 0 auto; z-index: 8; margin: 0; }
body.admin-bar.home .wp-site-blocks > .aura-home-header { top: var(--wp-admin--admin-bar--height, 32px); }
/* 写真下端の濃さを細かな色点で緩やかにつなぎ、水と草を保つ。 */
body.home:has(.aura-home-header) .aura-light-portal--sanctuary > .aura-sanctuary-scene::after {
    background: linear-gradient(180deg, #081121a6 0px, #08112130 70px, transparent 160px),
        linear-gradient(90deg, #06121e70 0%, #0b193d26 38%, transparent 70%),
        linear-gradient(0deg, #111525ff 0%, #111525f7 1%, #111525e6 2%, #111525c4 3%, #11152595 4%, #1115256e 5%, #11152552 6%, #11152539 7%, #11152526 8%, #1115251a 9%, #11152513 10%, #1115250d 11%, #11152509 12%, #11152505 13%, #11152504 14%, #11152503 15%, #11152502 16%, #11152502 17%, #11152501 18%, #11152501 19%, #11152500 20%, #11152500 21%, #11152500 22%);
}
/* 月はヘッダーの下に空を残す。写真の月の大きさと、触れた時の変形は維持。 */
.aura-home .aura-light-portal--sanctuary .aura-sanctuary-moon {
    --aura-moon-size: clamp(230px, 24vw, 370px);
    width: var(--aura-moon-size); top: max(27%, calc(144px + var(--aura-moon-size) / 2));
}
/* ナビの標準ラベルは保ち、装飾の四芒星だけを添える。空の代替文字で読み上げを重複させない。 */
.aura-header .wp-block-navigation-item__content::before { content: "✧" / ""; display: inline-block; margin-inline-end: .45em; font-size: 1.15em; opacity: .85; }
.aura-header-home-shell .wp-block-navigation-item__content::before { color: #b8eee9; }
/* cover標準UIにない彩度・明るさの調整だけを補う。画像・重ね色・文字はブロック設定。 */
.aura-pathways-band .aura-pathway > .wp-block-cover__image-background { filter: saturate(.65) brightness(.78); }
/* JSが位置を計算している間だけ標準の重ね色を薄くする。編集画面と静止時はブロック設定を使う。 */
.aura-pathways-band .aura-pathway[data-aura-scroll-overlay] > .wp-block-cover__background { opacity: var(--aura-pathway-overlay); }
.aura-pathways-band .aura-pathway[data-aura-scroll-overlay] > .wp-block-cover__inner-container { text-shadow: 0 1px 4px #06121e99; }
/* 透過パーツ単独の編集では、白い文字を読める夜色の作業背景を用意する。 */
.editor-styles-wrapper:has(.aura-header-home-shell):not(:has(.aura-light-portal)) { background-color: #111525; }
@media (max-width: 780px) {
    .aura-home .aura-light-portal--sanctuary { padding-top: 352px; }
    .aura-home .aura-light-portal--sanctuary .aura-sanctuary-moon { --aura-moon-size: 205px; top: calc(118px + var(--aura-moon-size) / 2); }
    body.home:has(.aura-home-header) .aura-light-portal--sanctuary > .aura-sanctuary-scene::after {
        background: linear-gradient(180deg, #081121a6 0px, #08112130 60px, transparent 120px),
            linear-gradient(0deg, #111525ff 0%, #111525f7 1%, #111525e6 2%, #111525c4 3%, #11152595 4%, #1115256e 5%, #11152552 6%, #11152539 7%, #11152526 8%, #1115251a 9%, #11152513 10%, #1115250d 11%, #11152509 12%, #11152505 13%, #11152504 14%, #11152503 15%, #11152502 16%, #11152502 17%, #11152501 18%, #11152501 19%, #11152500 20%, #11152500 21%, #11152500 22%);
    }
}
/* ヘッダーの幅・最低高さ・背景・罫線も標準グループで管理する。 */
.aura-header-brand { min-width: 0; }
.aura-header-brand .wp-block-site-title { overflow-wrap: anywhere; }
.aura-header-cta { flex-shrink: 0; }
.aura-button .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; }
.aura-button .wp-block-button__link:hover { transform: translateY(-2px); }
/* 案内カードの列数・間隔・高さ・焦点・重ね色・影は標準グリッド／カバーで管理。 */
.aura-pathways { position: relative; z-index: 1; }
/* 暗いカバーの見出しはカバーで選んだ文字色を継承する。個別の文字色指定は優先。 */
.aura-pathway--stars :where(h2:not(.has-text-color)) { color: inherit; }
/* 星座カードの配色・余白・文字は標準ブロック、全体リンクは親テーマの既存機能で管理。 */
.aura-zodiac-card { min-width: 0; }
/* 診断紹介は標準カラム・画像・文字設定で編集する。画像上のラベル位置だけを補う。 */
.aura-pickup__art { position: relative; }
.aura-pickup__art .aura-image-tag { position: absolute; top: 22px; left: 22px; width: max-content; max-width: calc(100% - 44px); }
/* 診断紹介の補足文も段落の標準の色・文字サイズ・余白を使う。 */
/* aura紹介の画像・重ね色・文字・余白・配置は標準カバーと子ブロックで管理。 */
.aura-manifesto.wp-block-cover:where(:not(.has-text-color)) { color: inherit; }
/* フッターの配置・配色・文字・余白は標準ブロックで管理。長いサイト名だけ折り返す。 */
.aura-footer .wp-block-site-title { overflow-wrap: anywhere; }
.aura-footer-brand { min-width: 0; }
.aura-footer__copyright { max-width: 100%; }
/* ページ外枠の高さ・余白とタイトル書式はテンプレートの標準属性で管理。 */
/* 標準の文字サイズ・幅を保ち、長いタイトルの最終行だけが1文字になるのを抑える。 */
.aura-page-title { text-wrap: balance; line-break: strict; }
@media (max-width: 760px) {
    /* 標準グリッドに端末別の列数設定がないため、小画面の4列だけ補う。 */
    .aura-zodiac-grid.wp-block-group { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .aura-button .wp-block-button__link:hover { transform: none; }
}

/* 固定ページ本文の標準ブロック用。内容・画像・リンクは各ブロックで編集する。 */
.aura-native-pill .wp-block-button__link, .aura-native-link .wp-block-button__link { display: inline-flex; align-items: center; min-height: 38px; }

/* 診断の幅・枠・影・導入文・周囲の余白は標準ブロックで管理する。 */
/* 外枠で画像とフォームを同じ角丸へ切り抜く。ショートコード側の枠・余白との二重化だけを防ぐ。 */
.aura-diagnosis-panel { overflow: hidden; }
.aura-diagnosis-body .aura-diagnosis { max-width: none; margin: 0; }
/* 光の演出つきの診断は暗い画面を前提に文字色を変えるため、背景・余白・枠を残す（2026-11-17、文字が読めなくなる不具合の修正）。 */
.aura-diagnosis-body .aura-diagnosis:not(.aura-diagnosis--immersive, .aura-diagnosis--story) { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.aura-game-header .wp-block-post-title { margin-block: 0; }
.aura-game-header :is(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-width: 599px) {
    .aura-game-header > .wp-block-navigation { order: 1; }
    .aura-game-header .wp-block-navigation__responsive-container-open { min-width: 44px; min-height: 44px; justify-content: center; }
    .aura-game-header .wp-block-navigation-item__content { display: flex; align-items: center; min-height: 44px; }
}
