@charset "utf-8";

/* ============================================================
   Maka hou 公式HP Ver2.0  共通スタイル
   白 / 生成り / 濃紺 / コバルトブルー
   見出し：日本語明朝（システムフォント）
   本文  ：日本語ゴシック（システムフォント）
   ============================================================ */

:root {
  --navy: #0E1A33;
  --navy-soft: #1B2B4D;
  --ink: #17223A;
  --muted: #4A5468;
  --cobalt: #1550D8;
  --cobalt-bright: #1E6BF5;
  --cream: #F7F4ED;
  --cream-deep: #F0EBE0;
  --pale: #F2F5FB;
  --line: #DFDACF;
  --line-cool: #DCE2EC;
  --white: #fff;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 56px);
  --mincho: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", "Times New Roman", serif;
  --gothic: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--cobalt); }
a:hover { text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid var(--cobalt-bright);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap { width: min(100% - (var(--gut) * 2), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - (var(--gut) * 2), 860px); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 12px 18px; border-radius: 0 0 10px 10px;
  background: var(--navy); color: #fff; font-weight: 700; text-decoration: none;
  transition: top .15s;
}
.skip:focus { top: 0; }

.vh {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------------- ヘッダー ---------------- */

.site-header {
  position: relative; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line-cool);
}
.header-inner {
  min-height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.logo img { display: block; width: auto; height: 38px; }

.gnav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.gnav ul {
  display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px);
  margin: 0; padding: 0; list-style: none;
}
.gnav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none;
}
.gnav a:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 5px; }
.nav-cta {
  padding: 0 20px; border-radius: 4px;
  background: var(--navy); color: #fff !important;
}
.nav-cta:hover { background: var(--cobalt); text-decoration: none !important; }

.nav-toggle {
  display: none;
  min-width: 56px; min-height: 46px; padding: 4px 8px;
  border: 0; background: none; color: var(--navy);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; cursor: pointer;
}
.nav-toggle .bars { display: block; width: 30px; margin: 0 auto 5px; }
.nav-toggle .bars i {
  display: block; height: 2px; margin: 5px 0; background: var(--navy);
}

/* ---------------- フッター ---------------- */

.site-footer { padding: 60px 0 34px; background: var(--navy); color: #C9D3E6; }
.footer-grid {
  display: grid; grid-template-columns: minmax(240px, 1fr) 2.1fr;
  gap: clamp(30px, 5vw, 70px);
}
.footer-brand img { display: block; width: 150px; height: auto; }
.footer-brand p { max-width: 22em; margin: 16px 0 0; color: #9FADC7; font-size: 14px; }
.footer-cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
}
.footer-cols h2 {
  margin: 0 0 12px; color: #fff;
  font-family: var(--gothic); font-size: 13px; font-weight: 700; letter-spacing: .06em;
}
.footer-cols ul { margin: 0; padding: 0; list-style: none; }
.footer-cols li + li { margin-top: 2px; }
.footer-cols a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0;
  color: #C9D3E6; font-size: 14px; text-decoration: none;
}
.footer-cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.copyright {
  margin-top: 44px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #8B99B4; font-size: 12px;
}

/* ---------------- 共通パーツ ---------------- */

.eyebrow {
  display: block; margin: 0 0 10px;
  color: var(--cobalt); font-size: 12px; font-weight: 700; letter-spacing: .12em;
}
.sec-title {
  margin: 0 0 8px;
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.5;
  letter-spacing: .02em; color: var(--navy);
}
.sec-lead { max-width: 40em; margin: 0; color: var(--muted); font-size: 16px; }

.more-link {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px;
  color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: none;
}
.more-link::after {
  content: ""; width: 30px; height: 1px; background: currentColor;
  transition: width .18s;
}
.more-link:hover { color: var(--cobalt); }
.more-link:hover::after { width: 44px; }

