/* File: assets/styles.css */

/* =========================================================
   Fonts
   見出し: Shippori Mincho（明朝・上品）／本文: Zen Kaku Gothic New（ゴシック）
   ========================================================= */

/* =========================================================
   Design Tokens
   ========================================================= */
:root {
  /* @color メインカラー（淡い水色） */
  --c-primary: #4faecb;
  --c-primary-rgb: 79, 174, 203;

  /* @color メインカラー（濃いめ・文字/アクセント用） */
  --c-primary-deep: #2f7e9c;
  --c-primary-deep-rgb: 47, 126, 156;

  /* @color 見出し色 */
  --c-ink: #1d3640;
  --c-ink-rgb: 29, 54, 64;

  /* @color ベース背景色 */
  --c-bg: #f3fafc;

  /* @color パネル背景色（淡い水色面） */
  --c-panel: #e4f4f9;
  --c-panel-rgb: 228, 244, 249;

  /* @color 応募ボタン色（LINE） */
  --c-line: #06c755;
  --c-line-rgb: 6, 199, 85;

  /* 派生色（@colorなし = ユーザーに露出しない / 親色から導出） */
  --c-paper: #ffffff;
  --c-text: rgba(var(--c-ink-rgb), 0.78);
  --c-text-muted: rgba(var(--c-ink-rgb), 0.56);
  --c-text-faint: rgba(var(--c-ink-rgb), 0.40);
  --c-border: rgba(var(--c-primary-rgb), 0.26);
  --c-border-soft: rgba(var(--c-primary-rgb), 0.16);
  --c-panel-2: rgba(var(--c-primary-rgb), 0.12);
  --c-tint: rgba(var(--c-primary-rgb), 0.08);

  --maxw: 1440px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-card: 0 24px 48px -30px rgba(var(--c-ink-rgb), 0.40);
  --shadow-card-hover: 0 34px 60px -28px rgba(var(--c-ink-rgb), 0.50);
}

/* =========================================================
   Reset / Base
   ========================================================= */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: 'Shippori Mincho', serif; color: var(--c-ink); margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(var(--c-primary-rgb), 0.30); color: var(--c-ink); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

@media (min-width: 768px) {
  body { font-size: 16px; }
  :root { --gutter: 40px; --header-h: 84px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 48px; }
}

/* =========================================================
   Image Placeholder（固定枠＋coverで嵌める）
   ========================================================= */
.ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, rgba(var(--c-primary-rgb), 0.06) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, rgba(var(--c-panel-rgb), 1), rgba(var(--c-primary-rgb), 0.18));
  display: grid;
  place-items: center;
  color: var(--c-primary-deep);
  font-size: 12px;
  letter-spacing: .08em;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}
.ph[data-ratio="16/9"] { aspect-ratio: 16 / 9; }
.ph[data-ratio="3/4"]  { aspect-ratio: 3 / 4; }
.ph[data-ratio="1/1"]  { aspect-ratio: 1 / 1; }

/* CMSが .ph -> .editable-img に置換した後の対スタイル（枠固定・coverで嵌める） */
.editable-img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.editable-img[data-ratio="16/9"] { aspect-ratio: 16 / 9; }
.editable-img[data-ratio="3/4"]  { aspect-ratio: 3 / 4; }
.editable-img[data-ratio="1/1"]  { aspect-ratio: 1 / 1; }

/* サンプル（data-repeatable の2件目以降）用の見た目だけのプレースホルダ。
   data-editable-bg を持たないため CMS のフィールドにはならない。 */
.thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, rgba(var(--c-primary-rgb), 0.06) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, rgba(var(--c-panel-rgb), 1), rgba(var(--c-primary-rgb), 0.18));
  display: grid;
  place-items: center;
  color: var(--c-primary-deep);
  font-size: 12px;
  letter-spacing: .08em;
}
.thumb[data-ratio="16/9"] { aspect-ratio: 16 / 9; }
.thumb[data-ratio="3/4"]  { aspect-ratio: 3 / 4; }
.thumb[data-ratio="1/1"]  { aspect-ratio: 1 / 1; }

/* =========================================================
   Buttons
   ========================================================= */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--c-line);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(var(--c-line-rgb), 0.62);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-line:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -12px rgba(var(--c-line-rgb), 0.72); }
