@import url("https://fonts.googleapis.com/css2?family=Saira:ital,wdth,wght@0,125,500;1,125,800&display=swap");
/* FENINA STUDIO 共通スタイル（全ページで読み込む） */
:root {
  --bg: #1b1b1b;
  --text: #f2f2f2;
  --muted: #b5b5b5;
  --line: #3a3a3a;
  --link: #9cc4ff;
  --accent: #4C8DF6;
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --text: #1f1f1f;
    --muted: #5f5f5f;
    --line: #e2e2e2;
    --link: #0b5bd3;
    --accent: #0B5BD3;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.site-title {
  margin: 0 0 32px;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.site-title a { color: inherit; text-decoration: none; }

h1 { font-size: 1.8rem; margin: 0 0 8px; line-height: 1.4; }
h2 { font-size: 1.4rem; margin: 0 0 12px; line-height: 1.4; }

section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
section:first-of-type { border-top: none; padding-top: 0; }

.lead { margin: 0 0 4px; }

/* 項目名と値の一覧 */
.info { margin: 0; padding-left: 1.4em; }
.info > li { margin-bottom: 8px; }
.info .label { display: block; font-weight: 700; }
.info ul { margin: 2px 0 0; padding-left: 1.4em; list-style: circle; }

a { color: var(--link); }

/* 長文ページ（プライバシーポリシーなど） */
.lang-switch { margin: -16px 0 24px; font-size: 0.95rem; }
.lang-switch a { margin: 0 4px; }
.doc h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.doc h2.doc-title { font-size: 1.6rem; margin: 0 0 8px; }
.doc h3 { font-size: 1rem; margin: 18px 0 6px; }
.doc .dates { color: var(--muted); font-size: 0.9rem; margin: 0 0 20px; }
.doc ul { padding-left: 1.4em; }
.doc p { margin: 0 0 12px; }
.faq dt { font-weight: 700; margin-top: 16px; }
.faq dd { margin: 4px 0 0; }
.doc + .doc { margin-top: 24px; }
.doc .note { color: var(--muted); }

/* 機能一覧の表（スマホでは横スクロール） */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 8px; }
table.features { width: 100%; min-width: 560px; table-layout: fixed; border-collapse: collapse; font-size: 0.92rem; line-height: 1.6; }
.features th, .features td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.features thead th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.features tbody th { font-weight: 700; }
.features thead th:first-child { width: 24%; }
.features td.c, .features thead th:nth-child(n+3) { text-align: center; width: 14%; }
.features thead th:nth-child(n+3) { white-space: normal; }

footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* 問い合わせページ */
.button {
  display: inline-block; padding: 10px 20px; border-radius: 8px;
  background: var(--link); color: var(--bg); font-weight: 700; text-decoration: none;
}
.form-frame {
  width: 100%; height: 1100px; border: 1px solid var(--line); border-radius: 8px;
  margin-top: 20px; background: #fff;
}

/* アプリ一覧 */
.apps-head { margin-bottom: 8px; }
.apps-head .eyebrow { margin: 0; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.18em; font-weight: 600; }
.apps-head h1 { margin: 4px 0 0; }
.apps-group h2 { display: flex; align-items: center; gap: 10px; }
.badge { font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge.live { border-color: var(--link); color: var(--link); }
.app-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.app-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; flex: 0 0 auto; }
.app-icon.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--line); color: var(--muted); font-weight: 700; font-size: 1.4rem;
}
.app-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.4; }
.app-card h3 a { color: inherit; text-decoration: none; }
.app-card h3 a:hover { text-decoration: underline; }
.app-card p { margin: 4px 0 0; }
.app-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 0.9rem; }
.app-list.compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.app-list.compact .app-card { align-items: center; padding: 14px; }
.app-list.compact .app-icon { width: 48px; height: 48px; border-radius: 12px; font-size: 1.1rem; }
.app-list.compact h3 { font-size: 1rem; }