/* 外部リンクであることを矢印で示す（内部リンクの「→」と向きで区別できる） */
.ext-mark {
  margin-left: .4em;
  font-size: .85em; font-weight: 700; line-height: 1;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  border: 1px solid var(--navy); border-radius: 4px;
  background: var(--navy); color: #fff; font-size: 15px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background .18s, color .18s;
}
.btn:hover { background: var(--cobalt); border-color: var(--cobalt); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

.tag {
  display: inline-block; padding: 3px 11px;
  border: 1px solid var(--line-cool); border-radius: 999px;
  background: var(--white);
  color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em;
  white-space: nowrap;
}

/* ---------------- 下層ページ共通ヘッダ ---------------- */

.page-head { padding: clamp(48px, 6vw, 84px) 0 clamp(30px, 4vw, 48px); background: var(--cream); }
.page-head h1 {
  margin: 0 0 14px;
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(30px, 5vw, 52px); line-height: 1.4; letter-spacing: .02em;
  color: var(--navy);
}
.page-head p { max-width: 44em; margin: 0; color: var(--muted); font-size: 15px; }
.page-head .eyebrow { font-size: 12px; }

.breadcrumb { padding: 18px 0 0; margin: 0; color: var(--muted); font-size: 13px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "／"; margin-right: 8px; color: #9AA3B4; }
.breadcrumb a { color: var(--muted); }

/* ---------------- 記事・法務ページ本文 ---------------- */

.prose { padding: clamp(38px, 5vw, 60px) 0 clamp(60px, 8vw, 96px); }
.prose h2 {
  margin: 2.4em 0 .7em;
  padding-left: 16px; border-left: 3px solid var(--cobalt);
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(21px, 2.6vw, 27px); line-height: 1.55; color: var(--navy);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin: 2em 0 .6em;
  font-size: clamp(17px, 2vw, 20px); font-weight: 700; color: var(--navy);
}
.prose p, .prose li { font-size: 16px; line-height: 1.95; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose .lead {
  margin-bottom: 2em; padding: 22px 24px;
  border-left: 3px solid var(--cobalt); background: var(--cream);
  font-size: 16.5px; line-height: 1.95; color: #34405A;
}
.prose .note {
  margin: 2em 0; padding: 22px 26px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--cream);
}
.prose .note strong { display: block; margin-bottom: .5em; color: var(--navy); }
.prose .note ul { margin: 0; }
.prose a, .prose .textlink { color: var(--cobalt); text-underline-offset: 3px; }
.article-inline-img {
  margin: 2em auto; max-width: min(100%, 420px);
}
.article-inline-img img {
  display: block; width: 100%; height: auto;
  border-radius: 4px; border: 1px solid var(--line-cool);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; }
.prose th, .prose td {
  padding: 14px 12px; border-bottom: 1px solid var(--line-cool);
  text-align: left; vertical-align: top; font-size: 15px;
}
.prose th { width: 190px; color: var(--navy); font-weight: 700; }

/* ---------------- レスポンシブ ---------------- */

@media (max-width: 900px) {
  /* JavaScript無効時は、ナビをヘッダー下に開いたまま表示して必ずたどれるようにする */
  .header-inner { flex-wrap: wrap; }
  .gnav {
    order: 3; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding-bottom: 16px;
  }
  .gnav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .gnav li { border-bottom: 1px solid var(--line-cool); }
  .gnav ul a { min-height: 52px; font-size: 15px; }
  .nav-cta { justify-content: center; margin-top: 16px; min-height: 52px; }
  .nav-toggle { display: none; }

  /* JavaScriptが動く環境だけ、開閉式メニューへ格上げする */
  .js .nav-toggle { display: block; }
  .js .gnav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; order: 0; width: auto;
    padding: 8px var(--gut) 20px;
    background: var(--white); border-bottom: 1px solid var(--line-cool);
    box-shadow: 0 16px 30px rgba(14,26,51,.09);
  }
  .js .gnav[data-open="true"] { display: flex; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 「伝票・送り状CSV変換 β版」が2カラムの狭い幅で不自然に折り返すため、
     このカラムだけ2カラム分の幅を使わせて1行に収める（他のカラム構成は変更しない） */
  .footer-cols > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  :root { --gut: 22px; }
  .logo img { height: 32px; }
  .prose .lead { padding: 18px 18px; }
  .prose th, .prose td { display: block; width: 100%; padding: 6px 0; }
  .prose th { padding-top: 16px; border-bottom: 0; }
}

/* ---------------- 記事ページ ---------------- */

.article-head { padding: clamp(26px, 4vw, 44px) 0 clamp(22px, 3vw, 34px); }
.article-head h1 {
  margin: 0;
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(27px, 4.2vw, 44px); line-height: 1.5; letter-spacing: .02em; color: var(--navy);
}
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 14px; }
.post-meta time { color: var(--muted); font-size: 12.5px; letter-spacing: .04em; }

.article-hero { margin: 0; }
.article-hero img {
  display: block; width: min(100% - (var(--gut) * 2), 1100px); margin-inline: auto;
  height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px;
}

.article-foot { margin-top: 3.4em; padding-top: 2em; border-top: 1px solid var(--line-cool); }
.article-foot h2 {
  margin: 0 0 .8em; padding: 0; border: 0;
  font-family: var(--gothic); font-size: 15px; font-weight: 700; letter-spacing: .04em;
}
.article-foot ul { margin: 0; padding-left: 1.3em; }
.article-foot li { font-size: 15px; }

/* ---------------- 記事一覧（雑誌の目次のような強弱） ---------------- */

.column-list { padding: clamp(34px, 5vw, 56px) 0 clamp(60px, 8vw, 96px); }

.list-lead {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 4vw, 48px); align-items: center;
  padding-bottom: clamp(34px, 4vw, 50px); margin-bottom: clamp(10px, 2vw, 18px);
  border-bottom: 2px solid var(--navy);
  color: inherit; text-decoration: none;
}
.list-lead img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.list-lead h2 {
  margin: 0 0 12px;
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(22px, 2.8vw, 34px); line-height: 1.55; color: var(--navy);
}
.list-lead p { margin: 0; color: var(--muted); font-size: 16px; }
.list-lead:hover h2 { color: var(--cobalt); text-decoration: underline; text-underline-offset: 5px; }

