/* ==========================================================================
   in the HOTEL LP
   SP版デザインを基準に実装し、390px幅を超える画面(PC)では
   コンテンツ幅を390pxに固定して中央に配置、外側は白背景にする。
   ========================================================================== */

:root {
  --color-primary: #1E3B2C;
  --color-accent: #12261A;
  --color-accent2: #AF442E;
  --color-back: #EDEAE0;
  --color-sub-accent: #6E7A3F;
  --color-sub-accent-50: rgba(110, 122, 63, 0.5);
  --color-black: #272727;
  --color-white: #FFFFFF;
  --color-highlight: #FFF172;

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Zen Kaku Gothic Antique", "Noto Sans JP", sans-serif;
  --font-inter: "Inter", sans-serif;

  --content-max-width: 390px;
  --floating-cta-height: 89px;
}

/* ---------- Reset / Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-jp);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
  border: 0;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

svg {
  display: block;
}

/* フォーカス状態（キーボード操作時にクリック領域が分かるようにする） */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent2);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- レイアウト：SP幅を基準にPCでは中央固定・外側は白背景 ---------- */
.site-wrapper {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  background: var(--color-white);
  overflow: hidden;
  position: relative;
}

.floating-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: var(--content-max-width);
  transform: translate(-50%, 120%);
  transition: transform 0.35s ease;
  background: var(--color-primary);
  padding: 12px 16px;
  box-shadow: 0 -4px 6px -4px rgba(0, 0, 0, 0.1), 0 -10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.floating-cta.is-visible {
  transform: translate(-50%, 0);
}

/* ---------- 共通パーツ ---------- */
.logo-mark {
  display: inline-flex;
  color: #000;
}

.logo-mark svg {
  height: 20px;
  width: auto;
  /* <symbol>+<use>化した内部のpathには通常のセレクタが届かないため、
     継承される fill を svg要素自体に指定してcurrentColorを伝える */
  fill: currentColor;
}

.logo-mark--white {
  color: var(--color-white);
}

.section-heading {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  color: var(--color-accent);
  text-align: center;
}

.u-accent2 {
  color: var(--color-accent2);
}

/* 見た目には表示せず、スクリーンリーダー・SEO向けにテキストを残すためのクラス
   （見出しをテキスト込み画像化したセクションで使用） */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

mark {
  background: var(--color-highlight);
  color: inherit;
  font-weight: 600;
  padding: 0 1px;
}

/* CTAボタン（LINE誘導ボタン）
   Figma上の見た目を完全に再現するため、CTAボタンは全箇所で画像として書き出し
   （images/cta-button.png）、クリック可能なリンクとして表示する。
   ホバー時にボタン上を斜めの光が流れるアニメーションを付与する。 */
.cta-image-button {
  display: block;
  width: 100%;
  max-width: 374px;
  margin: 0 auto;
}

.image-cta {
  position: relative;
  display: block;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.image-cta img {
  width: 100%;
  height: auto;
  display: block;
}

/* 光の演出は画像内のドロップシャドウ部分を除いた「ボタン本体」の矩形にのみ
   掛かるように、shine用の領域をその範囲に絞ってクリップする
   （画像比率：左1.34% / 上6.17% / 右2.94% / 下13.58%がシャドウの余白） */
.image-cta__shine {
  position: absolute;
  top: 6.17%;
  left: 1.34%;
  right: 2.94%;
  bottom: 13.58%;
  overflow: hidden;
  border-radius: 6px;
  pointer-events: none;
}

.image-cta__shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.75) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: image-cta-shine 2.8s ease-in-out infinite;
}

@media (hover: hover) {
  .image-cta:hover {
    filter: brightness(1.05);
  }
  .image-cta:active {
    transform: scale(0.98);
  }
}

@keyframes image-cta-shine {
  0% { left: -60%; }
  35% { left: 160%; }
  100% { left: 160%; }
}

/* ==========================================================================
   Fv：ヒーローセクション
   背景写真（CTAを含まない）・見出し・ハイライト文言をそれぞれ個別の画像として
   書き出し、Figma上の座標を%に変換して重ねる。CTAは背景画像と完全に分離し、
   重複表示にならないようにしている。
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 580;
  overflow: hidden;
  background: #1a1a1a;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__brand {
  position: absolute;
  left: 4.1%;
  top: 3.45%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.hero__tagline {
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  white-space: nowrap;
  margin-left: 7px;
}

.hero__heading-img {
  position: absolute;
  left: 3.59%;
  top: 23.45%;
  width: 58.21%;
  height: auto;
}

.hero__highlight-img {
  position: absolute;
  left: 4.1%;
  top: 61.38%;
  width: 47.95%;
  height: auto;
}

/* CTAボタン画像はFigma上の実寸(x16,y478,幅358,高さ65)に
   ドロップシャドウのはみ出し分(左5px・上5px・右11px・下11px)を加えた範囲に配置する */
.hero__cta {
  position: absolute;
  left: 2.82%;
  top: 81.55%;
  width: 95.9%;
}

