/* 合同会社Euphoric Programming — 1ページのコーポレートサイト
   トークン（アクセントはオレンジ1色。BRAND.md §4-1） */
:root {
  --bg: #fffaf3;          /* 生成りに近い暖かい白 */
  --bg-tint: #ffefdc;     /* セクションの淡いオレンジ */
  --surface: #ffffff;
  --ink: #2b211b;         /* 本文（bg上 15:1 前後） */
  --ink-sub: #5e5048;     /* 補足（bg上 7:1 前後） */
  --accent: #f97316;      /* オレンジ（装飾・面・大きな文字のみ） */
  --accent-soft: #ffd2a8;
  --accent-ink: #b84a08;  /* 文字用の濃いオレンジ（白上 5:1 以上） */
  --line: #f1d9c2;
  --radius: 20px;
  --font-head: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.35; margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.wordmark { text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em; }
.wordmark-en::before {
  content: ""; display: inline-block; width: 0.8em; height: 0.8em; border-radius: 50%;
  background: var(--accent); margin-right: 0.45em; vertical-align: -0.05em;
}
.nav { list-style: none; display: flex; gap: 4px 18px; margin: 0; padding: 0; flex-wrap: wrap; font-size: 0.92rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--accent-ink); text-decoration: underline; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--accent); color: var(--ink); }
.hero-inner { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 88px; }
.hero-kicker { margin: 0 0 12px; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.08em; font-size: 0.95rem; color: var(--ink); }
.hero-title { font-size: clamp(2rem, 6.4vw, 3.6rem); font-weight: 800; color: var(--ink); letter-spacing: 0.02em; }
.hero-line { display: block; }
.hl { background: linear-gradient(transparent 60%, #fff 60%); padding: 0 0.08em; border-radius: 4px; }
.hero-lead { max-width: 34em; margin: 20px 0 32px; font-size: 1.05rem; color: var(--ink); font-weight: 500; }
.btn {
  display: inline-block; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 800;
  text-decoration: none; padding: 12px 26px; border-radius: 999px; box-shadow: 0 4px 0 rgba(120, 45, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(120, 45, 0, 0.25); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

.hero-deco .dot { position: absolute; border-radius: 50%; }
.d1 { width: 340px; height: 340px; right: -90px; top: -110px; background: rgba(255, 255, 255, 0.14); }
.d2 { width: 150px; height: 150px; right: 18%; bottom: -60px; background: #ffb066; opacity: 0.55; }
.d3 { width: 64px; height: 64px; right: 8%; bottom: 70px; background: #fff; opacity: 0.85; }
.d4 { width: 22px; height: 22px; right: 30%; top: 64px; background: #ffd2a8; }
.hero::after { /* 下端の波 */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px;
  background: radial-gradient(circle at 14px -6px, transparent 20px, var(--bg) 21px) repeat-x;
  background-size: 28px 28px;
}

/* Sections */
.section { padding: 72px 0; }
.section-tint { background: var(--bg-tint); }
.eyebrow { margin: 0 0 4px; font-family: var(--font-head); font-weight: 800; color: var(--accent-ink); letter-spacing: 0.12em; font-size: 0.85rem; text-transform: uppercase; }
.section-title { font-size: clamp(1.5rem, 3.6vw, 2rem); font-weight: 800; margin-bottom: 28px; }
.section-title::after { content: ""; display: block; width: 48px; height: 6px; border-radius: 6px; background: var(--accent); margin-top: 12px; }

.about-text { margin: 0; font-size: 1.12rem; line-height: 2; }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 26px 24px 22px;
  border: 2px solid var(--line); box-shadow: 0 6px 0 var(--accent-soft);
  display: flex; flex-direction: column; gap: 10px;
}
.card-title { font-size: 1.35rem; font-weight: 800; }
.card-sub { font-size: 0.85rem; font-weight: 700; color: var(--ink-sub); }
.card-text { margin: 0; }
.card-note { margin: 0; font-size: 0.9rem; color: var(--ink-sub); background: var(--bg-tint); border-radius: 10px; padding: 4px 10px; align-self: flex-start; }
.card-link { margin-top: auto; font-weight: 700; font-size: 0.95rem; }
.card-link::after { content: " ↗"; }
.services-note { margin: 28px 0 0; font-size: 0.9rem; color: var(--ink-sub); }

/* Company info */
.info { margin: 0; background: var(--surface); border-radius: var(--radius); border: 2px solid var(--line); overflow: hidden; }
.info-row { display: grid; grid-template-columns: 9em 1fr; border-top: 1px solid var(--line); }
.info-row:first-child { border-top: 0; }
.info dt { margin: 0; padding: 16px 20px; font-weight: 700; background: #fff6ec; }
.info dd { margin: 0; padding: 16px 20px; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; }
.footer-name { font-family: var(--font-head); font-weight: 700; }
.footer-en { font-weight: 500; color: #e9ddd3; margin-left: 0.5em; font-size: 0.9em; }
.copy { color: #e9ddd3; }

/* Mobile */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-inner { padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .nav { font-size: 0.85rem; gap: 2px 14px; }
  .site-header { position: static; }
  .hero-inner { padding-top: 48px; padding-bottom: 72px; }
  .d1 { width: 220px; height: 220px; right: -80px; top: -80px; }
  .d2 { right: -30px; }
  .section { padding: 56px 0; }
  .cards { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; }
  .info dt { padding: 12px 16px 4px; background: transparent; color: var(--ink-sub); font-size: 0.88rem; }
  .info dd { padding: 0 16px 14px; }
}
