@charset "UTF-8";

/* ============================================================
   Mitchy ヒューマンリソースサービス
   スタイルシート

   編集するときのめやす
   1. 色を変えたい      → すぐ下の「色の設定」
   2. 文字を変えたい    → index.html の方を編集
   3. 余白を変えたい    → 各セクションの padding
   ============================================================ */

/* 日本語を文節の切れ目で改行する。Chrome以外では無視されるだけなので安全 */
body { word-break: auto-phrase; }

/* ------------------------------------------------------------
   色の設定（ここだけ変えればページ全体の色が変わります）
   ------------------------------------------------------------ */
:root {
  --navy: #14294b;        /* 基本の紺 */
  --navy-deep: #0d1c35;   /* 濃い紺（フッターなど） */
  --navy-light: #2a4a80;  /* 明るい紺（リンクやアイコン） */
  --accent: #c8952f;      /* 差し色の金茶（ボタンの下線など） */
  --text: #23303f;        /* 本文の文字色 */
  --text-muted: #5b6b7d;  /* 補足の文字色 */
  --bg: #ffffff;          /* 背景の白 */
  --bg-tint: #f3f6fa;     /* うすい背景色 */
  --border: #dde4ed;      /* 枠線の色 */

  --radius: 10px;                        /* 角丸の大きさ */
  --shadow: 0 2px 16px rgba(20, 41, 75, .08); /* 影 */
  --header-h: 68px;                      /* ヘッダーの高さ */
}

/* ------------------------------------------------------------
   全体の土台
   ------------------------------------------------------------ */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h); /* メニューで見出しが隠れないようにする */
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--navy-light); }

/* キーボード操作の人にも今どこを触っているか分かるようにする */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* 中身の横幅をそろえる箱 */
.container {
  width: min(100% - 40px, 1080px);
  margin-inline: auto;
}
.container--narrow { width: min(100% - 40px, 760px); }

/* ------------------------------------------------------------
   ヘッダーとメニュー
   ------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__logo {
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.3;
}
.header__logo-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--text-muted);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list a {
  font-size: 14px;
  color: var(--navy);
  text-decoration: none;
}
.nav__list a:hover { color: var(--navy-light); }

.nav__cta {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff !important;
  font-weight: 700;
}
.nav__cta:hover { background: var(--navy-light); }

/* スマートフォン用の開閉ボタン。パソコンでは隠す */
.header__toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  color: var(--navy);
  cursor: pointer;
}
.header__toggle .icon--close { display: none; }
.header__toggle[aria-expanded="true"] .icon--menu { display: none; }
.header__toggle[aria-expanded="true"] .icon--close { display: block; }

/* ------------------------------------------------------------
   セクション共通
   ------------------------------------------------------------ */
.section { padding: 80px 0; }
.section--tint { background: var(--bg-tint); }

.section__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--navy-light);
}

.section__title {
  margin: 0 0 20px;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.55;
  color: var(--navy);
}

.section__lead {
  margin: 0 0 36px;
  max-width: 46em;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   セクション1：ファーストビュー
   ------------------------------------------------------------ */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 写真の縦横比が違っても崩れないようにする */
  opacity: .28;
}

.hero__inner {
  position: relative; /* 写真より前に文字を出す */
  padding: 96px 0 88px;
}

.hero__eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: .08em;
  color: #d7e2f2;
}

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(26px, 4.6vw, 42px);
  line-height: 1.5;
  letter-spacing: .01em;
}

.hero__lead {
  margin: 0 0 32px;
  max-width: 40em;
  color: #e3eaf5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ------------------------------------------------------------
   ボタン
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--accent);
  color: #2a1f08;
  box-shadow: var(--shadow);
}
.btn--primary:hover { background: #d9a640; }

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, .6);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.btn--large { padding: 18px 40px; font-size: 17px; }

.btn__icon { width: 20px; height: 20px; flex: none; }

/* ------------------------------------------------------------
   カード（お悩み・選ばれる理由）
   ------------------------------------------------------------ */
.cards {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--bg-tint);
  color: var(--navy-light);
}
.section--tint .card__icon { background: #eaf0f8; }
.card__icon svg { width: 24px; height: 24px; }

.card__title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
}

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

/* ------------------------------------------------------------
   セクション3：サービス内容
   ------------------------------------------------------------ */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

.service__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service__body { padding: 28px 26px 32px; }

.service__title {
  margin: 0 0 12px;
  font-size: 21px;
  color: var(--navy);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.service__body p {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--text-muted);
}

/* チェック付きの箇条書き */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 15px;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------
   写真と説明文
   ------------------------------------------------------------ */
.figure {
  margin: 44px 0 0;
}
.figure img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
}
.figure__caption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

/* ------------------------------------------------------------
   セクション5：よくある質問
   ------------------------------------------------------------ */
.faq {
  border-top: 1px solid var(--border);
}

.faq__item { border-bottom: 1px solid var(--border); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}
.faq__q:hover { color: var(--navy-light); }

.faq__mark {
  width: 20px;
  height: 20px;
  flex: none;
  transition: transform .25s;
}
.faq__q[aria-expanded="true"] .faq__mark { transform: rotate(45deg); }

/* 答えの部分。開くまでは高さ0で隠しておく */
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq__a p {
  margin: 0;
  padding: 0 4px 22px;
  font-size: 15px;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   お問い合わせ
   ------------------------------------------------------------ */
.cta {
  background: var(--navy);
  color: #fff;
  padding: 76px 0;
}
.cta__inner { text-align: center; }

.cta__title {
  margin: 0 0 16px;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.6;
}
.cta__text {
  margin: 0 0 32px;
  color: #dde5f1;
}

.cta__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: #d7e2f2;
}
.cta__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta__meta svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------
   フッター
   ------------------------------------------------------------ */
.footer {
  background: var(--navy-deep);
  color: #c7d3e4;
  padding: 40px 0;
}
.footer__name {
  margin: 0 0 6px;
  font-weight: 700;
  color: #fff;
}
.footer__text { margin: 0 0 16px; font-size: 14px; }
.footer__copy { margin: 0; font-size: 13px; color: #8fa2bb; }

/* ------------------------------------------------------------
   タブレット向け（横幅900px以下）
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   スマートフォン向け（横幅768px以下）
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .header__toggle { display: inline-flex; }

  /* メニューは普段隠しておき、ボタンで開く */
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.is-open { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
  }
  .nav__list li { border-top: 1px solid var(--border); }
  .nav__list a {
    display: block;
    padding: 14px 4px;
    font-size: 15px;
  }
  .nav__cta {
    margin-top: 12px;
    text-align: center;
    border-radius: 999px;
  }

  .section { padding: 56px 0; }
  .hero__inner { padding: 64px 0 60px; }
  .cards--3 { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions { flex-direction: column; }
}

/* 動きを減らす設定にしている人には、アニメーションを控える */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
