/* kobapp 公開ページ */
:root {
  --ink: #16181D;
  --ink-2: #4A4F5C;
  --ink-3: #5C6170;
  --ground: #F6F7FB;
  --white: #FFFFFF;
  --line: #E4E6EE;
  --line-2: #EEF0F5;
  --accent: #2F5BEA;
  --link: #2948D6;
  --link-hover: #1A2F9A;
  --pale: #EEF1FF;
  --yellow: #FFC93C;
  --orange: #FF8A65;
  --font: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Sans', sans-serif;
  --round: 'M PLUS Rounded 1c', var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--ground); line-height: 1.75; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 640px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; color: var(--ink-3); }
.pre { white-space: pre-line; }

/* ヘッダー */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--round); font-weight: 800; font-size: 20px; }
.logo__text { font-family: var(--round); font-weight: 800; font-size: 22px; letter-spacing: .02em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; }
.site-nav a:hover { background: var(--ground); color: var(--ink); }

/* ボタン */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 16px; font-family: inherit; cursor: pointer; border: 0; }
.btn--lg { min-height: 52px; padding: 0 28px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #2348c4; color: #fff; }
.btn--ghost { background: var(--white); color: var(--ink); border: 1.5px solid #D3D7E3; }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink-3); }
.btn--outline { background: var(--white); color: var(--link); border: 1.5px solid var(--accent); min-height: 52px; padding: 0 32px; }
.btn--outline:hover { background: var(--pale); }

/* ヒーロー */
.hero { background: var(--white); }
.hero__inner { padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(56px, 8vw, 96px); display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero__text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--pale); color: var(--link); font-size: 14px; font-weight: 700; }
.hero__title { font-family: var(--round); font-weight: 800; font-size: clamp(30px, 6.4vw, 52px); line-height: 1.3; letter-spacing: .01em; }
.nw { display: inline-block; }
.hero__lead { font-size: 17px; color: var(--ink-2); max-width: 560px; }
.hero-deco { flex: 1 1 340px; max-width: 400px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hero-deco__tile { aspect-ratio: 1; border-radius: 24px; display: flex; align-items: center; justify-content: center; }
.hero-deco__tile.round { border-radius: 999px; }
.tile--accent { background: var(--accent); }
.tile--yellow { background: var(--yellow); }
.tile--gray { background: #E9ECF5; }
.tile--dark { background: var(--ink); }
.tile--orange { background: var(--orange); }
.tile--pale { background: var(--pale); }
@media (max-width: 599px) {
  .hero-deco { display: none; }
}

/* セクション */
.section { padding: clamp(64px, 10vw, 96px) 0; }
.section--tight { padding-top: 0; }
.section--white { background: var(--white); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.eyebrow { font-family: var(--round); font-weight: 700; color: var(--link); font-size: 15px; letter-spacing: .12em; margin-bottom: 8px; }
.eyebrow--yellow { color: var(--yellow); }
.section-title { font-family: var(--round); font-weight: 800; font-size: clamp(28px, 5vw, 36px); line-height: 1.4; }
.section-title--sm { font-size: clamp(24px, 4.5vw, 32px); margin-bottom: 24px; }
.count { font-size: 20px; color: var(--ink-3); font-weight: 700; }

/* アプリカード */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.app-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.app-card[hidden] { display: none; }
.app-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-card__body { display: flex; flex-direction: column; gap: 6px; }
.app-card__name { font-family: var(--round); font-weight: 800; font-size: 22px; line-height: 1.5; }
.app-card__desc { color: var(--ink-2); font-size: 15px; }
.app-card__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.app-card__host { font-size: 13px; color: var(--ink-3); word-break: break-all; }
.app-card--next { background: transparent; border: 2px dashed #CDD2DF; align-items: center; justify-content: center; text-align: center; min-height: 300px; gap: 12px; }
.app-card--next .app-card__name { font-size: 20px; }
.app-icon { border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; overflow: hidden; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon--plus { width: 64px; height: 64px; background: #E9ECF5; }
.link-more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; font-size: 15px; text-decoration: none; }

.badge { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.badge--public { background: #E3F6EA; color: #1D6B3A; }
.badge--test { background: #FFF4D1; color: #7A5300; }
.badge--draft { background: var(--line-2); color: var(--ink-2); }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 2px 10px; border-radius: 6px; background: #F1F2F6; color: var(--ink-2); font-size: 13px; }
.tags--lg li { padding: 6px 14px; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 500; }

.more { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.more[hidden] { display: none; }

/* 作り方 */
.how { background: var(--ink); color: #fff; border-radius: 32px; padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px); }
.how__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.how__step { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid #3A3D47; }
.how__num { font-family: var(--round); font-weight: 800; font-size: 28px; color: var(--yellow); }
.how__step h3 { font-size: 18px; }
.how__step p:last-child { color: #C5C9D4; font-size: 15px; }

/* 自己紹介 */
.about { background: var(--white); border: 1px solid var(--line); border-radius: 32px; padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.about__avatar { width: 140px; height: 140px; border-radius: 999px; background: var(--pale); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.about__text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.about__text .section-title { margin-bottom: 0; }
.chip-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--pale); text-decoration: none; font-weight: 700; font-size: 15px; }

/* 詳細ページ */
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 24px; font-size: 14px; font-weight: 700; text-decoration: none; }
.detail-hero__inner { padding-top: 24px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.detail-hero__text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.detail-hero__badges { display: flex; align-items: center; gap: 16px; }
.detail-hero__badges .app-icon { border-radius: 22px; }
.detail-title { font-family: var(--round); font-weight: 800; font-size: clamp(32px, 6vw, 48px); line-height: 1.3; }
.phone { flex: 1 1 300px; display: flex; justify-content: center; }
.phone__screen { width: 280px; height: 560px; border-radius: 44px; background: var(--ink); padding: 12px; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.feature { background: var(--ground); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--ink-2); font-size: 15px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.panel__title { font-family: var(--round); font-weight: 800; font-size: 24px; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-weight: 500; }
.link-list a:last-child { border-bottom: 0; }

/* フッター */
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.site-footer__inner { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer__inner .logo__text { font-size: 18px; }
.site-footer p { color: var(--ink-3); font-size: 13px; }
