/* MIROCANA top page — 構成を W2 型に組み替えた区画の追加分（2026-11-15）。
   見た目（色・書体・寸法の考え方・動き）は公開中の otr.css をそのまま使い、新しい区画だけを同じ部品の言葉で足す。
   otr.css は変更しない。読ませる文字は全部16px以上（飾りの英字 aria-hidden だけ小さくしてよい基準）。 */

/* ---------- 色の入れ替え（otr.css の .otr-scene と同じ設定を、区画ごとに選べるようにする） ---------- */
.otr-sec--dark { --bg: var(--deep); --fg: #fff; --fg2: #d5dfed; --line: rgba(255,255,255,.22); --accent: var(--orange); }
.otr-sec--pale { --bg: var(--pale); }

/* ---------- ご相談できる仕事 3分野（ヒーローのすぐ下の細い帯・仕事名が流れる） ---------- */
.otr-sec.otr-areas { padding-block: clamp(32px, 3.6vw, 48px); border-top: 1px solid var(--line); overflow: hidden; }
.otr-areas-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 3.6vw, 60px); max-width: 1320px; margin: 0 auto; }
.otr-sec .otr-areas-title { display: flex; align-items: baseline; gap: .45em; margin: 0; font-weight: 700; white-space: nowrap; }
.otr-areas-title b { font: 800 clamp(56px, 5.2vw, 76px)/.86 var(--display); letter-spacing: .04em; color: var(--orange); }
.otr-ticker { display: flex; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); }
/* otr.css の `.otr-page ul/ol/p { margin:0; padding:0 }` が (0,1,1) で効くので、余白を持たせる ul/ol/p は .otr-page を頭に付けて勝たせる */
.otr-page .otr-ticker-track { flex: 0 0 auto; display: flex; gap: 12px; padding-right: 12px; animation: otr-ticker 56s linear infinite; }
.otr-ticker-track li { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 20px; border: 2px solid var(--line); font-weight: 500; white-space: nowrap; }
.otr-ticker-track li::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; background: var(--orange); }
@keyframes otr-ticker { to { transform: translateX(-100%); } }
body.otr-motion-paused .otr-ticker-track { animation-play-state: paused; }

/* ---------- お役立ち情報（参考サイトの型：テーマの札→記事カードが横に流れる→橙のボタン。トップと、お役立ち情報ページで共通） ---------- */
.otr-info-group-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; margin-top: clamp(32px, 4vw, 52px); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.otr-page .otr-info-group-title { margin: 0; padding-left: 14px; border-left: 4px solid var(--orange); font-size: 20px; font-weight: 700; line-height: 1.4; }
.otr-page .otr-info-themes { display: flex; flex-wrap: wrap; gap: 10px; }
.otr-info-themes a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; background: #fff; border: 1px solid var(--navy); color: var(--navy); font-weight: 700; text-decoration: none; transition: background-color .4s var(--ease-hover), color .4s var(--ease-hover); }
.otr-info-themes a span { font: 700 16px/1 var(--display); letter-spacing: .08em; color: var(--orange-text); transition: color .4s var(--ease-hover); }
.otr-info-themes a:hover, .otr-info-themes a:focus-visible { background: var(--navy); color: #fff; }
.otr-info-themes a:hover span, .otr-info-themes a:focus-visible span { color: var(--orange); }
/* 記事カードの列：横に流れる（PCは4枚が見える・数が増えたら横にスクロール） */
.otr-page .otr-info-list { --gap: clamp(18px, 2.2vw, 32px); display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); gap: var(--gap); margin: clamp(24px, 3vw, 36px) 0 0; padding: 4px 0 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.otr-info-list > li { min-width: 0; scroll-snap-align: start; }
.otr-info-list:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.otr-info-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(7,22,46,.08); color: var(--navy); text-decoration: none; transition: transform .4s var(--ease-hover), box-shadow .4s var(--ease-hover); }
.otr-info-card:hover, .otr-info-card:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(7,22,46,.16); }
.otr-info-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--deep); }
.otr-info-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-hover); }
.otr-info-card:hover .otr-info-thumb img, .otr-info-card:focus-visible .otr-info-thumb img { transform: scale(1.04); }
.otr-info-chip { position: absolute; left: 0; top: 0; padding: 6px 14px; background: var(--deep); color: #fff; font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: .04em; }
.otr-info-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 16px 18px 0; }
.otr-info-meta time { font: 700 20px/1 var(--display); letter-spacing: .1em; color: var(--orange-text); }
.otr-info-level { padding-bottom: 2px; border-bottom: 3px solid var(--orange); font-size: 16px; font-weight: 700; line-height: 1.5; }
.otr-info-name { flex: 1; padding: 10px 64px 26px 18px; font-weight: 700; line-height: 1.7; }
.otr-info-corner { position: absolute; right: 0; bottom: 0; width: 56px; height: 56px; background: var(--orange); clip-path: polygon(100% 0, 100% 100%, 0 100%); transition: width .4s var(--ease-hover), height .4s var(--ease-hover); }
.otr-info-corner svg { position: absolute; right: 8px; bottom: 9px; width: 20px; height: 16px; fill: none; stroke: var(--navy); stroke-width: 2; }
.otr-info-card:hover .otr-info-corner, .otr-info-card:focus-visible .otr-info-corner { width: 68px; height: 68px; }
.otr-page .otr-info-more { margin: clamp(32px, 4vw, 52px) 0 0; text-align: center; }

