/*
Theme Name: ATH
Theme URI: https://athworks.com/
Author: 株式会社ATH
Author URI: https://athworks.com/
Description: 株式会社ATHのサイト用のテーマです。プラグイン「ATH サイト機能」と一緒に使います（ポートフォリオ、事業内容の入力欄、お問い合わせフォームはプラグイン側にあります）。
Version: 1.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: athworks
Update URI: false
*/

:root {
  --ink: #22345A;          /* 紺：ロゴの文字・本文 */
  --ink-2: #4F5B74;
  --muted: #5B6680;
  --line: #E1E5EE;
  --alt: #F3F5FA;
  --blue: #2F5BC4;         /* 明るい青：流線・リンク */
  --blue-dark: #244A9F;
  --blue-tint: #EAF0FB;
  --orange: #E64E1C;       /* オレンジ：差し色（細い線・小さな印だけに使う。文字には使わない） */
  --dark: #1A2846;         /* 暗い背景 */
  --ink-hover: #2C4372;
  --accent: var(--orange);
  --accent-text: var(--blue);
  --on-dark: #D3DAE8;
  --on-dark-muted: #A9B3C9;
  --dotline: #C5CCDA;
  --error: #B42318;
  --radius: 12px;
  --font: 'M PLUS 1', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #FFFFFF; font-size: 16px; line-height: 1.8; line-break: strict; overflow-wrap: anywhere; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.container { width: 100%; max-width: 1168px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #FFFFFF; color: var(--ink); padding: 8px 16px; }
.skip-link:focus { left: 16px; top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.icon { width: 24px; height: 24px; flex-shrink: 0; }
.hero h1, .page-title, .section-title, .svc-title, .work-title, .entry-content h2, .entry-content h3, .entry-content .is-style-case summary { text-wrap: balance; word-break: auto-phrase; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header .container { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-logo { width: 63px; height: 26px; flex-shrink: 0; }
.menu-toggle { width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.js .global-nav { display: none; }
.js .global-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 64px; background: #FFFFFF; border-bottom: 1px solid var(--line); padding: 4px 24px 24px; max-height: calc(100vh - 64px); overflow-y: auto; }
/* JavaScriptが動かないときは、メニューを開閉せずに横に並べて出す */
@media (max-width: 1023px) {
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-header .container { flex-wrap: wrap; height: auto; min-height: 64px; padding-top: 12px; padding-bottom: 12px; row-gap: 6px; }
  html:not(.js) .global-nav { width: 100%; }
  html:not(.js) .global-nav ul { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 18px; }
  html:not(.js) .global-nav a { padding: 6px 0; border: 0; }
  html:not(.js) .global-nav .nav-cta { height: 40px; margin-top: 4px; padding: 0 18px; }
}
.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.global-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; text-decoration: none; }
.global-nav a[aria-current="page"] { font-weight: 700; }
.global-nav .nav-cta { display: inline-flex; align-items: center; height: 48px; margin-top: 16px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-weight: 700; }
.global-nav .nav-cta:hover { background: var(--ink-hover); color: #FFFFFF; }

@media (min-width: 1024px) {
  html { scroll-padding-top: 96px; }
  .site-header .container { height: 80px; }
  .brand-logo { width: 73px; height: 30px; }
  .menu-toggle { display: none; }
  .global-nav, .js .global-nav, .js .global-nav.is-open { display: block; position: static; padding: 0; border: 0; background: transparent; max-height: none; overflow: visible; }
  .global-nav ul { flex-direction: row; align-items: center; gap: 28px; }
  .global-nav a { padding: 0; border: 0; font-size: 15px; }
  .global-nav a:hover { color: var(--accent-text); }
  .global-nav a[aria-current="page"]:not(.nav-cta) { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
  .global-nav .nav-cta { height: 44px; margin: 0; font-size: 15px; }
  .global-nav .nav-cta:hover { color: #FFFFFF; }
}
@media (min-width: 1200px) { .global-nav ul { gap: 32px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 32px; border: 1.5px solid transparent; border-radius: 999px; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { background: var(--ink-hover); color: #FFFFFF; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #FFFFFF; }
.btn-accent { background: #FFFFFF; color: var(--ink); }
.btn-accent:hover { background: #E3E9F6; color: var(--ink); }
@media (min-width: 1024px) { .btn { height: 56px; padding: 0 36px; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 32px 0 200px; background: #FFFFFF; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("assets/flow-light.svg?v=20261016") no-repeat 62% 100% / max(100%, 604px) auto; pointer-events: none; }
.hero .container { position: relative; }
.hero .container::before { content: ""; position: absolute; z-index: -2; left: -260px; top: -240px; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(closest-side, rgba(244, 175, 153, 0.3), rgba(244, 175, 153, 0)); pointer-events: none; }
.hero-logo { width: 136px; height: 56px; }
.hero-body { margin-top: 28px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { margin: 0; font-size: 34px; line-height: 1.4; font-weight: 700; letter-spacing: 0.02em; }
.hero-lead { margin: 16px 0 0; max-width: 640px; font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-outline { background: rgba(255, 255, 255, 0.86); }
.hero .btn-outline:hover { background: var(--ink); }
@media (min-width: 768px) { .hero h1 { font-size: 48px; } }
@media (min-width: 1024px) {
  .hero { padding: 64px 0 184px; }
  .hero::before { background-size: cover; background-position: right -150px bottom -32px; }
  .hero .container::before { left: -230px; top: -250px; width: 1000px; height: 1000px; }
  .hero-logo { width: 224px; height: 92px; }
  .hero-body { margin-top: 44px; gap: 40px; }
  .hero h1 { font-size: 60px; line-height: 1.35; }
  .hero-lead { margin-top: 24px; font-size: 18px; }
  .hero-actions { gap: 16px; }
}
@media (min-width: 1440px) { .hero::before { background-position: right bottom -32px; } }
/* 流線が左から右へ現れる（動きを減らす設定のときは動かさない） */
@media (prefers-reduced-motion: no-preference) {
  .hero::before { -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%); mask-image: linear-gradient(90deg, #000 40%, transparent 60%); -webkit-mask-size: 250% 100%; mask-size: 250% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; animation: flow-in 2.2s cubic-bezier(0.45, 0.05, 0.2, 1) 0.2s both; }
}
@keyframes flow-in { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--bordered { border-top: 1px solid var(--line); }
.section--alt { background: var(--alt); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 36px; }
.section-head--row { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.section-title { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 26px; line-height: 1.4; font-weight: 700; letter-spacing: 0.04em; }
.section-title::before { content: ""; width: 20px; height: 3px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.section-lead { margin: 0; font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.section-more { margin-top: 32px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; text-decoration: none; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-more .icon { width: 18px; height: 18px; transition: transform 0.15s; }
.link-more:hover .icon { transform: translateX(3px); }
@media (min-width: 1024px) {
  .section { padding: 120px 0; }
  .section--tight { padding: 72px 0; }
  .section-head { gap: 16px; margin-bottom: 56px; }
  .section-head--row { margin-bottom: 40px; }
  .section-title { gap: 14px; font-size: 32px; }
  .section-title::before { width: 24px; }
  .section-lead { font-size: 17px; }
  .section-more { margin-top: 56px; }
}

/* ---------- 事業内容のカード ---------- */
.svc-grid { display: grid; gap: 16px; }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.15s, box-shadow 0.15s; }
.svc-card:hover { border-color: var(--ink); box-shadow: 0 8px 24px rgba(34, 52, 90, 0.08); }
.svc-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); flex-shrink: 0; }
.svc-icon .icon { width: 26px; height: 26px; }
.svc-title { margin: 4px 0 0; font-size: 19px; line-height: 1.5; font-weight: 700; }
.svc-title a { color: var(--ink); text-decoration: none; }
.svc-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.svc-title a:focus-visible { outline: none; }
.svc-title a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 3px; }
.svc-desc { margin: 0; font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.svc-price { margin: auto 0 0; padding-top: 14px; border-top: 1px dashed var(--dotline); font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--accent-text); }
.svc-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.svc-more .icon { width: 18px; height: 18px; transition: transform 0.15s; }
.svc-card:hover .svc-more .icon { transform: translateX(4px); }
.svc-card--consult { background: var(--alt); border: 1px dashed var(--dotline); }
.svc-card--consult:hover { border-color: var(--dotline); box-shadow: none; }
.svc-card--consult .svc-icon { background: #FFFFFF; }
.svc-action { margin: auto 0 0; padding-top: 4px; }
.svc-action .btn { height: 48px; padding: 0 24px; font-size: 15px; }
.svc-intro { margin-bottom: 40px; }
/* 図のあるカード：図をカードの幅いっぱいに出し、アイコンを図の下の端に重ねる */
.svc-card--media { padding-top: 0; }
.svc-thumb { margin: 0 -24px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 11px 11px 0 0; border-bottom: 1px solid var(--line); background: var(--alt); }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .svc-thumb img { transition: transform 0.35s ease; }
  .svc-card:hover .svc-thumb img { transform: scale(1.03); }
}
.svc-card--media .svc-icon { position: relative; margin-top: -36px; box-shadow: 0 0 0 4px #FFFFFF; }
.svc-grid--media .svc-card--consult { justify-content: center; }
.svc-grid--media .svc-card--consult .svc-action { margin-top: 8px; }
@media (min-width: 768px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .svc-card { padding: 30px 28px 28px; gap: 14px; }
  .svc-card--media { padding-top: 0; }
  .svc-thumb { margin: 0 -28px; }
  .svc-card--media .svc-icon { margin-top: -38px; }
  .svc-title { font-size: 20px; }
}

/* ほかの事業（小さなリンク） */
.svc-mini { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.svc-mini a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.svc-mini a:hover { border-color: var(--ink); color: var(--ink); }
.svc-mini .svc-icon { width: 40px; height: 40px; border-radius: 10px; }
.svc-mini .svc-icon .icon { width: 22px; height: 22px; }
.svc-mini .icon-arrow { margin-left: auto; width: 18px; height: 18px; color: var(--blue); }
@media (min-width: 768px) { .svc-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .svc-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

/* このカテゴリの事業内容（ポートフォリオのページの下） */
.svc-box { margin-top: 56px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 18px; align-items: start; padding: 24px; background: var(--alt); border-radius: var(--radius); }
.svc-box .svc-icon { background: #FFFFFF; }
.svc-box-title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.5; }
.svc-box-desc { margin: 4px 0 0; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.svc-box .btn { grid-column: 1 / -1; justify-self: start; height: 48px; padding: 0 24px; font-size: 15px; }
.svc-box .btn-outline { background: #FFFFFF; }
.svc-box .btn-outline:hover { background: var(--ink); color: #FFFFFF; }
@media (min-width: 1024px) {
  .svc-box { margin-top: 72px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 28px 32px; }
  .svc-box .btn { grid-column: auto; }
}

/* ---------- ポートフォリオのカード ---------- */
.work-grid { display: grid; gap: 20px; }
.work-card { position: relative; display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.work-card:hover { border-color: var(--ink); box-shadow: 0 8px 24px rgba(34, 52, 90, 0.08); }
.work-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--alt); overflow: hidden; border-bottom: 1px solid var(--line); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .work-thumb img { transition: transform 0.35s ease; }
  .work-card:hover .work-thumb img { transform: scale(1.03); }
}
.work-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dotline); }
.work-ph .icon { width: 56px; height: 56px; stroke-width: 1.25; }
.work-badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(26, 40, 70, 0.88); color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 1.6; }
.work-badge .icon { width: 14px; height: 14px; }
.work-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.work-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; line-height: 1.6; }
.work-cat { font-weight: 700; color: var(--accent-text); }
.work-kind { padding: 1px 8px; border-radius: 4px; background: var(--alt); color: var(--ink-2); }
.work-title { margin: 0; font-size: 17px; line-height: 1.55; font-weight: 700; }
.work-title a { color: var(--ink); text-decoration: none; }
.work-title a::after { content: ""; position: absolute; inset: 0; }
.work-title a:focus-visible { outline: none; }
.work-title a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: var(--radius); }
.work-excerpt { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
@media (min-width: 768px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 1件だけのときは、横長のカードにして大きく見せる */
  .work-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
  .work-grid[data-count="1"] .work-card { flex-direction: row; }
  .work-grid[data-count="1"] .work-thumb { flex: 0 0 56%; border-bottom: 0; border-right: 1px solid var(--line); }
  .work-grid[data-count="1"] .work-body { justify-content: center; gap: 12px; padding: 32px 36px; }
  .work-grid[data-count="1"] .work-title { font-size: 22px; }
  .work-grid[data-count="1"] .work-excerpt { font-size: 15px; }
}
@media (min-width: 1024px) {
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
  .work-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-title { font-size: 18px; }
}
.empty { margin: 0; padding: 28px; background: #FFFFFF; border: 1px dashed var(--dotline); border-radius: var(--radius); color: var(--ink-2); font-size: 15px; line-height: 1.9; }
.empty p { margin: 0; }

/* ページ送り */
.pagination ul { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 15px; text-decoration: none; }
.pagination a:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

/* ---------- ポートフォリオの詳細 ---------- */
.work-single { padding: 32px 0 72px; }
.work-figure { margin: 0 0 40px; overflow: hidden; background: var(--alt); border: 1px solid var(--line); border-radius: 14px; }
.work-figure img { width: 100%; }
.work-layout { display: grid; gap: 40px; }
.work-info dl { margin: 0; padding: 22px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.work-info dt { font-size: 12px; font-weight: 700; line-height: 1.6; color: var(--muted); }
.work-info dd { margin: 2px 0 0; font-size: 15px; line-height: 1.7; word-break: auto-phrase; }
.tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 2px 10px; border-radius: 999px; background: var(--alt); font-size: 13px; line-height: 1.7; }
.ext { display: inline-flex; align-items: center; gap: 4px; }
.ext .icon { width: 16px; height: 16px; }
@media (min-width: 1024px) {
  .work-single { padding: 56px 0 112px; }
  .work-figure { margin-bottom: 64px; }
  .work-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
  .work-info { position: sticky; top: 112px; }
}

/* ---------- 本文（ブロックエディターで書いた内容） ---------- */
.entry-content { font-size: 16px; line-height: 1.9; }
.entry-content > * { margin-top: 0; margin-bottom: 0; }
.entry-content > * + * { margin-top: 20px; }
.entry-content h2 { display: flex; align-items: center; gap: 12px; font-size: 23px; line-height: 1.45; font-weight: 700; letter-spacing: 0.04em; }
.entry-content h2::before { content: ""; width: 20px; height: 3px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.entry-content > h2, .entry-content > .svc-pricing { margin-top: 64px; }
.entry-content > h2:first-child { margin-top: 0; }
.entry-content > h3 { margin-top: 40px; font-size: 19px; line-height: 1.5; }
.entry-content > h2 + *, .entry-content > h3 + * { margin-top: 16px; }
.entry-content h4 { font-size: 17px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 6px; }
.entry-content a { text-underline-offset: 3px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content .wp-block-image img, .entry-content .wp-block-gallery img { border-radius: 10px; }
.entry-content .wp-block-image > img, .entry-content > .wp-block-image img { border: 1px solid var(--line); }
.entry-content figcaption { margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--muted); text-align: center; }
.entry-content .wp-block-video video { width: 100%; border-radius: 10px; background: #000000; }
.entry-content .wp-block-embed iframe { width: 100%; border: 0; border-radius: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--alt); }
.entry-content hr { margin: 48px 0; border: 0; border-top: 1px solid var(--line); }
.entry-content blockquote { margin-left: 0; margin-right: 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--line); color: var(--ink-2); }
.entry-content .is-style-small { font-size: 14px; line-height: 1.8; color: var(--muted); }
.entry-content .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 28px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: #FFFFFF; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: var(--ink-hover); border-color: var(--ink-hover); color: #FFFFFF; }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); }
.entry-content .is-style-outline .wp-block-button__link:hover { background: var(--ink); color: #FFFFFF; }
.entry-content .is-style-note { padding: 14px 18px; background: var(--alt); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
@media (min-width: 1024px) {
  .entry-content h2 { font-size: 28px; gap: 14px; }
  .entry-content h2::before { width: 22px; }
  .entry-content > h2, .entry-content > .svc-pricing { margin-top: 96px; }
  .entry-content > h3 { margin-top: 56px; font-size: 21px; }
  .entry-content > h2 + *, .entry-content > h3 + * { margin-top: 20px; }
  .entry-content .is-style-note { padding: 16px 22px; font-size: 15px; }
}

/* よくあるご相談（課題・仕組み・変わること）：スマホは開閉、PCはカードで全件表示 */
.entry-content .is-style-cards { display: grid; gap: 0; border-top: 1px solid var(--line); }
.entry-content .is-style-cards > * { margin: 0; }
.entry-content .is-style-case { border-bottom: 1px solid var(--line); }
.entry-content .is-style-case summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-size: 16px; font-weight: 700; line-height: 1.55; }
.entry-content .is-style-case summary::-webkit-details-marker { display: none; }
.entry-content .is-style-case summary::after { content: ""; width: 14px; height: 14px; flex-shrink: 0; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; }
.entry-content .is-style-case[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat; }
.entry-content .is-style-case > p { margin: 0 0 14px; font-size: 15px; line-height: 1.8; }
.entry-content .is-style-case > p:last-child { margin-bottom: 22px; }
.entry-content .is-style-case p > strong:first-child { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
.entry-content .is-style-case p:nth-of-type(2) > strong:first-child { color: var(--accent-text); }
.entry-content .is-style-case p:nth-of-type(3) > strong:first-child { color: var(--ink); }
@media (min-width: 1024px) {
  .entry-content .is-style-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 0; }
  .entry-content .is-style-case { padding: 26px 26px 4px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; }
  .js .entry-content .is-style-case summary { padding: 0 0 16px; cursor: default; font-size: 18px; }
  .js .entry-content .is-style-case summary::after { display: none; }
  .entry-content .is-style-case p > strong:first-child { font-size: 13px; }
}

/* 事業内容の各ページ */
.svc-body { padding: 40px 0 72px; }
.svc-body .entry-content > * { max-width: 760px; }
.svc-body .entry-content > .is-style-cards, .svc-body .entry-content > .svc-pricing { max-width: none; }
.svc-pricing .price-list { margin-top: 20px; }
@media (min-width: 1024px) {
  .svc-body { padding: 72px 0 120px; }
  .svc-pricing .price-list { margin-top: 28px; }
  .svc-pricing .price-row { grid-template-columns: 320px 200px minmax(0, 1fr); }
}

/* ---------- pricing ---------- */
.price-list { margin: 0; border-top: 1px solid var(--line); }
.price-row { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.price-row dt { font-size: 16px; font-weight: 700; line-height: 1.6; }
.price-row dt a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--dotline); text-underline-offset: 4px; }
.price-row dt a:hover { text-decoration-color: var(--ink); }
.price-row dd { margin: 0; }
.price-row .price { font-size: 17px; font-weight: 700; line-height: 1.6; color: var(--accent-text); }
.price-row .desc { font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.price-notes { margin: 20px 0 0; padding-left: 1.3em; font-size: 13px; line-height: 1.8; color: var(--muted); }
.price-notes li + li { margin-top: 4px; }
@media (min-width: 1024px) {
  .price-row { display: grid; grid-template-columns: 300px 300px minmax(0, 1fr); gap: 24px; padding: 26px 0; align-items: start; }
  .price-row dt { font-size: 17px; }
  .price-row .price { font-size: 18px; }
  .price-row .desc { font-size: 15px; }
  .price-notes { margin-top: 28px; font-size: 14px; }
}

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; padding-bottom: 32px; }
.step:last-child { padding-bottom: 0; }
.step-num { font-size: 26px; font-weight: 700; line-height: 1.3; letter-spacing: 0.02em; color: var(--blue); font-variant-numeric: tabular-nums; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 46px; bottom: 10px; width: 2px; border-radius: 1px; background: linear-gradient(180deg, rgba(47, 91, 196, 0.55), rgba(47, 91, 196, 0.1)); }
.step-body { display: flex; flex-direction: column; gap: 6px; padding-top: 3px; }
.step h3 { margin: 0; font-size: 18px; line-height: 1.5; }
.step p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.process-notes { margin-top: 40px; display: grid; gap: 14px; }
.section--tight .process-notes { margin-top: 0; }
.note-box { background: var(--alt); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.note-box h2, .note-box h3 { margin: 0; font-size: 16px; line-height: 1.5; }
.note-box p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
@media (min-width: 1024px) {
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .step { display: flex; flex-direction: column; gap: 16px; padding-bottom: 0; }
  .step-num { font-size: 32px; }
  .step:not(:last-child)::after { left: 64px; right: -16px; top: 20px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, rgba(47, 91, 196, 0.55), rgba(47, 91, 196, 0.1)); }
  .step-body { gap: 10px; padding-top: 0; }
  .step h3 { font-size: 20px; }
  .process-notes { margin-top: 64px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .note-box { padding: 28px; gap: 10px; }
  .note-box h2, .note-box h3 { font-size: 18px; }
  .note-box p { font-size: 15px; }
}

/* company */
.company { display: grid; gap: 24px; }
.company dl { margin: 0; border-top: 1px solid var(--line); }
.company .row { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.company dt { font-size: 13px; line-height: 1.7; color: var(--muted); }
.company dd { margin: 0; font-size: 15px; line-height: 1.8; }
@media (min-width: 1024px) {
  .company { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
  .company .row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 20px 0; }
  .company dt { font-size: 15px; line-height: 1.8; }
  .company dd { font-size: 16px; }
}

/* call to action */
.cta { background: var(--dark); background: linear-gradient(180deg, rgba(26, 40, 70, 0.92) 0%, rgba(26, 40, 70, 0.8) 55%, rgba(26, 40, 70, 0.25) 100%), url("assets/flow-dark.svg?v=20261016") no-repeat 62% 100% / max(100%, 604px) auto, var(--dark); color: #FFFFFF; padding: 72px 0 112px; }
.cta .container { display: flex; flex-direction: column; gap: 28px; }
.cta-body { display: flex; flex-direction: column; gap: 28px; }
.cta-text { display: flex; flex-direction: column; gap: 12px; }
.cta .section-title { color: #FFFFFF; align-items: baseline; }
.cta .section-title::before { transform: translateY(-0.42em); }
.cta p { margin: 0; font-size: 16px; line-height: 1.9; color: var(--on-dark); }
.cta .note { font-size: 13px; color: var(--on-dark-muted); }
@media (min-width: 1024px) {
  .cta { padding: 112px 0; background: linear-gradient(90deg, rgba(26, 40, 70, 0.94) 0%, rgba(26, 40, 70, 0.82) 38%, rgba(26, 40, 70, 0) 68%), url("assets/flow-dark.svg?v=20261016") no-repeat right bottom / cover, var(--dark); }
  .cta .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 64px; }
  .cta-body { gap: 36px; max-width: 680px; }
  .cta-text { gap: 16px; }
  .cta p { font-size: 17px; }
  .cta .note { font-size: 14px; }
}

/* footer */
.site-footer { background: var(--dark); color: var(--on-dark); border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 40px 0; }
.site-footer .container { display: grid; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { width: 88px; height: 36px; }
.footer-tagline { margin: 0; font-size: 13px; color: var(--on-dark-muted); }
.footer-nav { display: grid; gap: 28px; }
.footer-head { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: #FFFFFF; }
.footer-head a { color: #FFFFFF; text-decoration: none; }
.footer-head a:hover { text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links--col { flex-direction: column; gap: 6px; }
.footer-links a { color: var(--on-dark); font-size: 14px; line-height: 1.7; text-decoration: none; }
.footer-links a:hover { color: #FFFFFF; text-decoration: underline; }
.copyright { font-size: 13px; color: var(--on-dark-muted); }
@media (min-width: 768px) { .footer-nav { grid-template-columns: repeat(2, max-content); gap: 64px; } }
@media (min-width: 1024px) {
  .site-footer { padding: 56px 0 40px; }
  .site-footer .container { grid-template-columns: minmax(0, 1fr) auto; column-gap: 64px; row-gap: 40px; }
  .footer-logo { width: 100px; height: 41px; }
  .copyright { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
}

/* ---------- sub pages ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--alt); padding: 28px 0 40px; }
.page-hero .container { display: flex; flex-direction: column; gap: 20px; }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
@media (max-width: 1023px) { .breadcrumb li[aria-current="page"] { display: none; } }
.page-head { display: flex; flex-direction: column; gap: 14px; max-width: 840px; }
.page-kicker { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.6; color: var(--accent-text); }
.page-kicker a { color: inherit; text-decoration: none; }
.page-kicker a:hover { text-decoration: underline; }
.page-title { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-size: 28px; line-height: 1.4; font-weight: 700; letter-spacing: 0.04em; }
.page-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: #FFFFFF; color: var(--blue); box-shadow: inset 0 0 0 1px var(--line); flex-shrink: 0; }
.page-icon .icon { width: 28px; height: 28px; }
.page-lead { margin: 0; max-width: 720px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border: 1px solid var(--dotline); border-radius: 999px; background: #FFFFFF; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.chips a:hover { border-color: var(--ink); color: var(--ink); }
.chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; font-weight: 700; }
/* 見出しの横の図（事業内容の各ページ）。スマートフォンでは、説明文と「このページの内容」のあいだに出す */
.page-hero-grid { display: flex; flex-direction: column; gap: 20px; }
.page-hero-main { display: contents; }
.page-hero--media .page-head { order: 1; }
.page-hero--media .page-chips { order: 3; }
.page-hero-media { order: 2; width: 100%; max-width: 640px; margin: 4px 0 0; overflow: hidden; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 28px rgba(26, 40, 70, 0.08); }
.page-hero-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 1024px) {
  .page-hero { padding: 72px 0 64px; }
  .page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #F3F5FA 0%, rgba(243, 245, 250, 0.9) 40%, rgba(243, 245, 250, 0) 75%), url("assets/flow-light.svg?v=20261016") no-repeat right center / auto 170%; pointer-events: none; }
  .page-hero .container { gap: 28px; }
  .breadcrumb { font-size: 14px; }
  .page-head { gap: 20px; }
  .page-kicker { font-size: 14px; }
  .page-title { flex-direction: row; align-items: center; gap: 20px; font-size: 44px; line-height: 1.35; }
  .page-icon { width: 72px; height: 72px; border-radius: 18px; }
  .page-icon .icon { width: 38px; height: 38px; }
  .page-lead { font-size: 17px; }
  .chips { gap: 10px; }
  .chips a { min-height: 40px; padding: 6px 18px; font-size: 14px; }
  .page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .page-hero-main { display: flex; flex-direction: column; gap: 28px; }
  .page-hero-media { max-width: none; margin: 0; border-radius: 18px; box-shadow: 0 18px 44px rgba(26, 40, 70, 0.1); }
  .page-hero--media::before { opacity: 0.55; }
  .page-hero--media .page-title { font-size: 40px; }
}

/* 文書のページ（プライバシーポリシーなど） */
.doc-section { padding: 40px 0 72px; }
.doc { max-width: 760px; }
.doc.entry-content > h2 { margin-top: 40px; font-size: 19px; }
.doc.entry-content > h2::before { width: 16px; }
.doc.entry-content > h2 + * { margin-top: 10px; }
.doc.entry-content > * + * { margin-top: 12px; }
.doc.entry-content { font-size: 15px; }
@media (min-width: 1024px) { .doc-section { padding: 64px 0 120px; } .doc.entry-content > h2 { font-size: 21px; margin-top: 48px; } .doc.entry-content { font-size: 16px; } }

.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list a { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.post-list a:hover { color: var(--accent-text); }
.post-date { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* contact page */
.form-section { padding: 40px 0 72px; }
.form { max-width: 720px; display: flex; flex-direction: column; gap: 24px; }
.notice { margin: 0; padding: 16px 18px; border-radius: 8px; background: var(--alt); color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.form-errors { margin: 0; padding: 14px 18px; border: 1px solid #F1B5AE; border-radius: 8px; background: #FEF3F2; color: #912018; font-size: 14px; line-height: 1.8; }
.form-errors ul { margin: 6px 0 0; padding-left: 1.2em; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-label { font-size: 15px; font-weight: 700; }
.badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 1.7; vertical-align: 2px; }
.badge-req { background: var(--ink); color: #FFFFFF; }
.badge-opt { background: var(--line); color: var(--ink-2); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #B6BFD0; border-radius: 8px; background: #FFFFFF; color: var(--ink); font-family: inherit; font-size: 16px; line-height: 1.6; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 200px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(47, 91, 196, 0.3); outline-offset: 0; border-color: var(--accent-text); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .hint { margin: 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.field .error { margin: 0; font-size: 13px; font-weight: 700; color: var(--error); }
.checks { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.7; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { padding-top: 8px; }
.thanks { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.thanks h2 { margin: 0; font-size: 22px; line-height: 1.5; }
.thanks p { margin: 0; font-size: 16px; line-height: 1.9; color: var(--ink-2); }
@media (min-width: 1024px) { .form-section { padding: 64px 0 120px; } }