/* 会社概要（トップページ） */
.about { max-width: 880px; }
.about-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 56px; }
.about-nav .site-title { margin: 0; font-size: 1.4rem; }
.about-nav ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
.about-nav ul a { color: var(--text); text-decoration: none; }
.about-nav ul a:hover { color: var(--link); }

.about-hero { border-top: none; padding: 0 0 48px; }
.eyebrow { margin: 0 0 12px; color: var(--link); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; }
.about-hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.4; margin: 0 0 20px; letter-spacing: 0.01em; }
.about-hero .lead { color: var(--muted); font-size: 1.05rem; max-width: 36em; }

.app-strip { display: flex; flex-wrap: wrap; gap: 20px 28px; margin: 28px 0 0; padding: 0; list-style: none; }
.app-strip a { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 88px; color: var(--text); text-decoration: none; font-size: 0.78rem; line-height: 1.35; text-align: center; }
.app-strip img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); transition: transform 0.15s; }
.app-strip a:hover img { transform: translateY(-3px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head a { font-size: 0.9rem; }

.profile { display: grid; grid-template-columns: 9em 1fr; margin: 0; border-top: 1px solid var(--line); }
.profile dt, .profile dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.profile dt { color: var(--muted); font-size: 0.9rem; font-weight: 600; padding-right: 16px; }
.profile dd ul { margin: 0; padding-left: 1.2em; }
@media (max-width: 560px) {
  .profile { grid-template-columns: 1fr; }
  .profile dt { border-bottom: none; padding-bottom: 0; }
  .profile dd { padding-top: 4px; }
}

.mission { padding: 32px; border: 1px solid var(--line); border-radius: 16px; margin-top: 8px; }
.mission p { margin: 0; }
.mission p + p { margin-top: 8px; }
@media (max-width: 560px) {
  .about-nav { margin-bottom: 40px; }
  .about-hero h1 { font-size: 1.55rem; }
  .app-strip { gap: 16px 12px; justify-content: space-between; }
  .app-strip a { width: 72px; font-size: 0.72rem; }
  .app-strip img { width: 58px; height: 58px; border-radius: 13px; }
  .mission { padding: 20px; }
}

/* ロゴ（案3：四角が並ぶマーク＋Saira） */
.site-title a { display: inline-flex; align-items: center; gap: 16px; }
.logo-mark { display: grid; grid-template-columns: repeat(2, 22px); gap: 6px; flex: 0 0 auto; }
.logo-mark i { width: 22px; height: 22px; border-radius: 6px; background: var(--text); }
.logo-mark i:last-child { background: var(--accent); }
.logo-text { display: flex; flex-direction: column; line-height: 1; font-family: Saira, sans-serif; font-stretch: 125%; }
.logo-text b { font-weight: 800; font-style: italic; font-size: 2.3rem; letter-spacing: 0.04em; }
.logo-text small { font-weight: 500; font-size: 0.72rem; letter-spacing: 0.62em; margin-top: 6px; }
@media (max-width: 560px) {
  .site-title a { gap: 12px; }
  .logo-mark { grid-template-columns: repeat(2, 17px); gap: 5px; }
  .logo-mark i { width: 17px; height: 17px; border-radius: 5px; }
  .logo-text b { font-size: 1.75rem; }
  .logo-text small { font-size: 0.56rem; margin-top: 5px; }
}

/* 理念の3つの柱 */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.pillar { padding: 24px; border: 1px solid var(--line); border-radius: 16px; }
.pillar h3 { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.5; }
.pillar h3::before { content: ""; display: block; width: 24px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 14px; }
.pillar p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } }

/* ホームへ戻るリンク */
.back-home { margin: 8px 0 32px; }
.back-home a { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 0.95rem; }
.back-home a:hover { border-color: var(--link); color: var(--link); }

/* アプリのページの見出し（アプリから開かれるページ） */
.app-title { display: flex; align-items: center; gap: 12px; margin: 0 0 32px; font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.app-title img { width: 44px; height: 44px; border-radius: 10px; flex: 0 0 auto; }
footer .maker { margin: 0 0 8px; font-size: 0.85rem; }