.btn-line__mark {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: #fff;
  color: var(--c-line);
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -.03em;
}
/* TEC-1289-3: hide-empty-cta-mark */
.btn-line__mark:empty, .float-line__mark:empty { display: none; }
.btn-line--lg { font-size: 18px; padding: 20px 44px; gap: 14px; }
.btn-line--lg .btn-line__mark { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--c-paper);
  color: var(--c-primary-deep);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--c-border);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--c-primary); background: var(--c-bg); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 34px -20px rgba(var(--c-ink-rgb), 0.5);
  border-bottom-color: var(--c-border-soft);
}
.header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--c-primary-rgb), 0.85), var(--c-primary));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 6px 16px -6px rgba(var(--c-primary-rgb), 0.7);
  flex: none;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.18; }
.logo-name { font-family: 'Shippori Mincho', serif; font-weight: 700; font-size: 18px; letter-spacing: .04em; color: var(--c-ink); }
.logo-en { font-size: 10px; letter-spacing: .38em; color: var(--c-primary-deep); font-weight: 600; }

.main-nav { display: none; align-items: center; gap: 28px; }
.nav-link {
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  color: var(--c-text-muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 6px 0;
  transition: color .3s;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--c-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-link:hover { color: var(--c-primary-deep); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--c-primary-deep); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  margin: 0 auto;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav a {
  text-decoration: none;
  color: var(--c-ink);
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  padding: 14px 24px;
  letter-spacing: .04em;
}
.mobile-nav .btn-line { margin-top: 18px; }
@media (min-width: 1024px) { .mobile-nav { display: none; } }

/* =========================================================
   Section frame
   ========================================================= */
.section { padding: 80px 0; background: var(--c-paper); }
.section.alt { background: var(--c-bg); }
@media (min-width: 768px) { .section { padding: 112px 0; } }
@media (min-width: 1024px) { .section { padding: 120px 0; } }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head--left { text-align: left; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .32em;
  color: var(--c-primary-deep);
  font-weight: 700;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--c-primary); }
.eyebrow--center::after { content: ""; width: 32px; height: 1px; background: var(--c-primary); }
.eyebrow--solo::before { display: none; }

.section-title {
  font-size: 30px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--c-ink);
}
.section-lead {
  margin-top: 18px;
  font-size: 15px;
  line-height: 2;
  color: var(--c-text-muted);
}
@media (min-width: 768px) {
  .section-title { font-size: 38px; }
  .section-head { margin-bottom: 56px; }
}
@media (min-width: 1024px) { .section-title { font-size: 42px; } }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 72px;
  background: radial-gradient(120% 130% at 80% 0%, var(--c-panel) 0%, var(--c-bg) 56%, #ffffff 100%);
  overflow: hidden;
}
@media (min-width: 1024px) { .hero { padding: calc(var(--header-h) + 86px) 0 100px; } }

.hero-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-blob--1 {
  top: -80px; right: -60px; width: 460px; height: 460px;
  background: radial-gradient(circle at 35% 35%, rgba(var(--c-primary-rgb), 0.28), rgba(var(--c-primary-rgb), 0.05) 70%);
  animation: floatA 11s ease-in-out infinite;
}
.hero-blob--2 {
  top: 120px; left: -90px; width: 280px; height: 280px;
  background: radial-gradient(circle at 40% 40%, rgba(var(--c-primary-rgb), 0.20), transparent 72%);
}
.hero-blob--ring {
  bottom: 40px; left: 42%; width: 130px; height: 130px;
  border: 1px solid var(--c-border);
  background: transparent;
  animation: floatC 9s ease-in-out infinite;
}
.hero-dot {
  position: absolute; top: 70px; right: 36%;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--c-primary);
  animation: floatB 7s ease-in-out infinite;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
}

.hero-title {
  font-size: 38px;
  line-height: 1.42;
  letter-spacing: .02em;
  color: var(--c-ink);
  margin: 24px 0;
}
.hero-title em { font-style: normal; color: var(--c-primary-deep); }
@media (min-width: 768px) { .hero-title { font-size: 54px; } }
@media (min-width: 1024px) { .hero-title { font-size: 64px; } }

