/* トップ（/）と 100本チャレンジ（/100）の見た目。プライバシーポリシーなどは style.css */

:root {
  --ground: #F7F5F0;
  --surface: #FFFFFF;
  --sunken: #F1EDE5;
  --ink: #141414;
  --secondary: #4A463F;
  --tertiary: #6B665C;
  --line: #E2DDD3;
  --empty: #E4DFD5;
  --accent: #B8321A;
  --on-accent: #FFFFFF;
  --invert: #141414;
  --invert-card: #232220;
  --invert-ink: #F4F1EB;
  --invert-secondary: #C9C3B8;
  --invert-accent: #F08A6E;
  --shadow: 0 16px 32px rgba(20, 20, 20, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #121211;
    --surface: #1B1A18;
    --sunken: #252321;
    --ink: #F2EEE6;
    --secondary: #BDB6AA;
    --tertiary: #9A9388;
    --line: #34312C;
    --empty: #2E2C29;
    --accent: #F08A6E;
    --on-accent: #141414;
    --invert: #000000;
    --invert-card: #1B1A18;
    --invert-ink: #F2EEE6;
    --invert-secondary: #BDB6AA;
    --invert-accent: #F08A6E;
    --shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
img { max-width: 100%; }
h1, h2, h3 { font-weight: 900; word-break: auto-phrase; text-wrap: balance; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ナビ */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 22px; }
.logo__mark { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 26px; height: 26px; }
.logo__mark i { background: var(--ink); border-radius: 4px; }
.logo__mark i:nth-child(2) { background: var(--accent); }
.nav nav { display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; font-weight: 700; }
.nav nav a { color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 999px; }
.nav nav a:hover { background: var(--sunken); }

/* ボタン */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; background: var(--ink); color: var(--ground);
  text-decoration: none; font-weight: 700; font-size: 15px; border: 1.5px solid var(--ink);
}
.button:hover { opacity: 0.85; }
.button--outline { background: transparent; color: var(--ink); }
.button--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); min-height: 52px; }
.button--small { min-height: 44px; padding: 0 18px; font-size: 14px; }
.button svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* セクション */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 104px; }
.hero__text { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { margin: 0; font-size: clamp(30px, 4.8vw, 56px); line-height: 1.22; letter-spacing: -0.01em; }
.hero__lead { margin: 0; font-size: 17px; color: var(--secondary); max-width: 32em; }
.pill { align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }

.band { padding: 96px 0 104px; }
.band--surface { background: var(--surface); }
.band--invert { background: var(--invert); color: var(--invert-ink); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.3; }
.section-head p { margin: 0; font-size: 14px; color: var(--secondary); max-width: 30em; }
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); }
.band--invert .eyebrow { color: var(--invert-accent); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* トップ：アイコンを散らす */
.icon-fan { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.icon-fan__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; max-width: 380px; padding-bottom: 36px; }
.icon-fan img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: var(--shadow); }
.icon-fan img:nth-child(1) { transform: rotate(-6deg); }
.icon-fan img:nth-child(2) { transform: translateY(28px); }
.icon-fan img:nth-child(3) { transform: rotate(5deg); }
.icon-fan img:nth-child(4) { transform: rotate(4deg) translateY(8px); }
.icon-fan img:nth-child(5) { transform: translateY(36px); }
.icon-fan img:nth-child(6) { transform: rotate(-5deg) translateY(6px); }

/* トップ：数字 */
.stats { display: grid; gap: 24px 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 40px; }
.stat { border-top: 3px solid var(--ink); padding-top: 16px; }
.stat b { font-size: 56px; line-height: 1.1; font-weight: 900; }
.stat b + span { margin-left: 6px; font-size: 18px; font-weight: 900; }
.stat p { margin: 4px 0 0; font-size: 14px; color: var(--secondary); }

/* トップ：100本チャレンジの枠 */
.feature { background: var(--sunken); border-radius: 28px; padding: 36px; display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; margin-bottom: 16px; }
.feature__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.feature h3 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.4; }
.feature p { margin: 0; font-size: 15px; color: var(--secondary); }
.feature__list { flex: 1 1 360px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feature__list li { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 16px; padding: 10px 14px; }
.feature__list img { width: 40px; height: 40px; border-radius: 9px; }
.feature__list span { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; }
.feature__list small { font-size: 12px; color: var(--tertiary); }

.tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--ground); }
.tag--accent { background: var(--accent); color: var(--on-accent); }
.tag--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 2px 9px; }

