/* Section heads */
.sec-head {
  text-align: center;
  margin-bottom: 40px;
}

.sec-head__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.sec-head__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.sec-head__lead {
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 16px;
}

@media (min-width: 1024px) {
  .sec-head {
    margin-bottom: 56px;
  }

  .sec-head__title {
    font-size: 40px;
  }
}

/* Hero */
.section--hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding-block: 72px;
  overflow: hidden;
  color: #fff;
  background: #0f1a2e;
}

@media (min-width: 768px) {
  .section--hero {
    min-height: 560px;
  }
}

@media (min-width: 1024px) {
  .section--hero {
    min-height: 640px;
    padding-block: 96px;
  }
}

.section--hero .section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0f1a2e;
}

.section--hero .section__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.section--hero .section__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0f1a2e;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
  pointer-events: none;
}

.section--hero .section__video.is-active {
  opacity: 1;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .section--hero .section__video {
    transition: none;
  }
}

.section--hero .section__overlay {
  background: var(--color-hero-overlay);
  pointer-events: none;
}

.section--hero .container {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  margin-bottom: 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 700;
}

.hero__title {
  max-width: 18em;
  margin-bottom: 16px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  white-space: pre-line;
}

.hero__sub {
  max-width: 40em;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__actions .btn {
  min-height: 52px;
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .hero__eyebrow {
    padding: 7px 16px;
    margin-bottom: 20px;
    font-size: 14px;
  }

  .hero__title {
    margin-bottom: 18px;
    font-size: 60px;
  }

  .hero__sub {
    margin-bottom: 28px;
    font-size: 17px;
  }
}

/* Strength */
.strength-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 1024px) {
  .strength-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.strength-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
}

@media (min-width: 768px) {
  .strength-card {
    gap: 18px;
    padding: 32px;
  }
}

.strength-card__illust picture {
  display: block;
  width: 100%;
  height: 100%;
}

.strength-card__illust {
  width: 100%;
  max-width: 310px;
  aspect-ratio: 310 / 213;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
}

.strength-card__illust img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.strength-card__title {
  width: 100%;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
}

.strength-card__body {
  width: 100%;
  color: var(--color-muted);
  font-size: 16px;
}

.br-pc {
  display: none;
}

@media (min-width: 1024px) {
  .strength-card {
    text-align: left;
    padding: 20px;
  }

  .strength-card__illust {
    align-self: center;
  }

  .strength-card__title {
    font-size: 22px;
    line-height: 1.35;
  }

  .br-pc {
    display: inline;
  }
}

/* About */
.section--about {
  overflow: hidden;
}

.about-mark {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: min(65vh, 749px);
  height: auto;
  opacity: 0.4;
  pointer-events: none;
  transform: translateX(35%);
  z-index: 0;
}

.about-mark img {
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .about-mark {
    width: min(80vh, 942px);
    transform: translateX(45%);
  }
}

@media (min-width: 1024px) {
  .about-mark {
    width: min(90vh, 949px);
    transform: translateX(50%);
  }
}

.section--about .container {
  position: relative;
  z-index: 1;
}

.message-block {
  display: grid;
  gap: 28px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .message-block {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 28px;
  }
}

@media (min-width: 1024px) {
  .message-block {
    align-items: center;
    gap: 40px;
  }
}

.message-block__kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.message-block__title {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  white-space: pre-line;
}

.message-block__body {
  display: grid;
  gap: 14px;
  color: var(--color-muted);
}

.portrait-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 70%;
  max-width: 320px;
  margin-inline: auto;
}

.portrait-panel picture {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-primary-soft);
}

.portrait-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portrait-panel .message-block__name {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .message-block__title {
    font-size: 28px;
  }

  .portrait-panel {
    /* TB: 240px の約 80% */
    width: 192px;
    max-width: none;
    margin-inline: 0;
    gap: 10px;
  }

  .portrait-panel .message-block__name {
    font-size: 13px;
  }
}

@media (min-width: 1024px) {
  .message-block__title {
    font-size: 32px;
  }

  .portrait-panel {
    width: 320px;
    gap: 14px;
  }

  .portrait-panel .message-block__name {
    font-size: 15px;
  }
}

/* legacy logo-panel kept if referenced elsewhere */
.logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 32px 28px;
  background: #fff;
}

.logo-panel img {
  width: min(220px, 100%);
  height: auto;
}

@media (min-width: 768px) {
  .logo-panel {
    width: 240px;
    height: 240px;
    padding: 24px;
  }

  .logo-panel img {
    width: 180px;
  }
}

@media (min-width: 1024px) {
  .logo-panel {
    width: 320px;
    height: 320px;
    padding: 32px;
  }

  .logo-panel img {
    width: 240px;
  }
}

.info-table {
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.info-table__row {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 55%, white);
}

.info-table__row:last-child {
  border-bottom: 0;
}

.info-table__label {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
}

.info-table__value {
  font-size: 16px;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .info-table__row {
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 0;
    padding: 0;
  }

  .info-table__label {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 14px 20px;
    background: var(--color-table-label);
    color: var(--color-text);
    border-right: 1px solid var(--color-table-label-line);
    font-size: 15px;
  }

  .info-table__value {
    padding: 14px 20px;
  }
}

