@charset "utf-8";
/* CSS Document
   スマホ堂 採用情報ページ
   コンセプト：まちのスマホ屋さん（紙の地・墨の文字・合図の青・ひとつだけの黄色）
   WordPress 版は tools/build-wordpress.py がこのファイルから生成する
*/

/* ======= 変数 ======= */
:root {
  --paper: #FAFAF7;
  --ink: #1C2330;
  --ink-2: #5B6470;
  --blue: #0066CC;
  --blue-deep: #004C99;
  --blue-pale: #E9F1FB;
  --yellow: #FFC53D;
  --line: #D9DEE5;

  --font-display: 'IBM Plex Sans JP', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --font-body: 'IBM Plex Sans JP', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --font-voice: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', sans-serif;

  --container: 1080px;
  --measure: 640px;
  --header-h: 60px;
  --header-row-h: 64px;

  --radius-pill: 999px;
  --radius-photo: 8px;
  --radius-control: 6px;
}

/* ======= ベース ======= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding-top: var(--header-h);
  /* 円形リビールの円が画面幅より大きいので横方向だけ隠す（スクロール領域は作らない） */
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.02em;
  font-kerning: normal;
  hanging-punctuation: allow-end;
  text-spacing-trim: space-first;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  font-feature-settings: 'palt';
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol, dl {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

dd {
  margin: 0;
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue-deep);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-pill);
}

.skip-link:focus {
  top: 12px;
}

/* ======= メニュー・タブの開閉状態（main.js で切り替え） ======= */
.site-nav-wrap {
  display: none;
}

.site-nav-wrap.is-open {
  display: block;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* ======= ボタン・リンク ======= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  font-weight: 500;
  color: var(--blue);
}

/* ======= ヘッダー ======= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--paper);
}

/* ロゴとメニューの行はヘッダーの上下中央（上下の余白を同じにする） */
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  height: 48px;
  width: auto;
}

.brand picture {
  display: block;
}

.brand-sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0 12px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav-wrap {
  flex-basis: 100%;
}

.site-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0 16px;
  border-top: 1px solid var(--line);
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--blue);
}

.nav-link--cta {
  color: var(--blue);
}

@media (min-width: 992px) {
  :root {
    --header-h: 96px;
  }

  .brand-logo {
    height: 40px;
  }

  .brand-sub {
    font-size: 14px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav-wrap {
    display: block;
    flex-basis: auto;
  }

  .site-nav {
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    border-top: 0;
  }

  .nav-link {
    min-height: var(--header-row-h);
  }

  .nav-link--cta {
    min-height: 40px;
    padding: 0 20px;
    background: var(--blue);
    color: #fff;
    border-radius: var(--radius-pill);
  }

  .nav-link--cta:hover {
    background: var(--blue-deep);
    color: #fff;
  }
}

/* ======= セクション共通 ======= */
.section {
  padding: 72px 0;
}

.section--tint {
  background: var(--blue-pale);
}

.section-title {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.3;
  margin-bottom: 20px;
}

.section-title--light {
  color: #fff;
}

.section-lead {
  max-width: var(--measure);
  margin-bottom: 40px;
  color: var(--ink-2);
}

@media (min-width: 768px) {
  .section {
    padding: 104px 0;
  }
}

/* ======= ヒーロー ======= */
.hero {
  position: relative;
  z-index: 1;
  /* ヘッダー→画像、画像→見出し帯の間隔（スマホは 0 で画像を画面いっぱいに） */
  --hero-gap: 0px;
  --hero-bottom: 0px;
  --hero-bar-h: 72px; /* スマホ：画像下の帯の高さ（2行でも上下が均等になる高さ） */
  /* 1画面分の高さを確保（円がちょうど画面下から始まる） */
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: var(--hero-gap) 0 0;
}

/* 全幅ヒーロー：高さは画面に追従し、上限 980px */
.hero-wide {
  width: 100%;
}

.hero-media {
  position: relative;
  overflow: hidden;
}

.hero-media img,
.hero-media video {
  display: block;
  width: 100%;
  height: clamp(360px, calc(100svh - var(--header-h) - var(--hero-gap) - var(--hero-bar-h)), 980px);
  object-fit: cover;
  will-change: transform;
}

/* 画像下の帯（スマホは濃紺の細い帯にまとめる） */
.hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--hero-bar-h);
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
}