/* トップ：実績 */
.works { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.work { background: var(--sunken); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.work__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.work h3 { margin: 0; font-size: 19px; line-height: 1.45; }
.work p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--secondary); }
.work small { margin-top: auto; padding-top: 4px; font-size: 12px; color: var(--tertiary); }

/* カード（できること・つくり方） */
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tile h3 { margin: 0; font-size: 19px; }
.tile p { margin: 0; font-size: 14px; color: var(--secondary); }
.tile svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.band--invert .tile { background: var(--invert-card); border: 0; }
.band--invert .tile p { color: var(--invert-secondary); font-size: 15px; }
.band--invert .tile svg { stroke: var(--invert-accent); }

/* トップ：名前の由来 */
.about { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: center; }
.about__mark { flex: 1 1 360px; min-width: 0; }
.about__mark b { display: block; font-size: clamp(56px, 9vw, 112px); line-height: 1; font-weight: 900; letter-spacing: -0.02em; }
.about__mark b i { font-style: normal; color: var(--invert-accent); }
.about__mark span { display: block; margin-top: 12px; font-size: 22px; font-weight: 700; letter-spacing: 0.3em; }
.about__text { flex: 1 1 460px; min-width: 0; }
.about__text h2 { margin: 0 0 16px; font-size: clamp(24px, 3vw, 32px); line-height: 1.4; }
.about__text p { margin: 0; color: var(--invert-secondary); }

/* お問い合わせ */
.contact { padding-top: 96px; padding-bottom: 96px; }
.contact__box { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.contact__box > div { flex: 1 1 420px; min-width: 0; }
.contact__box h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); line-height: 1.35; }
.contact__box p { margin: 0; font-size: 15px; color: var(--secondary); }
.contact__box svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.footer { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-bottom: 48px; font-size: 13px; color: var(--tertiary); }

/* 100：進み具合 */
.progress { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.progress__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.progress__count b { font-size: 44px; line-height: 1; font-weight: 900; }
.progress__count span { margin-left: 6px; font-weight: 700; color: var(--secondary); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--secondary); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.cells { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; }
.cells i, .legend i { aspect-ratio: 1; border-radius: 3px; background: var(--empty); }
.legend i { width: 10px; height: 10px; }
.cells .is-released, .legend .is-released { background: var(--accent); }
.cells .is-review, .legend .is-review { background: var(--ink); }
.cells .is-developing, .legend .is-developing { background: transparent; border: 1.5px solid var(--ink); }

/* 100：スクショを扇に */
.shot-fan { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; align-items: center; padding: 24px 0; }
.shot-fan img { position: relative; height: auto; box-shadow: var(--shadow); }
.shot-fan img:nth-child(1) { width: 34%; max-width: 210px; border-radius: 24px; transform: rotate(-7deg) translateX(18%) translateY(18px); }
.shot-fan img:nth-child(2) { width: 40%; max-width: 250px; border-radius: 28px; z-index: 1; }
.shot-fan img:nth-child(3) { width: 34%; max-width: 210px; border-radius: 24px; transform: rotate(7deg) translateX(-18%) translateY(18px); }

/* 100：アプリのカード */
.app-cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.app-card { background: var(--sunken); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.app-card__shot { height: 300px; overflow: hidden; }
.app-card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.app-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.app-card__head { display: flex; gap: 14px; align-items: center; }
.app-card__icon { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.06); }
.app-card__title { flex: 1; min-width: 0; }
.app-card__title small { display: block; font-size: 12px; font-weight: 700; color: var(--tertiary); letter-spacing: 0.08em; }
.app-card__title h3 { margin: 0; font-size: 19px; line-height: 1.4; }
.app-card__body > p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--secondary); }
.app-card__links { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 13px; }
.app-card__links > a:not(.button) { color: var(--secondary); }
.soon { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px dashed var(--tertiary); color: var(--secondary); font-weight: 700; font-size: 14px; }
.status { flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.status--released { background: var(--accent); color: var(--on-accent); }
.status--review { background: var(--ink); color: var(--ground); }
.status--developing { border: 1.5px solid var(--ink); padding: 3px 9px; }

@media (max-width: 600px) {
  .feature, .contact__box { padding: 24px; }
  .band { padding: 72px 0 80px; }
}
