:root {
  --bg: #FFFFFF;
  --text: #333333;
  --muted: #F7F7F7;
  --primary: #2BB1A8;
  /* ターコイズブルー */
  --accent: #FFD43B;
  /* サンシャインイエロー */
  --radius: 18px;
  --shadow: 0 8px 18px rgba(0, 0, 0, .05);
  --w: min(1100px, 92vw);
  --menu-btn-w: 7.2em;
  /* モバイルメニューのボタン幅（文言変更でも幅不変） */
}

html{
  scroll-behavior:smooth;
  scroll-padding-top:5rem; /* PC用: ヘッダー分だけ余白（約80px） */
}

@media (max-width:900px){
  html{
    scroll-padding-top:3.2rem; /* モバイル用: ヘッダー高さ50px相当 */
  }
}

/* ===== 基本 ===== */
* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

.container {
  width: var(--w);
  margin-inline: auto
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: .9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: opacity .2s, transform .2s;
  background: #111;
  color: #fff;
  text-decoration: none;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
}

.btn:hover {
  opacity: .92
}

.btn:active {
  transform: translateY(1px)
}

.btn-primary {
  background: var(--primary);
  color: #fff
}

.btn-accent {
  background: var(--accent);
  color: #000
}

.btn-white {
  background: #fff;
  color: #111;
  border: 1px solid #ccc
}

.badge {
  display: inline-block;
  background: var(--accent);
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .8rem;
  color: #000
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 3px solid var(--primary)
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0
}

.brand-text {
  font-weight: 800;
  color: var(--primary);
  text-decoration: none
}

/* デスクトップのナビ */
.primary-nav ul {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center
}

/* 通常リンク（.btn以外）だけにベーススタイルを適用して、.btnの上書きを防ぐ */
.primary-nav ul>li>a:not(.btn) {
  padding: .45rem .7rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none
}

.primary-nav ul>li>a:not(.btn):hover {
  background: var(--muted)
}

/* 右上CTAは .btn をそのまま適用 */
.primary-nav .btn {
  display: inline-block;
  margin-left: .6rem
}

.menu-toggle {
  display: none;
  border: none;
  background: var(--primary);
  color: #fff;
  padding: .6rem .8rem;
  border-radius: 10px;
  font-weight: 700;
  inline-size: var(--menu-btn-w);
  /* ボタン幅固定 */
  text-align: center;
}

/* オーバーレイは「暗くしない」。クリック検知に使う場合でも透明 */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: transparent !important;
  z-index: 40;
  opacity: 1;
  transition: none;
}

.nav-overlay.show {
  opacity: 1
}

/* ===== Hero ===== */
.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #111;
  text-align: center
}

.hero-inner {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 3vw, 36px);
  max-width: 860px;
  margin: 0 auto
}

.hero h1 {
  font-size: 2.2rem;
  margin: .5rem 0;
  color: #0f746b
}

.hero p {
  max-width: 720px;
  margin: .6rem auto 1.2rem
}

.hero-media {
  margin: 1rem auto 0;
  max-width: 900px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow)
}

.cta-row {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  justify-content: center
}

/* ===== Sections ===== */
section {
  padding: 64px 0
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem
}

.section-head h2 {
  color: var(--primary);
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 2rem)
}

.muted {
  color: #555
}

/* ===== Cards / Grid ===== */
.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem
}

.card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow)
}

.card h3 {
  margin: .2rem 0;
  color: #0f746b
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem
}

.stat {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow)
}

.stat b {
  display: block;
  font-size: 1.4rem;
  color: #B68200
}

/* ===== Jobs ===== */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem
}

.job {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow)
}

.job h3 {
  margin: .2rem 0;
  color: #0f746b
}

.job-media {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: .7rem;
  background: #eee
}

.kvs {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: .4rem .8rem;
  margin: .6rem 0
}

.kvs dt {
  font-weight: 700;
  color: #555
}

.kvs dd {
  margin: 0
}

/* 求人カード内のボタンはみ出し防止 */
.job .btn {
  width: 100%
}

/* ===== Voices ===== */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem
}

.voice {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow)
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent)
}

.voice-head {
  display: flex;
  gap: .7rem;
  align-items: center;
  margin-bottom: .3rem
}

/* ===== NEWS ===== */
#news .news-list {
  list-style: none;
  margin: 0;
  padding: 0
}

.news-item {
  border-bottom: 1px solid #eee;
  padding: .6rem 0
}

.news-link {
  display: grid;
  grid-template-columns: auto 100px 1fr;
  gap: .6rem;
  align-items: center;
  text-decoration: none;
  color: inherit
}

.news-thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  display: block
}

.news-date {
  font-size: .9rem;
  color: #666;
  min-width: 100px
}

