/*
 * インターン申込みページの見た目。
 * 色・書体・ボタン・フォームは、プロダクトサイト(hataraku-home-site/site/src/styles/global.css と R/ContactForms.astro)から写したもの。
 * 「いつもの白と明朝体」(11/16 荒井さん)に合わせる。
 */
:root {
  --ink: #221f1c;
  --ink-2: #46413c;
  --ink-3: #5a544d;
  --rule: #e8e2d9;
  --rule-2: #cfc6ba;
  --paper: #ffffff;
  --pale: #f6f3ee;
  --room: #fbf9f6;
  --blue: #3789d0;
  --yellow: #f7cb01;
  --green: #38ab4c;
  --orange: #e6601f;
  --pink: #e12e5f;
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans:
    "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    sans-serif;
  --max: 1120px;
  --narrow: 820px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --sec: clamp(72px, 8vw, 120px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  word-break: auto-phrase;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
p,
h1,
h2,
h3,
ol,
ul,
dl,
dd {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow {
  max-width: calc(var(--narrow) + var(--gutter) * 2);
}
.pc {
  display: none;
}
@media (min-width: 768px) {
  .pc {
    display: inline;
  }
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- ヘッダー ---------- */
.hd {
  border-bottom: 1px solid var(--rule);
}
.hd__in {
  display: flex;
  align-items: center;
  min-height: 76px;
}
.hd__logo {
  width: clamp(168px, 18vw, 220px);
  height: auto;
}

/* ---------- 最初の画面 ---------- */
.fv {
  padding: clamp(48px, 6vw, 96px) 0 clamp(56px, 6vw, 96px);
}
.eyebrow {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--ink-3);
}
.fv__title {
  margin-top: 14px;
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.25;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
}
.fv__lead {
  margin-top: 24px;
  max-width: 46em;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.95;
  color: var(--ink-2);
}
.facts {
  margin-top: clamp(40px, 4.4vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule-2);
}
.facts > div {
  padding: 22px clamp(14px, 2vw, 28px);
}
.facts > div + div {
  border-left: 1px solid var(--rule-2);
}
.facts dt {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.facts dd {
  margin-top: 6px;
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.facts small,
.price small {
  font-family: var(--sans);
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-left: 2px;
}
.fv__go {
  margin-top: clamp(32px, 3.4vw, 48px);
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.4s var(--ease),
    opacity 0.3s var(--ease);
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.5s var(--ease);
}
.btn:hover svg {
  transform: translateY(3px);
}
.btn--main {
  background: var(--ink);
  color: #fff;
}
.btn--main:hover {
  background: #3a342f;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

/* ---------- 区切り ---------- */
.sec {
  padding: var(--sec) 0;
}
.sec--pale {
  background: var(--pale);
}
.sec--top0 {
  padding-top: 0;
}
.sec__title {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.4;
  letter-spacing: 0.05em;
  font-feature-settings: "palt";
}
.sec__lead {
  margin-top: 18px;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.95;
  color: var(--ink-2);
}
.tag {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 6px;
}

/* ---------- 流れ ---------- */
.steps {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 96px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--ink-3);
  border-right: 1.5px solid var(--ink-3);
  transform: translate(0, -50%) rotate(45deg);
}
.steps__no {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.steps__name {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.steps__goal {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: #fff;
  align-items: flex-start;
}

.points {
  margin-top: clamp(28px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
}
.points li {
  position: relative;
  padding: 22px 20px 22px 26px;
  display: flex;
  flex-direction: column;
}
.points li + li {
  border-left: 1px solid var(--rule-2);
}
.points li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 34px;
  width: 10px;
  height: 2px;
  background: var(--green);
}
.points li:nth-child(2)::before {
  background: var(--blue);
}
.points li:nth-child(3)::before {
  background: var(--orange);
}
.points__a {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
.points__b {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.price {
  margin-top: clamp(28px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 22px clamp(20px, 2.4vw, 32px);
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 6px;
}
.price__unit {
  font-size: 15px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}
.price__main {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: 0.06em;
}
.price__main strong {
  font-size: 1.5em;
  font-weight: 700;
  margin-left: 6px;
}

.catch {
  margin-top: clamp(40px, 4.4vw, 64px);
  text-align: center;
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.7;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
}

/* ---------- インターン実習について ---------- */
.list {
  margin-top: 28px;
  border-top: 1px solid var(--rule);
}
.list li {
  position: relative;
  padding: 14px 0 14px 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.8;
}
.list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(14px + 0.9em - 1px);
  width: 10px;
  height: 2px;
  background: var(--green);
}

/* ---------- 利用条件 ---------- */
.terms {
  margin-top: 28px;
  padding: clamp(24px, 3vw, 44px);
  background: var(--room);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-2);
}
.terms h3 {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin: 32px 0 10px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.terms h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.terms p + p {
  margin-top: 8px;
}
.terms__dl > div {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 12px;
  padding: 6px 0;
}
.terms__dl dt {
  font-weight: 500;
  color: var(--ink);
}

/* ---------- フォーム ---------- */
.form {
  margin-top: 32px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(22px, 3vw, 44px);
}
.form__head {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.05em;
}
.form__legend {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.form__legend .req {
  margin-right: 6px;
}
.form__grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}
.field {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field--half {
  grid-column: span 1;
}
.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.req,
.opt {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
  border-radius: 3px;
  padding: 0 6px;
}
.req {
  background: var(--ink);
  color: #fff;
}
.opt {
  color: var(--ink-2);
  border: 1px solid var(--ink-3);
  background: #fff;
  font-weight: 500;
}
.field input {
  width: 100%;
  min-height: 50px;
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: #fff;
  border: 1px solid #857c71;
  border-radius: 4px;
  padding: 11px 14px;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.field input:focus {
  border-color: var(--ink);
}
.field input[aria-invalid="true"] {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink);
}
.agree {
  margin-top: 28px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: var(--room);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.7;
  cursor: pointer;
}
.agree input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.agree .req {
  margin-left: 8px;
  vertical-align: 1px;
}
.agree.is-invalid {
  border-color: var(--pink);
}
.form__error {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--pink);
  background: #fdf1f4;
  font-size: 15px;
  line-height: 1.7;
}
.form__submit {
  margin-top: 28px;
  text-align: center;
}
.form__submit .btn {
  min-width: min(100%, 320px);
}

.done {
  margin-top: 32px;
  padding: clamp(28px, 3.4vw, 48px);
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 6px;
  text-align: center;
}
.done:focus {
  outline: none;
}
.done__title {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* ---------- フッター ---------- */
.ft {
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

/* ---------- 狭い画面 ---------- */
@media (max-width: 767px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts > div:nth-child(3) {
    border-left: 0;
  }
  .facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--rule-2);
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .steps li {
    min-height: 0;
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
  }
  .steps li:not(:last-child)::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -11px;
    transform: translate(-50%, 0) rotate(135deg);
  }
  .points {
    grid-template-columns: 1fr;
  }
  .points li + li {
    border-left: 0;
    border-top: 1px solid var(--rule-2);
  }
  .form__grid {
    grid-template-columns: 1fr;
  }
  .field--half {
    grid-column: 1 / -1;
  }
  .terms__dl > div {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .fv__go .btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .btn svg,
  .field input {
    transition: none;
  }
}

/* 語の途中で折らない(見出し・数字の欄) */
.nb { display: inline-block; }
@media (max-width: 767px) {
  .facts > div { padding: 18px 14px; }
  .facts dd { font-size: 19px; letter-spacing: .02em; white-space: nowrap; }
}