.hero-line {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.hero-bar .text-link {
  flex: none;
  min-height: 40px;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hero {
    --hero-gap: 24px;
    --hero-bottom: 72px;
    /* 見出し帯の高さ：間隔 + 1行分 + 下余白（PC） */
    --hero-bar-h: calc(var(--hero-gap) + 40px + var(--hero-bottom));
  }

  .hero-wide {
    padding: 0 24px;
  }

  .hero-media {
    border-radius: var(--radius-photo);
  }

  .hero-media img,
  .hero-media video {
    height: clamp(420px, calc(100svh - var(--header-h) - var(--hero-gap) - var(--hero-bar-h)), 980px);
  }

  /* PC の帯は紙の地に戻し、以前どおり 1 行に並べる */
  .hero-bar {
    justify-content: flex-start;
    gap: 24px;
    min-height: 0;
    padding: var(--hero-gap) 0 var(--hero-bottom);
    background: transparent;
    color: var(--ink);
  }

  .hero-line {
    flex: 1;
    font-size: 16px;
    line-height: 1.9;
    color: var(--ink-2);
  }

  .hero-bar .text-link {
    font-size: 16px;
    color: var(--blue);
  }
}

/* ======= スマホ堂とは ======= */
.split {
  display: grid;
  gap: 40px;
}

.split-text p {
  max-width: var(--measure);
}

.split-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-photo);
}

.facts {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.facts-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.facts-row dt {
  color: var(--blue);
  font-weight: 500;
}

@media (min-width: 992px) {
  .split {
    grid-template-columns: 1fr 0.9fr;
    align-items: start;
    gap: 64px;
  }
}

/* ======= キャッチコピー（円形リビール）・お客様の声 ======= */
.voices {
  position: relative;
  z-index: 2;
  background: var(--blue);
  color: #fff;
  padding: 0 0 120px;
  /* 横方向だけ隠す（縦は見せて、上のヒーローに円を重ねる） */
  overflow-x: clip;
  overflow-y: visible;
}

/* ヒーローとの境界に置いた青い円。JS がスクロールに合わせて 0→1 に拡大する */
.reveal-disc {
  display: none;
  position: absolute;
  top: 0;
  left: 50%;
  width: 240vmax;
  height: 240vmax;
  border-radius: 50%;
  background: var(--blue);
  pointer-events: none;
  will-change: transform;
}

.js-reveal .reveal-disc {
  display: block;
}

.reveal-track {
  position: relative;
  z-index: 1;
}

.reveal-stage {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 24px;
  padding-bottom: 24px;
}

.reveal-stage > .container {
  width: 100%;
}

/* JS あり：ステージを画面に固定し、コピーが中央から拡大する */
.js-reveal .reveal-track {
  height: 230vh;
  height: 230svh;
}

.js-reveal .reveal-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 0;
}

.reveal-copy {
  font-size: clamp(30px, 5.6vw, 56px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #fff;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.nb {
  display: inline-block; /* 文節単位で改行させる */
}

.br-wide {
  display: none; /* PC でだけ改行する */
}

.voices-body {
  position: relative;
  z-index: 1;
}

.bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 16px;
  margin: 36px 0;
}

.bubble {
  position: relative;
  max-width: 100%;
  padding: 14px 22px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-voice);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  border-radius: 22px;
}

.bubble::after {
  content: '';
  position: absolute;
  left: 26px;
  bottom: -10px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid var(--yellow);
}

.bubble:nth-child(2n) {
  margin-left: 24px;
}

.bubble:nth-child(2n)::after {
  left: auto;
  right: 26px;
}

