/* =========================================================
   ARTEORION エディトリアル（ver 0.9.0〜）
   style.css の上に重ねる見た目だけのCSS。
   生成りの紙・黒インク・細い罫線・大きな見出し。金茶（--accent）は差し色だけに使う。
   --accent は図形（canvas）の色にも使われるため、ここでは変えない。
   以前の見た目に戻すときは、functions.php で editorial.css の読み込みを外す。
   ========================================================= */

:root{
  --bg:#F3F0E8; --surface:#FAF8F3; --surface-alt:#EAE5D9; --border:rgba(17,17,17,.16);
  --text:#111111; --muted:#5a5650;
  --rule:#111111;        /* 区切りの太い罫線 */
  --inv-bg:#111111;      /* 反転（時計の帯・ボタン・フッター） */
  --inv-text:#F3F0E8;
  --inv-muted:#a9a49a;
  --clock-bg:#111111;    /* 一番上の時計の帯（夜は濃紺） */
  --ease:cubic-bezier(.2,.8,.2,1);
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#0D1628; --surface:#132038; --surface-alt:#17253F; --border:rgba(232,228,218,.14);
    --text:#ECE8DF; --muted:#A4ABBA; --rule:rgba(232,228,218,.45);
    --inv-bg:#ECE8DF; --inv-text:#0D1628; --inv-muted:#4E5566; --clock-bg:#08101F;
  }
}
:root[data-theme="dark"]{
  --bg:#0D1628; --surface:#132038; --surface-alt:#17253F; --border:rgba(232,228,218,.14);
  --text:#ECE8DF; --muted:#A4ABBA; --rule:rgba(232,228,218,.45);
  --inv-bg:#ECE8DF; --inv-text:#0D1628; --inv-muted:#4E5566; --clock-bg:#08101F;
}
:root[data-theme="light"]{
  --bg:#F3F0E8; --surface:#FAF8F3; --surface-alt:#EAE5D9; --border:rgba(17,17,17,.16);
  --text:#111111; --muted:#5a5650; --rule:#111111;
  --inv-bg:#111111; --inv-text:#F3F0E8; --inv-muted:#a9a49a; --clock-bg:#111111;
}
html, body{overflow-x:clip;}
/* 親テーマのスマホ用CSSが、親の固定ヘッダーのぶん body に上余白（60px）を取る。子テーマのページは親のヘッダーを使わないので消す */
html body.arteorion-front, html body.arteorion-sub{padding-top:0;}

/* ---------- 世界時計（一番上の帯・左寄せ） ---------- */
.wclock{display:flex; justify-content:flex-start; overflow-x:auto; scrollbar-width:none; background:var(--clock-bg); color:#a9a49a;
  padding:0 calc(4vw - 22px); font-family:ui-monospace,"SF Mono","Cascadia Code",Consolas,monospace; position:relative; z-index:4;}