/* ==========================================================================
   Fv・CtaSection・FloatingCta：パターン2/3共通パーツ
   バッジ付きCTAボタン（cta-button-b.png / cta-button-c.png）は、通常のCTAより
   画像内に「転職を決めなくても大丈夫」のバッジ分の余白が上部に加わるため、
   shine演出のクリップ範囲を専用クラスで指定する
   （画像比率：左1.34% / 上18.28% / 右3.07% / 下12.37%がバッジ・シャドウの余白）
   ========================================================================== */
.image-cta__shine--badge {
  position: absolute;
  top: 18.28%;
  left: 1.34%;
  right: 3.07%;
  bottom: 12.37%;
  overflow: hidden;
  border-radius: 6px;
  pointer-events: none;
}

.image-cta__shine--badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.75) 50%, transparent 100%);
  transform: skewX(-20deg);
}

@media (hover: hover) {
  .image-cta:hover .image-cta__shine--badge::after {
    animation: image-cta-shine 0.9s ease forwards;
  }
}

/* CTA本体（バッジ画像込み）をFigma実寸(x16,y478,幅358,高さ65)に
   位置合わせする。パターン2・3で画像内のボタン比率が共通のため同じ値を使う */
.hero__cta--badge {
  position: absolute;
  left: 2.15%;
  top: 79%;
  width: 97.4%;
}

/* パターン3：2行の吹き出し風テキスト */
.hero__badges--c {
  position: absolute;
  left: 4.1%;
  top: 60.86%;
  display: flex;
  flex-direction: column;
  gap: 8.6px;
}

.hero__badge {
  display: block;
  width: fit-content;
  padding: 0 9.3px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 16.7px;
  line-height: 25px;
  white-space: nowrap;
}

/* パターン3の吹き出しはフォントサイズがひとまわり大きい */
.hero__badges--c .hero__badge {
  font-size: 19.4px;
  line-height: 29px;
}

/* パターン2の見出しテキスト＋吹き出し（あなたに、〜見てみませんか）は
   Figma側で1つのグループにまとめられているため、位置ズレが起きないよう
   まとめて1枚の画像として書き出している。ぼかし効果による画像の余白
   （ブリード）が実際のテキスト位置に対して非対称になるため、論理上の
   配置枠を中央基準で重ねることでブリード量の誤差を吸収する */
.hero__heading-wrap--b {
  position: absolute;
  left: 4.1%;
  top: 24.31%;
  width: 76.92%;
  height: 49.12%;
}

.hero__heading-wrap--b img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  /* img要素の共通リセット(max-width:100%)がブリード分の拡大を打ち消してしまうため解除する */
  max-width: none;
  width: 114.3%;
  height: auto;
}

/* パターン3の見出しテキストは「ぼかし文字（背面）」と「メイン文字（前面）」の
   2枚の画像を同じ論理枠の中央に重ねて、Figma上の二重テキスト効果を再現する */
.hero__heading-wrap--c {
  position: absolute;
  left: 3.33%;
  top: 25%;
  width: 58.72%;
  height: 29.83%;
}

.hero__heading-wrap--c img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  /* img要素の共通リセット(max-width:100%)がブリード分の拡大を打ち消してしまうため解除する */
  max-width: none;
  height: auto;
}

.hero__heading-blur-img--c {
  width: 116.6%;
}

.hero__heading-main-img--c {
  width: 99.1%;
}

/* ==========================================================================
   EmpathySection + ProblemSection
   テキストと背景のバランスをデザインへ完全に一致させるため、
   セクション全体（写真・見出し・チェックリスト・バッジ・本文すべて）を
   1枚の画像として書き出して使用する。見出しはSEO/アクセシビリティのため
   視覚的に隠したテキストとして別途保持する。
   ========================================================================== */
.empathy-section {
  position: relative;
  width: 100%;
  aspect-ratio: 391 / 928;
  overflow: hidden;
  background: var(--color-back);
}

.empathy-section__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   ReasonsSection
   ========================================================================== */
.reasons-section {
  background: var(--color-back);
  padding: 64px 0;
}

.reasons-section .section-heading {
  padding: 0 16px;
}

.reason-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 40px 16px 0;
}

.reason-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-sub-accent-50);
  padding: 20px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reason-card__number {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 80px;
  line-height: 0.9;
  color: var(--color-sub-accent);
  opacity: 0.5;
}

.reason-card__photo {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.reason-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reason-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-primary);
}

.reason-card__text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-black);
}

.reason-card__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 8px 0;
}

.reason-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-primary);
}

.reason-card__check {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--color-sub-accent);
}

.reason-card__check svg {
  width: 15px;
  height: 12px;
}

.reason-card__check svg path {
  fill: currentColor;
}

.reason-card__note {
  color: var(--color-accent2);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}

/* ==========================================================================
   ComparisonSection
   ========================================================================== */
.comparison-section {
  background: var(--color-white);
  padding: 64px 0;
}

.comparison-section .section-heading {
  padding: 0 16px;
}

.comparison-table__wrap {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 32px 16px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid var(--color-sub-accent-50);
  padding: 10px 6px;
  text-align: center;
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.5;
}

