/*
 * MKMKポータルの見た目。
 * MKMK VC Manager の公開サイト（vc.mkmk.studio、2026-10-29の版）の配色と形を元に、
 * ポータルで使う部品だけを整理して書き直したもの。
 *
 * 形の決まりごと：白い板に紺の縁取り（2px）と、ずらした色の影。ボタンは角の丸い細長い形。
 */

/* ---------- 色と大きさ（ここを変えると全体が変わる） ---------- */
:root {
  --ink: #1c1a45;      /* 紺：文字・縁取り・ヘッダー */
  --muted: #46445f;    /* 薄めの文字 */
  --paper: #f6f5fc;    /* 背景 */
  --white: #fff;
  --mint: #bdecea;     /* ミント：影・強調 */
  --lilac: #eab8f2;    /* ピンク：ボタンの影 */
  --peri: #b0abe2;     /* ラベンダー：影 */
  --purple: #5452e0;   /* 紫：リンク・小見出し */
  --soft: #eeedfb;     /* 薄い紫：札の背景 */
  --edge: 2px solid var(--ink);
  --radius: 26px;
  --drop: 10px 12px 0 var(--mint);
  --wrap: 1120px;
}

/* ---------- 土台 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  /* 背景の色の円（VCサイトと同じ配置） */
  background-image:
    radial-gradient(circle at 96% 30%, var(--lilac) 0 150px, transparent 151px),
    radial-gradient(circle at 104% 62%, var(--peri) 0 260px, transparent 261px),
    radial-gradient(circle at 14% 78%, var(--mint) 0 120px, transparent 121px),
    radial-gradient(circle at 6% 96%, var(--lilac) 0 300px, transparent 301px);
  background-attachment: fixed;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
h1, h2, h3 { line-height: 1.4; letter-spacing: -0.02em; font-weight: 900; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }
main.bare { position: relative; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 8px 14px; border: var(--edge); border-radius: 12px; }
.pc { display: none; }
@media (min-width: 760px) { .pc { display: inline; } }

/* テスト環境の帯 */
.env-banner { margin: 0; padding: 6px 16px; background: var(--lilac); color: var(--ink); text-align: center; font-size: .85rem; font-weight: 800; }

/* ---------- ヘッダー ---------- */
.site-header {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--ink); color: var(--white);
  border-radius: 28px; box-shadow: var(--drop);
  padding: 12px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-weight: 900; font-size: 1.15rem; letter-spacing: .02em; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; }
.site-header nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.site-header nav a { color: var(--mint); text-decoration: none; font-weight: 700; font-size: .85rem; padding: 6px 2px; }
.site-header nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--mint); }
.site-header nav a:hover { color: var(--white); }
@media (max-width: 600px) {
  .site-header { padding: 12px 16px; border-radius: 22px; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 4px; }
}

main { padding: 36px 0 64px; display: grid; gap: 40px; }

/* ---------- 板（カード） ---------- */
.card { background: var(--white); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); padding: 32px 36px; }
@media (max-width: 600px) { .card { padding: 24px 20px; box-shadow: 6px 8px 0 var(--mint); } }

.eyebrow { color: var(--purple); font-size: .74rem; font-weight: 900; letter-spacing: .14em; margin-bottom: .4em; }
.lead { color: var(--muted); font-size: 1.08rem; }
.note { color: var(--muted); font-size: .92rem; }

/* ---------- ボタンとリンク ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: var(--white); text-decoration: none;
  border: var(--edge); border-radius: var(--btn-r, 999px); box-shadow: 5px 6px 0 var(--lilac);
  padding: 12px 26px; font-weight: 900; font-size: .95rem; line-height: 1.5;
}
.button:hover { transform: translate(1px, 1px); box-shadow: 4px 5px 0 var(--lilac); }
.button.quiet { background: var(--white); color: var(--ink); box-shadow: 5px 6px 0 var(--mint); }
.text-link { font-weight: 800; font-size: .92rem; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 1.4em; }

/* ---------- ページの見出し ---------- */
.page-head { padding: 8px 4px 0; }
.page-head h1 { margin-bottom: .3em; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: -20px; }
.crumbs a { color: var(--purple); }