/* Service */
.service-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.service-card {
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.service-card__media {
  aspect-ratio: 16 / 10;
  background: var(--color-primary-soft);
}

.service-card__media picture,
.env-card__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__body {
  padding: 22px;
}

.service-card__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card__title {
  font-size: 18px;
  font-weight: 700;
}

.service-card__text {
  color: var(--color-muted);
}

@media (min-width: 1024px) {
  .service-card__body {
    padding: 28px;
  }

  .service-card__title {
    font-size: 22px;
  }
}

/* Environment */
.env-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .env-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.env-card {
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.env-card__media {
  aspect-ratio: 4 / 3;
}

.env-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.env-card__body {
  padding: 18px;
}

.env-card__title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.env-card__text {
  color: var(--color-muted);
  font-size: 15px;
}

/* Welfare */
.welfare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .welfare-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.welfare-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 16px;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  font-weight: 700;
  font-size: 15px;
}

@media (min-width: 1024px) {
  .welfare-item {
    min-height: 104px;
    font-size: 18px;
  }
}

/* Recruit */
.recruit-flow-wrap {
  margin-top: 40px;
}

.recruit-flow {
  display: grid;
  gap: 12px;
}

@media (min-width: 768px) {
  .recruit-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.recruit-flow__title {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

@media (min-width: 1024px) {
  .recruit-flow__title {
    font-size: 24px;
  }
}

.step-card {
  padding: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  text-align: center;
}

.step-card__num {
  display: block;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.step-card__label {
  font-size: 17px;
  font-weight: 700;
}

.step-card__note {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin-inline: auto;
}

.faq-item {
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
}

@media (min-width: 1024px) {
  .faq-question {
    font-size: 17px;
  }
}

.faq-question__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-question__icon {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-question__icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 24px;
  color: var(--color-muted);
  background: var(--color-primary-soft);
  font-size: 16px;
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  box-shadow: var(--shadow-card);
}

@media (min-width: 1024px) {
  .contact-card {
    gap: 12px;
    padding: 32px;
    border-radius: var(--radius-card);
  }
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

@media (min-width: 1024px) {
  .contact-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
}

.contact-card--line {
  background: var(--color-surface);
  border-color: #06c75533;
}

.contact-card--line .contact-card__icon {
  background: #06c75638;
  color: var(--color-line);
}

.contact-card__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-muted);
}

@media (min-width: 1024px) {
  .contact-card__label {
    font-size: 15px;
  }
}

.contact-card--line .contact-card__label {
  color: var(--color-line);
}

.contact-card__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

@media (min-width: 1024px) {
  .contact-card__value {
    font-size: 28px;
  }
}

.contact-card__note {
  color: var(--color-muted);
  font-size: 11px;
}

@media (min-width: 1024px) {
  .contact-card__note {
    font-size: 12px;
  }
}

/* Entry */
.section--entry {
  background: linear-gradient(135deg, var(--color-line) 0%, var(--color-line-dark) 100%);
  color: #fff;
  text-align: center;
  padding-block: 60px;
}

@media (min-width: 768px) {
  .section--entry {
    padding-block: 80px;
  }
}

@media (min-width: 1024px) {
  .section--entry {
    padding-block: 120px;
  }
}

.entry__title {
  margin-bottom: 12px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.entry__lead {
  max-width: 28em;
  margin: 0 auto 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.section--entry .btn--entry-light {
  width: 100%;
  max-width: 420px;
  min-height: 54px;
  padding: 16px 32px;
  font-size: 17px;
}

@media (min-width: 768px) {
  .entry__title {
    margin-bottom: 16px;
    font-size: 40px;
  }

  .entry__lead {
    margin-bottom: 28px;
  }

  .section--entry .btn--entry-light {
    width: auto;
    min-height: 56px;
    padding: 20px 48px;
    font-size: 18px;
  }
}

@media (min-width: 1024px) {
  .entry__title {
    font-size: 44px;
  }
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.88);
  padding: 48px 0 32px;
}

@media (min-width: 1024px) {
  .site-footer {
    padding: 64px 0 32px;
  }
}

.footer__top {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}

@media (min-width: 1024px) {
  .footer__top {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 48px;
  }
}

.footer__brand img {
  width: 180px;
  margin-bottom: 12px;
}

.footer__brand p {
  font-size: 14px;
  opacity: 0.8;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.47);
}

.footer__meta a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Privacy policy page */
.privacy-article {
  color: var(--color-text);
}

.privacy-article__updated {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 13px;
}

.privacy-article h2 {
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 55%, white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.privacy-article h2:first-of-type {
  margin-top: 8px;
}

.privacy-article p,
.privacy-article li {
  font-size: 16px;
  line-height: 1.85;
}

.privacy-article p + p {
  margin-top: 12px;
}

.privacy-article ul,
.privacy-article ol {
  margin: 12px 0 0;
  padding-left: 1.4em;
}

.privacy-article ul {
  list-style: disc;
}

.privacy-article ol {
  list-style: decimal;
}

.privacy-article li + li {
  margin-top: 6px;
}

.privacy-article a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-article a:hover {
  color: var(--color-text);
}

.privacy-article__back {
  margin-top: 48px;
}

@media (min-width: 768px) {
  .privacy-article h2 {
    margin-top: 48px;
    font-size: 20px;
  }
}
