:root {
  --bg: #f4f1ea;
  --bg-glow: #e7e0d2;
  --card: #fffdf9;
  --ink: #1c1f26;
  --ink-soft: #5b616e;
  --line: #e4ded2;
  --accent: #c2410c;
  --shadow: 0 1px 2px rgb(28 31 38 / .06), 0 12px 40px -12px rgb(28 31 38 / .18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101318;
    --bg-glow: #1a1f27;
    --card: #171b22;
    --ink: #eceae5;
    --ink-soft: #9aa1ad;
    --line: #2a303a;
    --accent: #fb923c;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 48px -16px rgb(0 0 0 / .7);
  }
}
:root[data-theme="dark"] {
  --bg: #101318;
  --bg-glow: #1a1f27;
  --card: #171b22;
  --ink: #eceae5;
  --ink-soft: #9aa1ad;
  --line: #2a303a;
  --accent: #fb923c;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 48px -16px rgb(0 0 0 / .7);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html:lang(ja) body {
  word-break: auto-phrase;
  line-break: strict;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--bg-glow), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ヘッダー */
.site-header { line-height: 1.6; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-header nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-header nav a {
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-header nav a:hover { color: var(--accent); }
.site-header nav a[aria-current="page"] { color: var(--ink); }
.site-header .lang-link {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.site-header .lang-link:hover { border-color: var(--accent); }
.site-header a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-header .lang-link:focus-visible { border-radius: 999px; }

.hero {
  padding: 48px 0 0;
}
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1 {
  margin: 12px 0 0;
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.lead {
  max-width: 36em;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
}
.identity {
  display: flex;
  align-items: center;
  gap: 32px;
}
.avatar {
  flex: none;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--card);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  background: var(--bg-glow);
}
.identity h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); }
.name-alt {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.bridge {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 40px;
  color: var(--accent);
}
.bridge .cable { fill: none; stroke: currentColor; stroke-width: 1.5; }
.bridge .hanger { stroke: currentColor; stroke-width: 1; opacity: .55; }
.bridge .tower { stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.bridge .deck { stroke: currentColor; stroke-width: 2.5; }

section { padding: 56px 0 0; }
h2 {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.services li {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.services svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h3 {
  margin: 14px 0 0;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.services p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: .95rem;
}

.rep {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.rep img {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card);
  box-shadow: 0 0 0 1px var(--line);
  background: var(--bg-glow);
}
.rep-body { flex: 1; min-width: 0; }
.rep-name {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.rep-bio {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: .95rem;
}
.button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.button:hover { background: var(--accent); color: var(--card); }

.overview {
  margin: 0;
  display: grid;
  grid-template-columns: 10rem 1fr;
  border-top: 1px solid var(--line);
}
.overview dt, .overview dd {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.overview dt { color: var(--ink-soft); font-size: .9rem; line-height: 1.6rem; }
.overview dd { font-weight: 500; }

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-weight: 500;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: .8em;
  bottom: .8em;
  width: 1px;
  background: var(--line);
}
.timeline li {
  position: relative;
  padding-left: 28px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(.8em - 5.5px);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.links a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.links a:focus-visible { border-radius: 16px; }
.links .icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.links .label {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}
.links .name { font-weight: 600; }
.links .handle {
  color: var(--ink-soft);
  font-size: .85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-section h2 { text-align: center; }
.qr {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 28px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.qr-note {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: .9rem;
}
/* 四隅に読み取り枠のマークを付ける */
.qr-frame {
  padding: 14px;
  background:
    linear-gradient(var(--accent) 0 0) left top / 26px 3px,
    linear-gradient(var(--accent) 0 0) left top / 3px 26px,
    linear-gradient(var(--accent) 0 0) right top / 26px 3px,
    linear-gradient(var(--accent) 0 0) right top / 3px 26px,
    linear-gradient(var(--accent) 0 0) left bottom / 26px 3px,
    linear-gradient(var(--accent) 0 0) left bottom / 3px 26px,
    linear-gradient(var(--accent) 0 0) right bottom / 26px 3px,
    linear-gradient(var(--accent) 0 0) right bottom / 3px 26px;
  background-repeat: no-repeat;
}
/* 読み取りやすさを優先し、ダークモードでも白地のまま表示する */
.qr-frame img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #fff;
}
.qr-url {
  margin: 16px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

footer {
  padding: 56px 0 40px;
  color: var(--ink-soft);
  font-size: .8rem;
  letter-spacing: .04em;
  text-align: center;
}

@media (max-width: 720px) {
  .services, .links { grid-template-columns: 1fr; }
  .rep { flex-direction: column; align-items: flex-start; }
  .identity { flex-direction: column; align-items: flex-start; gap: 20px; }
  .avatar { width: 104px; height: 104px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { padding: 20px 16px; }
  /* 狭い画面では屋号と言語切り替えだけを残す。代表者ページへはトップのボタンから行ける */
  .site-header nav a:not(.lang-link) { display: none; }
  .hero { padding-top: 24px; }
  section { padding-top: 44px; }
  .rep { padding: 22px; gap: 16px; }
  .rep img { width: 80px; height: 80px; }
  .overview { grid-template-columns: 1fr; }
  .overview dt { padding-bottom: 0; border-bottom: 0; }
  .overview dd { padding-top: 2px; }
  .qr { padding: 28px 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .links a { transition: none; }
  .links a:hover { transform: none; }
}