/* ---------- トップ ---------- */
.hero { padding: 48px 48px 40px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.hero-mark { width: 192px; border-radius: 40px; border: var(--edge); box-shadow: 8px 10px 0 var(--lilac); margin-right: 24px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-mark { display: none; } }
@media (max-width: 600px) { .hero { padding: 32px 22px; } }

.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block-head h2 { margin: 0; }

/* ---------- サービスのカード ---------- */
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }
.service-card a {
  height: 100%; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--white); border: var(--edge); border-radius: 22px; box-shadow: 8px 10px 0 var(--peri); overflow: hidden;
}
.service-card a:hover { transform: translate(2px, 2px); box-shadow: 6px 8px 0 var(--peri); }
.service-thumb { aspect-ratio: 16 / 8; background: var(--soft); border-bottom: var(--edge); display: grid; place-items: center; overflow: hidden; }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.service-icon { font-size: 3.4rem; }
.service-text { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 20px; flex: 1; }
.service-name { font-size: 1.15rem; font-weight: 900; }
.service-blurb { color: var(--muted); font-size: .92rem; line-height: 1.7; flex: 1; }
.service-card .go { color: var(--purple); font-weight: 800; font-size: .88rem; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chip { display: inline-block; background: var(--soft); border: 1px solid #d3d0f1; border-radius: 999px; padding: 0 10px; font-size: .74rem; font-weight: 800; color: var(--muted); }
.chip.soon { background: #fff3d6; border-color: #f0d79a; color: #6b4e00; }

/* ---------- サービスの詳細：紹介カード（VCサイトと同じ作り） ---------- */
.detail-top { display: grid; gap: 22px; }
.slider { display: grid; gap: 14px; min-width: 0; }
/* カードを横に並べ、1枚ずつぴたりと止まるようにスクロールさせる */
.slides {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 2px 14px 14px 2px; scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) { .slides { scroll-behavior: smooth; } }
.slide {
  scroll-snap-align: start; min-width: 0;
  background: var(--white); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop);
  padding: 34px 40px; display: flex; flex-direction: column; justify-content: center;
}
.slide h2 { margin-bottom: 14px; }
.slide-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.slide-hero h1 { margin: .3em 0 .2em; }
.catch { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 900; line-height: 1.5; margin: 0 0 .6em; }
.slide-shot { margin: 0; background: var(--soft); border: 1px solid #d3d0f1; border-radius: 18px; padding: 12px; }
.slide-shot img { border-radius: 10px; }
.detail-icon { font-size: 6rem; text-align: center; margin: 0; }
.slide-lead { color: var(--muted); font-size: .95rem; line-height: 1.7; margin: -4px 0 14px; }

/* 行ごとの <span>：意味の切れ目で改行する（日本語は空白でつなげると不自然なので、PCでも改行する） */
.lines span { display: block; }

/* できること */
.feature-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature-tiles li { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 18px; border: 1.5px solid var(--ink); border-radius: 18px; background: #fbfaff; min-width: 0; }
.feature-tiles h3 { margin: 0; font-size: 1rem; white-space: nowrap; }
.feature-tiles p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.tile-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--mint); font-size: 1.3rem; line-height: 1; margin-bottom: 4px; }

/* 実際の画面 */
.shot-pair { display: grid; grid-template-columns: 1.23fr 1fr; gap: 14px; align-items: start; }
.shot { margin: 0; }
.shot img { border: 1px solid #d3d0f1; border-radius: 12px; background: var(--soft); }
.shot figcaption { margin-top: 6px; text-align: center; font-size: .82rem; font-weight: 800; color: var(--muted); line-height: 1.5; }

/* はじめかた */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { position: relative; padding: 14px 18px 14px 58px; border: 1.5px solid var(--ink); border-radius: 18px; container-type: inline-size; }
.step-no { position: absolute; left: 18px; top: 16px; color: var(--purple); font-weight: 900; }
.steps h3 { margin: 0 0 2px; }
.steps p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; background: var(--soft); border: 1px solid #d3d0f1; border-radius: 4px; padding: 1px 5px; white-space: nowrap; }

/* カードの下のタブ（slider.js が作る） */
.slider-nav { display: flex; justify-content: center; align-items: center; gap: 8px; }
.slider-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.slider-tab { min-height: 38px; padding: 4px 16px; border: var(--edge); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-weight: 800; font-size: .86rem; cursor: pointer; }
.slider-tab[aria-current="true"] { background: var(--ink); color: var(--white); }
.slider-tab:hover:not([aria-current="true"]) { background: var(--mint); }
.slider-arrow { width: 40px; height: 40px; border-radius: 50%; border: var(--edge); background: var(--white); color: var(--ink); font-size: 1.3rem; font-weight: 900; cursor: pointer; }
.slider-arrow:disabled { opacity: .35; cursor: default; }

/* 入口ボタンと規約のリンク */
.detail-cta { display: grid; justify-items: center; gap: 10px; text-align: center; }
.button.wide { min-width: min(100%, 360px); padding: 15px 28px; }
.consent-links { display: flex; gap: 22px; justify-content: center; margin: 0; }
.consent-links a { font-weight: 800; font-size: .85rem; padding: 6px 0; }
.cta-more { margin: 0; }

/* 見出しを1行に収める：幅 ÷ 文字数 で文字の大きさを決める（上限は見出しごと） */
.slide { container-type: inline-size; }
.fit { white-space: nowrap; font-size: min(var(--fit-max), calc(100cqi / var(--n))); }
.fit-h1 { --fit-max: 2.4rem; }
.fit-h2 { --fit-max: 1.6rem; }
.fit-h3 { --fit-max: 1.05rem; }
.fit-4 { --n: 4; } .fit-5 { --n: 5; } .fit-6 { --n: 6; } .fit-7 { --n: 7; } .fit-8 { --n: 8; }
.fit-9 { --n: 9; } .fit-10 { --n: 10; } .fit-11 { --n: 11; } .fit-12 { --n: 12; } .fit-13 { --n: 13; }
.fit-14 { --n: 14; } .fit-15 { --n: 15; } .fit-16 { --n: 16; } .fit-17 { --n: 17; } .fit-18 { --n: 18; }
.fit-19 { --n: 19; } .fit-20 { --n: 20; } .fit-21 { --n: 21; } .fit-22 { --n: 22; } .fit-23 { --n: 23; } .fit-24 { --n: 24; }

@media (max-width: 760px) {
  .slide-hero { grid-template-columns: 1fr; gap: 18px; }
  .detail-icon { font-size: 4rem; }
  .feature-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 620px) {
  .slides { gap: 14px; padding: 2px 8px 10px 2px; }
  .slide { padding: 22px 18px; box-shadow: 6px 8px 0 var(--mint); }
  /* スマホ：1行が途中で折り返さないようにする */
  .lines span { white-space: nowrap; }
  .feature-tiles li { padding: 12px; }
  .feature-tiles h3 { font-size: .9rem; }
  .feature-tiles p { font-size: .74rem; line-height: 1.55; }
  .tile-icon { width: 34px; height: 34px; font-size: 1.05rem; }
  .shot-pair { grid-template-columns: 1fr 1fr; gap: 8px; }
  .shot figcaption { font-size: .72rem; }
  .steps li { padding: 12px 12px 12px 46px; }
  .step-no { left: 14px; top: 13px; }
  .steps p { font-size: .82rem; }
  .slider-arrow { display: none; }
  .slider-tab { min-height: 36px; padding: 2px 12px; font-size: .8rem; }
  .button.wide { width: 100%; }
}

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.fact { padding: 24px 26px; box-shadow: 8px 10px 0 var(--peri); }
.fact h2 { font-size: 1.1rem; }
.fact ul { margin: 0; padding-left: 1.2em; }
.link-list { list-style: none; padding-left: 0 !important; }
.link-list li { padding: 4px 0; }
.link-list a { font-weight: 800; }

/* ---------- お知らせ ---------- */
.nlist { list-style: none; margin: 0; padding: 0; background: var(--white); border: var(--edge); border-radius: 22px; overflow: hidden; }
.nlist li + li { border-top: 1px solid #d3d0f1; }
.nlist a { display: grid; grid-template-columns: auto 1fr auto auto; gap: 6px 14px; align-items: center; padding: 14px 20px; color: var(--ink); text-decoration: none; }
.nlist a:hover { background: var(--soft); }
.nlist .t { font-weight: 800; }
.nlist time { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.nlist .go { color: var(--purple); font-weight: 900; }
.nlist .pinned { background: #fbfaff; }
@media (max-width: 600px) {
  .nlist a { grid-template-columns: 1fr auto; }
  .nlist .tags { grid-column: 1; }
  .nlist time { grid-column: 2; grid-row: 1; }
  .nlist .t { grid-column: 1 / -1; }
  .nlist .go { display: none; }
}
.tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-block; border-radius: 6px; padding: 0 8px; font-size: .74rem; font-weight: 800; background: var(--soft); color: var(--ink); white-space: nowrap; }
.tag.k-feature { background: var(--mint); }
.tag.k-maintenance { background: #fff3d6; }
.tag.k-incident { background: #ffd9de; }
.tag.svc { background: var(--white); border: 1px solid #d3d0f1; }
.nempty { background: var(--white); border: var(--edge); border-radius: 22px; padding: 18px 22px; color: var(--muted); margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: -16px; }
.filters a { text-decoration: none; color: var(--ink); background: var(--white); border: var(--edge); border-radius: 999px; padding: 2px 16px; font-weight: 800; font-size: .88rem; }
.filters a[aria-current="true"] { background: var(--ink); color: var(--white); }
.pager { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }

.notice h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.notice-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .88rem; }
.notice-body h3 { margin-top: 1.4em; }
.notice-images { display: grid; gap: 14px; margin-top: 1em; }
.notice-images img { border: 1px solid #d3d0f1; border-radius: 12px; }
.back { margin: -16px 0 0; }

/* ---------- 文章のページ ---------- */
.prose h2 { font-size: 1.15rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.mail { font-weight: 800; font-size: 1.1rem; }

/* ---------- つくっている人 ---------- */
.maker { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; box-shadow: 10px 12px 0 var(--peri); padding: 22px 26px; }
.maker-mark { width: 72px; height: 72px; border-radius: 50%; border: var(--edge); }
.maker h2 { margin: 0 0 .2em; }
.maker-body p:last-child { margin: 0; }
.maker-links { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 760px) {
  .maker { grid-template-columns: auto 1fr; }
  .maker-links { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .maker-links .button { flex: 1; }
}

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 28px 0; font-size: .88rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer p { margin: .4em 0; }
.site-footer a { color: var(--white); }
.footer-brand { font-weight: 900; font-size: 1.05rem; color: var(--mint) !important; text-decoration: none; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-content: flex-start; }

/* 編集画面で作ったページ：幅と余白はブロックの側で決める */
main.bare { padding: 0; display: block; }
