/* =========================================================
   BOWHEAD HOLDINGS  共通スタイル
   色・余白は :root の変数で一括管理
   ========================================================= */
:root {
  --navy: #1d2a43;
  --text: #222222;
  --text-sub: #555555;
  --muted: #888888;
  --accent: #ff5035;
  --bg: #ffffff;
  --bg-soft: #f4f7fd;
  --line: #d9dde5;
  --radius: 12px;
  --container: 1200px;
  --font: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 15px;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, dl { margin: 0; }
ul { padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 880px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; max-width: 1320px; margin: 0 auto; padding: 0 40px;
}
.site-header__logo img { width: 186px; }
.gnav { display: flex; align-items: center; gap: 28px; }
.gnav a { font-size: 14px; font-weight: 600; }
.gnav a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 4px;
  font-size: 14px; font-weight: 700; line-height: 1.4;
  transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: .85; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--outline { border: 1px solid var(--navy); color: var(--navy); background: #fff; }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-more {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 6px 6px 6px 36px; border-radius: 999px;
  background: #fff; box-shadow: 0 3px 0 rgba(29,42,67,.18), 0 0 0 1px rgba(29,42,67,.06);
  font-size: 14px; font-weight: 700; color: var(--navy);
  transition: transform .2s;
}
.btn-more:hover { transform: translateY(-2px); }
.btn-more__icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff;
}
.btn-more__icon svg { width: 16px; height: 16px; }

/* ---------- Breadcrumb / page title ---------- */
.breadcrumb { max-width: 1320px; margin: 0 auto; padding: 20px 64px 0; font-size: 13px; color: var(--text-sub); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--text); font-weight: 700; }
.breadcrumb li:last-child { color: var(--text); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent); }

.page-title { text-align: center; padding: 36px 24px 56px; }
.page-title__en { display: block; font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
.page-title__ja { font-size: clamp(28px, 4vw, 38px); font-weight: 700; line-height: 1.4; }

.section-head { text-align: center; margin-bottom: 40px; }
.section-head__en { display: block; font-size: 11px; color: var(--muted); }
.section-head__ja { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; line-height: 1.4; }
.section-lead { text-align: center; font-size: 14px; line-height: 2; }

/* ---------- Top: hero ---------- */
.hero { padding: 24px 0 56px; }
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  max-width: 1320px; margin: 0 auto; padding: 0 64px 0 120px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px; border-radius: 4px; background: #e8eefc;
  font-size: 13px; font-weight: 700; color: var(--navy);
}
.hero__badge svg { width: 16px; height: 16px; }
.hero__title { margin: 16px 0 24px; font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; line-height: 1.4; letter-spacing: .04em; }
.hero__text { font-size: 15px; line-height: 1.9; margin-bottom: 28px; }

/* slider */
.slider { position: relative; aspect-ratio: 620 / 535; overflow: hidden; border-radius: 4px; background: #111; }
.slider__item {
  position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease;
  color: #fff;
}
.slider__item.is-active { opacity: 1; z-index: 1; }
.slider__item img { width: 100%; height: 100%; object-fit: cover; }
.slider__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.6) 100%); }
.slider__caption { position: absolute; left: 32px; right: 32px; bottom: 96px; z-index: 2; }
.slider__name { font-size: clamp(24px, 3vw, 36px); font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.slider__desc { font-size: 13px; line-height: 1.7; }
.slider__controls {
  position: absolute; left: 0; right: 0; bottom: 24px; z-index: 3;
  display: flex; justify-content: center; gap: 16px;
}
.slider__btn {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: #fff; color: var(--navy); cursor: pointer;
}
.slider__btn svg { width: 16px; height: 16px; }

/* ---------- Soft panel (rounded light-blue block) ---------- */
.panel { margin: 0 24px; padding: 72px 0 88px; border-radius: var(--radius); background: var(--bg-soft); }

/* group cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1140px; margin: 56px auto 0; padding: 0 24px; }
.card {
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 48px 52px; border-radius: var(--radius);
  background: #fff; border: 1px solid #e3e7ef;
}
.card__logo { height: 44px; width: auto; margin-bottom: 16px; }
.card__name { font-size: 22px; font-weight: 700; margin-bottom: 24px; text-align: center; }
.card__text { align-self: stretch; font-size: 14px; line-height: 1.8; }
.card__list { align-self: stretch; margin: 16px 0 0; padding-left: 20px; list-style: disc; font-size: 15px; line-height: 2.2; }
.card .btn-more { margin-top: auto; }
.card > :nth-last-child(2) { margin-bottom: 36px; }

/* logos strip */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 40px; margin-top: 64px; padding: 0 24px; }
.logos a { transition: opacity .2s; }
.logos a:hover { opacity: .6; }
.logos img { width: 124px; height: 36px; object-fit: contain; }

