/* kitto.company — 明るい面に、事業ごとの色のブロック */
:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --mute: #6e6e73;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-deep: #0058b0;
  --lamp: #ffb800;

  /* ファミリー事業 */
  --family: #fff3e4;
  --family-ink: #3a2210;
  --family-mute: #8a6446;
  /* ワーク事業 */
  --work: #0d1230;
  --work-ink: #f2f4ff;
  --work-mute: #a6acd0;

  --sans: "Inter", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
  text-wrap: pretty;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { font-weight: 900; letter-spacing: -0.035em; margin: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem 1rem; z-index: 20; }

/* ロゴ：i の点が灯り */
.logo { font-weight: 900; font-size: 24px; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.logo:hover { text-decoration: none; }
.logo .i { position: relative; display: inline-block; }
.logo .i::after {
  content: ""; position: absolute; left: 50%; top: 0.1em;
  width: 0.22em; height: 0.22em; margin-left: -0.11em;
  border-radius: 50%; background: var(--lamp);
}

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 245, 247, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav a { color: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav .cta { background: var(--ink); color: #fff; padding: 7px 16px; border-radius: 999px; font-weight: 600; }
.nav .cta:hover { text-decoration: none; background: #000; }
@media (max-width: 480px) { .nav { gap: 14px; font-size: 13px; } .nav .cta { padding: 6px 12px; } }

/* ボタン */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; font-weight: 700; font-size: 17px; line-height: 1.3; padding: 14px 28px; border-radius: 999px; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn-ghost:hover { background: #eef5fd; }

/* 事業名の印 */
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; padding: 5px 12px; border-radius: 999px; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip-family { background: #ffe2bf; color: #9a4b00; }
.chip-work { background: rgba(255, 255, 255, 0.1); color: #c9ff5c; }

/* ===== トップ ===== */
.hero { text-align: center; padding-top: 88px; padding-bottom: 40px; }
@media (min-width: 720px) { .hero { padding-top: 112px; } }
.hero h1 { font-size: clamp(34px, 8.4vw, 92px); line-height: 1.14; letter-spacing: -0.045em; margin-bottom: 24px; }
.hero .lead { font-size: clamp(17px, 2vw, 21px); color: var(--mute); margin: 0 auto 36px; max-width: 760px; line-height: 1.7; }
.hero .btns { justify-content: center; }

.groups { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 64px; margin-top: 76px; }
.group { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--ink); }
.group:hover { text-decoration: none; }
.group .icons { display: flex; gap: 18px; }
.group img { width: 84px; height: 84px; border-radius: 23%; box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.4); }
.group .label { font-size: 13px; font-weight: 700; color: var(--mute); }
.group:hover .label { color: var(--ink); }
@media (max-width: 480px) { .group img { width: 60px; height: 60px; } .group .icons { gap: 12px; } }

.section-head { padding-top: 120px; padding-bottom: 36px; }
.section-head h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.2; margin-bottom: 14px; }
.section-head p { margin: 0; color: var(--mute); font-size: 18px; max-width: 640px; }

/* 事業のブロック */
.division { border-radius: var(--r-xl); padding: 28px 16px 16px; margin-bottom: 24px; }
@media (min-width: 720px) { .division { padding: 52px 48px 48px; } }
.division-family { background: var(--family); color: var(--family-ink); }
.division-work { background: var(--work); color: var(--work-ink); }
.division-head { display: grid; gap: 14px; margin-bottom: 32px; padding: 0 8px; }
@media (min-width: 720px) { .division-head { padding: 0; } }
@media (min-width: 900px) { .division-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; } }
.division-head h3 { font-size: clamp(30px, 4vw, 44px); line-height: 1.25; margin-top: 14px; }
.division-head p { margin: 0 0 10px; font-size: 17px; }
.division-family .division-head p { color: var(--family-mute); }
.division-work .division-head p { color: var(--work-mute); }
.division-head .more { font-weight: 700; font-size: 16px; }
.division-family .more { color: #b45a00; }
.division-work .more { color: #c9ff5c; }

.tiles { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .tiles-3 { grid-template-columns: repeat(3, 1fr); }
  .tiles-2 { grid-template-columns: 1.45fr 1fr; }
}
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); padding: 28px 28px 0; min-height: 440px; color: inherit; }
.tile:hover { text-decoration: none; }
.tile .meta { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.tile .meta img { width: 30px; height: 30px; border-radius: 24%; }
.tile .meta .plat { font-weight: 500; opacity: 0.65; }
.tile h4 { font-size: 26px; line-height: 1.3; }
.tile .plus {
  position: absolute; right: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; line-height: 1; background: rgba(127, 127, 127, 0.18);
  transition: transform 0.2s ease;
}
.tile:hover .plus { transform: rotate(90deg); }

.t-asobo { background: #fff; color: var(--family-ink); }
.t-asobo .photo { position: absolute; left: 24px; bottom: 28px; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; transform: rotate(-4deg); box-shadow: 0 18px 36px -12px rgba(90, 50, 20, 0.35); }
.t-asobo .phone { position: absolute; right: 22px; bottom: -110px; width: 50%; max-width: 200px; border-radius: 28px; border: 6px solid var(--family-ink); transform: rotate(5deg); }
.t-ohanashi { background: #241a52; color: #fff; }
.t-ohanashi .illu { position: absolute; left: 24px; right: 24px; bottom: 24px; width: calc(100% - 48px); height: 240px; object-fit: cover; border-radius: 20px; }
.t-rusuban { background: #ff9a14; color: #2b1600; }
.t-rusuban .phone { position: absolute; left: 50%; bottom: -60px; transform: translateX(-50%); width: 62%; max-width: 230px; border-radius: 30px; border: 7px solid #2b1600; box-shadow: 0 30px 60px -20px rgba(80, 30, 0, 0.45); }
.t-hotaru { background: radial-gradient(700px 380px at 85% 115%, #34420f 0%, transparent 60%), #171d48; }
.t-hotaru h4 { font-size: clamp(26px, 3.2vw, 40px); }
.t-hotaru .shot { position: absolute; left: 28px; top: 190px; width: 118%; max-width: none; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 -10px 60px rgba(200, 243, 106, 0.16); }
.t-pocketdesk { background: linear-gradient(160deg, #1b1533 0%, #45104f 58%, #005762 100%); }
.t-pocketdesk .shot { position: absolute; left: 28px; top: 170px; width: 130%; max-width: none; border-radius: 14px; }
@media (min-width: 900px) { .t-hotaru, .t-pocketdesk { min-height: 480px; } }

/* なぜつくるのか（白いカード） */
.why-card { background: var(--card); border-radius: var(--r-xl); padding: 40px 24px; margin-top: 96px; display: grid; gap: 32px; }
@media (min-width: 900px) { .why-card { padding: 72px; grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.why-card h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.25; }
.why-card .body p { margin: 0 0 24px; font-size: 18px; color: var(--ink-2); }
.why-card .more { font-weight: 700; font-size: 17px; }
.values { display: grid; gap: 14px; }
@media (min-width: 720px) { .values { grid-template-columns: repeat(3, 1fr); } }
.why-card .values { grid-column: 1 / -1; }
.value { background: var(--bg); border-radius: var(--r-md); padding: 24px 26px; }
.value b { display: block; font-size: 19px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 6px; }
.value span { font-size: 15px; color: var(--mute); line-height: 1.7; }

/* ===== 事業ページ ===== */
.page-head { padding-top: 96px; padding-bottom: 48px; text-align: center; }
.page-head h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1.15; margin-bottom: 20px; }
.page-head .lead { margin: 0 auto; max-width: 720px; color: var(--mute); font-size: clamp(17px, 2vw, 20px); }
.jump { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.jump a { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 20px 8px 8px; font-weight: 700; font-size: 15px; box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.3); }
.jump a:hover { text-decoration: none; box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.3), inset 0 0 0 1.5px var(--ink); }
.stack { display: flex; }
.stack img { width: 32px; height: 32px; border-radius: 24%; margin-left: -8px; box-shadow: 0 0 0 2px #fff; }
.stack img:first-child { margin-left: 0; }

.biz { border-radius: var(--r-xl); padding: 32px 16px 16px; margin-bottom: 28px; }
@media (min-width: 720px) { .biz { padding: 64px 56px 56px; } }
.biz-head { display: grid; gap: 16px; margin-bottom: 40px; padding: 0 8px; }
@media (min-width: 720px) { .biz-head { padding: 0; } }
@media (min-width: 900px) { .biz-head { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } }
.biz-head h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.22; margin-top: 14px; }
.biz-head .desc { margin: 0 0 20px; font-size: 18px; }
.biz-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0; font-size: 15px; }
.division-family .biz-facts dt { color: var(--family-mute); }
.division-work .biz-facts dt { color: var(--work-mute); }
.biz-facts dd { margin: 0; }

.product { display: grid; border-radius: var(--r-lg); overflow: hidden; margin-top: 16px; }
@media (min-width: 900px) { .product { grid-template-columns: 1fr 1fr; min-height: 420px; } .product.flip .p-visual { order: -1; } }
.division-family .product { background: #fff; }
.division-work .product { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.p-text { padding: 30px 24px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 900px) { .p-text { padding: 48px; } }
.p-text .meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.p-text .meta img { width: 60px; height: 60px; border-radius: 24%; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45); }
.p-text .meta .name { display: block; font-size: 22px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.3; }
.p-text .meta .kind { display: block; font-size: 13px; opacity: 0.65; }
.p-text h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; margin-bottom: 14px; }
.p-text p { margin: 0 0 20px; font-size: 16px; }
.division-family .p-text p { color: #5a4030; }
.division-work .p-text p { color: var(--work-mute); }
.p-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 24px; font-size: 14px; }
.p-facts dt { opacity: 0.6; }
.p-facts dd { margin: 0; }
.p-text .btn { align-self: flex-start; font-size: 15px; padding: 11px 22px; }
.division-family .p-text .btn-primary { background: var(--family-ink); }
.division-family .p-text .btn-primary:hover { background: #000; }
.division-work .p-text .btn-primary { background: #c9ff5c; color: #0d1230; }
.division-work .p-text .btn-primary:hover { background: #dbff8f; }

.p-visual { position: relative; min-height: 320px; overflow: hidden; }
@media (min-width: 900px) { .p-visual { min-height: 0; } }
.v-asobo { background: linear-gradient(160deg, #ffe7d1, #ffc9a3); }
.v-asobo .photo { position: absolute; left: 9%; top: 20%; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; transform: rotate(-5deg); box-shadow: 0 20px 40px -14px rgba(90, 50, 20, 0.45); }
.v-asobo .phone { position: absolute; right: 9%; top: 9%; width: 40%; max-width: 210px; border-radius: 28px; border: 6px solid var(--family-ink); transform: rotate(4deg); box-shadow: 0 24px 50px -18px rgba(90, 50, 20, 0.5); }
.v-ohanashi { background: #241a52; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 28px 28px 56px; align-content: center; }
.v-ohanashi img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.v-ohanashi img:nth-child(2) { transform: translateY(28px); }
.v-rusuban { background: linear-gradient(160deg, #ffb347, #ff8a00); }
.v-rusuban .phone { position: absolute; top: 34px; width: 38%; max-width: 200px; border-radius: 28px; border: 6px solid #2b1600; box-shadow: 0 26px 50px -18px rgba(80, 30, 0, 0.55); }
.v-rusuban .phone.a { left: 12%; transform: rotate(-5deg); }
.v-rusuban .phone.b { right: 12%; top: 64px; transform: rotate(5deg); }
.v-hotaru { background: radial-gradient(600px 300px at 80% 110%, #3b4a10 0%, transparent 60%), #171d48; }
.v-hotaru img { position: absolute; left: 40px; top: 48px; width: 135%; max-width: none; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14); }
.v-pocketdesk { background: linear-gradient(160deg, #1b1533 0%, #45104f 58%, #005762 100%); }
.v-pocketdesk img { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); width: 125%; max-width: none; border-radius: 14px; }

/* 窓口 */
.contact { padding-top: 96px; }
.contact h2 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 12px; }
.contact > p { color: var(--mute); margin: 0 0 32px; font-size: 17px; }
.mail-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .mail-grid { grid-template-columns: repeat(3, 1fr); } }
.mail { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--r-md); padding: 16px 18px; color: var(--ink); }
.mail:hover { text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--blue); }
.mail img { width: 44px; height: 44px; border-radius: 24%; flex: none; }
.mail .lamp { width: 44px; height: 44px; border-radius: 24%; flex: none; background: var(--ink); position: relative; }
.mail .lamp::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--lamp); }
.mail b { display: block; font-size: 15px; line-height: 1.4; }
.mail span { font-size: 13px; color: var(--blue); overflow-wrap: anywhere; }

/* ===== about ===== */
.about-head { padding-top: 96px; padding-bottom: 56px; text-align: center; }
.about-head h1 { font-size: clamp(44px, 7.5vw, 88px); line-height: 1.15; margin-bottom: 24px; }
.about-head .lead { max-width: 720px; margin: 0 auto; font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-2); line-height: 1.75; }

.panel { background: var(--card); border-radius: var(--r-xl); padding: 36px 22px; margin-bottom: 24px; }
@media (min-width: 720px) { .panel { padding: 64px 72px; } }
.panel h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.3; margin-bottom: 20px; }
.panel p { font-size: 17px; color: var(--ink-2); margin: 0 0 18px; max-width: 720px; }
.panel p:last-child { margin-bottom: 0; }

.worries { list-style: none; margin: 0 0 32px; padding: 0; }
.worries li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 18px 0; border-bottom: 1px solid #e8e8ed; }
.worries li:first-child { padding-top: 0; }
.worries .worry { font-size: clamp(18px, 2vw, 22px); font-weight: 700; letter-spacing: -0.02em; }
.worries a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--bg); padding: 5px 14px 5px 5px; border-radius: 999px; }
.worries a:hover { text-decoration: none; background: #e8e8ed; }
.worries a img { width: 26px; height: 26px; border-radius: 24%; }

.two { display: grid; gap: 24px; margin-bottom: 24px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } }
.two .panel { margin-bottom: 0; }
@media (min-width: 720px) { .two .panel { padding: 56px; } }
.name-mark { font-size: 96px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; margin-bottom: 28px; }
.name-mark .i { position: relative; display: inline-block; }
.name-mark .i::after { content: ""; position: absolute; left: 50%; top: 0.1em; width: 0.22em; height: 0.22em; margin-left: -0.11em; border-radius: 50%; background: var(--lamp); }
.panel.dark { background: var(--work); color: var(--work-ink); }
.panel.dark p { color: var(--work-mute); }
.biz-mini { display: grid; gap: 12px; margin-top: 24px; }
.biz-mini a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: var(--r-md); color: inherit; }
.biz-mini a:hover { text-decoration: none; filter: brightness(1.06); }
.biz-mini .f { background: var(--family); color: var(--family-ink); }
.biz-mini .w { background: rgba(255, 255, 255, 0.08); }
.biz-mini b { display: block; font-size: 18px; }
.biz-mini span { font-size: 13px; opacity: 0.75; }
.biz-mini .stack img { box-shadow: none; }

.info { display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; margin: 0; font-size: 16px; }
.info dt { color: var(--mute); }
.info dd { margin: 0; overflow-wrap: anywhere; }

/* フッター */
.site-footer { padding-top: 96px; padding-bottom: 48px; font-size: 13px; color: var(--mute); }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: var(--mute); }
.site-footer nav a:hover { color: var(--ink); }

/* 404 */
.lost { text-align: center; padding-top: 120px; padding-bottom: 80px; }
.lost h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 16px; }
.lost p { color: var(--mute); margin: 0 0 32px; }
.lost .btns { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