.news-title {
  font-weight: 700;
  line-height: 1.4
}

.news-empty {
  color: #777
}

/* ===== Enroll ===== */
.info-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem
}

.info-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow)
}

.kvs-enroll {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: .4rem .8rem;
  margin: .6rem 0
}

.kvs-enroll dt {
  font-weight: 600;
  color: #555
}

.kvs-enroll dd {
  margin: 0
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin-top: .6rem
}

.step {
  background: #fff;
  border: 1px dashed #e0e0e0;
  border-radius: 8px;
  padding: .8rem;
  text-align: center
}

.enroll-media {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee
}

.note {
  margin: .7rem 0 0;
  color: #555
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #111;
  text-align: center
}

.cta-actions {
  display: flex;
  gap: .7rem;
  justify-content: center;
  flex-wrap: wrap
}

/* ===== Footer ===== */
.site-footer {
  padding: 28px 0;
  color: #000;
  font-size: .9rem;
  background: #fff;
  text-align: center
}

/* ===== Job Single ===== */
.job-single {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.2rem
}

.job-single h1 {
  color: #0f746b;
  margin-top: 0
}

.job-meta {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: .4rem .8rem;
  margin: 1rem 0
}

.job-meta dt {
  font-weight: 700;
  color: #555
}

.job-meta dd {
  margin: 0
}

.job-cta {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 1rem
}

.job-cta .btn {
  background: var(--primary);
  color: #fff
}

.job-cta .btn-secondary {
  background: #111;
  color: #fff
}

/* ===== Utility ===== */
.only-mobile {
  display: none
}

.only-desktop {
  display: block
}

/* デスクトップでは改行しない */
.mb_rtn {
  display: none;
}

/* ===== Responsive（モバイル） ===== */
@media (max-width:900px) {

  /* ヘッダー高さを約50pxに */
  .site-header {
    height: 3.2rem
  }

  .nav {
    height: 3.2rem;
    padding: 0 .8rem;
  }

  .hero {
    padding: 3.2rem 0
  }

  .hero h1 {
    font-size: clamp(1.4rem, 6vw, 1.9rem)
  }

  .hero p {
    font-size: .95rem
  }

  .container {
    padding: 0 1rem
  }

  /* hero-innerの余白調整 */
  .hero-inner {
    padding: 1.2rem;
    margin: 0 1rem
  }

  .stats,
  .jobs-grid,
  .voice-grid,
  .info-grid,
  .three {
    grid-template-columns: 1fr
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem
  }

  .section-head .btn {
    width: 100%;
    text-align: center
  }

  .steps {
    grid-template-columns: 1fr
  }

  /* モバイルメニュー（スライドダウン・JSでulに.open付与） */
  .primary-nav ul {
    display: block;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 64px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    padding: .6rem;
    overflow: hidden;
    pointer-events: none;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .28s ease, opacity .28s ease, transform .28s ease;
    z-index: 45;
  }

  .primary-nav ul.open {
    pointer-events: auto;
    max-height: 60vh;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-nav a {
    display: block;
    padding: .9rem;
    border-radius: 8px
  }

  .primary-nav .btn {
    width: 100%;
    white-space: normal;
    margin-left: 0
  }

  /* メニューボタンは画面右端から一定の隙間で固定 */
  .menu-toggle {
    display: inline-block;
    position: fixed;
    /* top:calc(env(safe-area-inset-top, 0px) + 10px); */
    right: calc(env(safe-area-inset-right, 0px) + 12px);
    z-index: 60;
  }

  /* 一般ボタン類もはみ出し防止 */
  .btn {
    width: 100%;
    padding: 1rem
  }

  .only-mobile {
    display: block
  }

  .only-desktop {
    display: none
  }

  .job-meta {
    grid-template-columns: 1fr
  }

  /* モバイルのみ改行する */
  .mb_rtn {
    display: block;
  }
}

/* ===== NEWS（モバイル微調整） ===== */
@media (max-width:900px) {
  .news-link {
    grid-template-columns: 100px 1fr
  }

  .news-thumb {
    display: none
  }
}

/* ===== 共通リンクスタイル ===== */
a{
  color:#000;
  text-decoration:none;
  transition:color .2s;
}
a:hover,
a:focus{
  color:#ccc;
  text-decoration:none;
}

/* ===== Archive / Category カード調整 ===== */
@media (max-width:900px){
  .archive .three,
  .category .three{
    grid-template-columns:1fr !important; /* 1列にする */
  }
  .archive .card,
  .category .card{
    aspect-ratio:4/3;   /* 高さを4:3に */
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
  }
  .archive .card img,
  .category .card img{
    aspect-ratio:4/3;
    object-fit:cover;
    width:100%;
    height:auto;
  }
}