.wclock::-webkit-scrollbar{display:none;}
.wclock .c{flex:0 0 auto; display:flex; align-items:baseline; gap:10px; padding:9px 22px; white-space:nowrap;}
.wclock .c + .c{border-left:1px solid rgba(255,255,255,.12);}
.wclock .city{font-size:10px; letter-spacing:.18em;}
.wclock .t{font-size:13px; letter-spacing:.04em; color:#F3F0E8; font-variant-numeric:tabular-nums;}
.wclock .ap{font-size:9px; letter-spacing:.1em; margin-left:2px;}
.wclock .home .city::before{content:""; display:inline-block; width:5px; height:5px; border-radius:50%; background:#c08a45; margin-right:7px; vertical-align:2px;}
:root[data-theme="dark"] .wclock{border-bottom:1px solid var(--rule);}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .wclock{border-bottom:1px solid var(--rule);} }

/* ---------- ナビ（ロゴの文字は従来の1.3倍、マークは1.5倍） ---------- */
.navrow{padding:20px 4vw; border-bottom:1px solid var(--rule);}
.navrow .mark{font-size:20.8px; gap:13px;}
.navrow .mark a{gap:13px !important;}
.navrow .mark canvas{width:39px; height:39px;}
.navrow .byline{font-size:12.35px; margin-top:3px;}
.navrow .links{color:var(--text); letter-spacing:.06em;}
/* 親テーマのリンク色（黒）が後から効くため、詳しい指定で文字色を引き継がせる（夜の表示で読めなくなるのを防ぐ） */
html body .navrow .links a, html body .crumbs a{position:relative; color:inherit;}
.navrow .links a::after{content:""; position:absolute; left:0; right:0; bottom:-4px; height:1px; background:currentColor; transform:scaleX(0); transform-origin:left; transition:transform .35s var(--ease);}
.navrow .links a:hover::after, .navrow .links a[aria-current="page"]::after{transform:scaleX(1);}
@media (max-width:760px){
  /* スマホ：1行目にロゴと EN/◐、2行目にメニュー4つ */
  .navrow{flex-wrap:wrap; row-gap:14px; padding:16px 5vw;}
  .navrow .right{display:contents;}
  .navrow .utils{margin-left:auto;}
  .navrow .links{display:flex; order:3; width:100%; justify-content:space-between; gap:8px; font-size:12px; letter-spacing:.02em;}
}

/* ---------- ヒーロー ---------- */
.hero{background:none; border-bottom:1px solid var(--rule);}
.hero-inner{padding:120px 4vw; max-width:1320px; margin:0 auto;}
h1{font-size:clamp(36px,6.2vw,88px); line-height:1.18; font-weight:600; letter-spacing:-.025em;}
.page-hero{background:none; border-bottom:1px solid var(--rule); padding:110px 4vw 96px;}
.page-hero-inner{max-width:1320px;}
.page-hero h1{font-size:clamp(32px,5.4vw,76px);}
.eyebrow{color:var(--text);}
.eyebrow::before{content:""; display:inline-block; width:28px; height:1px; background:var(--accent); margin-right:12px; vertical-align:4px;}
.statement .eyebrow::before{display:none;}
.hero p.lede, .page-hero p.lede{font-size:17px;}
.hero p.lede{margin-bottom:14px;}
/* 日本語の見出しを単語の途中で折り返さない（対応ブラウザのみ。非対応でも従来どおり） */
h1, h2, h3, .lede-sign, .principle-main, .fb-title{word-break:auto-phrase;}
h2{overflow-wrap:anywhere;}
.arteorion-sub .hero h1{font-size:clamp(32px,4.6vw,66px); line-height:1.22;}
.lede-sign{margin:0 0 34px; max-width:54ch; color:var(--text); font-size:15px; letter-spacing:.04em; border-left:2px solid var(--accent); padding-left:12px;}

/* ---------- ボタン ---------- */
.btn{border-radius:0; padding:15px 28px; letter-spacing:.04em; transition:background .25s, color .25s, border-color .25s;}
.btn-primary{background:var(--inv-bg); color:var(--inv-text); font-weight:600;}
.btn-primary:hover{background:var(--accent); color:#fff;}
.btn-ghost{border-color:var(--rule); color:var(--text);}
.btn-ghost:hover{background:var(--inv-bg); color:var(--inv-text);}
.wpcf7 .contact-form .wpcf7-submit{background-color:var(--inv-bg); color:var(--inv-text); border-radius:0;}
.wpcf7 .contact-form .wpcf7-submit:hover{background-color:var(--accent); opacity:1;}
.util-btn{border-radius:0;}

/* ---------- ステートメント ---------- */
.statement{border-bottom:1px solid var(--rule); padding:140px 6vw;}
.statement blockquote{font-size:clamp(24px,3.4vw,38px); max-width:26ch; letter-spacing:-.01em;}

/* ---------- セクション ---------- */
section.block{max-width:1320px; padding:120px 4vw;}
section.block + section.block{border-top:1px solid var(--rule);}
h2{font-size:clamp(28px,4vw,52px); letter-spacing:-.02em; font-weight:600; line-height:1.25;}
.block-head{max-width:none; display:grid; grid-template-columns:1fr 1fr; column-gap:6vw; align-items:end;}
.block-head .eyebrow{grid-column:1/-1;}
.block-head > p{max-width:46ch;}
.services{background:var(--rule); border-color:var(--rule);}
.service{background:var(--bg); transition:background .3s, color .3s; padding:40px 32px;}
.service:hover{background:var(--inv-bg); color:var(--inv-text);}
.service:hover p{color:var(--inv-muted);}
.steps::before{background:var(--rule);}
.step::before{background:var(--bg);}
.media{border-color:var(--rule);}
.diagnose-result{border-color:var(--rule);}
.cta-block::before{opacity:.85;}
footer{background:var(--inv-bg); color:var(--inv-muted); border-top:0; padding:56px 4vw;}
@media (max-width:760px){
  .block-head{grid-template-columns:1fr;}
  .hero-inner{padding:72px 6vw;}
  .page-hero{padding:72px 6vw 64px;}
  section.block{padding:80px 6vw;}
  .statement{padding:96px 6vw;}
}

/* ---------- パンくず ---------- */
.crumbs{font-family:var(--mono); font-size:11px; letter-spacing:.08em; color:var(--muted); margin:0 0 28px;}
.crumbs ol{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px;}
.crumbs li + li::before{content:"/"; margin-right:8px;}
.crumbs a{text-decoration:none;}
.crumbs a:hover{color:var(--text);}

/* ---------- トップ・サービスページから新ページへの帯 ---------- */
.feature-band{display:grid; grid-template-columns:auto 1fr auto; gap:28px 40px; align-items:center; margin-top:56px; padding:36px 32px;
  border:1px solid var(--rule); text-decoration:none; color:var(--text); transition:background .3s, color .3s;}
.feature-band .fb-tag{font-family:var(--mono); font-size:11px; letter-spacing:.16em; color:var(--accent);}
.feature-band .fb-text{display:block;}
.feature-band .fb-title{font-size:clamp(18px,2.2vw,26px); font-weight:600; line-height:1.45; margin:0 0 6px;}
.feature-band .fb-body{font-size:14px; color:var(--muted); margin:0;}
.feature-band .fb-arrow{font-family:var(--mono); font-size:22px; transition:transform .3s var(--ease);}
.feature-band:hover{background:var(--inv-bg); color:var(--inv-text);}
.feature-band:hover .fb-body{color:var(--inv-muted);}
.feature-band:hover .fb-arrow{transform:translateX(6px);}
@media (max-width:760px){ .feature-band{grid-template-columns:1fr; padding:28px 22px;} .feature-band .fb-arrow{display:none;} }

/* =========================================================
   LegacyORION ページ
   ========================================================= */
.principle{margin:36px 0 0; padding:18px 0 0; border-top:1px solid var(--rule); max-width:46ch; font-size:15px;}
.principle .principle-main{font-size:clamp(17px,1.8vw,21px); font-weight:600; margin:0 0 4px;}
.principle .principle-note{color:var(--muted); font-size:14px; margin:0;}

/* ヒーロー右：関数がつながる地図（トップのネットワーク図を流用） */
.legacy-map{position:relative; width:100%; max-width:460px; aspect-ratio:1; justify-self:end; border:1px solid var(--rule); background:var(--surface);}
.legacy-map .network-canvas{position:absolute; inset:0; width:100%; height:100%;}
@media (max-width:760px){ .legacy-map{order:0; max-width:none; aspect-ratio:16/10; justify-self:stretch;} }

/* 01 READ：格子の背景を敷く */
.read-section{position:relative; overflow:hidden;}
.read-section .lattice-bg{position:absolute; inset:0; z-index:0; width:100%; height:100%; opacity:.55; pointer-events:none;}
.read-section .block-head, .read-section .services{position:relative; z-index:1;}
.services--5{grid-template-columns:repeat(6,minmax(0,1fr));}
.services--5 > .service{grid-column:span 2;}
.services--5 > .service:nth-child(-n+2){grid-column:span 3;}
.services--4{grid-template-columns:repeat(4,minmax(0,1fr));}
.service p.quote{margin-top:10px; font-size:13px; color:var(--text); border-left:2px solid var(--accent); padding-left:10px;}
.service:hover p.quote{color:var(--inv-text);}
.service--human{background:var(--surface-alt);}
.service--human .idx{color:var(--text);}
@media (max-width:900px){ .services--5{grid-template-columns:repeat(2,minmax(0,1fr));} .services--5 > .service, .services--5 > .service:nth-child(-n+2){grid-column:auto;} .services--5 > .service:last-child{grid-column:1/-1;} }
@media (max-width:900px){ .services--4{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width:640px){ .services--5, .services--4{grid-template-columns:1fr;} h2{font-size:clamp(24px,7vw,30px);} }

/* 03 PROCESS：8工程の表 */
.flow{list-style:none; margin:0; padding:0; border-top:1px solid var(--rule); counter-reset:none;}
.flow li{display:grid; grid-template-columns:72px minmax(8em,.9fr) 2fr minmax(9em,1fr); gap:24px; align-items:baseline;
  padding:22px 0; border-bottom:1px solid var(--border); transition:background .3s;}
.flow li:last-child{border-bottom:1px solid var(--rule);}
.flow li:hover{background:var(--surface);}
.flow .no{font-family:var(--mono); font-size:12px; color:var(--accent); letter-spacing:.08em; padding-left:4px;}
.flow h3{font-size:18px; margin:0; font-weight:600;}
.flow p{margin:0; font-size:14px; color:var(--muted);}
.flow .out{font-family:var(--mono); font-size:12px; letter-spacing:.04em; color:var(--text);}
.flow .out::before{content:"→ "; color:var(--accent);}
.gate-note{margin:22px 0 0; font-size:13px; color:var(--muted);}
@media (max-width:760px){
  .flow li{grid-template-columns:44px 1fr; gap:6px 14px;}
  .flow p, .flow .out{grid-column:2;}
}

/* 04 OPERATE：3つの動作 */
.ops{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--rule); border-bottom:1px solid var(--rule);}
.op{padding:36px 30px 40px; position:relative;}
.op + .op{border-left:1px solid var(--rule);}
.op .step-tag{font-family:var(--mono); font-size:11px; letter-spacing:.14em; color:var(--accent); margin:0 0 18px;}
.op h3{font-size:clamp(18px,1.9vw,23px); line-height:1.5; margin:0 0 14px; font-weight:600;}
.op p{font-size:14px; color:var(--muted); margin:0;}
.op + .op::before{content:"→"; position:absolute; left:-.6em; top:34px; background:var(--bg); font-family:var(--mono); color:var(--accent); padding:0 2px;}
.ops-close{margin:40px 0 0; font-size:clamp(18px,2vw,24px); font-weight:600; line-height:1.6;}
@media (max-width:860px){
  .ops{grid-template-columns:1fr;}
  .op + .op{border-left:0; border-top:1px solid var(--border);}
  .op + .op::before{content:"↓"; left:30px; top:-.8em;}
}

/* 05 FAQ */
.faq{border-top:1px solid var(--rule);}
.faq details{border-bottom:1px solid var(--border);}
.faq details:last-child{border-bottom-color:var(--rule);}
.faq summary{list-style:none; cursor:pointer; display:grid; grid-template-columns:1fr auto; gap:20px; align-items:baseline; padding:22px 0; font-size:17px; font-weight:600;}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::after{content:"+"; font-family:var(--mono); font-weight:400; font-size:20px; color:var(--accent); transition:transform .3s var(--ease);}
.faq details[open] summary::after{transform:rotate(45deg);}
.faq .a{padding:0 0 26px; max-width:62ch; color:var(--muted); font-size:15px;}
.faq .a p{margin:0;}