.hero-lead { font-size: 16px; line-height: 2.1; color: var(--c-text); max-width: 480px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.hero-visual { position: relative; }
.hero-visual__bg {
  position: absolute;
  inset: -16px -16px 20px 20px;
  border-radius: 32px;
  background: linear-gradient(140deg, rgba(var(--c-primary-rgb), 0.30), rgba(var(--c-panel-rgb), 1));
  z-index: 0;
}
.hero-img-frame {
  position: relative;
  z-index: 1;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 40px 70px -34px rgba(var(--c-ink-rgb), 0.5);
  background: var(--c-paper);
}
.hero-badge {
  position: absolute;
  left: -22px; bottom: 38px;
  z-index: 2;
  background: var(--c-paper);
  border-radius: 18px;
  padding: 16px 22px;
  box-shadow: 0 22px 44px -20px rgba(var(--c-ink-rgb), 0.45);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: bob 5s ease-in-out infinite;
}
.hero-badge__num { font-family: 'Shippori Mincho', serif; font-size: 38px; font-weight: 700; color: var(--c-primary-deep); line-height: 1; }
.hero-badge__label { font-size: 13px; line-height: 1.5; color: var(--c-text-muted); font-weight: 500; }
@media (max-width: 767px) { .hero-badge { left: 12px; bottom: 12px; padding: 12px 16px; } .hero-badge__num { font-size: 30px; } }

/* Stats strip */
.stats { position: relative; margin-top: 56px; }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--c-paper);
  border: 1px solid var(--c-border-soft);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 26px 50px -34px rgba(var(--c-ink-rgb), 0.35);
}
.stat { padding: 24px 22px; border-bottom: 1px solid var(--c-border-soft); }
.stat:nth-child(odd) { border-right: 1px solid var(--c-border-soft); }
.stat-num { font-family: 'Shippori Mincho', serif; font-size: 28px; font-weight: 700; color: var(--c-ink); }
.stat-num small { font-size: 18px; }
.stat-label { font-size: 13px; color: var(--c-text-faint); margin-top: 6px; letter-spacing: .04em; }
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: none; padding: 30px 28px; }
  .stat:nth-child(odd) { border-right: 1px solid var(--c-border-soft); }
  .stat:not(:last-child) { border-right: 1px solid var(--c-border-soft); }
  .stat-num { font-size: 32px; }
}
@media (min-width: 1024px) { .stat-num { font-size: 34px; } }

/* =========================================================
   Message / ごあいさつ
   ========================================================= */
.message-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
@media (min-width: 1024px) { .message-grid { grid-template-columns: 0.86fr 1.14fr; gap: 72px; } }

.message-visual { position: relative; }
.message-visual__line {
  position: absolute;
  top: 22px; left: -22px;
  width: 100%; height: 100%;
  border: 1px solid var(--c-border);
  border-radius: 22px;
  z-index: 0;
}
.message-visual__frame {
  position: relative; z-index: 1;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 34px 60px -34px rgba(var(--c-ink-rgb), 0.45);
}
.message-title { font-size: 28px; line-height: 1.55; margin: 22px 0 26px; }
@media (min-width: 768px) { .message-title { font-size: 36px; } }
@media (min-width: 1024px) { .message-title { font-size: 40px; } }
.message-body p { margin-bottom: 20px; line-height: 2.1; }
.message-body p:last-child { margin-bottom: 0; }
.director-sign { margin-top: 28px; display: flex; align-items: baseline; gap: 14px; }
.director-sign__role { font-size: 13px; color: var(--c-text-faint); letter-spacing: .1em; }
.director-sign__name { font-family: 'Shippori Mincho', serif; font-size: 24px; font-weight: 600; color: var(--c-ink); }

/* =========================================================
   Appeal points
   ========================================================= */
.appeal-grid {
  counter-reset: appeal;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 72px;
}
@media (min-width: 768px) { .appeal-grid { grid-template-columns: repeat(3, 1fr); } }

