:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --accent: #f59e0b;
  --foot: #15171c;
}

* { box-sizing: border-box; margin: 0; }

body {
  font-family: "Inter", system-ui, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

/* ---- ナビ ---- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  flex-wrap: wrap;
  gap: 10px;
}
.brand { font-weight: 800; font-size: 20px; color: inherit; text-decoration: none; }
.brand small { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 4px; }
a { text-decoration: none; }
a:hover { color: var(--accent); }
.menu { display: flex; gap: 24px; font-size: 14px; }
.menu a { color: #3f3f46; text-decoration: none; }
.menu a:hover { color: var(--ink); }
.menu a.on { font-weight: 700; color: var(--ink); }

/* ---- ヒーロー（09 バウハウス幾何） ---- */
.hero {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  margin: 8px 24px 0;
  background: #fbf6ec;
  color: var(--ink);
  border-radius: 20px;
  min-height: 237px;            /* 元の高さを維持 */
  padding: 20px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;      /* 文言を縦中央に */
  align-items: flex-start;
  text-align: left;
}
.hero .deco { position: absolute; right: 24px; top: 0; height: 100%; width: 340px; pointer-events: none; }
.hero h1, .hero p { position: relative; z-index: 1; max-width: 60%; }
.hero h1 { font-size: 36px; letter-spacing: -0.02em; margin: 0; }
.hero p { color: #6b6151; margin: 10px 0 0; }

/* ---- アプリグリッド ---- */
main { max-width: 1100px; margin: 0 auto; padding: 34px 40px 56px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  display: block;
  background: var(--surface);
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease;
}
.card .ext {
  position: absolute; top: 12px; right: 12px;
  font-size: 10.5px; font-weight: 700; color: #fff;
  background: #0f1f4b;
  border-radius: 999px; padding: 2px 9px;
}
.card:hover { }
.card .emoji { font-size: 30px; line-height: 1; }
.card h2 { font-size: 17px; margin-top: 12px; }
.card h2 a { color: inherit; text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.card p { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px; color: #92580a; background: #fdf2dc;
  border: 1px solid #f7e2b8; border-radius: 999px; padding: 2px 9px;
}
.empty { color: var(--muted); text-align: center; padding: 3rem 1rem; }

/* ---- 下層ページ（About / 問い合わせ） ---- */
.page-wrap { max-width: 820px; margin: 0 auto; padding: 30px 40px 56px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 28px; letter-spacing: -0.01em; }
.page-head p { color: var(--muted); margin-top: 6px; }

.prose { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; }
.prose h2 { font-size: 17px; margin: 20px 0 6px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 8px 0; }
.prose ul { margin: 8px 0; padding-left: 1.3rem; }
.prose li { margin: 4px 0; }

/* About（案5：アクセントバー見出し＋区切り線・ゆったり） */
.about5 h2 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px;
  margin: 30px 0 10px; padding-top: 30px; border-top: 1px solid var(--line); }
.about5 h2::before { content: ""; flex: none; width: 5px; height: 20px; border-radius: 3px; background: var(--accent); }
.about5 h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.about5 p { font-size: 15px; line-height: 1.85; margin: 10px 0; }
.about5 ul { margin: 10px 0 0; }
.about5 li { font-size: 15px; line-height: 1.9; margin: 4px 0; }

.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; max-width: 560px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-family: inherit; font-size: 14px; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #fef3c7; }
.submit { background: var(--ink); color: #fff; border: 0; border-radius: 10px; padding: 11px 22px; font-weight: 600; cursor: pointer; font-family: inherit; }
.submit:hover { background: #000; }
.contact-alt { color: var(--muted); font-size: 13px; margin-top: 16px; line-height: 1.7; }
.contact-alt a { color: #92580a; }
.form-embed { max-width: 720px; }
.form-embed iframe { width: 100%; min-height: 1100px; border: 0; border-radius: 16px; background: #fff; }

/* ---- フッター（14） ---- */
.site-foot { background: var(--foot); color: #cfd2da; padding: 44px 40px 30px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 32px;
  max-width: 1040px;
  margin: 0 auto;
}
.site-foot h4 { color: #fff; font-size: 13px; margin-bottom: 10px; }
.site-foot p { font-size: 13px; color: #9aa0ad; }
.site-foot a { font-size: 13px; color: #9aa0ad; text-decoration: none; display: block; margin: 4px 0; }
.site-foot a:hover { color: #fff; }
.site-foot input, .site-foot textarea {
  width: 100%; background: #1f222a; border: 1px solid #2c303a; border-radius: 8px;
  color: #e7e9ee; padding: 9px 10px; margin-bottom: 8px; font-family: inherit; font-size: 13px;
}
.site-foot input:focus, .site-foot textarea:focus { outline: none; border-color: var(--accent); }
.site-foot button {
  background: var(--accent); color: #3a2706; border: 0; border-radius: 8px;
  padding: 9px 18px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.site-foot button:hover { background: #e08e08; }
.foot-apps a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot-muted { color: #6b7280; font-size: 13px; }
.foot-bottom {
  max-width: 1040px; margin: 26px auto 0; padding-top: 18px;
  border-top: 1px solid #2c303a; color: #6b7280; font-size: 12.5px; text-align: center;
}

/* ---- レスポンシブ ---- */
@media (max-width: 720px) {
  .site-nav, main { padding-left: 20px; padding-right: 20px; }
  .hero { margin: 8px 16px 0; padding: 40px 24px; }
  .hero h1 { font-size: 26px; }
  .hero .deco { display: none; }
  .hero h1, .hero p { max-width: 100%; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
}
