/* ========== basic ========== */
:root {
  --detail-width: 900px;
  --width: 1120px;
  --max: 1850px;
  --gap: 1rem;
  --radius: 1rem;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-inset: 0 -10px 30px rgba(0, 0, 0, 0.08) inset;
  --text: #111;
  --muted: #666;
  --bg: #fff;
  --line: #eaeaea;
  --red: #ff001c;
  --header-h: 95px;
  --small: 0.875rem;

  /* ベース文字サイズ：画面幅で伸縮、最大16px */
  font-size: clamp(14px, 1.2vw, 16px);

  /* フォント定義 */
  --font-body:
    "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display:
    "Oswald", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;

  /* JSで実寸に上書き */
  --header-h: 72px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.7;
  padding-top: var(--header-h);
}
a {
  color: inherit;
  text-decoration: none;
  transition: 0.22s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1.7rem 0;
}
/* ========== style ========== */
/* ----- layout ----- */
.container {
  max-width: var(--width);
  margin: 0 auto;
  padding: 1.5rem;
}
.container.wide {
  max-width: var(--max);
}
.container.grid {
  gap: 3rem;
}

.grid {
  display: grid;
  gap: var(--gap);
}

.flex {
  display: flex;
  gap: var(--gap);
}

/* ----- text ----- */
.center-text {
  text-align: center;
}
.right-text {
  text-align: right;
}
.left-text {
  text-align: left;
}

.big {
  font-size: 1.2rem;
}
small {
  font-size: 0.875rem;
}

/* ----- anchor with icon ----- */
a[href^="#"] {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
a[href^="#"]::after {
  content: "keyboard_arrow_down";
  font-family: "Material Symbols Outlined";
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  font-size: 1.5em;
  line-height: 1;
}

a[target="_blank"] {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
a[target="_blank"]::after {
  content: "open_in_new";
  font-family: "Material Symbols Outlined";
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  font-size: 1.1em;
  line-height: 1;
}
a.text-link {
  border-bottom: 1px solid currentColor;
}
a.text-link:hover {
  border-color: var(--red);
}

/* scroll */
h2,
h3,
h4,
[id] {
  scroll-margin-top: calc(var(--header-h) + 0rem);
}

/* ----- icon ----- */
.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  font-size: 1rem;
  line-height: 1;
  display: block;
}

/* ----- skip ----- */
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 1rem;
  background: #fff;
  padding: 8px 12px;
  border: 1px solid var(--line);
}

/* ----- btn ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
  border-radius: 2rem;
  border: 1px solid var(--red);

  background: var(--red);
  color: #fff;
}
.btn:hover {
  transition: transform 0.15s ease;
  transform: translateY(-2px);
}

.btn.sub {
  background: #fff;
  color: var(--red);
}

.btn.arrow {
  gap: 0.4em;
}
.btn.arrow::after {
  content: "arrow_forward";
  font-family: "Material Symbols Outlined";
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  font-size: 1.2em;
  line-height: 1;
}

.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.view-all {
  margin-top: 1.5rem;
  text-align: center;
}

/* ----- cards ----- */
.cards {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  background: #fff;
}

.card-media {
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  margin: 0 0 0.5rem;
  background: #f3f3f3;
}