.appeal-card {
  counter-increment: appeal;
  background: linear-gradient(160deg, var(--c-bg), var(--c-panel));
  border: 1px solid var(--c-border-soft);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.appeal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.appeal-num { font-family: 'Shippori Mincho', serif; font-size: 30px; color: var(--c-primary); font-weight: 700; margin-bottom: 14px; }
.appeal-num::before { content: counter(appeal, decimal-leading-zero); }
.appeal-card h3 { font-size: 19px; margin-bottom: 12px; }
.appeal-card p { font-size: 14.5px; line-height: 1.95; color: var(--c-text-muted); }

/* =========================================================
   Work style
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 600px) { .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.media-card {
  background: var(--c-paper);
  border: 1px solid var(--c-border-soft);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  height: 100%;
}
.media-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card-hover); }
.media-card__imgwrap { overflow: hidden; }
.media-card__imgwrap .ph,
.media-card__imgwrap .thumb,
.media-card__imgwrap .editable-img { transition: transform .7s var(--ease); }
.media-card:hover .media-card__imgwrap .ph,
.media-card:hover .media-card__imgwrap .thumb,
.media-card:hover .media-card__imgwrap .editable-img { transform: scale(1.06); }
.media-card__body { padding: 24px 22px 28px; }
.tag-en { font-size: 11px; letter-spacing: .2em; color: var(--c-primary); font-weight: 700; margin-bottom: 10px; }
.media-card__body h3 { font-size: 18px; line-height: 1.5; margin-bottom: 12px; }
.media-card__body p { font-size: 14px; line-height: 1.9; color: var(--c-text-muted); }

/* =========================================================
   Staff voice
   ========================================================= */
.staff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
@media (min-width: 640px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .staff-grid { grid-template-columns: repeat(3, 1fr); } }

.staff-card {
  border: 1px solid var(--c-border-soft);
  border-radius: 24px;
  overflow: hidden;
  background: var(--c-paper);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  height: 100%;
}
.staff-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card-hover); }
.staff-card__imgwrap { overflow: hidden; }
.staff-card__imgwrap .ph,
.staff-card__imgwrap .thumb,
.staff-card__imgwrap .editable-img { transition: transform .8s var(--ease); }
.staff-card:hover .staff-card__imgwrap .ph,
.staff-card:hover .staff-card__imgwrap .thumb,
.staff-card:hover .staff-card__imgwrap .editable-img { transform: scale(1.05); }
.staff-card__body { padding: 26px 24px 28px; }
.staff-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.badge {
  font-size: 12px; font-weight: 700; color: #fff;
  background: var(--c-primary);
  padding: 5px 12px; border-radius: 999px;
  letter-spacing: .04em; white-space: nowrap;
}
.staff-meta__years { font-size: 13px; color: var(--c-text-faint); }
.staff-quote { font-family: 'Shippori Mincho', serif; font-size: 18px; line-height: 1.7; color: var(--c-ink); margin-bottom: 16px; }
.staff-text { font-size: 14px; line-height: 1.95; color: var(--c-text-muted); }

.atm-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) { .atm-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.atm-grid > div { border-radius: 20px; overflow: hidden; }

/* =========================================================
   Job types
   ========================================================= */
.jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .jobs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .jobs-grid { grid-template-columns: repeat(3, 1fr); } }

.job-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--c-paper);
  border: 1px solid var(--c-border-soft);
  border-radius: 24px;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  height: 100%;
}
.job-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card-hover); }
.job-card__imgwrap { overflow: hidden; }
.job-card__imgwrap .ph,
.job-card__imgwrap .thumb,
.job-card__imgwrap .editable-img { transition: transform .8s var(--ease); }
.job-card:hover .job-card__imgwrap .ph,
.job-card:hover .job-card__imgwrap .thumb,
.job-card:hover .job-card__imgwrap .editable-img { transform: scale(1.06); }
.job-card__body { padding: 28px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.job-card h3 { font-family: 'Shippori Mincho', serif; font-size: 24px; margin-bottom: 14px; }
.job-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { font-size: 12px; color: var(--c-primary-deep); background: var(--c-panel); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.job-card p { font-size: 14px; line-height: 1.95; color: var(--c-text-muted); margin-bottom: 18px; }
.job-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--c-primary-deep); }

/* =========================================================
   Requirements / 募集要項
   ========================================================= */
.req-list { display: flex; flex-direction: column; gap: 28px; max-width: 1040px; margin: 0 auto; }
.req-card {
  border: 1px solid var(--c-border-soft);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 56px -42px rgba(var(--c-ink-rgb), 0.4);
  background: var(--c-paper);
}
.req-card__head {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-deep));
  color: #fff;
  padding: 24px 30px;
}
.req-card__en { font-size: 11px; letter-spacing: .24em; opacity: .85; margin-bottom: 6px; font-family: 'Zen Kaku Gothic New', sans-serif; }
.req-card__title { font-family: 'Shippori Mincho', serif; font-size: 24px; font-weight: 700; }
.req-table { width: 100%; border-collapse: collapse; }
.req-table th, .req-table td {
  text-align: left;
  vertical-align: top;
  padding: 18px 22px;
  border-bottom: 1px solid var(--c-border-soft);
  font-size: 15px;
  line-height: 1.9;
}
.req-table th {
  width: 30%;
  min-width: 120px;
  background: var(--c-bg);
  font-weight: 700;
  color: var(--c-ink);
  font-family: 'Zen Kaku Gothic New', sans-serif;
}
.req-table td { color: var(--c-text); }
.req-table tr:last-child th, .req-table tr:last-child td { border-bottom: none; }
@media (min-width: 768px) {
  .req-table th, .req-table td { padding: 22px 28px; }
  .req-table th { width: 220px; }
}

