/* =========================================================
   Art Kyoso Block — デザイン（静的試作 public/ の v2「夜の舞台」と同じ設計）
   色・文字の基本は theme.json。ここでは「ブロックスタイル」と各部品の見た目を定義する。
   ========================================================= */

:root {
  --ak-night: var(--wp--preset--color--night, #0b0c0f);
  --ak-night-soft: var(--wp--preset--color--night-soft, #101217);
  --ak-night-raise: var(--wp--preset--color--night-raise, #161920);
  --ak-paper: var(--wp--preset--color--paper, #f4f1ea);
  --ak-paper-deep: var(--wp--preset--color--paper-deep, #ebe6dc);
  --ak-gold: var(--wp--preset--color--gold, #c8a96a);
  --ak-gold-deep: var(--wp--preset--color--gold-deep, #7a5d26);
  --ak-shu: var(--wp--preset--color--shu, #d0614a);
  --ak-moss: var(--wp--preset--color--moss, #8faa82);
  --ak-ai: var(--wp--preset--color--ai, #233656);
  --ak-header-h: 80px;
  --ak-space: clamp(64px, 8vw, 112px);
  --ak-ease: cubic-bezier(.22, .61, .36, 1);

  /* 面ごとに切り替わる変数（初期値＝暗い面） */
  --bg: var(--ak-night-soft);
  --surface: rgba(255, 255, 255, .035);
  --fg: #ece8e0;
  --fg-soft: #cfc9bf;
  --muted: #a19c92;
  --line: rgba(236, 232, 224, .14);
  --accent: var(--ak-gold);
  --accent-2: var(--ak-shu);
  --leaf: var(--ak-moss);
}

/* ---- 面（グループのスタイル） ---- */
.is-style-ak-stage, .is-style-ak-stage-deep {
  --bg: var(--ak-night-soft); --surface: rgba(255, 255, 255, .05); --fg: #ece8e0; --fg-soft: #d6d1c7; --muted: #aaa59b; --line: rgba(236, 232, 224, .22);
  --accent: var(--ak-gold); --accent-2: #e08a75; --leaf: #a9c29c;
  background: var(--bg); color: var(--fg);
}
.is-style-ak-stage-deep {
  --bg: var(--ak-night);
  background:
    radial-gradient(ellipse 60% 55% at 78% 20%, rgba(200, 169, 106, .12), transparent 70%),
    radial-gradient(ellipse 45% 60% at 5% 100%, rgba(143, 170, 130, .07), transparent 70%),
    var(--ak-night);
}
.is-style-ak-paper, .is-style-ak-paper-deep {
  --bg: var(--ak-paper); --surface: #fff; --fg: #17181b; --fg-soft: #3f4045; --muted: #66645f; --line: #d9d2c5;
  --accent: var(--ak-gold-deep); --accent-2: #b0412e; --leaf: #56704f;
  background: var(--bg); color: var(--fg);
}
.is-style-ak-paper-deep { --bg: var(--ak-paper-deep); }
.ak-section { padding-top: var(--ak-space); padding-bottom: var(--ak-space); margin-block: 0 !important; position: relative; }
.is-style-ak-paper :where(h1, h2, h3, h4), .is-style-ak-paper-deep :where(h1, h2, h3, h4) { color: var(--fg); }
.ak-main, .wp-site-blocks > * { margin-block-start: 0; }
.ak-main > .wp-block-post-content > * + *, .ak-main > * + * { margin-block-start: 0; }

/* ---- 文字の部品 ---- */
.is-style-ak-eyebrow { display: inline-flex; align-items: center; gap: .9em; font-size: .8125rem; letter-spacing: .22em; color: var(--accent); font-weight: 600; margin-bottom: 0; }
.is-style-ak-eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .8; }
.is-style-ak-lead { font-size: clamp(1rem, .95rem + .3vw, 1.125rem); color: var(--fg-soft); line-height: 2; }
.ak-muted, .ak-section-lead { color: var(--fg-soft); }
.ak-section-head { margin-bottom: clamp(32px, 4vw, 56px) !important; }
.ak-section-head > * { max-width: 780px; }
.ak-section-head h2 { margin-block: .4em .5em; }
.ak-note { font-size: .875rem; color: var(--muted); }
.ak-role { font-size: .8125rem; letter-spacing: .14em; color: var(--accent-2); font-weight: 600; margin-bottom: 0; }
.ak-editor-note { display: none; }
.editor-styles-wrapper .ak-editor-note { display: block; font-size: .8125rem; padding: 10px 14px; border: 1px dashed #c8a96a; background: rgba(200, 169, 106, .1); color: inherit; }
.ak-related-title { font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem) !important; margin-bottom: 24px; }
mark.ak-gold { background: none; color: var(--ak-gold); }

/* 素材タグ：どんな写真・映像が必要かを示す（差し替えたら段落ごと削除） */
.is-style-ak-mtag {
  display: inline-flex; gap: 8px; align-items: center; padding: 5px 10px 5px 6px; margin: 0;
  font-size: .6875rem !important; line-height: 1.5; letter-spacing: .05em; font-weight: 600; color: #121316 !important; background: rgba(200, 169, 106, .94);
  position: relative; z-index: 3; width: fit-content; max-width: 100%;
}
.is-style-ak-mtag::before { content: "素材"; padding: 0 6px; background: #121316; color: #c8a96a; }

/* ---- ボタン ---- */
.wp-block-button__link { transition: background .3s, color .3s, border-color .3s; }
.wp-block-button:not(.is-style-ak-text) .wp-block-button__link::after { content: " →"; }
.is-style-ak-paper .wp-block-button:not(.is-style-outline):not(.is-style-ak-text) .wp-block-button__link,
.is-style-ak-paper-deep .wp-block-button:not(.is-style-outline):not(.is-style-ak-text) .wp-block-button__link { background: #17181b; color: #f4f1ea; }
.is-style-ak-paper .wp-block-button:not(.is-style-outline):not(.is-style-ak-text) .wp-block-button__link:hover,
.is-style-ak-paper-deep .wp-block-button:not(.is-style-outline):not(.is-style-ak-text) .wp-block-button__link:hover { background: var(--ak-ai); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--accent); color: var(--accent); }
.wp-block-button.is-style-ak-text .wp-block-button__link {
  background: none; padding: 0 0 3px; border-radius: 0; color: var(--fg); font-weight: 600; border-bottom: 1px solid var(--accent);
}
.wp-block-button.is-style-ak-text .wp-block-button__link::after { content: " →"; color: var(--accent); }
.wp-block-button.is-style-ak-text .wp-block-button__link:hover { color: var(--accent); }
.wp-block-buttons { gap: 14px 24px; align-items: center; margin-top: 32px; }

/* ---- ヘッダー（テンプレートパーツ） ---- */
.wp-site-blocks > header.wp-block-template-part { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
.ak-header {
  background: #101217; color: #ece8e0; border-bottom: 1px solid rgba(236, 232, 224, .14);
}
.ak-header__inner { min-height: var(--ak-header-h); align-items: center; flex-wrap: nowrap !important; }
.ak-brand { gap: 12px !important; align-items: center; }
.ak-brand__mark { margin: 0 !important; }
.ak-brand__mark img { width: 40px; height: 40px; }
.ak-brand__text { gap: 2px !important; }
.ak-brand__name, .ak-footer__name { font-family: var(--wp--preset--font-family--serif); font-weight: 600; font-size: 1.0625rem !important; letter-spacing: .12em; margin: 0; white-space: nowrap; }
.ak-brand__name a, .ak-footer__name a { text-decoration: none; color: #ece8e0; }
.ak-brand__en { font-size: .625rem !important; letter-spacing: .36em; color: #a19c92; margin: 0 !important; line-height: 1.2; }
.ak-header__nav { gap: 18px !important; align-items: center; }
.ak-header__nav .wp-block-buttons { margin: 0; }
.ak-header__cta .wp-block-button__link { padding: .55rem 1.3rem; font-size: .875rem; }
.ak-header__cta .wp-block-button__link::after { content: none !important; }
.ak-nav a, .ak-nav .wp-block-navigation-item__content { text-decoration: none; color: #ece8e0 !important; }
.ak-nav .wp-block-navigation-item__content:hover { color: var(--ak-gold) !important; text-decoration: underline; text-underline-offset: 6px; }
.ak-nav .wp-block-navigation__submenu-container { background: rgba(16, 18, 23, .97) !important; border: 1px solid rgba(236, 232, 224, .12) !important; padding: 10px; min-width: 260px !important; }
.ak-nav .wp-block-navigation__submenu-container a { padding: 8px 12px !important; }
.ak-nav .wp-block-navigation__responsive-container.is-menu-open { background: rgba(11, 12, 15, .98) !important; color: #ece8e0 !important; }
.ak-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; border: 0 !important; }
.ak-nav .wp-block-navigation__responsive-container-open, .ak-nav .wp-block-navigation__responsive-container-close { color: #ece8e0; }
@media (max-width: 599px) {
  :root { --ak-header-h: 66px; }
  .ak-brand__name { font-size: .9375rem !important; letter-spacing: .06em; }
  .ak-header__cta { display: none; }
}

/* ---- フッター ---- */
.ak-footer { background: var(--ak-night); color: #a19c92; padding-top: clamp(72px, 8vw, 112px); padding-bottom: 36px; border-top: 1px solid rgba(236, 232, 224, .08); font-size: .9375rem; }
.ak-footer a { color: #e3ded5; text-decoration: none; }
.ak-footer a:hover { color: var(--ak-gold); }
.ak-footer__heading { font-family: var(--wp--preset--font-family--serif); color: #f4f1ea; font-weight: 600; letter-spacing: .12em; margin-bottom: 12px; }
.ak-footer__list { list-style: none; padding: 0; font-size: .875rem; display: grid; gap: 8px; }
.ak-footer__bottom { margin-top: 56px !important; padding-top: 24px; border-top: 1px solid rgba(236, 232, 224, .1); }
.ak-footer__tagline { font-family: var(--wp--preset--font-family--serif); letter-spacing: .16em; color: #f4f1ea; margin: 0; }
.ak-footer__copy { margin: 0; letter-spacing: .08em; }

/* ---- トップの舞台（カバー） ---- */
.wp-block-cover.is-style-ak-stage-hero { min-height: 100svh !important; padding-top: calc(var(--ak-header-h) + 40px); padding-bottom: clamp(40px, 6vw, 72px); align-items: flex-end; overflow: hidden; }
.is-style-ak-stage-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 12, 15, .5) 0%, rgba(11, 12, 15, 0) 25%, rgba(11, 12, 15, 0) 42%, rgba(11, 12, 15, .82) 82%, var(--ak-night-soft) 100%);
}
.is-style-ak-stage-hero .wp-block-cover__inner-container { z-index: 2; width: 100%; }
.is-style-ak-stage-hero .ak-particles { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.is-style-ak-stage-hero > .wp-block-cover__inner-container > .is-style-ak-mtag { position: absolute; top: calc(var(--ak-header-h) + 12px); left: 0; }
@media (max-width: 959px) { .wp-block-cover.is-style-ak-stage-hero { padding-top: calc(var(--ak-header-h) + 110px); } }
.ak-hero-cols { align-items: flex-end !important; }
.ak-kicker { font-size: .8125rem; letter-spacing: .3em; color: var(--ak-gold); font-weight: 600; }
.ak-hero-title { font-size: clamp(2rem, 1rem + 4.6vw, 4.5rem) !important; line-height: 1.45; letter-spacing: .1em; color: #f4f1ea; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.ak-hero-name { font-size: clamp(.9375rem, .85rem + .3vw, 1.0625rem); letter-spacing: .12em; }
.ak-hero-lead { color: #cfc9bf; max-width: 600px; }
.ak-hero-vertical { display: none; }
@media (min-width: 960px) {
  .ak-hero-cols > .wp-block-column:last-child { flex: 0 0 auto !important; }
  .ak-hero-vertical {
    display: block; writing-mode: vertical-rl; font-family: var(--wp--preset--font-family--serif); font-weight: 600;
    font-size: clamp(2.5rem, 1.2rem + 2.4vw, 4rem) !important; line-height: 1.6; letter-spacing: .2em; color: #f4f1ea; text-shadow: 0 2px 40px rgba(0, 0, 0, .55); margin-left: auto;
  }
  /* PCでは縦書きを見せ、横書きの h1 は読み上げ用に残す */
  .ak-hero-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.ak-entries-title { font-size: .8125rem; letter-spacing: .24em; color: #a19c92; font-weight: 600; margin-top: clamp(40px, 6vw, 64px) !important; }

/* 依頼の入口カード */
.ak-entry-cards { gap: 1px !important; background: rgba(236, 232, 224, .12); border: 1px solid rgba(236, 232, 224, .12); margin-top: 12px !important; }
.ak-entry-cards > .wp-block-column { display: flex; }
.is-style-ak-entry {
  --tone: var(--ak-gold);
  position: relative; flex: 1; padding: 24px !important; background: rgba(11, 12, 15, .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .35s; color: #ece8e0;
}
.is-style-ak-entry::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--tone); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ak-ease); }
.is-style-ak-entry:hover { background: rgba(22, 25, 32, .92); }
.is-style-ak-entry:hover::before { transform: scaleX(1); }
.is-style-ak-entry > * { margin-block: 0 !important; }
.is-style-ak-entry .ak-icon { margin-bottom: 14px !important; }
.is-style-ak-entry h3 { font-size: 1.0625rem !important; letter-spacing: .06em; }
.is-style-ak-entry h3 a { text-decoration: none; color: #ece8e0; }
.is-style-ak-entry h3 a::after { content: ""; position: absolute; inset: 0; }
.is-style-ak-entry p { font-size: .8125rem; color: #a19c92; line-height: 1.6; margin-top: 4px !important; }
.ak-tone-kado { --tone: var(--ak-moss); }
.ak-tone-music { --tone: #93a8c8; }
.ak-tone-live { --tone: var(--ak-shu); }
.ak-tone-event { --tone: var(--ak-gold); }
.ak-tone-collab { --tone: #b49ccf; }
.ak-tone-edu { --tone: #d3b46e; }

/* 6つの事業 */
.ak-service-grid > * + * { margin-top: 0 !important; }
.is-style-ak-grid-lines { gap: 0 !important; border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin: 0 !important; }
.is-style-ak-grid-lines + .is-style-ak-grid-lines { border-top: 0; }
.is-style-ak-grid-lines > .wp-block-column { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; }
.ak-service { position: relative; flex: 1; padding: clamp(30px, 3vw, 44px) !important; transition: background .35s; }
.ak-service:hover { background: rgba(255, 255, 255, .04); }
.ak-service > * { margin-block: 0 0 10px !important; }
.ak-service__no { position: absolute; top: 24px; right: 28px; font-family: var(--wp--preset--font-family--serif); font-size: .875rem; color: var(--muted); letter-spacing: .14em; }
.ak-service h3 a { text-decoration: none; color: var(--fg); }
.ak-service h3 a::after { content: ""; position: absolute; inset: 0; }
.ak-service h3 a:hover { color: var(--tone); }
.ak-service__catch { font-family: var(--wp--preset--font-family--serif); color: var(--tone); font-size: .9375rem; }
.ak-service p:last-child { font-size: .9063rem; color: var(--fg-soft); }

/* 写真・映像の差し替え枠 */
.wp-block-cover.is-style-ak-media-slot { background: var(--ak-night-raise); align-items: flex-start; justify-content: flex-start; padding: 12px; }
.is-style-ak-media-slot .wp-block-cover__image-background { object-fit: cover; }
.is-style-ak-media-slot::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(236, 232, 224, .1); pointer-events: none; z-index: 2; }

/* 紹介（2列）・理念の柱・カード */
.ak-feature, .ak-point, .ak-intro, .ak-updates, .ak-page-hero__cols { gap: clamp(36px, 5vw, 88px) !important; align-items: center !important; }
.ak-updates, .ak-point { align-items: flex-start !important; }
.ak-pillars { gap: clamp(32px, 4vw, 56px) !important; }
.ak-pillar { border-top: 1px solid var(--line); padding-top: 26px; position: relative; height: 100%; }
.ak-pillar::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--accent); }
.ak-pillar__no { font-family: var(--wp--preset--font-family--serif); font-size: .875rem; letter-spacing: .16em; color: var(--accent); margin: 0; }
.ak-pillar p:last-child { color: var(--fg-soft); font-size: .9375rem; }
.ak-cards > * + *, .ak-scenes > * + * { margin-top: 20px !important; }
.ak-cards .wp-block-columns, .ak-scenes .wp-block-columns { gap: 20px !important; margin: 0 !important; }
.ak-cards .wp-block-column, .ak-scenes .wp-block-column, .ak-members .wp-block-column { display: flex; flex-direction: column; }
.is-style-ak-card { flex: 1; background: var(--surface); border: 1px solid var(--line); padding: 32px !important; transition: border-color .3s; }
.is-style-ak-card:hover { border-color: var(--accent); }
.is-style-ak-card > * { margin-block: 0 0 12px !important; }
.is-style-ak-card h3 { font-size: 1.1875rem !important; }
.is-style-ak-card p { font-size: .9375rem; color: var(--fg-soft); }
.ak-scenes h3 { display: flex; align-items: center; gap: 12px; font-size: 1.0625rem !important; }
.ak-scenes h3::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); flex: none; }

/* リスト */
.is-style-ak-check { list-style: none; padding: 0; display: grid; gap: 12px; }
.is-style-ak-check li { position: relative; padding-left: 30px; }
.is-style-ak-check li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 12px; height: 6px; border-left: 1.5px solid var(--accent-2); border-bottom: 1.5px solid var(--accent-2); transform: translateY(-50%) rotate(-45deg); }
@media (min-width: 720px) { .ak-section .is-style-ak-check:not(.ak-steps--compact) { grid-template-columns: 1fr 1fr; gap: 12px 36px; } .ak-point .is-style-ak-check { grid-template-columns: 1fr; } }
.is-style-ak-steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 0; }
.is-style-ak-steps > li { counter-increment: step; position: relative; padding: 0 0 32px 68px; color: var(--fg-soft); font-size: .9375rem; }
.is-style-ak-steps > li strong { display: inline-block; font-family: var(--wp--preset--font-family--serif); font-size: 1.0625rem; color: var(--fg); margin-bottom: 6px; }
.is-style-ak-steps > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--wp--preset--font-family--serif); color: var(--accent); border: 1px solid var(--accent); background: var(--bg);
}
.is-style-ak-steps > li::after { content: ""; position: absolute; left: 23px; top: 54px; bottom: 8px; width: 1px; background: var(--line); }
.is-style-ak-steps > li:last-child::after { display: none; }
@media (min-width: 960px) {
  .is-style-ak-steps:not(.ak-steps--compact) { grid-template-columns: repeat(5, 1fr); gap: 0 24px; }
  .is-style-ak-steps:not(.ak-steps--compact) > li { padding: 70px 0 0; }
  .is-style-ak-steps:not(.ak-steps--compact) > li::after { left: 54px; right: -24px; top: 23px; bottom: auto; width: auto; height: 1px; }
}
.ak-steps--compact > li { padding: 4px 0 14px 56px; }
.ak-steps--compact > li::before { width: 36px; height: 36px; font-size: .875rem; }
.ak-steps--compact > li::after { display: none; }
.ak-facts { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.ak-facts li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; color: var(--fg-soft); }
.ak-facts strong { color: var(--accent); margin-right: .5em; }

/* よくある質問 */
.wp-block-details.is-style-ak-faq { background: var(--surface); border: 1px solid var(--line); padding: 0; margin-block: 0 12px !important; }
.is-style-ak-faq summary { list-style: none; cursor: pointer; padding: 20px 56px; position: relative; font-weight: 600; color: var(--fg); }
.is-style-ak-faq summary::-webkit-details-marker { display: none; }
.is-style-ak-faq summary::before { content: "Q"; position: absolute; left: 22px; top: 18px; font-family: var(--wp--preset--font-family--serif); color: var(--accent); font-size: 1.125rem; }
.is-style-ak-faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.is-style-ak-faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.is-style-ak-faq > p { padding: 0 24px 22px 56px; margin: 0; color: var(--fg-soft); font-size: .9375rem; position: relative; }
.is-style-ak-faq > p::before { content: "A"; position: absolute; left: 22px; top: -2px; font-family: var(--wp--preset--font-family--serif); color: var(--accent-2); font-size: 1.125rem; }
.ak-faq-group + .ak-faq-group { margin-top: 64px !important; }
.ak-faq-group__title { font-size: 1.3125rem !important; margin-bottom: 22px !important; }

/* お知らせ枠・表・お知らせ一覧 */
.is-style-ak-notice { border: 1px solid var(--line); border-left: 2px solid var(--accent-2); background: var(--surface); padding: 18px 22px !important; color: var(--fg-soft); font-size: .9375rem; }
.ak-info-table table { border-collapse: collapse; width: 100%; }
.ak-info-table th, .ak-info-table td { border: 0; border-bottom: 1px solid var(--line); padding: 18px 0; text-align: left; vertical-align: top; }
.ak-info-table th { width: 200px; font-weight: 600; padding-right: 24px; }
.ak-info-table td { color: var(--fg-soft); }
@media (max-width: 719px) { .ak-info-table th, .ak-info-table td { display: block; width: auto; } .ak-info-table th { border-bottom: 0; padding-bottom: 0; } }
.ak-news-row { gap: 6px 24px !important; padding: 16px 0; border-bottom: 1px solid var(--line); justify-content: flex-start !important; }
.ak-news-row .wp-block-post-date { color: var(--muted); font-size: .875rem; min-width: 8em; }
.ak-news-row .wp-block-post-title { font-size: 1rem !important; margin: 0; }
.ak-news-row a { text-decoration: none; }
.ak-empty { padding: 26px; border: 1px dashed var(--line); color: var(--muted); font-size: .9375rem; }

/* ページの見出し・CTA帯 */
.ak-page-hero { padding-top: calc(var(--ak-header-h) + clamp(72px, 9vw, 120px)); padding-bottom: clamp(64px, 8vw, 112px); }
.ak-page-hero h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem) !important; line-height: 1.4; color: #f4f1ea; }
.ak-cta-band { overflow: hidden; }
.ak-cta { align-items: center !important; position: relative; }
.ak-cta .wp-block-buttons { flex-direction: column; align-items: flex-start; }
@media (min-width: 782px) { .ak-cta > .wp-block-column:last-child { flex: 0 0 auto !important; } }

/* いけばなライブ帯：背景の音の輪 */
.ak-live-band { background-image: url("../images/live-band.svg"), radial-gradient(ellipse 60% 55% at 78% 20%, rgba(200, 169, 106, .10), transparent 70%); background-size: cover; background-position: center; }

/* ---- 動き ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .ak-particles { display: none; }
}

/* ---- 調整：ヒーローの幅揃え・縦書きサイズ・モバイル ---- */
.is-style-ak-stage-hero .wp-block-cover__inner-container > * { max-width: 1240px; margin-left: auto !important; margin-right: auto !important; }
.is-style-ak-stage-hero > .wp-block-cover__inner-container > .is-style-ak-mtag { left: max(0px, calc((100% - 1240px) / 2)); }
.wp-block-cover.is-style-ak-stage-hero { padding-top: calc(var(--ak-header-h) + 24px); }
.ak-hero-cols { margin-bottom: 0 !important; }
.ak-hero-cols p { margin-block: 0 0 .9em; }
@media (min-width: 960px) { .ak-hero-vertical { font-size: clamp(2.25rem, 1rem + 2vw, 3.25rem) !important; line-height: 1.55; } }
.ak-brand__mark { flex: none; }
@media (max-width: 959px) {
  .wp-block-cover.is-style-ak-stage-hero { padding-top: calc(var(--ak-header-h) + 32px); }
  .is-style-ak-stage-hero > .wp-block-cover__inner-container > .is-style-ak-mtag { position: static; margin-bottom: 18px !important; margin-left: 0 !important; }
  .ak-hero-title { font-size: clamp(1.75rem, 1rem + 4vw, 2.5rem) !important; }
}
@media (max-width: 599px) { .ak-header__cta { display: none !important; } }
/* 内側の容器を全幅にし、下端のグラデーションより手前に置く（「コンテンツの位置」を左下にした場合も同じ） */
.wp-block-cover.is-style-ak-stage-hero .wp-block-cover__inner-container { width: 100% !important; margin: 0 !important; z-index: 2 !important; position: relative; }

/* ---- サイト上部の注記（全ページ）：法人設立準備中・公式サイト制作中 ---- */
.wp-site-blocks > header .ak-site-notice {
  margin: 0 !important; padding: 4px 16px; text-align: center; font-size: .6875rem; line-height: 1.5; letter-spacing: .12em;
  color: rgba(236, 232, 224, .82); background: rgba(7, 8, 12, .9); border-bottom: 1px solid rgba(236, 232, 224, .1);
}
.ak-page-hero { padding-top: calc(var(--ak-header-h) + 26px + clamp(72px, 9vw, 120px)); }

/* =========================================================
   共創プラットフォーム版の部品（2026-11-04）
   ========================================================= */
/* 明るい面でもリンクとホバーが読めるように（theme.json の金のホバーは明るい面で薄い） */
.is-style-ak-paper a:not(.wp-block-button__link):hover, .is-style-ak-paper-deep a:not(.wp-block-button__link):hover { color: var(--accent); }
.is-style-ak-paper .wp-block-button.is-style-outline .wp-block-button__link:hover, .is-style-ak-paper-deep .wp-block-button.is-style-outline .wp-block-button__link:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.is-style-ak-paper .wp-block-button.is-style-outline .wp-block-button__link, .is-style-ak-paper-deep .wp-block-button.is-style-outline .wp-block-button__link { border-color: #8c867b; }
.is-style-ak-stage .wp-block-button.is-style-outline .wp-block-button__link, .is-style-ak-stage-deep .wp-block-button.is-style-outline .wp-block-button__link { border-color: rgba(236, 232, 224, .5); }
.is-style-ak-paper .is-style-ak-eyebrow, .is-style-ak-paper-deep .is-style-ak-eyebrow { color: var(--accent); }
.is-style-ak-paper-deep { --line: #cfc7b8; }
h2, .wp-block-heading { overflow-wrap: anywhere; }
.wp-block-post-content h2:not([class*="ak-"]) { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
.ak-section h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
.ak-page-hero__cols > .wp-block-column > * + * { margin-block-start: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 状態の目印：現在／構想・準備中／将来 */
.ak-status-row { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-block-end: 14px !important; }
.ak-status { display: inline-block; width: fit-content; margin: 0 !important; padding: 2px 10px; font-size: .75rem !important; line-height: 1.7; font-weight: 600; letter-spacing: .06em; border: 1px solid currentColor; }
.ak-status--now { color: var(--leaf); }
.ak-status--prep { color: var(--accent); }
.ak-status--future { color: var(--muted); border-style: dashed; }
.is-style-ak-paper .ak-status--now, .is-style-ak-paper-deep .ak-status--now { color: #2f5e3a; }
.is-style-ak-paper .ak-status--prep, .is-style-ak-paper-deep .ak-status--prep { color: #6b4f1c; }
.is-style-ak-paper .ak-status--future, .is-style-ak-paper-deep .ak-status--future { color: #57554f; }

/* カード列 */
.ak-grid { gap: 20px !important; align-items: stretch; }
.ak-grid > .is-style-ak-card { height: 100%; margin: 0 !important; display: flex; flex-direction: column; }
.ak-grid > .is-style-ak-card > .wp-block-buttons { margin-top: auto; padding-top: 8px; }
.is-style-ak-card { padding: clamp(22px, 2.4vw, 30px) !important; }
.is-style-ak-card:hover { border-color: var(--line); }
.is-style-ak-card h3 { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem) !important; line-height: 1.6; }
.is-style-ak-card p { color: var(--fg-soft); }
.is-style-ak-card p strong { color: var(--fg); font-size: 1.0625rem; }
.is-style-ak-paper-deep .is-style-ak-card { background: #fbfaf6; }
.ak-section > .wp-block-buttons { margin-top: clamp(28px, 3vw, 40px); }

/* トップのファーストビュー */
.ak-home-hero { padding-top: calc(var(--ak-header-h) + 26px + clamp(36px, 5vw, 64px)); padding-bottom: clamp(36px, 5vw, 64px); }
.ak-home-hero__head { margin-bottom: clamp(28px, 3.4vw, 44px) !important; }
.ak-home-hero__head > * { margin-block: 0 !important; }
.ak-home-hero .ak-kicker { letter-spacing: .14em; font-size: .875rem; }
.ak-home-title { font-size: clamp(1.75rem, 1.05rem + 3vw, 3.25rem) !important; line-height: 1.45 !important; letter-spacing: .05em; color: #f4f1ea; margin-block: .5em !important; }
.ak-home-lead { color: #dcd7cd; max-width: 780px; font-size: clamp(.9688rem, .92rem + .25vw, 1.0625rem); line-height: 1.95; }
.ak-doors { gap: 16px !important; margin-bottom: 0 !important; }
.ak-doors > .wp-block-column { display: flex; }
.ak-door { flex: 1; display: flex; flex-direction: column; padding: clamp(20px, 2.4vw, 30px) !important; background: rgba(255, 255, 255, .06); border: 1px solid rgba(236, 232, 224, .28); }
.ak-door > * { margin-block: 0 !important; }
.ak-door__who { font-size: .8125rem; color: #dcc28a; font-weight: 600; letter-spacing: .04em; }
.ak-door__title { font-size: clamp(1.1875rem, 1.05rem + .7vw, 1.5rem) !important; color: #f4f1ea; margin-block: .35em !important; line-height: 1.5; }
.ak-door__text { font-size: .9063rem; color: #d6d1c7; line-height: 1.8; }
.ak-door .wp-block-buttons { margin-top: auto !important; padding-top: 16px; }
.ak-support-link { margin-block: 18px 0 !important; font-size: .9063rem; color: #d6d1c7; }
.ak-support-link a { color: #f4f1ea; text-underline-offset: 4px; }

/* 理念 */
.ak-philosophy { margin-top: clamp(36px, 4vw, 56px) !important; padding: clamp(22px, 3vw, 36px) !important; border-left: 2px solid var(--accent); background: var(--ak-paper-deep); }
.ak-philosophy > * { margin-block: 0 !important; }
.ak-philosophy__line { font-family: var(--wp--preset--font-family--serif); font-weight: 600; font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); margin-bottom: .6em !important; }

/* 分野 */
.ak-genres__row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; padding-block: 16px; border-top: 1px solid var(--line); margin: 0 !important; }
.ak-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.ak-chips li { padding: 5px 16px; border: 1px solid var(--line); background: var(--surface); font-size: .9375rem; line-height: 1.6; }
.ak-chips--now li { font-weight: 700; border-color: #2f5e3a; }
.ak-genres .ak-note { margin-top: 8px; }

/* 現在・準備中・将来 */
.ak-roadmap { gap: clamp(24px, 3vw, 44px) !important; }
.ak-roadmap > .wp-block-column { border-top: 2px solid var(--line); padding-top: 18px; }
.ak-roadmap h3 { font-size: 1.125rem !important; margin-block: .7em .6em; }
.ak-check--one { grid-template-columns: 1fr !important; gap: 8px !important; font-size: .9375rem; }

/* いけばなライブの写真枠 */
.ak-feature-media { min-height: 0 !important; aspect-ratio: 16 / 10; width: 100%; background-size: cover; }
.ak-feature-media img { object-fit: cover; }

/* 本文の入れ子の余白 */
.ak-closing .wp-block-buttons { margin-top: 0; }
.ak-members img { display: block; }
#support { scroll-margin-top: calc(var(--ak-header-h) + 40px); }

/* フッター */
.ak-footer__cols { gap: 32px !important; }
.ak-footer .ak-muted { color: #c9c4ba; font-size: .875rem; }
.ak-footer { color: #c9c4ba; }

/* スマホ：余白を詰め、ボタンを押しやすく */
@media (max-width: 599px) {
  .ak-section .wp-block-buttons:not(.ak-header__cta) .wp-block-button { width: 100%; }
  .ak-section .wp-block-button:not(.is-style-ak-text) .wp-block-button__link { display: block; text-align: center; }
  .ak-nav .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
}

/* ヘッダーのサブメニュー：WordPress 標準の黒文字が濃い背景に残らないようにする（2026-11-04 修正）。サブメニューを追加しても読める */
.ak-nav .wp-block-navigation__submenu-container,
.ak-nav .wp-block-navigation__submenu-container a,
.ak-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__label { color: #ece8e0 !important; }
.ak-nav .wp-block-navigation__submenu-container a:hover,
.ak-nav .wp-block-navigation__submenu-container a:hover .wp-block-navigation-item__label { color: var(--ak-gold) !important; }
.ak-nav .wp-block-navigation__submenu-icon svg { stroke: currentColor; }
.ak-cards { display: grid; gap: 20px; }
.ak-cards > * + * { margin-top: 0 !important; }
@media (max-width: 599px) {
  .ak-home-title { font-size: clamp(1.25rem, 6vw, 1.75rem) !important; letter-spacing: .02em; }
}
.ak-nav .wp-block-navigation__responsive-container.is-menu-open { background: #0b0c0f !important; }
.ak-nav .ak-nav__contact { display: none; }
.ak-nav .is-menu-open .ak-nav__contact { display: block; }
@media (max-width: 599px) {
  .ak-door__title { font-size: 1.125rem !important; letter-spacing: .02em; }
}

/* ---- 文章見直し版（2026-11-04）---- */
.ak-section > .ak-note { margin-top: 18px; }
.ak-genres__row { gap: 10px 18px; }
.ak-genres__label { margin: 0 !important; font-weight: 600; font-size: .9375rem; min-width: 12em; }
.ak-chips--now li { border-color: var(--fg); }
.ak-members h2 { font-size: 1.5rem !important; margin-block: .2em .3em; }
.ak-section-head { margin-bottom: clamp(24px, 3vw, 40px) !important; }
.is-style-ak-card .is-style-ak-check { font-size: .9375rem; margin-block: 4px 12px !important; }
.is-style-ak-card .is-style-ak-check li { color: var(--fg-soft); }
.ak-grid > .is-style-ak-card > * { margin-block: 0 0 12px !important; }
.ak-home-hero .ak-kicker { color: #dcc28a; letter-spacing: .24em; font-size: .8125rem; }
/* ヘッダー：ボタンなしで、4項目を読みやすく。幅が狭いときは折り返さず詰める */
.ak-nav { font-size: .9375rem; }
.ak-nav .wp-block-navigation__container { gap: 28px; }
@media (max-width: 1024px) {
  .ak-nav { font-size: .8125rem; letter-spacing: .02em; }
  .ak-nav .wp-block-navigation__container { gap: 16px; }
  .ak-brand__en { display: none; }
  .ak-brand__name { font-size: .9375rem !important; letter-spacing: .04em; }
}
.ak-nav .wp-block-navigation-item__content { white-space: nowrap; }
.ak-nav .is-menu-open .wp-block-navigation-item__content { white-space: normal; font-size: 1.0625rem; }
.is-style-ak-card h3, .ak-door__title, .ak-section h2 { text-wrap: balance; }
