/* 藤が丘デザインの黄と黒と青。CMSの標準の部品へ当てるサイト専用CSS（値は旧サイトの計算済みスタイルと custom.css から）。 */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');
.site-scope { --yellow: #f0b400; --ink: #0a0a0a; --text: #1a1a1a; --gray: #555555; --blue: #006db0; --navy: #004f92; --cream: #f5f0eb; --red: #ff3c00; --display: 'Bebas Neue', sans-serif; --body: 'Noto Sans JP', sans-serif; --dots: radial-gradient(circle, rgba(0,0,0,.07) 1px, transparent 1px); --edge: 64px; background: #fff; color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.8; }
.site-scope main { padding: 0; }
.site-scope a { text-decoration: none; }

/* ヘッダー */
.site-scope .site-header { position: sticky; top: 0; z-index: 200; display: flex; align-items: center; gap: 2rem; min-height: 0; padding: 20px var(--edge); background: var(--yellow) var(--dots) 0 0 / 18px 18px; border: 0; border-bottom: 1px solid rgba(0,0,0,.1); box-shadow: none; }
.site-scope .brand { display: flex; align-items: center; gap: .75rem; margin-right: auto; }
.site-scope .brand-logo { display: block; width: auto; height: 104px; }
.site-scope .brand::after { content: "藤が丘デザイン"; color: var(--text); font-size: 1rem; font-weight: 700; white-space: nowrap; }
.site-scope .brand small { display: none; }
.site-scope .site-nav { background: transparent; }
.site-scope .site-nav .nav-tree { align-items: center; gap: 2.25rem; }
.site-scope .site-nav a, .site-scope .site-nav .nav-item > a { padding: 0 0 2px; min-height: 0; background: transparent; color: var(--text); font-size: .95rem; font-weight: 700; letter-spacing: .05em; border-bottom: 2px solid transparent; }
.site-scope .site-nav .nav-tree > .nav-item:last-child > a { padding: .6rem 1.4rem; border: 1px solid rgba(0,0,0,.45); }
.site-scope .nav-toggle { border: 0; background: transparent; }
.site-scope .nav-toggle span { background: var(--ink); }

/* セクション共通 */
.site-scope .section { position: relative; padding: 5rem 0; background: #fff; color: var(--text); }
.site-scope .section-inner { width: min(800px, calc(100% - 2 * var(--edge))); max-width: none; margin: 0 auto; }
.site-scope .section > .section-inner > h2, .site-scope .article-section .post-body > h2:first-child { margin: 0 0 1.5rem; padding: 0; border: 0; color: var(--text); font-family: var(--display); font-size: 56px; font-weight: 400; line-height: 1.1; }
.site-scope .section > .section-inner > h2::before { display: none; }
.site-scope .section > .section-inner > h2:empty { display: none; }
.site-scope .article-section, .site-scope .article-section article { width: auto; max-width: none; margin: 0; padding: 0; }
.site-scope .section .section-inner.article-section { width: min(800px, calc(100% - 2 * var(--edge))); margin: 0 auto; }
.site-scope .section p { color: #444; line-height: 1.9; }
.site-scope .section img { max-width: 100%; height: auto; }
.site-scope .section table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; }
.site-scope .section td, .site-scope .section th { padding: 12px 24px 12px 0; border: 0; border-bottom: 1px solid rgba(0,0,0,.12); background: transparent; text-align: left; vertical-align: top; }
.site-scope .button, .site-scope .button--light { display: inline-block; padding: 16px 40px; border: 0; border-radius: 0; background: var(--ink); box-shadow: none; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1.95px; }

/* ページ上部の帯 */
.site-scope .section--hero { padding: 0; background: var(--ink); }
.site-scope .section .hero-inner { width: auto; max-width: none; padding: 1rem var(--edge) 80px; }
.site-scope .hero--cover .hero-inner { min-height: 0; align-items: start; }
.site-scope .hero--cover .hero-image { max-height: none; filter: none; opacity: .45; border-radius: 0; box-shadow: none; }
.site-scope .hero--cover .hero-content { max-width: 1100px; }
.site-scope .hero--cover .eyebrow { margin: 0 0 24px; color: var(--accent, var(--yellow)); font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; }
.site-scope .hero--cover h1 { margin: 0 0 32px; color: #fff; font-family: var(--display); font-size: clamp(4rem, 12vw, 153.6px); font-weight: 400; letter-spacing: -.01em; line-height: 1; }
.site-scope .hero--cover .hero-copy { max-width: 440px; margin: 0; color: rgba(255,255,255,.65); font-size: 1rem; line-height: 1.9; white-space: pre-line; }
.site-scope #hero h1 { max-width: 4em; }
.site-scope .hero--cover .hero-image { object-position: 50% 65%; }

/* トップの帯。6枚の写真が順に切り替わる */
.site-scope #home-hero .hero-inner { position: relative; z-index: 1; min-height: 655px; padding: 0 var(--edge) 48px; align-items: end; }
.site-scope #home-hero .hero-image { display: none; }
.site-scope #home-hero::before { content: ""; position: absolute; inset: 0; background: center / cover no-repeat url('/wp-content/uploads/theme/hero-slide-1.webp'); opacity: .38; animation: fd-slides 30s infinite; }
@keyframes fd-slides {
  0%, 15% { background-image: url('/wp-content/uploads/theme/hero-slide-1.webp'); }
  17%, 32% { background-image: url('/wp-content/uploads/theme/hero-slide-2.webp'); }
  34%, 49% { background-image: url('/wp-content/uploads/theme/hero-slide-3.webp'); }
  51%, 65% { background-image: url('/wp-content/uploads/theme/hero-slide-4.webp'); }
  67%, 82% { background-image: url('/wp-content/uploads/theme/hero-slide-5.webp'); }
  84%, 98% { background-image: url('/wp-content/uploads/theme/hero-slide-6.webp'); }
}
.site-scope #home-hero .hero-content { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 32px; max-width: none; }
.site-scope #home-hero .eyebrow, .site-scope #home-hero h1 { grid-column: 1 / -1; }
.site-scope #home-hero h1 { max-width: none; margin: 0 0 48px; font-size: clamp(5rem, 14vw, 179.2px); line-height: .92; word-spacing: 100vw; background: linear-gradient(#fff 66.6%, var(--blue) 66.6%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-scope #home-hero .hero-copy { max-width: none; color: rgba(255,255,255,.75); font-size: 17px; }
.site-scope #home-hero .button { justify-self: start; background: var(--yellow); color: #fff; }

/* 流れる文字帯 */
.site-scope #home-marquee { padding: 14px 0; overflow: hidden; background: #1a1a1a; }
.site-scope #home-marquee .section-inner { width: auto; margin: 0; }
.site-scope #home-marquee p { display: flex; gap: 0; width: max-content; margin: 0; color: rgba(255,255,255,.4); white-space: nowrap; word-spacing: 0; animation: fd-marquee 40s linear infinite; }
.site-scope #home-marquee a { padding: 0 40px; color: #fff; font-family: var(--display); font-size: 18px; letter-spacing: 2.16px; }
@keyframes fd-marquee { to { transform: translateX(-50%); } }

/* 黄色の面 */
.site-scope #home-services, .site-scope #company-services, .site-scope #home-studio, .site-scope #home-portfolio, .site-scope #company-mission, .site-scope #company-future, .site-scope #company-ai, .site-scope #company-profile, .site-scope #company-access { background: var(--yellow); }
.site-scope #home-services .section-inner, .site-scope #company-services .section-inner, .site-scope #home-studio .section-inner, .site-scope #home-works .section-inner, .site-scope #home-news .section-inner, .site-scope #home-portfolio .section-inner, .site-scope .news-page .section-inner { width: min(1100px, calc(100% - 2 * var(--edge))); }

/* サービスのカード */
.site-scope #home-services, .site-scope #company-services { padding: 128px 0; }
.site-scope #home-services .section-inner > h2, .site-scope #company-services .section-inner > h2 { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 3rem; color: var(--ink); font-size: 102.4px; }
.site-scope #home-services .section-inner > h2::after, .site-scope #company-services .section-inner > h2::after { content: "私たちのサービス"; color: var(--text); font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: 2.6px; }
.site-scope #home-services .feature-grid, .site-scope #company-services .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; counter-reset: fd-card; }
.site-scope #home-services .feature-card, .site-scope #company-services .feature-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; padding: 24px; overflow: hidden; border: 0; border-radius: 0; background: var(--ink); counter-increment: fd-card; }
.site-scope #home-services .feature-card::before, .site-scope #company-services .feature-card::before { content: counter(fd-card, decimal-leading-zero); position: absolute; top: 12px; right: 20px; z-index: 1; color: rgba(255,255,255,.12); font-family: var(--display); font-size: 56px; line-height: 1; }
.site-scope #home-services .feature-card::after, .site-scope #company-services .feature-card::after { content: "→"; position: absolute; right: 24px; bottom: 16px; z-index: 1; color: rgba(255,255,255,.35); font-size: 18px; }
.site-scope #home-services .feature-card:nth-child(1) h3::before, .site-scope #company-services .feature-card:nth-child(1) h3::before { content: "Website"; }
.site-scope #home-services .feature-card:nth-child(2) h3::before, .site-scope #company-services .feature-card:nth-child(2) h3::before { content: "Movie"; }
.site-scope #home-services .feature-card:nth-child(3) h3::before, .site-scope #company-services .feature-card:nth-child(3) h3::before { content: "Broadcasting"; }
.site-scope #home-services .feature-card:nth-child(4) h3::before, .site-scope #company-services .feature-card:nth-child(4) h3::before { content: "Photo"; }
.site-scope #home-services .feature-card:nth-child(5) h3::before, .site-scope #company-services .feature-card:nth-child(5) h3::before { content: "Print"; }
.site-scope #home-services .feature-card:nth-child(6) h3::before, .site-scope #company-services .feature-card:nth-child(6) h3::before { content: "Branding"; }
.site-scope #home-services .feature-card:nth-child(7) h3::before, .site-scope #company-services .feature-card:nth-child(7) h3::before { content: "Event"; }
.site-scope #home-services .feature-card:nth-child(8) h3::before, .site-scope #company-services .feature-card:nth-child(8) h3::before { content: "App"; }
.site-scope #home-services .feature-card h3::before, .site-scope #company-services .feature-card h3::before { display: block; margin-bottom: 3px; color: var(--yellow); font-family: var(--display); font-size: 9px; font-weight: 400; letter-spacing: 2.34px; text-transform: uppercase; }
.site-scope #home-services .feature-icon, .site-scope #company-services .feature-icon, .site-scope #home-portfolio .feature-icon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.site-scope #home-services .feature-card h3, .site-scope #company-services .feature-card h3 { position: relative; z-index: 1; margin: 0 0 4px; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .16px; }
.site-scope #home-services .feature-card p, .site-scope #company-services .feature-card p { position: relative; z-index: 1; margin: 0; padding-right: 24px; color: rgba(255,255,255,.75); font-size: 11px; line-height: 1.7; }
.site-scope .feature-card h3 a { color: inherit; }
/* カード全体を押せるようにする */
.site-scope #home-services .feature-card h3 a::after, .site-scope #company-services .feature-card h3 a::after, .site-scope #home-portfolio .feature-card h3 a::after { content: ""; position: absolute; inset: -100vh; }

/* カテゴリーのカード */
.site-scope #home-portfolio { padding: 48px 0; }
.site-scope #home-portfolio .section-inner > h2 { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; color: var(--ink); font-size: 44px; font-weight: 700; }
.site-scope #home-portfolio .section-inner > h2::after { content: "制作実績"; color: var(--text); font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: 2.4px; }
.site-scope #home-portfolio .feature-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.site-scope #home-portfolio .feature-card { position: relative; display: flex; flex-direction: column; aspect-ratio: 1; min-height: 0; padding: 22px 24px; overflow: hidden; border: 0; border-radius: 0; background: var(--ink); justify-content: center; }
.site-scope #home-portfolio .feature-card::after { content: "→"; position: relative; z-index: 1; order: 3; margin-top: 12px; color: rgba(255,255,255,.4); font-size: 12px; }
.site-scope #home-portfolio .feature-card h3 { position: relative; z-index: 1; order: 1; margin: 0; color: var(--yellow); font-size: 15px; font-weight: 700; }
.site-scope #home-portfolio .feature-card p { position: relative; z-index: 1; order: 0; margin: 0 0 2px; color: rgba(255,255,255,.55); font-family: var(--display); font-size: 10px; letter-spacing: 2.2px; text-transform: uppercase; }
.site-scope #home-portfolio .feature-count { position: relative; z-index: 1; order: 2; margin-top: 8px; color: #fff; font-family: var(--display); font-size: 48px; font-weight: 400; line-height: 1; }
.site-scope #home-portfolio .feature-count small { margin-left: 2px; color: rgba(255,255,255,.6); font-family: var(--body); font-size: 12px; }

/* スタジオ紹介 */
.site-scope #home-studio { padding: 128px 0; background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.018) 0 2px, transparent 2px 7px); }
.site-scope #home-studio .post-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-content: center; }
.site-scope #home-studio .post-body > * { grid-column: 2; margin-block: 0; }
.site-scope #home-studio .post-body > p:has(img) { grid-column: 1; grid-row: 1 / span 6; align-self: center; }
.site-scope #home-studio .post-body > p:nth-of-type(2) { grid-row: 1; margin-bottom: 24px; color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.site-scope #home-studio .post-body > h2:first-child { grid-row: 2; max-width: 3em; margin: 0 0 32px; color: var(--ink); font-size: 64px; }
.site-scope #home-studio .post-body > h3 { margin-bottom: 20px; color: var(--ink); font-size: 26px; font-weight: 700; line-height: 1.5; }
.site-scope #home-studio .post-body > p { color: #333; }
.site-scope #home-studio .post-body > p:last-child { margin-top: 28px; }
.site-scope #home-studio a { display: inline-block; padding: 14px 32px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-decoration: none; }

/* 実績の一覧（1行ずつ） */
.site-scope #home-works { padding: 128px 0; background: var(--blue); border-top: 2px solid var(--yellow); }
.site-scope #home-works .post-feed { position: relative; }
.site-scope .post-feed > h2 { margin: 0 0 3rem; font-family: var(--display); font-size: 102.4px; font-weight: 400; line-height: 1; }
.site-scope #home-works .post-feed::before, .site-scope #home-news .post-feed::before { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.site-scope #home-works .post-feed::before { content: "Selected Works"; color: var(--yellow); }
.site-scope #home-news .post-feed::before { content: "Latest News"; color: var(--blue); }
.site-scope #home-works .post-feed > h2 { color: #fff; }
.site-scope #home-works .post-feed-more { position: absolute; top: 24px; right: 0; margin: 0; }
.site-scope #home-works .post-feed-more a { display: inline-block; padding: 12px 28px; background: var(--yellow); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; }
.site-scope .post-feed-links { margin: 0; padding: 0; list-style: none; }
.site-scope #home-works .post-feed-links { counter-reset: fd-row; }
.site-scope #home-works .post-feed-links li { display: grid; grid-template-columns: 48px 1fr auto 3em; align-items: center; column-gap: 40px; padding: 24px 16px 24px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.15); counter-increment: fd-row; }
.site-scope #home-works .post-feed-links li::before { content: counter(fd-row, decimal-leading-zero); grid-row: 1; color: rgba(255,255,255,.4); font-family: var(--display); font-size: 18px; letter-spacing: 1px; }
.site-scope #home-works .post-feed-links a { grid-column: 2; grid-row: 1; color: #fff; font-size: 16px; font-weight: 600; }
.site-scope #home-works .post-feed-category { display: block; grid-column: 3; grid-row: 1; color: var(--yellow); font-size: 11px; font-weight: 700; letter-spacing: 1.65px; }
.site-scope #home-works .post-feed-links time { grid-column: 4; grid-row: 1; width: 4ch; overflow: hidden; color: rgba(255,255,255,.4); font-size: 12px; font-weight: 400; letter-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* トップのお知らせ */
.site-scope #home-news { padding: 128px 0; background: var(--cream) var(--dots) 0 0 / 18px 18px; }
.site-scope #home-news .post-feed > h2 { color: var(--ink); }
.site-scope #home-news .post-feed-links li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 2rem; padding: 1.25rem 0; border: 0; border-top: 1px solid rgba(0,0,0,.12); }
.site-scope #home-news .post-feed-links li:last-child { border-bottom: 1px solid rgba(0,0,0,.12); }
.site-scope #home-news .post-feed-links time { color: var(--blue); font-size: .875rem; font-weight: 700; letter-spacing: .1em; }
.site-scope #home-news .post-feed-category { display: none; }
.site-scope #home-news .post-feed-links a { color: var(--ink); font-size: 1.0625rem; font-weight: 700; }

/* お問い合わせの誘導 */
.site-scope #home-cta { padding: 96px 0 0; background: #e5eff6; border-top: 2px solid var(--yellow); }
.site-scope #home-cta .callout-inner { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; width: min(1100px, calc(100% - 2 * var(--edge))); padding: 0; background: transparent; }
.site-scope #home-cta .callout-inner > div { display: contents; }
.site-scope #home-cta h2 { grid-column: 1; grid-row: 1 / span 3; max-width: 6em; margin: 0; background: linear-gradient(var(--text) 50%, var(--blue) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--display); font-size: clamp(3rem, 9vw, 112px); font-weight: 400; line-height: 1; }
.site-scope #home-cta .callout-inner > div > p { grid-column: 2; color: var(--gray); white-space: pre-line; }
.site-scope #home-cta .callout-inner > div > p::before { content: "Contact Us"; display: block; margin-bottom: 16px; color: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.site-scope #home-cta .button { grid-column: 2; justify-self: start; margin-top: 24px; background: var(--yellow); color: #fff; }
.site-scope #home-numbers { position: relative; padding: 64px 0; overflow: hidden; background: #e5eff6; }
.site-scope #home-numbers::after { content: "CONTACT"; position: absolute; right: -2%; bottom: -40px; color: rgba(0,109,176,.06); font-family: var(--display); font-size: 260px; line-height: 1; pointer-events: none; }
.site-scope #home-numbers .section-inner { width: min(1100px, calc(100% - 2 * var(--edge))); }
.site-scope #home-numbers table { margin: 0; table-layout: fixed; }
.site-scope #home-numbers td { padding: 0 1rem 0 0; border: 0; color: var(--gray); font-size: 12px; font-weight: 400; }
.site-scope #home-numbers tr:first-child td { color: var(--text); font-family: var(--display); font-size: 64px; font-weight: 700; line-height: 1.1; }

/* 一覧のページ */
.site-scope .news-page { width: auto; max-width: none; margin: 0; padding: 0 0 6rem; background: var(--yellow) var(--dots) 0 0 / 18px 18px; }
.site-scope .news-page > .news-categories, .site-scope .news-page > .news-list, .site-scope .news-page > .pagination, .site-scope .news-page > .news-back, .site-scope .news-page > .news-empty { width: min(1100px, calc(100% - 2 * var(--edge))); margin-inline: auto; }
.site-scope .news-heading { position: relative; margin: 0; padding: 1rem var(--edge) 80px; background: linear-gradient(rgba(10,10,10,.55), rgba(10,10,10,.55)), var(--heading-image, none) center / cover, var(--ink); }
.site-scope .news-heading p:first-child { margin: 0 0 24px; color: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; }
.site-scope .news-heading h1 { margin: 0 0 32px; color: #fff; font-family: var(--display); font-size: clamp(4rem, 12vw, 153.6px); font-weight: 400; letter-spacing: -.01em; line-height: 1; }
.site-scope .news-heading .news-description { max-width: 440px; margin: 0; color: rgba(255,255,255,.7); line-height: 1.9; }
.site-scope .news-categories { display: flex; flex-wrap: wrap; gap: .5rem 3rem; padding: 1.25rem 0; }
.site-scope .news-page > .news-categories { width: 100%; margin: 0; padding-inline: max(var(--edge), calc((100% - 1100px) / 2)); border-bottom: 1px solid rgba(255,255,255,.5); }
.site-scope .news-categories a { padding: 0 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: 1.3px; }
.site-scope .news-page #home-portfolio { margin-bottom: 3rem; padding: 48px 0; background: transparent; border-bottom: 1px solid rgba(255,255,255,.5); }
.site-scope .news-page:not([data-term="note"]) .news-list { display: block; counter-reset: fd-row; border-top: 1px solid rgba(0,0,0,.12); }
.site-scope .news-page:not([data-term="note"]) .news-card, .site-scope .news-page:not([data-term="note"]) .news-card:has(> img) { display: block; padding: 0; border: 0; border-bottom: 1px solid rgba(0,0,0,.12); border-radius: 0; background: transparent; box-shadow: none; counter-increment: fd-row; }
.site-scope .news-page:not([data-term="note"]) .news-card > img { display: none; }
.site-scope .news-page:not([data-term="note"]) .news-card > div { display: grid; grid-template-columns: 48px 1fr auto 3em; align-items: center; column-gap: 40px; padding: 24px 16px 24px 0; }
.site-scope .news-page:not([data-term="note"]) .news-card > div::before { content: counter(fd-row, decimal-leading-zero); grid-row: 1; color: rgba(26,26,26,.4); font-family: var(--display); font-size: 18px; letter-spacing: 1px; }
.site-scope .news-page:not([data-term="note"]) .news-card h2 { grid-column: 2; grid-row: 1; margin: 0; font-family: var(--body); font-size: 16px; font-weight: 600; line-height: 1.5; }
.site-scope .news-page:not([data-term="note"]) .news-card h2 a { color: var(--text); }
.site-scope .news-page:not([data-term="note"]) .news-card .post-terms { grid-column: 3; grid-row: 1; margin: 0; }
.site-scope .news-page:not([data-term="note"]) .news-card .post-term { padding: 0; border: 0; background: transparent; color: rgba(26,26,26,.6); font-size: 11px; font-weight: 700; letter-spacing: 1.65px; }
.site-scope .news-page:not([data-term="note"]) .news-card time { grid-column: 4; grid-row: 1; width: 4ch; overflow: hidden; color: rgba(26,26,26,.5); font-size: 12px; font-weight: 400; letter-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.site-scope .news-page:not([data-term="note"]) .news-card > div > p:not(.post-terms) { display: none; }
.site-scope .news-back { display: none; }
.site-scope .pagination { justify-content: flex-start; gap: 6px; margin-top: 3rem; }
.site-scope .pagination a, .site-scope .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid rgba(26,26,26,.15); border-radius: 6px; background: transparent; color: rgba(26,26,26,.4); font-size: 13px; font-weight: 700; }
.site-scope .pagination [aria-current="page"] { border-color: #1a1a1a; background: #1a1a1a; color: var(--yellow); }
.site-scope .pagination span.pagination__prev, .site-scope .pagination span.pagination__next { display: none; }

/* BLOG（黒の地に3列） */
.site-scope .news-page[data-term="note"] { padding-bottom: 8rem; background: var(--ink); }
.site-scope .news-page[data-term="note"] .news-heading { padding-block: 0 64px; padding-inline: max(var(--edge), calc((100% - 1100px) / 2)); background: var(--ink); }
.site-scope .news-page[data-term="note"] .news-heading p:first-child { display: none; }
.site-scope .news-page[data-term="note"] .news-heading h1 { margin: 0; font-size: 96px; }
.site-scope .news-page[data-term="note"] .news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.site-scope .news-page[data-term="note"] .news-card, .site-scope .news-page[data-term="note"] .news-card:has(> img) { display: block; padding: 0; border: 0; border-radius: 0; background: #161616; box-shadow: none; }
.site-scope .news-page[data-term="note"] .news-card > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.site-scope .news-page[data-term="note"] .news-card > div { padding: 24px; }
.site-scope .news-page[data-term="note"] .news-card time { color: #666; font-size: 12px; font-weight: 400; letter-spacing: 1px; }
.site-scope .news-page[data-term="note"] .post-terms { display: none; }
.site-scope .news-page[data-term="note"] .news-card h2 { margin: .5rem 0; font-family: var(--body); font-size: 16px; font-weight: 700; line-height: 1.5; }
.site-scope .news-page[data-term="note"] .news-card h2 a { color: #fff; }
.site-scope .news-page[data-term="note"] .news-card > div > p:last-child { margin: 0; color: #666; font-size: 14px; }

/* 投稿。画像の上に題名を重ねる */
.site-scope .post-page { width: auto; max-width: none; margin: 0; padding: 0 0 8rem; background: var(--yellow) var(--dots) 0 0 / 18px 18px; }
.site-scope .post-page article { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; max-width: none; margin: 0; isolation: isolate; }
.site-scope .post-page article::before { content: ""; grid-column: 1 / -1; grid-row: 1 / span 2; z-index: -2; background: var(--ink); }
.site-scope .post-page .post-image { grid-column: 1 / -1; grid-row: 1 / span 2; z-index: -1; width: 100%; height: 0; min-height: 100%; max-height: none; margin: 0; object-fit: cover; border-radius: 0; opacity: .4; }
.site-scope .post-page .post-terms { grid-column: 1; grid-row: 1; align-self: end; margin: 0; padding: 12rem 0 24px var(--edge); }
.site-scope .post-page .post-terms::after { content: "—"; margin-left: .6rem; color: #aaa; font-size: 12px; }
.site-scope .post-page .post-term { padding: 0; border: 0; background: transparent; color: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: 2.4px; }
.site-scope .post-page article > time { grid-column: 2; grid-row: 1; align-self: end; padding: 0 var(--edge) 24px .6rem; color: #aaa; font-size: 12px; font-weight: 400; letter-spacing: 1.2px; line-height: 1.8; }
.site-scope .post-page article > h1 { grid-column: 1 / -1; grid-row: 2; margin: 0; padding: 0 var(--edge) 64px; color: #fff; font-family: var(--body); font-size: clamp(1.75rem, 3vw, 38.4px); font-weight: 400; letter-spacing: -.01em; line-height: 1.3; }
.site-scope .post-page .post-excerpt { display: none; }
.site-scope .post-page .post-body { grid-column: 1 / -1; grid-row: 3; width: min(740px, calc(100% - 2 * var(--edge))); margin: 5rem auto 0; color: var(--text); }
.site-scope .post-body table { width: 100%; margin: 0 0 48px; border-collapse: collapse; font-size: 14px; }
.site-scope .post-body td, .site-scope .post-body th { padding: 12px 24px 12px 0; border: 0; border-bottom: 1px solid rgba(0,0,0,.12); background: transparent; text-align: left; vertical-align: top; }
.site-scope .post-body td:first-child { width: 72px; color: var(--gray); font-size: 12px; font-weight: 700; letter-spacing: .6px; white-space: nowrap; }
.site-scope .post-body p { color: var(--text); line-height: 1.9; }
.site-scope .post-body iframe { display: block; width: 100%; border: 0; }
.site-scope .post-page .post-body a { color: var(--text); text-decoration: underline; }
.site-scope .post-page .post-body a.body-button { display: inline-block; padding: 14px 32px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 1.5px; line-height: 1.5; text-decoration: none; transition: background .2s, color .2s; }
.site-scope .post-page .post-body a.body-button:hover { background: var(--ink); color: #fff; opacity: 1; }
.site-scope .post-page .post-body a.body-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.site-scope .post-nav { position: relative; display: flex; justify-content: space-between; width: min(740px, calc(100% - 2 * var(--edge))); margin: 4rem auto 0; padding-top: 3.5rem; border: 0; }
.site-scope .post-nav::before { content: ""; position: absolute; top: 0; left: 50%; width: 100px; height: 2px; margin-left: -50px; background: rgba(0,0,0,.2); }
.site-scope .post-nav a { font-size: 0; }
.site-scope .post-nav a::before { color: var(--text); font-size: .875rem; font-weight: 700; letter-spacing: .1em; text-decoration: underline; }
.site-scope .post-nav__older::before { content: "前へ"; }
.site-scope .post-nav__newer::before { content: "次へ"; }
.site-scope .post-nav__newer { margin-left: auto; }

/* お知らせの記事。クリーム色の地に、題名の上の帯 */
.site-scope .post-page[data-category="news"] { background: var(--cream) var(--dots) 0 0 / 18px 18px; }
.site-scope .post-page[data-category="news"] article { display: block; }
.site-scope .post-page[data-category="news"] article::before { content: "NEWS"; display: block; padding: 3.5rem var(--edge) 120px; background: linear-gradient(rgba(10,10,10,.5), rgba(10,10,10,.5)), url('/wp-content/uploads/2026/05/contact-hero-team.jpg') center / cover; color: #fff; font-family: var(--display); font-size: clamp(4rem, 12vw, 153.6px); letter-spacing: -.01em; line-height: 1; }
.site-scope .post-page[data-category="news"] .post-terms { display: none; }
.site-scope .post-page[data-category="news"] article > time { display: block; width: min(1100px, calc(100% - 2 * var(--edge))); margin: 3rem auto 0; padding: 0; color: var(--gray); }
.site-scope .post-page[data-category="news"] article > h1 { width: min(1100px, calc(100% - 2 * var(--edge))); margin: .5rem auto 2rem; padding: 0; color: var(--text); font-size: 40px; }
.site-scope .post-page[data-category="news"] .post-body { width: min(1100px, calc(100% - 2 * var(--edge))); margin-top: 0; }
.site-scope .post-page[data-category="news"] .post-body h2 { margin: 3rem 0 1rem; padding-left: .75rem; border-left: 4px solid var(--yellow); font-size: 1.5rem; font-weight: 400; line-height: 1.4; }
.site-scope .post-page[data-category="news"] .post-body img { width: 100%; border-radius: 12px; }
.site-scope .post-page[data-category="news"] .post-body a { color: var(--blue); }

/* 事業概要 */
.site-scope #company-mission, .site-scope #company-future, .site-scope #company-ai { padding: 4rem 0 2rem; }
.site-scope #company-mission .post-body > p:first-of-type, .site-scope #company-future .post-body > p:first-of-type, .site-scope #company-ai .post-body > p:first-of-type, .site-scope #company-profile h3 { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: 2.4px; }
.site-scope #company-mission .post-body > h2:first-child, .site-scope #company-future .post-body > h2:first-child, .site-scope #company-ai .post-body > h2:first-child { order: 1; }
.site-scope #company-mission .post-body, .site-scope #company-future .post-body, .site-scope #company-ai .post-body { display: flex; flex-direction: column; }
.site-scope #company-mission .post-body > p:first-of-type, .site-scope #company-future .post-body > p:first-of-type, .site-scope #company-ai .post-body > p:first-of-type { order: 0; margin: 0 0 8px; }
.site-scope #company-mission .post-body > *, .site-scope #company-future .post-body > *, .site-scope #company-ai .post-body > * { order: 2; }
.site-scope #company-mission .post-body > h2, .site-scope #company-future .post-body > h2, .site-scope #company-ai .post-body > h2 { order: 1; margin-bottom: 2rem; }
.site-scope #company-mission .post-body > p:first-of-type, .site-scope #company-future .post-body > p:first-of-type, .site-scope #company-ai .post-body > p:first-of-type { order: 0; }
.site-scope #company-mission h3, .site-scope #company-future h3, .site-scope #company-ai h3 { margin: 2.5rem 0 1.5rem; color: var(--text); font-size: 26px; font-weight: 700; }
.site-scope #company-mission img, .site-scope #company-future img, .site-scope #company-ai img { display: block; width: 100%; }
.site-scope #company-profile .post-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.site-scope #company-profile .post-body > h2 { grid-column: 1 / -1; }
.site-scope #company-profile h3 { margin: 0 0 16px; }
.site-scope #company-profile h3:nth-of-type(1), .site-scope #company-profile table:nth-of-type(1) { grid-column: 1; }
.site-scope #company-profile h3:nth-of-type(2) { grid-column: 2; grid-row: 2; }
.site-scope #company-profile table:nth-of-type(1) { grid-row: 3 / span 2; }
.site-scope #company-profile table:nth-of-type(2) { grid-column: 2; grid-row: 3; }
.site-scope #company-profile table { margin: 0; font-size: 15px; }
.site-scope #company-profile td { padding: 3px 16px 3px 0; border: 0; width: auto; color: var(--text); font-size: 15px; font-weight: 400; letter-spacing: 0; white-space: normal; }
.site-scope #company-profile td:first-child { width: 80px; white-space: nowrap; }
.site-scope #company-profile .post-body > p { grid-column: 2; margin: 3px 0; color: var(--text); font-size: 15px; }
.site-scope #company-staff, .site-scope #company-comment { background: var(--navy); }
.site-scope #company-staff { padding-bottom: 2rem; }
.site-scope #company-comment { padding-top: 2rem; }
.site-scope #company-staff .section-inner, .site-scope #company-comment .section-inner, .site-scope #company-access .section-inner { width: min(1100px, calc(100% - 2 * var(--edge))); }
.site-scope #company-staff .post-body { display: grid; grid-template-columns: 220px 1fr; column-gap: 48px; color: #fff; }
.site-scope #company-staff .post-body > * { grid-column: 2; margin-block: 0; }
.site-scope #company-staff .post-body > p:nth-of-type(1) { grid-column: 1 / -1; grid-row: 1; margin-bottom: 12px; color: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: 2.4px; }
.site-scope #company-staff .post-body > h2:first-child { grid-column: 1 / -1; grid-row: 2; margin-bottom: 48px; color: #fff; font-size: 76.8px; }
.site-scope #company-staff .post-body > p:has(img) { grid-column: 1; grid-row: 3 / span 6; }
.site-scope #company-staff .post-body > p:nth-of-type(3) { color: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: 1.8px; }
.site-scope #company-staff h3 { margin: 8px 0; color: #fff; font-size: 32px; font-weight: 700; letter-spacing: 1.6px; }
.site-scope #company-staff .post-body > p { color: rgba(255,255,255,.5); font-size: 12.8px; }
.site-scope #company-staff ul { margin: 24px 0; padding: 0; list-style: none; color: rgba(255,255,255,.85); font-size: 14px; }
.site-scope #company-staff li { margin-bottom: 8px; }
.site-scope #company-staff li::before { content: "— "; color: var(--yellow); }
.site-scope #company-staff .post-body > p:last-child { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); }
.site-scope #company-staff .post-body a, .site-scope #company-comment .post-body a { color: var(--yellow); text-decoration: none; }
.site-scope #company-comment .post-body > p:first-of-type { margin: 0 0 4px; color: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: 2.4px; }
.site-scope #company-comment .post-body { display: flex; flex-direction: column; color: #fff; }
.site-scope #company-comment .post-body > * { order: 3; }
.site-scope #company-comment .post-body > p:first-of-type { order: 1; }
.site-scope #company-comment .post-body > h2 { order: 2; margin-bottom: 16px; color: #fff; font-size: 38.4px; font-weight: 700; }
.site-scope #company-comment .post-body > p { color: rgba(255,255,255,.85); margin: 0 0 64px; }
.site-scope #company-comment h3 { margin: 0 0 24px; padding-top: 48px; border-top: 1px solid rgba(255,255,255,.15); color: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: 2.4px; }
.site-scope #company-comment ul { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 0; padding: 0; list-style: none; color: rgba(255,255,255,.85); font-size: 14px; }
.site-scope #company-access .post-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.site-scope #company-access .post-body > p:first-of-type { grid-column: 1 / -1; grid-row: 1; margin: 0 0 12px; color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: 2.4px; }
.site-scope #company-access .post-body > h2:first-child { grid-column: 1 / -1; grid-row: 2; margin-bottom: 48px; font-size: 76.8px; }
.site-scope #company-access table { grid-column: 1; grid-row: 3; margin: 0; }
.site-scope #company-access tr { display: block; padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid rgba(0,0,0,.1); }
.site-scope #company-access td { display: block; width: auto; padding: 0; border: 0; color: var(--text); font-size: 15px; white-space: normal; }
.site-scope #company-access td:first-child { margin-bottom: 6px; color: var(--gray); font-size: 11.2px; font-weight: 700; letter-spacing: 1.68px; }
.site-scope #company-access iframe { grid-column: 2; grid-row: 3; align-self: stretch; height: 100%; min-height: 450px; margin: 0; border: 1px solid rgba(0,0,0,.15); }

/* サービスのページ */
.site-scope #intro, .site-scope #build, .site-scope #detail { padding: 0; }
.site-scope #intro { padding-top: 3.5rem; }
.site-scope #intro p:first-child { padding-bottom: 1.5rem; color: var(--text); font-size: 17px; font-weight: 500; }
.site-scope #intro p:first-child::after { content: ""; display: block; width: 100px; height: 1px; margin: 1.5rem auto 0; background: rgba(0,0,0,.2); }
.site-scope #intro .prose::after, .site-scope #intro .section-inner::after { content: ""; display: block; width: 100px; height: 1px; margin: 1.5rem auto 0; background: rgba(0,0,0,.2); }
.site-scope .section--priceList, .site-scope .section--planCards { padding: 4rem 0 0; }
.site-scope .section--planCards { padding-bottom: 4rem; }
.site-scope .section--priceList:last-of-type { padding-bottom: 3rem; }
.site-scope .section--priceList .section-inner > h2, .site-scope .section--planCards .section-inner > h2 { font-size: 32px; margin-bottom: .5rem; }
.site-scope .price-note { margin: 0 0 2rem; color: var(--gray); font-size: 14px; }
.site-scope .price-list { border-top: 1px solid rgba(0,0,0,.12); }
.site-scope .price-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.5rem 0; border: 0; border-bottom: 1px solid rgba(0,0,0,.12); background: transparent; }
.site-scope .price-row strong { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 1.65px; }
.site-scope .price-row p { margin: .25rem 0 0; color: #444; font-size: 13.5px; white-space: pre-line; }
.site-scope .price-row b { flex: none; color: var(--text); font-size: 24px; font-weight: 700; }
.site-scope .section--planCards + .section--priceList { padding-top: 3rem; }
.site-scope .section--planCards + .section--priceList .section-inner > h2 { margin-bottom: 1.5rem; color: var(--red); font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: 1.65px; }
.site-scope .section--planCards + .section--priceList .price-row { padding: 1rem 0; }
.site-scope .section--planCards + .section--priceList .price-row strong { color: var(--text); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.site-scope .section--planCards + .section--priceList .price-row b { color: #888; font-size: 13px; font-weight: 400; }
.site-scope .section--planCards + .section--priceList .price-row:first-child b { color: var(--red); font-weight: 700; }
.site-scope .plan-cards { display: grid; gap: 1px; }
.site-scope .plan-card { padding: 28px 30px; border: 0; border-radius: 0; background: var(--cream); box-shadow: none; }
.site-scope .plan-card strong { display: block; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 1.65px; }
.site-scope .plan-card b { display: block; margin: 12px 0 4px; font-size: 28px; line-height: 1.3; }
.site-scope .plan-card small { display: block; color: var(--gray); font-size: 11px; }
.site-scope .plan-card p { margin: 16px 0 0; font-size: 13px; white-space: pre-line; }
.site-scope .section--promo { padding: 56px 0; background: #081f5c; border-top: 6px solid var(--yellow); color: #fff; }
.site-scope .section--promo .section-inner { display: grid; grid-template-columns: 235px 1fr 367px; grid-template-rows: auto auto auto; gap: 8px 48px; align-items: center; width: min(1100px, calc(100% - 2 * var(--edge))); }
.site-scope .section--promo small { grid-column: 1; color: var(--yellow); font-size: 11.2px; font-weight: 700; letter-spacing: 1.68px; }
.site-scope .section--promo .promo-logo { grid-column: 1; width: 230px; max-height: 50px; object-fit: contain; object-position: left; }
.site-scope .section--promo .section-inner > h2 { grid-column: 2; grid-row: 1 / span 3; margin: 0; color: #fff; font-family: var(--body); font-size: 46px; font-weight: 400; line-height: 1.2; white-space: pre-line; }
.site-scope .section--promo p { grid-column: 3; grid-row: 1 / span 2; margin: 0; color: rgba(255,255,255,.86); font-size: 14px; font-weight: 500; }
.site-scope .section--promo .button { grid-column: 3; grid-row: 3; justify-self: start; padding: 11.2px 22.4px; border-radius: 4px; background: var(--yellow); color: #081f5c; font-size: 14px; letter-spacing: 1.4px; }
.site-scope #cta { padding: 4rem 0; background: var(--cream); }
.site-scope #cta .callout-inner { display: block; width: min(800px, calc(100% - 2 * var(--edge))); padding: 0; background: transparent; }
.site-scope #cta h2 { margin: 0 0 1.5rem; color: var(--text); font-family: var(--body); font-size: 32px; font-weight: 400; line-height: 1.2; white-space: pre-line; }
.site-scope #cta p { color: #444; font-size: 14px; }
.site-scope #cta .button { margin-top: 1rem; padding: 18px 40px; background: var(--red); color: #fff; }
.site-scope #price .post-body h4 { margin: 2rem 0 .5rem; color: var(--red); font-size: 13px; font-weight: 700; }
.site-scope #price .post-body h3 { margin: 2.5rem 0 1rem; font-size: 20px; }

/* お問い合わせ */
.site-scope #contact-form { padding: 5rem 0; background: var(--cream) var(--dots) 0 0 / 18px 18px; }
.site-scope #contact-form .section-inner.article-section { width: min(700px, calc(100% - 2 * var(--edge))); }
.site-scope #contact-form .post-body > p:first-child { margin-bottom: 3rem; color: var(--text); font-size: 17px; }
.site-scope #contact-form .post-body > p:has(strong) { margin-bottom: 52px; padding: 16px 20px; border: 1px solid rgba(0,0,0,.08); border-left: 4px solid var(--yellow); border-radius: 8px; background: #fff; color: #444; font-size: 14px; line-height: 1.7; }
.site-scope #contact-form strong { color: var(--text); }
.site-scope #contact-form iframe { border-radius: 8px; background: #fff; }

/* フッター */
.site-scope .site-footer { display: grid; grid-template-columns: 1fr auto; gap: 0 2rem; padding: 64px var(--edge) 48px; background: #d9d9d9; border-top: 2px solid var(--yellow); color: #666; text-align: left; }
.site-scope .footer-information { grid-column: 1; align-self: center; margin: 0; }
.site-scope .footer-information > a { display: flex; align-items: center; gap: .75rem; }
.site-scope .footer-information > a::after { content: "藤が丘デザイン"; color: var(--text); font-size: 1rem; font-weight: 700; }
.site-scope .footer-logo { width: auto; height: 56px; }
.site-scope .footer-information p { margin: .75rem 0 0; color: #666; font-size: 14px; }
.site-scope .footer-nav { grid-column: 2; display: block; margin: 0; }
.site-scope .footer-nav::before { content: "Navigation"; display: block; margin-bottom: 16px; color: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
.site-scope .footer-nav .nav-tree { display: flex; flex-direction: column; gap: 6px; }
.site-scope .footer-nav .nav-tree > .nav-item > a, .site-scope .footer-nav a { color: #888; font-size: 14px; font-weight: 400; text-decoration: none; }
.site-scope .site-footer > p { position: relative; grid-column: 1 / -1; margin: 32px 0 0; padding-top: 32px; color: #666; font-size: 13px; }
.site-scope .site-footer > p::before { content: ""; position: absolute; top: 0; left: 50%; width: 100px; height: 2px; margin-left: -50px; background: #1a1a1a; }

/* カードの写真は上が明るく下が暗い。黒い地の上で透明度を変えて、旧サイトの重ねた影と同じにする */
.site-scope #home-services .feature-icon, .site-scope #company-services .feature-icon, .site-scope #home-portfolio .feature-icon { opacity: 1; -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.2) 0%, rgba(0,0,0,.6) 50%, rgba(0,0,0,.95) 100%); mask-image: linear-gradient(to top, rgba(0,0,0,.2) 0%, rgba(0,0,0,.6) 50%, rgba(0,0,0,.95) 100%); }
.site-scope #home-services .feature-card, .site-scope #company-services .feature-card { padding-bottom: 62px; }
.site-scope #home-portfolio .feature-card { justify-content: flex-end; padding-bottom: 28px; }
/* ホバー（値は旧 custom.css から） */.site-scope .site-nav .nav-item > a { position: relative; border-bottom: 0; color: rgba(26,26,26,.85); transition: color .25s ease; }
.site-scope .site-nav .nav-item > a[aria-current="page"] { color: var(--text); }
.site-scope .site-nav .nav-item > a:hover, .site-scope .site-nav .nav-item > a:focus-visible { background: transparent; color: var(--text); }
.site-scope .site-nav .nav-item > a::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: #1a1a1a; transition: width .35s ease; }
.site-scope .site-nav .nav-item > a:hover::after, .site-scope .site-nav .nav-item > a[aria-current="page"]::after { width: 100%; }
.site-scope .site-nav .nav-tree > .nav-item:last-child > a { transition: background .25s ease, color .25s ease, border-color .25s ease; }
.site-scope .site-nav .nav-tree > .nav-item:last-child > a::after { display: none; }
.site-scope .site-nav .nav-tree > .nav-item:last-child > a:hover { border-color: #1a1a1a; background: #1a1a1a; color: var(--yellow); }
.site-scope .button, .site-scope #home-works .post-feed-more a, .site-scope #home-studio .post-body a { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.site-scope #home-studio .post-body a { background: #1a1a1a; }
.site-scope .button:hover, .site-scope #home-works .post-feed-more a:hover, .site-scope #home-studio .post-body a:hover { background: #1a1a1a; color: #fff; }
.site-scope #home-hero .button { transition: background .2s, color .2s; }
.site-scope #home-hero .button:hover { background: #1a1a1a; color: var(--yellow); }
.site-scope #home-marquee a { transition: color .2s ease; }
.site-scope #home-marquee a:hover { color: var(--yellow); }
/* サービスのカード */
.site-scope #home-services .feature-icon, .site-scope #company-services .feature-icon { transition: opacity .4s, transform .7s cubic-bezier(.25,.46,.45,.94); }
.site-scope #home-services .feature-card:hover .feature-icon, .site-scope #company-services .feature-card:hover .feature-icon { opacity: .8; transform: scale(1.08); }
.site-scope #home-services .feature-card::before, .site-scope #company-services .feature-card::before { transition: color .4s; }
.site-scope #home-services .feature-card:hover::before, .site-scope #company-services .feature-card:hover::before { color: rgba(240,180,0,.25); }
.site-scope #home-services .feature-card::after, .site-scope #company-services .feature-card::after { transition: color .3s, transform .3s; }
.site-scope #home-services .feature-card:hover::after, .site-scope #company-services .feature-card:hover::after { color: var(--yellow); transform: translateX(4px); }
/* カテゴリーのカード */
.site-scope #home-portfolio .feature-icon { transition: opacity .4s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.site-scope #home-portfolio .feature-card:hover .feature-icon { opacity: .75; transform: scale(1.08); }
.site-scope #home-portfolio .feature-count { transition: color .25s ease; }
.site-scope #home-portfolio .feature-card:hover .feature-count { color: var(--yellow); }
.site-scope #home-portfolio .feature-card::after { transition: color .25s ease, transform .25s ease; }
.site-scope #home-portfolio .feature-card:hover::after { color: var(--yellow); transform: translateX(5px); }
/* 実績の行。右端の矢印はホバーで出る */
.site-scope #home-works .post-feed-links li, .site-scope .news-page:not([data-term="note"]) .news-card > div { position: relative; transition: background-color .25s ease, padding-left .25s ease; }
.site-scope #home-works .post-feed-links li::before, .site-scope .news-page:not([data-term="note"]) .news-card > div::before { transition: color .25s ease; }
.site-scope #home-works .post-feed-links li::after, .site-scope .news-page:not([data-term="note"]) .news-card > div::after { content: "→"; position: absolute; right: 0; color: transparent; font-size: .875rem; transition: color .25s ease, transform .25s ease; }
.site-scope #home-works .post-feed-links a, .site-scope .news-page:not([data-term="note"]) .news-card h2 a { transition: color .25s ease; }
.site-scope #home-works .post-feed-links li:hover { padding-left: .75rem; background-color: rgba(240,180,0,.05); }
.site-scope #home-works .post-feed-links li:hover::before, .site-scope #home-works .post-feed-links li:hover::after { color: var(--yellow); }
.site-scope #home-works .post-feed-links li:hover::after, .site-scope .news-page:not([data-term="note"]) .news-card > div:hover::after { transform: translateX(4px); }
.site-scope #home-works .post-feed-links li:hover a { color: #fff; }
.site-scope .news-page:not([data-term="note"]) .news-card > div:hover { padding-left: .75rem; background-color: rgba(0,109,176,.05); }
.site-scope .news-page:not([data-term="note"]) .news-card > div:hover::before, .site-scope .news-page:not([data-term="note"]) .news-card > div:hover::after, .site-scope .news-page:not([data-term="note"]) .news-card > div:hover h2 a { color: var(--blue); }
/* 切替・ページ送り・そのほかのリンク */
.site-scope .news-categories a:hover { border-color: transparent; background: transparent; color: var(--text); }
.site-scope .news-categories a[aria-current="page"], .site-scope .news-categories a[aria-current="page"]:hover { border-bottom-color: var(--red); background: transparent; color: var(--red); }
.site-scope .pagination a { transition: background .2s ease, color .2s ease, border-color .2s ease; }
.site-scope .pagination a:hover { border-color: rgba(26,26,26,.3); background: rgba(26,26,26,.08); color: #1a1a1a; }
.site-scope .pagination a.pagination__prev:hover, .site-scope .pagination a.pagination__next:hover { border-color: #1a1a1a; background: #1a1a1a; color: var(--yellow); }
.site-scope .post-nav a::before { transition: color .2s; }
.site-scope .post-nav a:hover::before { color: var(--blue); }
.site-scope .footer-nav a { transition: color .2s; }
.site-scope .footer-nav a:hover, .site-scope .footer-nav .nav-tree > .nav-item > a:hover { color: var(--yellow); }
.site-scope #company-comment ul a { transition: color .2s; }
.site-scope #company-comment ul a:hover { color: #fff; }
.site-scope #company-staff .post-body a:hover { text-decoration: underline; }
.site-scope .section--promo .button { transition: background-color .2s; }
.site-scope .section--promo .button:hover { background: #fff; color: #081f5c; }
.site-scope .section--promo:has(a[href*="/broadcast/"]) { background: #101010; border-top-color: #ff3c00; }
.site-scope .section--promo:has(a[href*="/broadcast/"]) small { color: #ff7a3d; }
.site-scope .section--promo:has(a[href*="/broadcast/"]) .button { background: #ff3c00; color: #fff; }
.site-scope .section--promo:has(a[href*="/broadcast/"]) .button:hover { background: #fff; color: #101010; }
.site-scope #cta .button:hover { background: var(--red); color: #fff; }
.site-scope .news-page[data-term="note"] .news-card h2 a { transition: color .2s; }
.site-scope .news-page[data-term="note"] .news-card h2 a:hover { color: var(--yellow); }
.site-scope .scroll-top { right: 2rem; bottom: 2rem; width: 44px; height: 44px; border-radius: 0; font-size: 1rem; transition: background .2s ease; }
.site-scope .scroll-top:hover { background: var(--yellow) !important; filter: none; }

/* スクロールの動き（site-theme.js がクラスを付ける。値は旧 custom.css から） */
.site-scope .site-header { transition: background-color .3s ease, box-shadow .3s ease, transform .35s cubic-bezier(.4,0,.2,1); }
.site-scope .site-header.is-hidden { transform: translateY(-100%); }
.site-scope .js-reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.site-scope .js-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media print { .site-scope .js-reveal { opacity: 1; transform: none; } }

@keyframes fd-menu-panel { from { opacity: 0; } }
@keyframes fd-menu-item { from { opacity: 0; transform: translateX(-18px); } }
@media (prefers-reduced-motion: reduce) {
  .site-scope .site-header .site-nav, .site-scope .site-header .site-nav .nav-item { animation: none !important; }
  .site-scope #home-hero::before, .site-scope #home-marquee p { animation: none; }
}
@media (max-width: 1000px) {
  .site-scope { --edge: 24px; }
  /* スマホのメニュー。黒い全面パネルに番号つきの大きな項目を並べ、順に現れる */
  .site-scope .site-header .site-nav { box-sizing: border-box; height: calc(100dvh - 100%); max-height: none; padding: 2rem var(--edge) 2.5rem; overflow-y: auto; border: 0; border-top: 3px solid var(--yellow); background: #0f0f0f; box-shadow: none; animation: fd-menu-panel .25s ease both; }
  .site-scope .site-header .site-nav::before { content: "MENU"; margin-bottom: 1.25rem; color: rgba(255,255,255,.3); font-family: var(--display); font-size: .9rem; letter-spacing: .3em; }
  .site-scope .site-header .site-nav::after { content: "アイデアをかたちにする、クリエイティブスタジオ。"; margin-top: auto; padding-top: 2rem; color: rgba(255,255,255,.35); font-size: .75rem; letter-spacing: .05em; }
  .site-scope .site-header .site-nav .nav-tree { display: block; counter-reset: fd-menu; border-top: 1px solid rgba(255,255,255,.1); }
  .site-scope .site-header .site-nav .nav-item { counter-increment: fd-menu; animation: fd-menu-item .45s cubic-bezier(.16,1,.3,1) both; }
  .site-scope .site-header .site-nav .nav-item:nth-child(2) { animation-delay: .06s; }
  .site-scope .site-header .site-nav .nav-item:nth-child(3) { animation-delay: .12s; }
  .site-scope .site-header .site-nav .nav-item:nth-child(4) { animation-delay: .18s; }
  .site-scope .site-header .site-nav .nav-item > a, .site-scope .site-header .site-nav .nav-tree > .nav-item:last-child > a { display: flex; align-items: baseline; gap: 1.25rem; padding: 1.35rem .25rem; border: 0; border-bottom: 1px solid rgba(255,255,255,.1); background: transparent; color: rgba(255,255,255,.75); font-size: 1.5rem; font-weight: 700; letter-spacing: .04em; line-height: 1.3; transition: color .2s ease, padding-left .25s ease; }
  .site-scope .site-header .site-nav .nav-item > a::before { content: counter(fd-menu, decimal-leading-zero); color: var(--yellow); font-family: var(--display); font-size: .95rem; font-weight: 400; letter-spacing: .1em; }
  .site-scope .site-header .site-nav .nav-item > a::after, .site-scope .site-header .site-nav .nav-tree > .nav-item:last-child > a::after { content: "→"; position: static; display: block; width: auto; height: auto; margin-left: auto; background: transparent; color: rgba(255,255,255,.3); font-size: 1.1rem; font-weight: 400; transition: color .2s ease, transform .25s ease; }
  .site-scope .site-header .site-nav .nav-item > a:hover, .site-scope .site-header .site-nav .nav-item > a:focus-visible { padding-left: .9rem; background: transparent; color: #fff; }
  .site-scope .site-header .site-nav .nav-item > a:hover::after, .site-scope .site-header .site-nav .nav-item > a:focus-visible::after { color: var(--yellow); transform: translateX(4px); }
  .site-scope .site-header .site-nav .nav-item > a[aria-current="page"] { color: var(--yellow); }
  .site-scope .site-header .site-nav .nav-item > a[aria-current="page"]::after { color: var(--yellow); }
  /* お問い合わせは黄色の面で目立たせる */
  .site-scope .site-header .site-nav .nav-tree > .nav-item:last-child { margin-top: 1.75rem; }
  .site-scope .site-header .site-nav .nav-tree > .nav-item:last-child > a, .site-scope .site-header .site-nav .nav-tree > .nav-item:last-child > a:hover, .site-scope .site-header .site-nav .nav-tree > .nav-item:last-child > a[aria-current="page"] { padding: 1.2rem 1.25rem; border: 0; background: var(--yellow); color: var(--ink); font-size: 1.15rem; }
  .site-scope .site-header .site-nav .nav-tree > .nav-item:last-child > a::before { display: none; }
  .site-scope .site-header .site-nav .nav-tree > .nav-item:last-child > a::after, .site-scope .site-header .site-nav .nav-tree > .nav-item:last-child > a:hover::after { color: var(--ink); }
  .site-scope #home-portfolio .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-scope .section--promo .section-inner { display: block; }
  .site-scope .section--promo .section-inner > * { display: block; margin-block: .75rem; }
}
@media (max-width: 760px) {
  .site-scope .brand-logo { height: 52px; }
  .site-scope .brand::after { font-size: .85rem; }
  .site-scope .section > .section-inner > h2, .site-scope .article-section .post-body > h2:first-child, .site-scope #company-staff .post-body > h2:first-child, .site-scope #company-access .post-body > h2:first-child { font-size: 44px; }
  .site-scope .post-feed > h2, .site-scope #home-services .section-inner > h2, .site-scope #company-services .section-inner > h2 { font-size: 64px; }
  .site-scope #home-services, .site-scope #company-services, .site-scope #home-studio, .site-scope #home-works, .site-scope #home-news { padding: 64px 0; }
  .site-scope #home-hero .hero-inner { min-height: 560px; }
  .site-scope #home-hero .hero-content { display: block; }
  .site-scope #home-hero .button { margin-top: 1.5rem; }
  .site-scope #home-services .section-inner > h2, .site-scope #company-services .section-inner > h2 { display: block; }
  .site-scope #home-services .section-inner > h2::after, .site-scope #company-services .section-inner > h2::after { display: block; margin-top: .5rem; }
  .site-scope #home-services .feature-grid, .site-scope #company-services .feature-grid, .site-scope #home-studio .post-body, .site-scope #home-cta .callout-inner, .site-scope #company-profile .post-body, .site-scope #company-staff .post-body, .site-scope #company-access .post-body { display: block; }
  .site-scope #home-portfolio .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-scope #home-cta h2 { margin-bottom: 2rem; }
  .site-scope #home-numbers::after { font-size: 120px; bottom: -10px; }
  .site-scope #home-numbers tr:first-child td { font-size: 40px; }
  .site-scope #home-works .post-feed-more { position: static; margin-top: 2rem; }
  .site-scope #home-works .post-feed-links li, .site-scope .news-page:not([data-term="note"]) .news-card > div { grid-template-columns: 32px 1fr auto; column-gap: 12px; }
  .site-scope #home-works .post-feed-links a, .site-scope .news-page:not([data-term="note"]) .news-card h2 { grid-column: 2 / -1; }
  .site-scope #home-works .post-feed-category, .site-scope .news-page:not([data-term="note"]) .news-card .post-terms { grid-column: 2; grid-row: 2; margin-top: 4px; }
  .site-scope #home-works .post-feed-links time, .site-scope .news-page:not([data-term="note"]) .news-card time { grid-column: 3; grid-row: 2; }
  .site-scope .news-page[data-term="note"] .news-list, .site-scope .plan-cards { grid-template-columns: 1fr; }
  .site-scope .post-page .post-terms { padding-top: 6rem; }
  .site-scope #company-staff .post-body > p:has(img) { max-width: 220px; margin-bottom: 1.5rem; }
  .site-scope #company-profile table:nth-of-type(2), .site-scope #company-profile h3:nth-of-type(2) { margin-top: 1.5rem; }
  .site-scope #company-access iframe { min-height: 320px; margin-top: 1.5rem; }
  .site-scope .site-footer { display: block; }
  .site-scope .footer-nav { margin-top: 2rem; }
  .site-scope .price-row { flex-direction: column; align-items: flex-start; }
  .site-scope .news-categories { gap: .5rem 1.25rem; }
}