/* ---------- MIROCANAとは（写真と文字の特集の下に、まず伺うこと→3分野の図を全幅で置く。狭い列に押し込まない） ---------- */
.otr-map-band { grid-column: 1 / -1; padding: clamp(44px, 5vw, 72px) var(--gutter) clamp(60px, 7vw, 104px); }
.otr-map { --rule: rgba(11,36,71,.45); max-width: 1320px; margin: 0 auto; }
.otr-map-hub { position: relative; display: grid; gap: 2px; padding: 16px 22px 18px; background: var(--deep); border-top: 4px solid var(--orange); color: #fff; }
.otr-map-hub small { color: #d5dfed; font-size: 16px; letter-spacing: .14em; }
.otr-map-hub strong { font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; line-height: 1.5; letter-spacing: .06em; }
.otr-page .otr-map-branches { display: grid; gap: 14px; margin: 24px 0 0 22px; padding-left: 30px; }
.otr-map-branches > li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) 60px; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); }
.otr-map-branches > li::before { content: ""; position: absolute; left: -32px; top: -14px; height: calc(100% + 14px); border-left: 2px solid var(--rule); }
.otr-map-branches > li:first-child::before { top: -24px; height: calc(100% + 24px); }
.otr-map-branches > li:last-child::before { height: calc(50% + 14px); }
.otr-map-branches > li::after { content: ""; position: absolute; left: -32px; top: calc(50% - 1px); width: 31px; border-top: 2px solid var(--rule); }
.otr-map-branches h3 { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 700; text-wrap: balance; }
.otr-map-branches p { margin: 0; color: var(--fg2); line-height: 1.6; }
.otr-map-branches img { width: 60px; height: 60px; object-fit: cover; object-position: 50% 24%; border-radius: 3px; }

/* ---------- ご相談の入口（3列の細い帯） ---------- */
.otr-sec.otr-entries { padding-block: clamp(36px, 4.4vw, 60px); }
.otr-entries-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.otr-entries-list > li { display: flex; flex-direction: column; gap: 14px; padding: 6px clamp(18px, 3vw, 44px); border-left: 1px solid var(--line); }
.otr-entries-list > li:first-child { padding-left: 0; border-left: 0; }
.otr-entries-list > li:last-child { padding-right: 0; }
.otr-entries-list p { color: var(--fg2); font-weight: 500; }
.otr-entries-list .otr-btn { justify-content: space-between; gap: 14px; width: 100%; min-height: 60px; padding: 12px 22px; font-size: 17px; }
.otr-entries-list .otr-btn svg { flex: 0 0 22px; width: 22px; height: 18px; fill: none; stroke: var(--orange); stroke-width: 1.8; transition: stroke .4s var(--ease-hover); }
.otr-entries-list .otr-btn:hover svg { stroke: var(--navy); }

