/* 株式会社ランダムボンド 会社ホームページ（デザイン案 v0.18 のとおり） */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jost-500-latin.woff2") format("woff2");
}

:root {
  --accent: #c2410c;
  --ink: #1a1a1a;
  --sub: #555555;
  --bg: #f4f4f2;
  --line: #e6e6e3;
  --wrap: 1120px;
  --pad: 48px;
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, system-ui, sans-serif;
  --en: "Jost", "Inter", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--jp);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { opacity: 0.8; }
input, textarea, button, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.en { font-family: var(--en); font-weight: 500; letter-spacing: 0.06em; }

/* ヘッダー */
.hd { background: var(--bg); }
.hd__in { padding: 22px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hd__logo { display: block; line-height: 0; }
.hd__logo img { display: block; height: 38px; width: auto; }
.hd__right { display: flex; align-items: center; gap: 28px; }
.hd__nav { display: flex; gap: 28px; font-size: 14px; font-weight: 700; }
.hd__nav a { text-decoration: none; }
.menu-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent);
  display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; flex: none;
}

/* メニュー（丸いボタンで開く） */
.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  display: flex; flex-direction: column; padding: 22px var(--pad) 48px; overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.menu__top img { height: 38px; width: auto; display: block; }
.menu__list { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.menu__list a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; font-size: 20px; font-weight: 700;
}
.menu__list .en { color: var(--accent); font-size: 14px; min-width: 110px; }
body.menu-open { overflow: hidden; }

/* トップ */
.hero { background: var(--bg); }
.hero__text { padding-top: 64px; padding-bottom: 56px; }
.hero h1 { margin: 0; font-size: 64px; font-weight: 700; line-height: 1.55; letter-spacing: 0.08em; }
.hero__lead { margin: 24px 0 0; font-size: 24px; font-weight: 700; line-height: 1.8; }
.hero__en { margin: 20px 0 0; font-size: 17px; color: var(--accent); }
.strip { display: flex; height: 440px; overflow: hidden; border-top-right-radius: 64px; margin-right: var(--pad); }
.strip img { display: block; flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; }

/* 章の見出し */
.sec { background: #fff; }
.sec__in { padding-top: 110px; padding-bottom: 110px; }
.eyebrow { margin: 0; font-size: 64px; line-height: 1.1; color: var(--accent); }
.bar { display: block; width: 48px; height: 2px; background: var(--accent); margin: 18px 0 36px; }
.h2 { margin: 0; font-size: 36px; font-weight: 700; line-height: 1.6; letter-spacing: 0.04em; }
.note { margin: 24px 0 0; font-size: 15px; color: var(--sub); }

/* 企業理念 */
.philo { border-top-right-radius: 64px; }
.philo .sec__in { padding-top: 130px; }
.philo__row { display: flex; gap: 64px; align-items: center; flex-wrap: wrap; }
.philo__row > * { flex: 1 1 420px; min-width: 0; }
.philo__photo { width: 100%; height: 380px; object-fit: cover; border-radius: 24px; display: block; }
.cards2 { margin-top: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--bg); border-radius: 24px; padding: 36px; }
.card__label { margin: 0; font-size: 15px; color: var(--accent); }
.card__label span { font-family: var(--jp); letter-spacing: 0; color: var(--sub); font-size: 12px; margin-left: 8px; }
.card__title { margin: 10px 0 0; font-size: 21px; font-weight: 700; line-height: 1.6; }
.card__body { margin: 10px 0 0; font-size: 14px; color: var(--sub); }

/* サービス */
.svc .sec__in { padding-top: 40px; }
.svc .note { margin: 20px 0 56px; }
.svc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.svc__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.svc__kind { margin: 0; font-size: 14px; font-weight: 700; }
.svc__name { margin: 0; line-height: 0; }
.svc__name img { width: auto; }
.svc__photo { width: 100%; height: 260px; object-fit: cover; border-radius: 18px; display: block; }
.svc__desc { margin: 0; font-size: 14px; text-align: left; color: var(--sub); }
.svc__media {
  align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: var(--bg); border-radius: 14px; text-decoration: none; color: var(--sub);
  font-size: 12px; font-weight: 700;
}
.svc__media img { height: 26px; width: auto; display: block; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 22px; border: 1px solid var(--accent);
  border-radius: 999px; color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 700;
}

/* 私たちの想い */
.belief__row { display: flex; gap: 28px 80px; flex-wrap: wrap; align-items: flex-start; }
.belief__head { flex: 1 1 380px; min-width: 0; }
/* 見出しと本文が横に並ぶ幅のときだけ、見出しを止めておく（折り返したときに本文に重ならないように） */
@media (min-width: 1040px) { .belief__head { position: sticky; top: 40px; } }
.belief__sub { margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--sub); }
.belief__h { font-size: 34px; }
.belief__body { flex: 1.4 1 480px; min-width: 0; }
.belief__body p { margin: 0 0 22px; font-size: 16px; line-height: 2.1; }

