@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@500;700&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  --bg: #F2F4F7;
  /* ← 全体背景：薄いシルバー */
  --ink: #0F172A;
  /* 文字：締める */
  --muted: #64748B;
  /* サブ文字 */
  --accent: #2563eb;
  /* アクセント（青でビジネス寄り） */
  --accent-2: #0f766e;
  /* サブアクセント（落ち着いた緑） */
  --card: #ffffff;
  /* カード背景 */
  --line: rgba(15, 23, 42, 0.12);
  /* 罫線 */
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  /* ← common.css のフォントを使う */
  color: var(--ink);

  /* 無彩色の薄いニュアンスだけ残す（スタイリッシュ寄り） */
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 255, 255, .75) 0%, transparent 60%),
    radial-gradient(900px 500px at 90% -20%, rgba(255, 255, 255, .55) 0%, transparent 60%),
    var(--bg);

  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brandMark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2c2b25, #6d4c41);
  display: grid;
  place-items: center;
  color: #fef9f2;
  font-weight: 700;
}

.navLinks {
  display: flex;
  gap: 16px;
  font-size: 15px;
  color: var(--muted);
}


.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  padding: 28px 0 8px;
}

.heroTitle {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin: 0 0 12px;
  text-align: left;
}

.heroLead {
  color: var(--muted);
  margin: 0 0 18px;
  text-align: left;
}


.heroActions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btnPrimary {
  background: var(--accent);
  color: #fffaf2;
  box-shadow: 0 10px 24px rgba(229, 106, 58, 0.28);
}

.btnGhost {
  border-color: var(--line);
  background: #fff6eb;
}

.btn:hover {
  transform: translateY(-2px);
}

.heroArt {
  min-height: 220px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(229, 106, 58, 0.18), rgba(26, 143, 122, 0.16)),
    #fffaf2;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.heroArt::before,
.heroArt::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
}

.heroArt::before {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, #e56a3a, transparent 70%);
  top: -80px;
  left: -40px;
}

.heroArt::after {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 70% 70%, #1a8f7a, transparent 70%);
  bottom: -120px;
  right: -60px;
}

.heroCard {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: #fffaf2;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(23, 22, 18, 0.12);
  font-size: 14px;
}

.section {
  margin-top: 60px;
}

.hero + .section {
  margin-top: 28px;
}

.sectionTools {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.sectionTools .sectionTitle {
  margin-top: 0;
}

.toolsControls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.toolsSearch {
  flex: 1;
  min-width: 220px;
}

.toolsFilters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filterChip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  cursor: pointer;
}

.filterChip.isActive {
  background: rgba(37, 99, 235, 0.1);
  color: var(--ink);
  border-color: rgba(37, 99, 235, 0.35);
}

.toolEmpty {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  display: none;
}

.sectionTitle {
  font-size: 22px;
  margin: 0 0 16px;
  font-weight: 600;
}

.sectionLead {
  color: var(--muted);
  margin: 0 0 22px;
}

.sectionSubLead {
  color: var(--muted);
  margin: -10px 0 22px;
}

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

.infoGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.infoCard {
  min-height: auto;
}

.infoCard h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.infoCard p {
  margin: 0;
  color: var(--muted);
}

.infoCard p + p {
  margin-top: 8px;
}

.infoCard ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.infoCard li + li {
  margin-top: 6px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(23, 22, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 160px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.home .categoryCard {
  transition: transform 0.2s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.home .categoryCard:active,
.home .categoryCard:focus-visible,
.home .categoryCard.is-active {
  background-color: #F1F5FB;
  box-shadow: inset 0 0 0 1px #CBD5E1;
}

.home .categoryCard:active .cardHeader .chip:first-child,
.home .categoryCard:focus-visible .cardHeader .chip:first-child,
.home .categoryCard.is-active .cardHeader .chip:first-child {
  background-color: #1E3A8A;
  color: #ffffff;
}

.cardMuted {
  background: #fdf8f1;
  color: var(--muted);
}

.cardHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #2c2b25;
  color: #fffaf2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.chipAlt {
  background: #e6f5f1;
  color: #1a8f7a;
}

.linkArrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  margin-top: 12px;
}

.footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 14px;
}

.siteFooter {
  background: var(--bg);
}

.langSwitch {
  margin-top: 24px;
  text-align: center;
}

.langSwitch a {
  color: var(--accent);
  font-weight: 600;
}

.footerLinks {
  display: flex;
  gap: 16px;
}

.fadeUp {
  animation: fadeUp 0.7s ease both;
}

.fadeUpDelay {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.1s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .fadeUp,
  .fadeUpDelay {
    animation: none;
  }

  .btn,
  .card {
    transition: none;
  }
}

@media (max-width: 640px) {
  .infoGrid {
    grid-template-columns: 1fr;
  }

  .heroActions {
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .heroArt {
    min-height: 180px;
  }
}