.list-rest { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.list-rest li { border-bottom: 1px solid var(--line-cool); }
.list-item {
  display: grid; grid-template-columns: 236px 1fr; gap: clamp(18px, 3vw, 34px); align-items: center;
  padding: 26px 0; color: inherit; text-decoration: none;
}
.list-item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.list-item h2 {
  margin: 0 0 8px;
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(17px, 1.8vw, 22px); line-height: 1.6; color: var(--navy);
}
.list-item p { margin: 0; color: var(--muted); font-size: 14px; }
.list-item:hover h2 { color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; }

/* ---------------- 運営者情報 ---------------- */

.operator-lead { display: grid; grid-template-columns: 170px 1fr; gap: 30px; align-items: center; margin-bottom: 2.6em; }
.operator-lead img { display: block; width: 100%; height: auto; }
.operator-lead p { margin: 0; }

@media (max-width: 760px) {
  .list-lead { grid-template-columns: 1fr; }
  .list-item { grid-template-columns: 132px 1fr; gap: 16px; }
  .operator-lead { grid-template-columns: 1fr; gap: 20px; justify-items: center; text-align: left; }
  .operator-lead img { width: clamp(140px, 45vw, 170px); }
}

/* ============================================================
   TOPページ
   ============================================================ */

/* ---------------- ヒーロー ---------------- */

.hero { position: relative; overflow: hidden; padding-top: clamp(34px, 5vw, 68px); }
.hero-head { position: relative; z-index: 2; }
/* 見出しは右のMに当たらない幅で最大化する（1行14文字が入る大きさが上限） */
.hero h1 {
  max-width: 15em; margin: 0;
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(28px, 3.3vw, 46px); line-height: 1.42; letter-spacing: .03em;
  color: var(--navy);
}
/* 文節を単位にして、語の途中で改行させない */
.hero h1 span { display: inline-block; }
.hero-lead {
  max-width: 32em; margin: clamp(20px, 3vw, 34px) 0 0;
  color: #3C4A63; font-size: clamp(16px, 1.1vw, 17px); line-height: 1.9;
}

/* 正式ロゴから切り出したMマーク（実画像）。常に最前面に置き、
   上下左右とも余白を正の値にして、.hero の overflow で切れることが絶対にないようにする。 */
.hero-m {
  position: absolute; z-index: 5; pointer-events: none;
  right: 0; top: 2vw;
  width: min(58vw, 900px);
}
.hero-m img { display: block; width: 100%; height: auto; }

/* 写真枠の上端は導入文の下端より上（マイナス方向）へ引き上げる。
   枠自体の上37.5%は下のclip-pathで透明になるため、文章と視覚的に衝突しない。
   これでヒーロー全体の高さを詰め、Mの下側と写真の曲線が自然に重なる。 */
.hero-photo { position: relative; z-index: 2; margin-top: clamp(-100px, -6vw, -60px); }
.hero-photo picture, .hero-photo img {
  display: block; width: 100%; height: auto;
}
/* SVGのclipPath（ベジェ曲線1本）だけで形を作る。polygon/skew/rotate/::before/::after は使わない。
   HTML側の <clipPath id="hero-photo-clip"> を参照。objectBoundingBox指定なので
   実際のボックスサイズに関わらず同じ相対カーブになる（曲線の形はそのまま）。
   高さの比率だけを詰めて、ヒーロー全体を短くする。
   スマホでは別指定（下のモバイル指定で上書き）。 */
.hero-photo img {
  aspect-ratio: 1600 / 625; object-fit: cover;
  clip-path: url(#hero-photo-clip);
}
.hero-photo .figure { width: 100%; }

.scroll-hint {
  position: absolute; right: 22px; bottom: 90px; z-index: 3;
  display: none;
  color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .3em;
  writing-mode: vertical-rl;
}
.scroll-hint::after { content: ""; display: block; width: 1px; height: 46px; margin: 12px auto 0; background: #B9C0CE; }

/* 初回のみ・約1.5秒以内・ループなし。
   既定は「完成状態」。動きを許容する環境でのみアニメーションを足すので、
   JavaScript無効・低減モーション・アニメーション非対応でも内容が隠れない。 */
@media (prefers-reduced-motion: no-preference) {
  @keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  /* 左から右へ一度だけ「描かれる」ように見せる（署名のようにMを現す） */
  @keyframes revealMark { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

  .hero h1       { animation: riseIn 1.0s ease-out .1s both; }
  .hero-lead     { animation: riseIn 1.0s ease-out .4s both; }
  .hero-photo    { animation: fadeIn 1.8s ease-out .7s both; }
  .updates-first { animation: riseIn .7s ease-out .7s both; }
  .hero-m img    { animation: revealMark 2.1s cubic-bezier(.5,.05,.35,1) .6s both; }
}

/* ---------------- 更新通知（お知らせ／最近つくったもの） ---------------- */

.updates { padding: clamp(48px, 6vw, 84px) 0 clamp(40px, 5vw, 70px); }
.updates h2 {
  margin: 0 0 22px;
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .04em; color: var(--navy);
}
.updates-block + .updates-block { margin-top: clamp(46px, 6vw, 76px); }
.feed { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-cool); }
.feed > li { border-bottom: 1px solid var(--line-cool); }

.feed-row {
  display: grid; grid-template-columns: 108px 92px 1fr 28px;
  align-items: center; gap: 20px;
  min-height: 62px; padding: 12px 4px;
  color: var(--ink); text-decoration: none;
}
a.feed-row:hover { background: var(--cream); }
a.feed-row:hover .feed-title { color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; }
.feed-date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.feed-date.tbd { font-size: 12px; }
/* NEW表示が無い行は、空のタグ枠だけが見えてしまわないよう非表示にする（グリッド位置は保持） */
.tag.tag--empty { border-color: transparent; background: none; }
.feed-title { font-size: 15.5px; font-weight: 600; line-height: 1.7; }
.feed-arrow { justify-self: end; color: var(--muted); font-size: 15px; }
a.feed-row:hover .feed-arrow { color: var(--cobalt); }

/* 最近つくったもの：お知らせに近い編集的な一覧（カード化しない） */
.made-row {
  display: grid; grid-template-columns: 108px 1fr auto;
  align-items: start; gap: 20px 24px;
  padding: 22px 4px;
}
.made-cat { color: var(--cobalt); font-size: 12px; font-weight: 700; letter-spacing: .04em; padding-top: 3px; }
.made-title { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.made-desc { margin: 0; color: var(--muted); font-size: 14px; }
.made-act { align-self: center; }
.made-act a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: none; }
.made-act a:hover { text-decoration: underline; text-underline-offset: 4px; }
.made-none { align-self: center; color: var(--muted); font-size: 13px; }

.feed-foot { display: flex; justify-content: flex-end; margin-top: 18px; }

/* ---------------- わたしのかわり（主要サービス） ---------------- */

.kawari { padding: clamp(56px, 7vw, 100px) 0; background: linear-gradient(180deg, #F4F7FE, #FBF9F4); }
.kawari-grid {
  display: grid; grid-template-columns: 1fr .92fr;
  gap: clamp(34px, 5vw, 80px); align-items: center;
}
.kawari-icon { width: 74px; height: 74px; border-radius: 20px; display: block; }
.kawari h2 {
  margin: 22px 0 18px;
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(32px, 4.4vw, 52px); letter-spacing: .04em; color: var(--navy);
}
.kawari-catch {
  margin: 0 0 22px;
  font-family: var(--mincho); font-size: clamp(18px, 2vw, 23px); line-height: 1.8; color: #2A3856;
}
.kawari-body { margin: 0 0 8px; color: #3C4A63; }
.kawari-body.soft { color: var(--muted); font-size: 16px; }
.kawari-shot { justify-self: center; width: min(100%, 380px); }
.kawari-shot img {
  display: block; width: 100%; height: auto;
  border-radius: 18px; border: 1px solid var(--line-cool);
}

/* ---------------- 夜ONE（実績紹介程度の小さな扱い） ---------------- */

.yoru { background: var(--navy); color: #D6DEEF; }
.yoru-inner {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: clamp(18px, 3vw, 46px);
  padding: clamp(30px, 3.2vw, 40px) 0;
}
.yoru-mark {
  display: flex; align-items: baseline; margin: 0;
  font-family: var(--gothic); font-size: clamp(28px, 3.4vw, 40px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1; color: #fff;
}
.yoru-mark .one { color: #6FC8F5; font-size: .8em; }
.yoru-status { margin: 0 0 6px; color: #fff; font-size: 16px; font-weight: 700; }
.yoru-text { margin: 0; color: #A9B6D0; font-size: 14.5px; line-height: 1.8; }
.yoru-cta {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #8FD3F7; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.yoru-cta:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---------------- つくっている人 ---------------- */

.maker { padding: clamp(56px, 7vw, 100px) 0; }
.maker-grid {
  display: grid; grid-template-columns: 1.15fr auto 1fr;
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.maker-text p { margin: 0 0 1em; color: #3C4A63; }
.maker-figure { width: clamp(150px, 15vw, 200px); }
.maker-figure img { display: block; width: 100%; height: auto; }
.maker-info { margin: 0; }
.maker-info div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-cool); }
.maker-info dt { color: var(--muted); font-size: 13.5px; }
.maker-info dd { margin: 0; color: var(--navy); font-size: 14.5px; font-weight: 600; }
.maker-foot { margin-top: 28px; }

/* ---------------- お役立ち情報（メイン1件＋サブ2件） ---------------- */

.column-sec { padding: clamp(56px, 7vw, 96px) 0; background: var(--cream); }
.column-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: clamp(28px, 4vw, 44px); }
.column-grid { display: grid; grid-template-columns: 1.28fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }

.post-main { display: block; color: inherit; text-decoration: none; }
.post-main img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px;
}
.post-meta { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; }
.post-main h3 {
  margin: 0 0 10px;
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(21px, 2.4vw, 29px); line-height: 1.6; color: var(--navy);
}
.post-main p { margin: 0; color: var(--muted); font-size: 16px; }
.post-main:hover h3 { color: var(--cobalt); text-decoration: underline; text-underline-offset: 5px; }

.post-subs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.post-subs li { border-bottom: 1px solid var(--line); }
.post-sub {
  display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: start;
  padding: 20px 0; color: inherit; text-decoration: none;
}
.post-sub img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px;
}
.post-sub h3 { margin: 8px 0 6px; font-size: 16px; font-weight: 700; line-height: 1.65; color: var(--navy); }
.post-sub p { margin: 0; color: var(--muted); font-size: 13.5px; }
.post-sub:hover h3 { color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; }

/* ---------------- パソコン・Webまわりの困りごと ---------------- */

.support-sec { padding: clamp(48px, 6vw, 84px) 0; background: var(--pale); }
.support-key {
  max-width: 34em; margin: 24px 0 0;
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(19px, 2.2vw, 24px); line-height: 1.8; color: var(--navy);
}
.support-lead-in { margin: 30px 0 0; color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.support-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 4px 40px;
  margin: 14px 0 0; padding: 18px 0;
  list-style: none;
  border-top: 1px solid var(--line-cool); border-bottom: 1px solid var(--line-cool);
}
.support-list li {
  position: relative; padding: 8px 0 8px 20px;
  color: var(--ink); font-size: 16px; line-height: 1.7;
}
.support-list li::before { content: "―"; position: absolute; left: 0; color: var(--cobalt); }
.support-note { max-width: 40em; margin: 22px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.support-cta { margin-top: 24px; }

@media (max-width: 640px) {
  .support-list { grid-template-columns: 1fr; gap: 0; }
}

/* ---------------- 困りごと送信 ---------------- */

.contact-sec { padding: clamp(56px, 7vw, 100px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(34px, 5vw, 76px); align-items: start; }
.contact-copy h2 {
  margin: 0 0 24px;
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(28px, 3.8vw, 46px); line-height: 1.5; letter-spacing: .03em; color: var(--navy);
}
.contact-copy p { margin: 0 0 1em; color: #3C4A63; font-size: 16px; }

.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--navy); }
.req { margin-left: 8px; padding: 2px 8px; border-radius: 3px; background: #FBEAEA; color: #A8281E; font-size: 11px; font-weight: 700; }
.opt { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 14px 15px;
  border: 1px solid #BFC7D4; border-radius: 4px; background: #fff;
}
.field textarea { min-height: 168px; resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: var(--cobalt); outline: 2px solid var(--cobalt-bright); outline-offset: 1px;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C0392B; background: #FFF9F9; }
.field-error { display: none; margin-top: 7px; color: #A8281E; font-size: 13px; font-weight: 700; }
.field-error::before { content: "\26A0\FE0E"; margin-right: 6px; }
.field-error[data-show="true"] { display: block; }

.form-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.form-msg { margin-top: 18px; padding: 15px 18px; border-radius: 4px; font-size: 14.5px; font-weight: 700; }
.form-msg[hidden] { display: none; }
.form-ok { border: 1px solid #B4DEC5; background: #F0FAF4; color: #10603C; }
.form-ng { border: 1px solid #E7BDB8; background: #FDF3F2; color: #A8281E; }
.submit-btn { width: 100%; margin-top: 8px; }
.submit-btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------- TOPレスポンシブ ---------------- */

@media (min-width: 1100px) {
  .scroll-hint { display: block; }
}

/* タブレット幅は見出しの折り返し位置がMと近づくため、Mと導入文を絞って文字に当てない */
@media (min-width: 761px) and (max-width: 1024px) {
  .hero-m { width: min(46vw, 760px); top: 4vw; }
  .hero-lead { max-width: 24em; }
}

@media (max-width: 900px) {
  .kawari-grid, .contact-grid, .column-grid { grid-template-columns: 1fr; }
  .maker-grid { grid-template-columns: 1fr auto; }
  .maker-info { grid-column: 1 / -1; }
  .yoru-inner { grid-template-columns: 1fr; gap: 16px; }
  .kawari-shot { justify-self: start; }
}

@media (max-width: 760px) {
  .feed-row { grid-template-columns: 1fr 24px; gap: 6px 14px; padding: 16px 2px; }
  .feed-date { grid-column: 1; font-size: 12.5px; }
  .feed-row .tag { grid-column: 1; justify-self: start; margin-top: 2px; }
  .feed-title { grid-column: 1 / -1; font-size: 15.5px; }
  .feed-arrow { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
  .made-row { grid-template-columns: 1fr; gap: 8px; }
  .made-act, .made-none { align-self: start; }
  .maker-grid { grid-template-columns: 1fr; gap: 20px; }
  /* 「小さな編集者紹介」程度に収まるよう、線画はPCより控えめなサイズにし、
     単独行になる分センター寄せして周囲の余白を詰める */
  .maker-figure { width: clamp(130px, 36vw, 150px); justify-self: center; margin: 0 auto; }
  /* 「実績紹介程度の小さな扱い」を維持するため、PC側の余白増加とは別に
     スマホでは縦の総余白を詰めて画面全体を占有しないようにする */
  .yoru-inner { padding: 14px 0; }
  .post-sub { grid-template-columns: 104px 1fr; gap: 14px; }
  .post-sub h3 { margin-top: 0; }
  /* 直線の対角カットではなく、スマホ専用の浅いSVG曲線を使う（PC版の縮小ではない） */
  .hero-photo img { aspect-ratio: 780 / 460; clip-path: url(#hero-photo-clip-mobile); }
  /* 導入文と写真の間の余白を広げ、大きなMが写真の上端をまたいで
     大胆に配置できるスペースを作る（余白が狭いとMを縮めるしかなくなる）。 */
  .hero-photo { margin-top: 26vw; }
  /* Mを大きく・写真の上端ぎりぎりに。bottom基準にすることで、
     写真の高さが変わっても位置関係が崩れない。 */
  .hero-m { right: 2vw; top: auto; bottom: 30vw; width: 55vw; z-index: 5; }
}

/* スマホは演出を簡略化し、LCPと可読性を優先する。
   見出し・導入文・写真・更新通知は順番待ちさせず最初から表示し、
   静かな演出はMの表出だけに絞る。 */
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-lead, .hero-photo, .updates-first { animation: none; }
  .hero-m img { animation-duration: 1.2s; animation-delay: .4s; }
}

/* ============================================================
   スマホ最終調整（他ルールより後に置いて確実に効かせる）
   本文相当の文字は16px未満にしない
   ============================================================ */

@media (max-width: 600px) {
  .page-head p,
  .sec-lead,
  .prose p, .prose li, .prose th, .prose td,
  .article-foot li,
  .contact-copy p, .contact-copy li,
  .kawari-body, .kawari-body.soft,
  .hero-lead,
  .feed-title,
  .made-desc,
  .list-lead p,
  .post-main p,
  .maker-text p, .maker-info dd,
  .yoru-status { font-size: 16px; }

  .article-foot h2 { font-size: 16px; }
  .yoru-text { font-size: 15px; }
  .form-note, .copyright, .post-meta time { font-size: 13px; }

  /* サムネイル付きの一覧は、狭い幅では要約を省いて見出しで読ませる */
  .list-item div p:not(.post-meta),
  .post-sub div p:not(.post-meta) { display: none; }
  .list-item, .post-sub { grid-template-columns: 116px 1fr; }
  .list-item h2, .post-sub h3 { margin-bottom: 0; font-size: 16.5px; }

  /* 1行入力（お名前・メールアドレス）が縦に間延びして見えるため高さだけ詰める。
     テキストエリア（相談内容）は対象外で従来どおり。 */
  .field input { padding: 14px 15px; line-height: 1.4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