/* =========================================================
   Entry / 応募窓口
   ========================================================= */
.entry {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--c-panel), rgba(var(--c-primary-rgb), 0.22));
  text-align: center;
  padding: 80px 0;
}
@media (min-width: 768px) { .entry { padding: 112px 0; } }
@media (min-width: 1024px) { .entry { padding: 120px 0; } }
.entry-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.entry-blob--1 { top: -60px; left: -40px; width: 280px; height: 280px; background: radial-gradient(circle at 40% 40%, #fff, transparent 70%); opacity: .6; animation: floatA 12s ease-in-out infinite; }
.entry-blob--2 { bottom: -80px; right: -30px; width: 340px; height: 340px; background: radial-gradient(circle at 40% 40%, #fff, transparent 70%); opacity: .5; animation: floatB 14s ease-in-out infinite; }
.entry-inner { position: relative; }
.entry-title { font-size: 30px; line-height: 1.5; margin: 0 0 16px; }
@media (min-width: 768px) { .entry-title { font-size: 42px; } }
.entry-lead { font-size: 16px; line-height: 2; color: var(--c-text); margin-bottom: 40px; }

.entry-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto 44px;
}
@media (min-width: 768px) { .entry-steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  counter-increment: step;
  background: var(--c-paper);
  border-radius: 18px;
  padding: 24px 18px;
  box-shadow: 0 20px 40px -30px rgba(var(--c-ink-rgb), 0.4);
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-panel);
  color: var(--c-primary-deep);
  font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}
.step-num::before { content: counter(step); }
.step h3 { font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 15px; font-weight: 700; color: var(--c-ink); }
.step p { font-size: 12.5px; color: var(--c-text-faint); margin-top: 6px; line-height: 1.7; }
.entry-note { margin-top: 20px; font-size: 13px; color: var(--c-text-faint); }
.entry-note a { color: var(--c-primary-deep); text-decoration: none; font-weight: 700; white-space: nowrap; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--c-ink); color: rgba(255, 255, 255, 0.78); padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand__name { font-family: 'Shippori Mincho', serif; font-weight: 700; font-size: 20px; color: #fff; }
.footer-brand address { font-style: normal; font-size: 14px; line-height: 2; color: rgba(255, 255, 255, 0.62); }
.footer-col__title { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: .1em; margin-bottom: 16px; font-family: 'Zen Kaku Gothic New', sans-serif; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.62); text-decoration: none; font-size: 14px; transition: color .3s; }
.footer-links a:hover { color: #fff; }

.hours-table { width: 100%; border-collapse: collapse; font-size: 13px; color: rgba(255, 255, 255, 0.66); }
.hours-table th, .hours-table td { padding: 8px 4px; font-weight: 500; }
.hours-table thead th { border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-weight: 500; white-space: nowrap; }
.hours-table tbody th { text-align: left; white-space: nowrap; }
.hours-table tbody td { text-align: center; }
.hours-table .off { color: rgba(255, 255, 255, 0.3); }
.hours-note { margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, 0.45); }

.footer-bottom { padding-top: 24px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.45); letter-spacing: .06em; }

/* =========================================================
   Floating LINE
   ========================================================= */
.float-line {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: var(--c-line);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 14px 30px -8px rgba(var(--c-line-rgb), 0.6);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  animation: bob 4.5s ease-in-out infinite;
}
.float-line:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 20px 38px -8px rgba(var(--c-line-rgb), 0.7); }
.float-line__mark { width: 24px; height: 24px; border-radius: 7px; background: #fff; color: var(--c-line); font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; letter-spacing: -.03em; }
@media (max-width: 767px) { .float-line span:not(.float-line__mark) { display: none; } .float-line { padding: 14px; } }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: .08s; }
.reveal--d2 { transition-delay: .16s; }
.reveal--d3 { transition-delay: .24s; }
.reveal--d4 { transition-delay: .32s; }

@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(22px); } }
@keyframes floatC { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(10px, -16px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-blob, .hero-dot, .hero-badge, .entry-blob, .float-line { animation: none; }
  * { transition-duration: .001ms !important; }
}