.card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card-link {
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.card-link::after {
  content: "arrow_forward";
  font-family: "Material Symbols Outlined";
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  font-size: 1.5em;
  line-height: 1;
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  color: var(--red);
  z-index: 2;
}

.card-link:hover {
  transform: translateY(-2px);
}

.card-hit {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 3;
}

.card-link > *:not(.card-hit) {
  position: relative;
  z-index: 2;
}

.card-hit:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.card h3 {
  margin: 0 0 0.5rem;
}
.card p {
  margin: 0;
  color: var(--muted);
}

/* */
.table-dl {
  display: grid;
  grid-template-columns: 10em 1fr;
  border-bottom: 1px solid var(--line);
}
.table-dl dt,
.table-dl dd {
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.table-dl dt {
  font-weight: 600;
}
.table-dl dd p {
  margin-top: 0;
}

@media (max-width: 900px) {
  .table-dl {
    grid-template-columns: 1fr;
  }
  .table-dl dt {
    padding-bottom: 0.5rem;
  }
  .table-dl dd {
    padding-top: 0;
    border-top: none;
  }
}

/* ========== header ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem;

  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  will-change: opacity, transform;
}
.site-header.is-hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.site-header.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--red);
  backdrop-filter: saturate(180%) blur(10px);
  border-radius: 4rem;
  padding: 0.5rem 2rem;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-weight: 700;
  color: #fff;
  z-index: 46;
}
.brand a {
  padding: 1rem 0;
}

/* ----- menu button ----- */
.menu-btn {
  display: none;
}

/* ----- gnav ----- */
.gnav {
  display: flex;
  align-items: center;
}
.gnav a {
  color: #fff;

  padding: 0.5rem 1rem;
}
.gnav a:hover {
}
.gnav a.is-active {
}

@media (max-width: 900px) {
  /* 背景クリック用オーバーレイ */
  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 40;
  }
  .menu-overlay.is-open {
    display: block;
  }

  .header-inner {
    padding: 0 0.5rem 0 1.5rem;
  }

  .brand span {
    display: none;
  }

  /* ----- menu button ----- */
  .menu-btn {
    border: none;
    background: transparent;
    padding: 0.75rem;
    border-radius: 0.5rem;
    line-height: 0;
    cursor: pointer;
    z-index: 46;
  }
  .menu-btn span {
    font-size: 24px;
    color: #fff;
  }

  .menu-btn.is-open .icon-menu {
    display: none;
  }
  .menu-btn.is-open .icon-close {
    display: block;
  }

  body.is-menu-open {
    overflow: hidden;
  }

  /* ドロワー（nav） */
  .gnav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;

    position: fixed;
    top: -1rem;
    right: -1rem;
    width: calc(100% + 2rem);
    height: 100vh;
    padding: 6rem 1.5rem 1.5rem;
    /*background: rgba(0, 0, 0, 0.8);*/
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /*box-shadow: var(--shadow);*/
    z-index: 45;

    /* 閉じてる状態 */
    transform: translateX(100%);
    transition: transform 0.22s ease;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 開いてる状態 */
  .gnav.is-open {
    transform: translateX(0);
  }

  .menu-btn {
    display: inline-flex;
  }

  .gnav a {
    padding: 1rem;
    color: var(--red);
    font-size: 1.1rem;
    font-weight: 700;
  }
}

/* ========== breadcrumb ========== */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
}
.breadcrumb a {
  color: inherit;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .breadcrumb {
    display: none;
  }
}

/* ========== banner ========== */
.banner-area {
  padding: 3rem 0;
}
.banner-area a[target="_blank"]::after {
  display: none;
}

.banner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: #fafafa;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
@media (max-width: 900px) {
  .banner {
    flex-direction: column;
    text-align: center;
  }
}
/* ========== footer ========== */
/*----- marquee -----*/
.marquee {
  overflow: hidden;
  padding: 3rem 0 6rem;
  background: var(--red);
  color: #fff;
}

.marquee__track {
  display: inline-flex;
  gap: 2.5rem;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-rtl 36s linear infinite; /* 速度はここで調整 */
}

.marquee__item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(100px, 15vw, 200px);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@keyframes marquee-rtl {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/*----- footer -----*/
.site-footer {
  background: var(--red);
  color: #fff;
}
.site-footer a {
  color: inherit;
}
.site-footer a:hover {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.footer-links {
  justify-content: center;
}
.footer-links a + a::before {
  content: "|";
  margin-right: 1rem;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 1.5rem;
  }
  .footer-grid span {
    display: inline-block;
  }
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-start;
  }
  .footer-links a + a::before {
    display: none;
  }
}

/* ========== main ========== */

/* ----- hero ----- */
.hero {
  padding: 3rem 0 2rem;
}
.hero h1 {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.2;
  margin: 0 0 1rem;
}
.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

/* ----- content ----- */
.content h2,
.content h3,
.content h4,
.content h5 {
  font-weight: 700;
  margin: 2em 0 0.5em;
}
.content h2 {
  font-size: 1.5rem;
}
.content h3 {
  font-size: 1.3rem;
}
.content h4 {
  font-size: 1.1rem;
}
.content h5 {
  font-size: 1rem;
}

/* faq */
.faq-contents {
}
.faq-contents dt {
  font-weight: 700;
  padding-right: 1.5rem;
}
.faq-contents dt::before {
  content: "Q.";
  color: var(--muted);
  font-weight: 700;
  margin-right: 0.5rem;
}
.faq-contents dd {
  margin: 0.5rem 0 1.5rem 0.5rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--line);
}