/* ---------- MIROCANAの4つの特長・ご依頼のしくみ ---------- */
.otr-page .otr-reasons-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) clamp(32px, 5.6vw, 84px); margin-top: clamp(40px, 5vw, 72px); }
.otr-reason { padding-top: 22px; border-top: 3px solid var(--orange); }
.otr-page .otr-reason-label { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; color: var(--accent); font: 700 18px/1 var(--display); letter-spacing: .2em; }
.otr-reason-label b { font: 800 clamp(48px, 5vw, 72px)/.9 var(--display); letter-spacing: .04em; color: var(--fg); }
.otr-reason h3 { margin: 0 0 8px; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.55; font-weight: 700; }
.otr-reason p { line-height: 1.9; }
.otr-reason-sub { font-weight: 700; }
.otr-reason p + p { margin-top: 14px; color: var(--fg2); }
.otr-reason a { color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
.otr-stats { margin-top: clamp(56px, 7vw, 104px); padding: clamp(28px, 4vw, 52px); background: var(--deep); color: #fff; }
.otr-page .otr-stats-title { margin: 0 0 32px; color: var(--orange); font-weight: 700; letter-spacing: .14em; }
.otr-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.otr-stats-grid > div { padding: 4px clamp(14px, 2vw, 32px); border-left: 1px solid rgba(255,255,255,.22); }
.otr-stats-grid > div:first-child { padding-left: 0; border-left: 0; }
.otr-stats-grid dt { color: #d5dfed; line-height: 1.6; }
.otr-stats-grid dd { margin: 10px 0 0; font-size: 20px; font-weight: 700; line-height: 1.5; }
.otr-stats-grid dd b { margin-right: 4px; color: var(--orange); font: 800 clamp(56px, 6vw, 88px)/1 var(--display); letter-spacing: .02em; }
.otr-stats-grid dd.is-text { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.7; }
.otr-stats-grid dd.is-text b { margin: 0; font: 700 1.25em/1 "Noto Sans JP", sans-serif; letter-spacing: .04em; white-space: nowrap; }

/* 図が広く置ける幅（1101px以上）：左に「まず伺うこと」、右に3分野を並べ、T字の線でつなぐ */
@media (min-width: 1101px) {
  .otr-map { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); column-gap: 64px; align-items: center; }
  .otr-map-hub { padding: 32px 26px 36px; }
  .otr-map-hub strong { font-size: 24px; letter-spacing: .04em; }
  .otr-map-hub::after { content: ""; position: absolute; left: 100%; top: 50%; width: 32px; border-top: 2px solid var(--rule); }
  .otr-page .otr-map-branches { margin: 0; padding-left: 0; }
  .otr-map-branches > li { grid-template-columns: 44px minmax(0, 1fr) 72px; padding: 18px 22px; }
  .otr-map-branches > li:first-child::before { top: 50%; height: 50%; }
  .otr-map-branches img { width: 72px; height: 72px; }
}

/* ---------- 目次の窓：項目が増えたので、低い画面でははみ出さず中で送れるようにする ---------- */
.otr-toc-links { max-height: min(70vh, 520px); overflow-y: auto; }

/* ---------- 1419px以下：ご相談の入口は3列だと中央のボタンの文字が2行に割れるので、「ひとこと＋ボタン」の3行にする ---------- */
@media (max-width: 1419px) {
  .otr-entries-list { grid-template-columns: 1fr; }
  .otr-entries-list > li, .otr-entries-list > li:first-child, .otr-entries-list > li:last-child { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .otr-entries-list > li:first-child { padding-top: 6px; border-top: 0; }
  .otr-entries-list > li:last-child { padding-bottom: 6px; }
  .otr-entries-list .otr-btn { flex: 0 0 min(100%, 380px); width: min(100%, 380px); }
}

/* ---------- 1100px以下 ---------- */
@media (max-width: 1100px) {
  .otr-page .otr-info-list { grid-auto-columns: calc((100% - 2 * var(--gap)) / 2.4); }
  .otr-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .otr-stats-grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* ---------- スマホ（760px以下） ---------- */
@media (max-width: 760px) {
  .otr-sec.otr-areas { padding-block: 24px 26px; }
  .otr-areas-inner { grid-template-columns: 1fr; gap: 14px; }
  .otr-page .otr-info-list { grid-auto-columns: 78vw; margin: 24px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) 22px; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; }
  .otr-info-name { padding-right: 56px; }
  /* トップの区画：テーマの札が増えても縦に伸びないよう、スマホでは1行で横に流す（お役立ち情報ページの札は折り返しのまま＝そのページの案内役） */
  .otr-info-group-head .otr-info-themes { flex-wrap: nowrap; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; overflow-x: auto; scrollbar-width: thin; }
  .otr-info-group-head .otr-info-themes a { flex: 0 0 auto; white-space: nowrap; }
  .otr-page .otr-reasons-list { grid-template-columns: 1fr; }
  .otr-entries-list > li, .otr-entries-list > li:first-child, .otr-entries-list > li:last-child { flex-direction: column; align-items: stretch; gap: 12px; padding: 20px 0; }
  .otr-entries-list > li:first-child { padding-top: 0; }
  .otr-entries-list > li:last-child { padding-bottom: 0; }
  .otr-entries-list .otr-btn { flex: 0 0 auto; width: 100%; }
  .otr-page .otr-map-branches { margin-left: 14px; padding-left: 22px; }
  .otr-map-branches > li::before, .otr-map-branches > li::after { left: -24px; }
  .otr-map-branches > li::after { width: 23px; }
  .otr-stats { padding: 28px 22px; }
}
@media (max-width: 520px) {
  .otr-map-branches > li { grid-template-columns: 34px minmax(0, 1fr); }
  .otr-map-branches img { display: none; }
  .otr-stats-grid { grid-template-columns: 1fr; row-gap: 22px; }
  .otr-stats-grid > div, .otr-stats-grid > div:nth-child(odd) { padding: 0 0 22px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
  .otr-stats-grid > div:last-child { padding-bottom: 0; border-bottom: 0; }
}

/* ---------- お役立ち情報ページ（/blog/）：深紺のヒーロー帯＋重なる大きな新着カード＋テーマの札＋記事一覧（参考サイトの「お役立ち資料」ページの型） ---------- */
.otr-nav a[aria-current="page"]::after { transform: scaleX(1); }
.otr-sec.otr-ihero { padding-top: calc(var(--header-h) + clamp(44px, 5vw, 80px)); padding-bottom: clamp(120px, 12vw, 190px); }
.otr-page .otr-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 clamp(28px, 3.4vw, 48px); padding: 0; color: var(--fg2); }
.otr-crumbs li + li::before { content: "›"; margin-right: 10px; }
.otr-crumbs a { color: #fff; text-underline-offset: 4px; }
.otr-ihero h1 { margin: 18px 0 4px; font-size: clamp(26px, 3vw, 40px); line-height: 1.4; font-weight: 700; letter-spacing: .08em; }
.otr-ifeature { position: relative; z-index: 2; display: flow-root; padding: 0 var(--gutter); background: var(--pale); }
.otr-ifeature-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); max-width: 1320px; margin: calc(-1 * clamp(96px, 9.6vw, 150px)) auto 0; background: #fff; color: var(--navy); box-shadow: 0 28px 70px rgba(7,22,46,.28); }
.otr-ifeature-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: clamp(28px, 4vw, 60px); }
.otr-page .otr-ifeature-label { margin: 0; color: var(--orange-text); font-weight: 700; letter-spacing: .14em; }
.otr-ifeature-text .otr-info-meta { padding: 0; }
.otr-page .otr-ifeature-title { margin: 0; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.5; font-weight: 700; }
.otr-ifeature-title a { color: inherit; text-decoration: none; }
.otr-ifeature-title a:hover, .otr-ifeature-title a:focus-visible { text-decoration: underline; text-underline-offset: 6px; }
.otr-page .otr-ifeature-desc { margin: 0; color: var(--muted); line-height: 1.9; }
.otr-ifeature-image { position: relative; display: block; min-height: 300px; overflow: hidden; background: var(--deep); }
.otr-ifeature-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-hover); }
.otr-ifeature-card:hover .otr-ifeature-image img { transform: scale(1.03); }
.otr-sec.otr-iblock { padding-block: clamp(48px, 5.4vw, 80px) 0; }
.otr-sec.otr-iblock--last { padding-block: clamp(40px, 4.4vw, 64px) clamp(72px, 8vw, 120px); }
.otr-page .otr-iblock-title { margin: 0; padding-left: 14px; border-left: 4px solid var(--orange); font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.4; letter-spacing: .06em; }
.otr-page .otr-iblock .otr-info-themes { margin-top: 22px; }
.otr-page .otr-info-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 22px 0 0; }
.otr-info-links a { color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
.otr-page .otr-info-grid { --gap: clamp(18px, 2.2vw, 32px); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: var(--gap); margin: 28px 0 0; padding: 0; }
.otr-info-grid > li { min-width: 0; }
.otr-info-cathead { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; }
.otr-page .otr-info-catdesc { margin: 12px 0 0; max-width: 46em; color: var(--muted); }
.otr-info-catlink { color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .otr-ifeature-card { grid-template-columns: 1fr; }
  .otr-ifeature-image { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
}