.voices-note {
  font-size: 18px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .voices {
    padding-bottom: 200px;
  }

  .voices-body {
    padding-top: 24px;
  }

  .bubbles {
    gap: 28px 24px;
    margin: 44px 0;
  }

  .bubble {
    max-width: 480px;
    font-size: 20px;
    padding: 18px 28px;
  }

  .bubble:nth-child(2n) {
    margin-left: 64px;
  }

  .bubble:nth-child(3n) {
    margin-left: 32px;
  }

  .br-wide {
    display: inline;
  }
}

/* ======= 5つの仕事（お客様の場面 → 仕事） ======= */
.pairs {
  border-top: 1px solid var(--line);
}

.pair {
  display: grid;
  gap: 6px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.pair dt {
  color: var(--blue);
  font-weight: 500;
}

.pair h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.pair p {
  max-width: var(--measure);
  color: var(--ink-2);
}

@media (min-width: 768px) {
  .pair {
    grid-template-columns: 240px 1fr;
    gap: 24px;
    padding: 28px 0;
  }

  .pair dt {
    padding-top: 4px;
  }
}

/* ======= こんな方と働きたい ======= */
.traits {
  display: grid;
  gap: 28px;
}

.traits li {
  position: relative;
  padding-left: 32px;
}

.traits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--blue);
  border-radius: 4px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066CC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.traits h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.traits p {
  color: var(--ink-2);
}

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

/* ======= ある1日のスケジュール（タイムライン） ======= */
.timeline {
  position: relative;
  max-width: 720px;
  padding-left: 24px;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  display: grid;
  gap: 2px;
  padding-bottom: 20px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--paper);
}

.timeline time {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  font-feature-settings: 'tnum';
}

.timeline strong {
  display: block;
  font-weight: 700;
}

.timeline p {
  color: var(--ink-2);
}

@media (min-width: 768px) {
  .timeline li {
    grid-template-columns: 88px 1fr;
    gap: 16px;
    padding-bottom: 24px;
  }
}

/* ======= 募集要項 ======= */
.job-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.job-tab {
  position: relative;
  min-height: 48px;
  padding: 0 16px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-2);
  cursor: pointer;
}

.job-tab:hover {
  color: var(--ink);
}

.job-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.job-summary {
  max-width: var(--measure);
  margin-bottom: 24px;
  font-size: 17px;
}

.spec {
  border-top: 1px solid var(--line);
}

.spec-row {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.spec-row dt {
  color: var(--blue);
  font-weight: 500;
}

@media (min-width: 768px) {
  .spec-row {
    grid-template-columns: 160px 1fr;
    gap: 24px;
    padding: 18px 0;
  }
}

.jobs-cta {
  margin-top: 40px;
}

/* ======= 応募フォーム ======= */
.apply-grid {
  display: grid;
  gap: 40px;
}

.apply-intro p {
  max-width: 440px;
}

.apply-note {
  font-size: 13px;
  color: var(--ink-2);
}

.apply-form {
  display: grid;
  gap: 24px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 500;
}

.required {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  font: inherit;
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  line-height: 1.7;
}

.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C2330' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.field-error {
  display: none;
  font-size: 13px;
  color: #B42318;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #B42318;
}

.field.is-invalid .field-error {
  display: block;
}

.apply-done {
  padding: 32px;
  background: var(--blue-pale);
  border-radius: var(--radius-photo);
}

.apply-done h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

@media (min-width: 992px) {
  .apply-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: start;
  }
}

/* ======= フッター ======= */
.site-footer {
  padding: 56px 0 32px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.8;
}

.site-footer a {
  color: #fff;
}

.site-footer h4 {
  margin-bottom: 12px;
  font-size: 15px;
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 36px;
}

.footer-logo {
  width: 72px;
  height: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 400px;
}

.footer-company {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.64);
}

.footer-stores li {
  display: grid;
  gap: 0;
  margin-bottom: 14px;
}

.footer-stores strong {
  color: #fff;
  font-weight: 500;
}

.footer-stores a {
  justify-self: start;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-copy {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.56);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1.2fr 0.6fr;
    gap: 48px;
  }
}

/* ======= 動きを減らす設定 ======= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-toggle span,
  .btn {
    transition: none;
  }
}
