/* 184（2026-10-09）写真・イラストで縦長や余白が増えていた所を詰める（比率はそのまま）。AIKATA・MIEKATA共通で読み込む */

/* ── AIKATA 下層のページ見出し：見出し＋ひとことは左、イラストは右（1024px以上）。高さ約790px → 約440px ── */
@media(min-width:1024px){
  html body.aikata[data-geometry114] main .wrap.sub-title114{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)!important;gap:16px 56px!important;align-items:center!important;padding-bottom:56px!important}
  html body.aikata[data-geometry114] main .sub-title114>.breadcrumb{grid-column:1/-1!important;grid-row:1!important}
  html body.aikata[data-geometry114] main .sub-title114>.sub-heading{grid-column:1!important;grid-row:2!important;align-self:end;text-align:left!important;margin:0!important}
  html body.aikata[data-geometry114] main .sub-title114 .aikata-page-heading{text-align:left!important}
  html body.aikata[data-geometry114] main .sub-title114>.mate168{grid-column:1!important;grid-row:3!important;align-self:start;justify-content:flex-start!important;margin:8px 0 0!important;max-width:620px}
  html body.aikata[data-geometry114] main .sub-title114>.page-art114{grid-column:2!important;grid-row:2/4!important;justify-self:end!important;width:100%!important;max-width:440px!important;margin:0!important}
  html body.aikata[data-geometry114] main .sub-title114>.page-art114 img{width:100%!important;height:auto!important;aspect-ratio:16/9!important;object-fit:cover}
}
/* スマホ・タブレット：イラストは小さめ（16:9のまま） */
@media(max-width:1023px){html body.aikata[data-geometry114] main .sub-title114>.page-art114{max-width:420px!important;margin-left:auto!important;margin-right:auto!important}}