/* ========== form ========== */
form input,
form textarea,
form select {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  font: inherit;
  outline: none;
}
form input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}
form .label-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
form .label-group label.radio,
form .label-group label.checkbox {
  display: block;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  font: inherit;
  cursor: pointer;
}
form .label-group input:checked + label.radio,
form .label-group input:checked + label.checkbox {
  border-color: var(--red);
  color: var(--red);
}
form button[type="submit"] {
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}
form small {
  color: var(--muted);
}

/* select を “自前矢印” にする */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 100%;
  padding: 12px 44px 12px 12px; /* 右に矢印分の余白 */
  line-height: 1.4;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;

  /* 矢印（SVG） */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}

/* IE用（いま不要なら消してOK） */
.form-select::-ms-expand {
  display: none;
}

/* フォーカス時 */
.form-select:focus {
  outline: none;
  border-color: #999;
}

/* ========== pricacy ========== */
.privacy-policy .table-dl dd p + ul {
  margin-top: -1rem;
}

/* ========== about ========== */

/* ----- map ----- */
.gmap {
  width: 100%;
  height: 400px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 600px) {
  .gmap {
    height: 300px;
  }
}

/* ----- restyle ----- */
.video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.5rem;
}
.video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ----- inpage-links----- */
.inpage-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.inpage-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: #fafafa;

  color: var(--text);
}

/* ----- PERPOSE ----- */
.message-dl {
  display: grid;
  gap: 2rem;
  grid-template-columns: auto 1fr;
}
.message-dl dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(10px, 12vw, 100px);
  line-height: 1;
  text-transform: uppercase;
}
.message-dl dd {
}
.message-dl dd p {
  margin: 0.5rem 0;
}
.message-dl dd p:first-child {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .message-dl {
    gap: 1rem;
    grid-template-columns: 1fr;
  }
  .message-dl dd {
    margin: 0 0 2rem;
  }
  .message-dl dd p:first-child {
    font-size: 1.5rem;
  }
}

/* ========== people ========== */
.people-cards h3 + p {
  margin: 0 0 0.5rem;
  font-size: var(--small);
}
.people-cards h3 + p + p {
  color: var(--text);
}

.people-cards .card-media img {
  aspect-ratio: 4 / 5;
  object-position: top;
}

.people-detail {
  max-width: var(--detail-width);
  margin: 0 auto;
}

.people-detail__header h1 + p {
  color: var(--muted);
}
.people-detail__header .card {
  margin-top: 1.5rem;
  font-size: 1.5em;
  color: var(--text);
}

.people-detail section {
  margin: 3rem 0;
}

.people-detail figure {
  max-width: 600px;
  margin: 1.5rem auto;
}

/* ========== service ========== */
.service-detail {
  max-width: var(--detail-width);
  margin: 0 auto;
}

/* ========== RECRUIT ========== */
.job-consultant ol {
  margin: -1rem 0 1rem;
}

/* ----- entry ----- */
.recruit-entry,
.contact-form {
  max-width: var(--detail-width);
  margin: 0 auto;
}
form .table-dl dt {
  padding-top: 1.5rem;
}
form .table-dl.confirm dt {
  padding-top: 1rem;
}

form .required::before {
  content: "必須";
  display: inline-block;
  color: var(--red);
  font-size: 0.75em;
  margin-right: 0.75em;
}
form .optional::before {
  content: "任意";
  display: inline-block;
  color: var(--muted);
  font-size: 0.75em;
  margin-right: 0.75em;
}
form .table-dl {
  grid-template-columns: 12em 1fr;
}

form .table-dl dd p.note {
  margin: 1rem 0 0;
  font-size: small;
}

form .privacy-agree {
  display: inline-block;
  padding: 0.5rem 0;
}
/* エラーメッセージ */
.is-invalid {
  border-color: var(--red);
}
.field-error {
  color: var(--red);
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}
.form-errors {
  border: 1px solid var(--red);
  padding: 1rem;
  margin: 1rem 0;
}
/* 完了画面 */
.msg-thanks {
  margin-bottom: 6rem;
}
.msg-thanks p {
  margin-bottom: 2rem;
}
@media (max-width: 600px) {
  .table-dl {
    border: none;
  }
  .table-dl dt,
  .table-dl dd {
    border-top: none;
  }
  form .table-dl {
    grid-template-columns: 1fr;
  }
  form .table-dl dt {
    padding-top: 0;
  }
}
