/* 株式会社Re Ark ホームページ 共通の見た目（全ページ共通）
   方向：POP。白地に太い墨色の線、ステッカーのようなカード、4色の差し色。
   見た目はこの1つに決めた（暗い表示は作らない）。色はすべてここで決める。 */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-2: #fff6dc;      /* 帯の地（うすい黄） */
  --ink: #1d2340;          /* 文字・線（墨に近い紺） */
  --ink-soft: #4a5070;     /* 補足の文字 */
  --sun: #ffc93c;          /* 黄 */
  --sky: #5bbcf0;          /* 水色 */
  --peach: #ff8f8f;        /* 桃 */
  --leaf: #5fd0a5;         /* 緑 */
  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 24px;
  --r-pill: 999px;
  --f-display: "Dela Gothic One", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --t-xs: 0.8125rem;
  --t-s: 0.9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.25rem;
  --t-xl: 1.625rem;
  --t-2xl: 2.25rem;
  --t-3xl: clamp(2.25rem, 7vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-m);
  font-weight: 500;
  line-height: 1.85;
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: var(--r-s); }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ヘッダー */
.site-head { background: var(--paper); border-bottom: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo b { font-family: var(--f-display); font-weight: 400; font-size: var(--t-xl); letter-spacing: 0.02em; line-height: 1; white-space: nowrap; }
.logo b { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.logo .kk { font-family: var(--f-body); font-weight: 700; font-size: var(--t-xs); letter-spacing: 0.18em; line-height: 1; }
.nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: var(--r-pill); text-decoration: none; font-weight: 700; font-size: var(--t-s);
  border: 2px solid transparent;
}
.nav a:hover { border-color: var(--ink); }
.nav a[aria-current="page"] { background: var(--sun); border-color: var(--ink); }

/* 見出し */
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.35; margin: 0; text-wrap: balance; letter-spacing: 0.01em; }
.eyebrow {
  display: inline-block; font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.12em;
  background: var(--ink); color: var(--paper); padding: 4px 14px; border-radius: var(--r-pill);
}
.section { padding-block: 72px; }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; justify-items: start; }
.section-head h2 { font-size: var(--t-2xl); }
.band { background: var(--paper-2); border-block: var(--line); }

/* 最初の画面 */
.hero { position: relative; overflow: hidden; border-bottom: var(--line); background: var(--paper-2); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; padding-block: 64px; }
.hero h1 { font-size: var(--t-3xl); line-height: 1.25; }
.nb { display: inline-block; }
.hero h1 .mark { background: linear-gradient(transparent 58%, var(--sun) 58%); padding: 0 4px; }
.hero p { font-size: var(--t-l); margin: 20px 0 0; max-width: 30em; }
.hero-art { width: 100%; max-width: 420px; justify-self: center; }

/* 押せる物 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: var(--r-pill);
  border: var(--line); box-shadow: var(--shadow);
  background: var(--sun); color: var(--ink); font-family: var(--f-body); font-weight: 700; font-size: var(--t-m);
  text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn.sub { background: var(--paper); box-shadow: none; min-height: 44px; padding: 0 20px; font-size: var(--t-s); }
.btn.sub:hover { transform: none; background: var(--paper-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* カード */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  background: var(--paper); border: var(--line); border-radius: var(--r-m); box-shadow: var(--shadow);
  padding: 28px 24px; display: grid; gap: 12px; align-content: start; min-width: 0;
}
.card h3 { font-size: var(--t-l); }
.card p { margin: 0; }
.chip { width: 64px; height: 64px; border-radius: 50%; border: var(--line); display: grid; place-items: center; }
.chip svg { width: 34px; height: 34px; }
.c-sun { background: var(--sun); } .c-sky { background: var(--sky); } .c-peach { background: var(--peach); } .c-leaf { background: var(--leaf); }

/* 本文の箱 */
.lead { font-size: var(--t-l); max-width: 36em; margin: 0; }
.prose { max-width: 40em; }
.prose p { margin: 0 0 1em; }

/* 会社概要の表 */
.info { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: var(--line); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow); }
.info th, .info td { text-align: left; vertical-align: top; padding: 18px 22px; border-bottom: 2px dashed var(--ink); }
.info tr:last-child th, .info tr:last-child td { border-bottom: 0; }
.info th { width: 10em; background: var(--paper-2); font-weight: 700; white-space: nowrap; border-right: var(--line); }
.info td { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.info .kana { font-size: var(--t-s); color: var(--ink-soft); }

/* お問い合わせ */
.mailbox {
  display: grid; gap: 16px; justify-items: start; background: var(--paper);
  border: var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 36px 32px; max-width: 640px;
}
.mail-addr { font-family: var(--f-display); font-size: clamp(1.25rem, 5vw, var(--t-2xl)); line-height: 1.3; overflow-wrap: anywhere; user-select: all; }
.copy-note { font-size: var(--t-s); color: var(--ink-soft); min-height: 1.6em; margin: 0; }

/* 下の帯 */
.cta { background: var(--sky); border-block: var(--line); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 48px; }
.cta h2 { font-size: var(--t-xl); }

.site-foot { background: var(--ink); color: var(--paper); }
.site-foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding-block: 40px; align-items: end; }
.site-foot a { color: var(--paper); }
.site-foot .logo b { color: var(--paper); }
.site-foot address { font-style: normal; font-size: var(--t-s); line-height: 1.9; margin-top: 12px; }
.site-foot small { font-size: var(--t-xs); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: var(--t-s); font-weight: 700; }

/* スマホ */
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 44px; }
  .hero-art { max-width: 300px; order: -1; }
  .cards { grid-template-columns: 1fr; }
  .section { padding-block: 56px; }
  .site-foot .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .info th, .info td { display: block; width: auto; border-right: 0; }
  .info th { border-bottom: 0; padding-bottom: 6px; }
  .info td { padding-top: 6px; }
  .cards.four { grid-template-columns: 1fr; }
  /* スマホのメニューは2×2のマス目にして、1つだけ下の段に落ちないようにする */
  .nav { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .nav a { justify-content: center; padding: 0 8px; border-color: var(--ink); }
  .foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mailbox { padding: 28px 20px; }
}

/* 表の中のリンク（メール）も指で押しやすい高さに */
.info td a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