/* 左上の空セルには線を引かない（Figma上もこの位置にセル自体が存在しないため） */
.comparison-table th.comparison-table__blank {
  width: 40px;
  border: none;
  background: transparent;
}

.comparison-table__brand {
  background: var(--color-primary);
  padding: 10px 4px;
}

.comparison-table__brand .logo-mark svg {
  height: 15px;
}

.comparison-table__other {
  background: var(--color-white);
  color: var(--color-black);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

/* 左端の項目名（扱う求人・担当者など）はデザインデータ同様に縦組みで表示する */
.comparison-table tbody th {
  width: 40px;
  background: var(--color-sub-accent);
  color: var(--color-white);
  font-weight: 600;
  font-size: 14px;
  /* 項目名セルはFigma同様、行の区切り線（下辺・白）のみを表示し、左右には線を引かない */
  border-width: 0 0 1px 0;
  border-color: var(--color-white);
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.15em;
  padding: 12px 6px;
}

.comparison-table tbody td {
  font-weight: 400;
  color: var(--color-black);
  white-space: nowrap;
}

.comparison-table tbody td.is-highlight {
  background: var(--color-back);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 14px;
}

/* ==========================================================================
   VoiceSection
   ========================================================================== */
.voice-section {
  background: var(--color-back);
  padding: 64px 0;
}

.voice-section .section-heading {
  padding: 0 16px;
}

.voice-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 32px 16px 0;
}

.voice-card {
  background: var(--color-white);
  border: 1px solid var(--color-sub-accent-50);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.voice-card__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
  border: 1px solid #ccc;
}

.voice-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-card__title {
  max-width: 308px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-primary);
}

.voice-card__meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-sub-accent);
}

.voice-card__text {
  width: 100%;
  max-width: 308px;
  border-top: 1px solid var(--color-sub-accent-50);
  padding-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-black);
  text-align: left;
}

/* ==========================================================================
   FlowSection
   ========================================================================== */
.flow-section {
  background: var(--color-white);
  padding: 64px 0;
}

.flow-list {
  /* fit-content + 伸縮子要素の組み合わせはブラウザによって幅計算が不安定になるため、
     Gridの単一トラック（max-content）で最も幅の広い項目に揃える方式にする */
  display: grid;
  grid-template-columns: max-content;
  justify-content: center;
  row-gap: 8px;
  margin: 0 auto;
  padding: 32px 16px 0;
}

.flow-list__item {
  display: flex;
  align-items: center;
  gap: 9px;
}

.flow-list__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
}

.flow-list__text {
  font-size: 16px;
  font-weight: 500;
  color: #111;
  white-space: nowrap;
}

.flow-list__arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Gridの justify-items:stretch（既定値）により、列の幅（＝最も幅の広い項目）に自動で揃う */
  padding-left: 8px;
}

.flow-list__arrow-icon {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.flow-list__arrow-line {
  flex: 1;
  height: 1px;
  background: var(--color-sub-accent);
}

.flow-note {
  max-width: 358px;
  margin: 34px auto 0;
  padding: 15px 16px;
  border: 1px solid var(--color-sub-accent);
  display: flex;
  justify-content: center;
}

.flow-note__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: fit-content;
}

.flow-note__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-black);
  white-space: nowrap;
}

.flow-note__icon {
  flex-shrink: 0;
  color: var(--color-sub-accent);
}

.flow-note__icon svg {
  width: 15px;
  height: 12px;
}

.flow-note__icon svg path {
  fill: currentColor;
}

/* ==========================================================================
   FaqSection
   ========================================================================== */
.faq-section {
  background: var(--color-back);
  padding: 64px 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.faq-item__q,
.faq-item__a {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px 20px;
}

.faq-item__q {
  background: var(--color-primary);
  color: var(--color-white);
  align-items: center;
}

.faq-item__a {
  background: var(--color-white);
  color: var(--color-black);
}

/* Q2・Q4はFigma上、回答欄が縦中央揃えに個別指定されている */
.faq-item:nth-child(2) .faq-item__a,
.faq-item:nth-child(4) .faq-item__a {
  align-items: center;
}

.faq-item__mark {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
}

.faq-item__q .faq-item__mark {
  color: var(--color-white);
}

.faq-item__a .faq-item__mark {
  color: var(--color-primary);
}

.faq-item__q p {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.faq-item__a p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

/* ==========================================================================
   CtaSection
   ========================================================================== */
.cta-section {
  position: relative;
  padding: 64px 16px;
  text-align: center;
  color: var(--color-white);
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/cta-bg.jpg");
  background-size: cover;
  background-position: center;
}

.cta-section__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  opacity: 0.72;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-section__heading {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.083em;
}

.cta-section__text {
  max-width: 300px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 32px 16px calc(32px + var(--floating-cta-height));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__text,
.footer__copy {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__nav a {
  font-size: 10px;
  text-decoration: underline;
}

@media (hover: hover) {
  .footer__nav a:hover {
    opacity: 0.8;
  }
}