.band { background: #fff; }
.band img {
  display: block; width: calc(100% - var(--pad)); height: 380px; object-fit: cover;
  border-top-right-radius: 64px; border-bottom-right-radius: 64px;
}

/* 会社情報 */
.company { border-bottom-right-radius: 64px; }
.info { background: var(--bg); border-radius: 24px; padding: 16px 48px; }
.info table { width: 100%; border-collapse: collapse; font-size: 15px; }
.info tr + tr { border-top: 1px solid var(--line); }
.info th { text-align: left; padding: 22px 0; width: 180px; font-weight: 700; vertical-align: top; }
.info td { padding: 22px 0; }

/* お問い合わせ */
.contact { background: var(--bg); }
.contact .note { margin: 16px 0 40px; }
.form {
  background: #fff; border-radius: 24px; padding: 48px; display: flex; flex-direction: column; gap: 22px;
  font-size: 15px; max-width: 760px;
}
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 700; }
.field > legend { margin-bottom: 8px; padding: 0; }
.req { font-size: 11px; color: #fff; background: var(--accent); border-radius: 999px; padding: 1px 10px; margin-left: 8px; font-weight: 700; vertical-align: 1px; }
.field input[type="text"], .field input[type="email"], .field textarea {
  padding: 14px 16px; border: 1px solid #d6d6d2; border-radius: 10px; background: #fff; width: 100%;
}
.field textarea { resize: vertical; min-height: 160px; }
.choice { display: flex; gap: 10px; align-items: center; padding: 10px 16px; border: 1px solid #e0e0dc; border-radius: 10px; background: #fff; cursor: pointer; }
.choice + .choice { margin-top: 8px; }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.agree input { accent-color: var(--accent); width: 18px; height: 18px; margin: 4px 0 0; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send {
  align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 12px 32px 12px 12px; background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.send[disabled] { opacity: 0.6; cursor: wait; }
.send__dot { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.form__msg { margin: 0; font-size: 14px; font-weight: 700; }
.form__msg.is-error { color: #b42318; }
.confirm__h { margin: 0; font-size: 20px; }
.confirm__list { margin: 0; display: grid; grid-template-columns: 180px 1fr; gap: 14px 16px; }
.confirm__list dt { font-weight: 700; }
.confirm__list dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.confirm__btns { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.back { background: none; border: 0; padding: 8px 4px; text-decoration: underline; cursor: pointer; font-size: 15px; }
.done { background: #fff; border-radius: 24px; padding: 48px; max-width: 760px; }
.done h3 { margin: 0 0 12px; font-size: 22px; }
.done p { margin: 0; color: var(--sub); }

/* フッター */
.ft { background: var(--bg); border-top: 1px solid #e3e3df; }
.ft__in { padding-top: 48px; padding-bottom: 24px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; font-size: 13px; }
.ft__brand { display: flex; flex-direction: column; gap: 10px; }
.ft__brand img { display: block; height: 32px; width: auto; align-self: flex-start; }
.ft__addr { color: var(--sub); font-style: normal; }
.ft__nav { display: flex; gap: 48px; flex-wrap: wrap; }
.ft__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ft__nav a { text-decoration: none; }
.ft__copy { margin: 0; text-align: center; font-size: 11px; color: var(--sub); padding: 0 16px 16px; }

/* プライバシーポリシーなどの文書のページ */
.doc { background: #fff; border-top-right-radius: 64px; }
.doc .sec__in { max-width: 860px; padding-top: 90px; }
.doc h1 { margin: 0; font-size: 36px; line-height: 1.6; letter-spacing: 0.04em; }
.doc h2 { margin: 48px 0 12px; font-size: 20px; }
.doc p, .doc li { font-size: 15px; }
.doc ul { padding-left: 1.4em; }
.doc .date { margin-top: 48px; color: var(--sub); font-size: 13px; }

/* スマホ */
@media (max-width: 960px) {
  .hd__nav { display: none; }
}
@media (max-width: 720px) {
  :root { --pad: 22px; }
  .hd__in { padding: 14px var(--pad); }
  .hd__logo img, .menu__top img { height: 30px; }
  .menu-btn { width: 46px; height: 46px; }
  .menu { padding: 14px var(--pad) 40px; }
  .hero__text { padding-top: 40px; padding-bottom: 36px; }
  .hero h1 { font-size: 36px; }
  .hero__lead { margin-top: 16px; font-size: 17px; }
  .hero__lead br { display: none; }
  .hero__en { margin-top: 14px; font-size: 14px; }
  .strip { height: 300px; border-top-right-radius: 36px; }
  .strip .pc-only { display: none; }
  .sec__in, .philo .sec__in { padding-top: 72px; padding-bottom: 72px; }
  .svc .sec__in { padding-top: 24px; }
  .eyebrow { font-size: 40px; }
  .bar { margin: 12px 0 24px; }
  .h2 { font-size: 24px; }
  .note { font-size: 14px; }
  .philo { border-top-right-radius: 36px; }
  .philo__row { gap: 32px; }
  .philo__row > * { flex-basis: 100%; }
  .philo__photo { height: 240px; border-radius: 18px; }
  .cards2 { margin-top: 36px; grid-template-columns: 1fr; gap: 16px; }
  .card { border-radius: 18px; padding: 24px; }
  .card__title { font-size: 18px; }
  .svc .note { margin: 14px 0 36px; }
  .svc__grid { grid-template-columns: 1fr; gap: 56px; }
  .svc__photo { height: 200px; }
  .belief__row { gap: 0; }
  .belief__head { position: static; flex-basis: 100%; }
  .belief__h { margin-bottom: 28px; font-size: 24px; }
  .belief__body { flex-basis: 100%; }
  .belief__body p { margin-bottom: 18px; font-size: 15px; }
  .band img { height: 220px; border-top-right-radius: 36px; border-bottom-right-radius: 36px; }
  .company { border-bottom-right-radius: 36px; }
  .info { border-radius: 18px; padding: 4px 20px; }
  .info th, .info td { display: block; width: auto; }
  .info th { padding: 18px 0 2px; }
  .info td { padding: 0 0 18px; }
  .confirm__list { grid-template-columns: 1fr; gap: 2px; }
  .confirm__list dd { margin-bottom: 12px; }
  .form, .done { border-radius: 18px; padding: 24px; }
  .ft__nav { gap: 32px; }
  .doc { border-top-right-radius: 36px; }
  .doc .sec__in { padding-top: 56px; }
  .doc h1 { font-size: 26px; }
}