/* mission */
.mission { padding: 88px 0 0; }
.mission__en { font-size: 11px; color: var(--muted); }
.mission__title { font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin: 4px 0 24px; }
.mission__text { max-width: 760px; font-size: 14px; line-height: 2; margin-bottom: 36px; }
.mission__image { margin-top: 64px; border-radius: 4px; overflow: hidden; aspect-ratio: 1280 / 500; }
.mission__image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Message page ---------- */
.message { display: grid; grid-template-columns: 508px 1fr; gap: 68px; align-items: start; padding-bottom: 120px; }
.message__title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; margin-bottom: 12px; line-height: 1.5; }
.message__body p { font-size: 15px; line-height: 2.1; margin-bottom: 1.6em; }
.message__body h3 { font-size: 15px; font-weight: 800; margin-bottom: .2em; }
.message__sign { font-size: 15px; line-height: 1.6; }

/* ---------- Company table ---------- */
.info-table { max-width: 800px; margin: 0 auto 40px; border-top: 0; }
.info-table__row { display: grid; grid-template-columns: 152px 1fr; border-bottom: 1px solid #555; padding: 16px 0; }
.info-table dt { padding: 4px 16px; border-right: 1px solid #333; }
.info-table dd { margin: 0; padding: 4px 16px; }

/* ---------- Group company pages ---------- */
.company-hero { text-align: center; padding: 0 24px 56px; }
.company-hero__en { display: block; font-size: 12px; color: var(--text-sub); margin-bottom: 20px; }
.company-hero__logo { height: 56px; width: auto; margin: 0 auto 32px; }
.company-hero__logo--tall { height: 80px; }
.company-hero__name { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: .12em; margin-bottom: 32px; }
.company-hero__lead { font-size: 13px; color: var(--text-sub); line-height: 2; }

.heading-line { display: flex; align-items: center; gap: 16px; }
.heading-line h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; white-space: nowrap; }
.heading-line::after { content: ""; flex: 1; height: 1px; background: #888; }
.heading-line__sub { display: block; margin: 6px 0 48px; font-size: 11px; color: var(--accent); }

.biz { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.biz__image { border-radius: 4px; overflow: hidden; aspect-ratio: 620 / 420; }
.biz__image img { width: 100%; height: 100%; object-fit: cover; }
.biz__num {
  display: inline-block; padding: 1px 16px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
}
.biz__title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; margin: 12px 0 16px; }
.biz__text { font-size: 13px; line-height: 2; margin-bottom: 20px; }
.biz__text p + p { margin-top: .8em; }

/* ---------- Contact form ---------- */
.form-lead { text-align: center; font-size: 14px; line-height: 2; margin-bottom: 64px; }
.form { max-width: 880px; margin: 0 auto 120px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.form__field--full { grid-column: 1 / -1; }
.form label.form__label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.tag { display: inline-block; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 500; line-height: 20px; background: #e6e6e6; color: #333; }
.tag--req { background: var(--accent); color: #fff; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #888; border-radius: 2px;
  font: inherit; font-size: 16px; color: var(--text); background: #fff;
}
.form textarea { min-height: 200px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--navy); outline-offset: -1px; }
.form ::placeholder { color: #bbb; }
.form__privacy { margin-top: 40px; font-size: 14px; }
.form__privacy a { text-decoration: underline; }
.form__agree { display: flex; align-items: center; gap: 10px; margin-top: 32px; font-size: 14px; cursor: pointer; }
.form__agree input { width: 16px; height: 16px; }
.form__submit {
  display: block; width: 100%; margin-top: 40px; padding: 14px;
  border: 0; border-radius: 2px; background: #222; color: #fff;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
}
.form__submit:disabled { opacity: .4; cursor: not-allowed; }
.form__hp { position: absolute; left: -9999px; }
.form__error { margin-top: 8px; font-size: 13px; line-height: 1.6; color: #d32f2f; }
.form__error[hidden] { display: none; }
.form [aria-invalid="true"] { border-color: #d32f2f; background: #fff8f8; }
.form__agree + .form__error { margin-top: 8px; }
/* スパム対策の確認表示 */
.form__captcha { display: flex; align-items: center; gap: 12px; margin-top: 32px; padding: 14px 16px; border: 1px solid var(--line, #d9dfea); border-radius: 4px; background: var(--bg-soft); font-size: 13px; color: #555; }
.form__captcha-icon { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #bbb; }
.form__captcha[data-state="working"] .form__captcha-icon { border-color: #ccc; border-top-color: var(--navy); animation: captcha-spin .8s linear infinite; }
.form__captcha[data-state="done"] .form__captcha-icon { border-color: #2e7d32; background: #2e7d32 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.form__captcha[data-state="done"] { color: #2e7d32; }
.form__captcha[data-state="error"] { color: #d32f2f; cursor: pointer; }
.form__captcha[data-state="error"] .form__captcha-icon { border-color: #d32f2f; }
@keyframes captcha-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .form__captcha[data-state="working"] .form__captcha-icon { animation-duration: 3s; } }
.notice { max-width: 640px; margin: 0 auto 120px; padding: 40px; text-align: center; border-radius: var(--radius); background: var(--bg-soft); line-height: 2; }
.notice .btn-more { margin-top: 24px; }

/* ---------- Privacy policy ---------- */
.policy { padding-bottom: 120px; font-size: 14px; line-height: 2; }
.policy h2 { font-size: 17px; font-weight: 700; margin: 40px 0 8px; }
.policy ul { list-style: disc; padding-left: 1.5em; }
.policy__date { margin-top: 48px; text-align: right; }

/* ---------- Footer ---------- */
.site-footer { padding: 96px 0 72px; }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto auto; gap: 80px; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.site-footer__logo img { width: 180px; }
.site-footer__copy { margin-top: 72px; font-size: 12px; }
.site-footer h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.site-footer li { font-size: 13px; line-height: 2.4; }
.site-footer li a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { padding: 0 40px; gap: 40px; }
  .message { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  body { font-size: 14px; }
  .site-header__inner { height: 64px; padding: 0 16px; }
  .site-header__logo img { width: 150px; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 0; background: none; cursor: pointer; color: var(--navy);
  }
  .nav-toggle svg { width: 26px; height: 26px; }
  .gnav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 24px; background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .gnav.is-open { transform: none; opacity: 1; visibility: visible; }
  .gnav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .gnav .btn { justify-content: center; margin-top: 16px; padding: 14px; border-bottom: 0; }

  .breadcrumb { padding: 16px 16px 0; }
  .page-title { padding: 24px 16px 40px; }

  .hero__inner { grid-template-columns: 1fr; padding: 0 16px; }
  .slider { aspect-ratio: 4 / 3.6; }
  .slider__caption { left: 20px; right: 20px; bottom: 80px; }

  .panel { margin: 0 8px; padding: 56px 0 64px; }
  .cards { grid-template-columns: 1fr; padding: 0 16px; margin-top: 40px; }
  .card { padding: 36px 24px 40px; }
  .section-lead { text-align: left; padding: 0 16px; }
  .section-lead br { display: none; }
  .logos { gap: 20px 28px; }
  .logos img { width: 96px; height: 28px; }

  .container { padding: 0 16px; }
  .mission { padding-top: 64px; }
  .mission__image { aspect-ratio: 4 / 3; margin-top: 40px; }

  .message { grid-template-columns: 1fr; gap: 32px; padding-bottom: 80px; }
  .message__body p:not(.message__sign) br { display: none; }

  .info-table__row { grid-template-columns: 96px 1fr; }
  .info-table dt { padding: 4px 8px; }
  .info-table dd { padding: 4px 12px; }

  .company-hero__lead br { display: none; }
  .biz { grid-template-columns: 1fr; gap: 20px; margin-bottom: 56px; }

  .form__grid { grid-template-columns: 1fr; gap: 24px; }
  .form-lead br { display: none; }

  .site-footer { padding: 64px 0 48px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__copy { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