/* ── AIKATA トップ「ご利用の流れ」の2つのイラスト：高さ220px（16:9のまま） ── */
html body.aikata[data-visual133] :is(#flow,.consultation-flow116) .audience-photo133{aspect-ratio:auto!important;display:flex!important;justify-content:center;align-items:center;background:transparent!important;margin:0 0 18px!important}
html body.aikata[data-visual133] main :is(#flow,.consultation-flow116) .audience-photo133 img{width:auto!important;max-width:100%!important;height:220px!important;aspect-ratio:16/9!important;object-fit:contain!important;border-radius:20px!important}
@media(max-width:600px){html body.aikata[data-visual133] main :is(#flow,.consultation-flow116) .audience-photo133 img{height:auto!important;width:100%!important}}

/* ── MIEKATA ベースパッケージのページ見出し：文章は左、組み上がるサイトは右（1024px以上）。高さ約900px → 約480px ── */
@media(min-width:1024px){
  html body .page-hero[data-ph168="fv"]{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;column-gap:48px;padding-left:max(24px,calc((100% - 1200px) / 2))!important;padding-right:max(24px,calc((100% - 1200px) / 2))!important}
  html body .page-hero[data-ph168="fv"]>.wrap{width:auto!important;max-width:none!important;margin:0!important;padding:0!important;text-align:left!important}
  html body .page-hero[data-ph168="fv"]>.wrap :is(h1,.lead,.title-context){text-align:left!important;margin-left:0!important;margin-right:0!important}
  html body .page-hero[data-ph168="fv"] .fv165{max-width:560px!important;margin:0 0 0 auto!important;padding:8px 0!important}
}

/* ── MIEKATA「MIEKATAとは」の写真：幅640pxまで（16:9のまま） ── */
html body .process-image108{max-width:640px!important;margin-left:auto!important;margin-right:auto!important}
html body .process-image108 img{width:100%!important;height:auto!important}

/* ── MIEKATA スマホの「記事の例」：サムネイルを16:9のまま小さく（縦に切り抜かない） ── */
@media(max-width:900px){html body .ex163-card{align-items:center!important}html body .ex163-eye{aspect-ratio:16/9!important;height:auto!important;min-height:0!important;margin-left:10px;border-radius:8px}}

/* ── AIKATA 資料請求の表紙：大きすぎるので幅560pxまで ── */
html body.aikata main img[src*="aikata-cover"]{max-width:720px!important;width:100%!important;height:auto!important;margin-left:auto!important;margin-right:auto!important;display:block}
/* 185：白いボタン（secondary130）の丸アイコンの矢印が丸と同じ色で見えなかった → 白に（全ページ） */
html body.aikata a.secondary130 .cta-icon130{color:#fff!important}
html body.aikata a.secondary130 .cta-icon130 svg{stroke:#fff}
html body.aikata:not(#x185) a.secondary130 .cta-icon130 svg :is(path,line,polyline){stroke:#fff!important}
/* 186：支援事例の2枚のカードで「ご相談のきっかけ／支援内容／進め方／一緒に見ていく数字」の位置を左右でそろえる（subgrid） */
@media(min-width:761px){
  html body.aikata .ak150-cases{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto}
  html body.aikata .ak150-cases>.ak150-case{display:grid!important;grid-row:span 5;grid-template-rows:subgrid!important;row-gap:0!important}
}
/* 187：資料請求の表紙。画像の枠が見た目より大きく取られ、見出しにかぶり下に余白が出ていた → 画像の比率どおりの大きさに（幅720pxまで） */
html body.aikata:not(#x187) main figure.deck-cover{display:block!important;width:100%!important;max-width:720px!important;height:auto!important;aspect-ratio:auto!important;margin:0 auto 32px!important;padding:0!important;overflow:hidden;border-radius:12px}
html body.aikata:not(#x187) main figure.deck-cover img{display:block!important;width:100%!important;max-width:none!important;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;margin:0!important}
html body.aikata:not(#x187) main figure.deck-cover img{transform:none!important}

/* 187（2026-10-09）スマホ確認での修正 */
/* 見出しが単語の途中で改行されないように（日本語の文節で改行）、行の長さもそろえる */
html body main :is(h1,h2,h3,h4){word-break:auto-phrase;text-wrap:balance}
html body main :is(p,li,dd){word-break:auto-phrase}
/* AIKATA FVのチャット返信：スマホは決めうちの改行をやめて自然に折り返す */
@media(max-width:600px){html body.aikata section.hero110 .c165.ai p br{display:none}html body.aikata section.hero110 .c165.ai .c169-l1{display:block}}
/* AIKATA 料金ダイヤル：スマホで金額と「円／月」が離れて折り返していた */
@media(max-width:600px){html body.aikata .dial165-plan{display:flex!important;flex-wrap:wrap;align-items:baseline;gap:4px 8px}html body.aikata .dial165-plan>span{flex-basis:100%;width:fit-content;max-width:fit-content}}
/* MIEKATA ベースパッケージの「TOP PAGE 構成例」の見出し帯がスマホではみ出していた */
html body .page-diagram .diagram-top{box-sizing:border-box!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;gap:8px}
html body .page-diagram .diagram-top span{white-space:nowrap}
/* TRYバッジの「TRY」が折り返さないように */
html body .try167 b{flex:none;white-space:nowrap}
html body .page-diagram .diagram-top{padding:10px 14px!important}
/* MIEKATA シミュレーション：トップページに載せる内容の例を、点の位置がずれない札（チップ）表示に */
html body #sim-structure122{display:flex!important;flex-wrap:wrap;gap:8px;margin:8px 0 16px!important;padding:0!important;list-style:none!important}
html body #sim-structure122 li{display:inline-block!important;margin:0!important;padding:4px 12px!important;border-radius:999px;background:#eef2ff;color:#141c4c;font-size:14px;line-height:1.6}
html body #sim-structure122 li::before,html body #sim-structure122 li::after,html body #sim-structure122 li::marker{content:none!important;display:none!important}
@media(min-width:601px){html body #sim-structure122 li{font-size:16px}}
/* 189：トップの料金の注記2文は、PC（1300px以上・本文幅1132px以上）ではそれぞれ1行で */
@media(min-width:1300px){
  html body.aikata:not(#x189) main #pricing :is(p.price-disclaimer106,p.terms){max-width:none!important;width:auto!important;white-space:nowrap;text-wrap:nowrap;font-size:16px!important;letter-spacing:0!important}
}
