/* =========================================================
   custom.css — Wraptas卒業後のカスタム上書き（v2 デザイン強化）
   Wraptas生成CSSは編集せず、ここで上書き・装飾する。
   基調色：コーラルピンク #F18E93（サイトのテーマ色）
   ========================================================= */
:root {
  --c-accent: #f18e93;
  --c-accent-deep: #e0727b;
  --c-ink: rgb(55, 53, 47);
  --c-soft: #fff6f3;
  --c-soft2: #fffaf2;
}

/* 横はみ出し防止（モバイルでビューポートが膨張するのを抑止。stickyを壊さないclip） */
html, body { overflow-x: clip; max-width: 100%; }
.notion-asset-wrapper { min-width: 0 !important; max-width: 100% !important; }

/* =======================================================
   0. 不要要素を隠す（採用サイトに不適切/空ブロック）
   ======================================================= */
.pageDatetime { display: none !important; }            /* 作成日・更新日 */
.notion-asset-wrapper-video:empty { display: none !important; } /* 空の動画埋め込み(巨大な空白の主因) */
.notion-blank { min-height: 0 !important; height: auto !important; }
.notion-text:empty { display: none; }
.notion-hash-link { display: none !important; }         /* 見出し横の鎖アイコン */
.notion-hr { display: none !important; }                /* 見出し下の横線（アクセントバーに統一） */

/* =======================================================
   1. 余白の引き締め（間延び解消）
   ======================================================= */
.separatedSection {
  padding-top: clamp(44px, 5vw, 80px) !important;
  padding-bottom: clamp(44px, 5vw, 80px) !important;
}
.titleSection { padding-top: 28px !important; padding-bottom: 8px !important; }

/* =======================================================
   2. 画像：幅を収める＋角丸＋ソフトシャドウ＋ホバーズーム
   ======================================================= */
.notion-asset-wrapper { max-width: 100%; margin-left: auto; margin-right: auto; }
.notion-asset-wrapper img,
.notion-image img,
img.notion-image-inset { max-width: 100%; height: auto; }
.notion-asset-wrapper-image img,
.notion-asset-wrapper-embed img {
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.10);
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1), box-shadow 0.6s;
  will-change: transform;
}
.notion-asset-wrapper-image:hover img {
  transform: scale(1.02);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
}

/* =======================================================
   3. ファーストビュー（ロゴ＋キャッチコピー）
   ======================================================= */
#section-first { padding-top: 8px !important; }
#section-first .separatedSection__contentsWrapper,
#section-first .notion-text { text-align: center; }
#section-first .notion-text {
  font-size: clamp(1.05rem, 0.95rem + 0.7vw, 1.55rem);
  line-height: 2.05;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-ink);
}
#section-first .notion-text em { font-style: normal; }

/* =======================================================
   4. 見出し（h1 / h2）— 中央寄せ＋アクセントバー
   ======================================================= */
.notion-h1, .notion-h2 { justify-content: center; text-align: center; }
.notion-h1 > span, .notion-h2 > span { font-weight: 800; letter-spacing: 0.05em; }
.notion-h1 {
  position: relative;
  padding-bottom: 0.5em;
  margin-top: 0.2em;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
}
.notion-h1::after {
  content: "";
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 60px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-deep));
}
/* カルチャー（自分らしさ／挑戦／チーム）の中央寄せ */
#section-block-022d9f10d7384dc0a0d2ab8278aa2d44 .notion-h2,
#section-block-022d9f10d7384dc0a0d2ab8278aa2d44 .notion-text { text-align: center; }
#section-block-022d9f10d7384dc0a0d2ab8278aa2d44 .notion-h2 { margin-top: 1.4em; }
#section-block-022d9f10d7384dc0a0d2ab8278aa2d44 .notion-h2 > span { color: var(--c-accent-deep); }
/* カルチャー見出しの色付き下線（青/黄/桃）の幅を狭めて中央に */
#block-d3c0edad60774cde949f76465e09f156,
#block-73c41d229947446d99aa6cf6960ad039,
#block-1b2a5182b9754febb0d54140dd90d2a0 {
  max-width: 540px; margin-left: auto !important; margin-right: auto !important;
}

/* （FV直後〜Selectionの背景色はフィードバックにより削除＝白で統一） */

/* =======================================================
   6. SNSボタン（X / Instagram / Facebook）
   ======================================================= */
/* 3カラムのSNSを中央揃えの整った横並びに（スペーサー無効化・幅auto） */
#block-14d192000e764b258b9715b8dd436007 {
  display: flex !important; justify-content: center !important; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
#block-14d192000e764b258b9715b8dd436007 .notion-column {
  width: auto !important; max-width: none !important; flex: 0 0 auto !important;
}
#block-14d192000e764b258b9715b8dd436007 .notion-spacer { display: none !important; }
#block-14d192000e764b258b9715b8dd436007 .notion-text { display: flex; justify-content: center; margin: 0; }

.social-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; min-width: 152px; justify-content: center;
  border-radius: 999px;
  color: #fff !important; text-decoration: none;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.05em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.social-btn svg { width: 20px; height: 20px; flex: none; }
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2); filter: brightness(1.06); }
.social-btn:active { transform: translateY(-1px); }
.social-x  { background: #000000; }
.social-x span { display: none; }  /* Xはアイコンのみ（文字「X」は非表示） */
/* スマホでSNS（先頭=X）の上に余白 */
@media (max-width: 720px) {
  #block-14d192000e764b258b9715b8dd436007 { margin-top: 36px; }
}
.social-fb { background: #1877f2; }
.social-ig { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 70%, #285aeb 100%); }

/* フッター（コピーライト周り）を少し整える */
footer, .pageFooter, .footer { text-align: center; }

/* =======================================================
   7. ヘッダー：固定＋スクロールで影＆すりガラス
   ======================================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.header--scrolled { box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08); background: rgba(255, 255, 255, 0.95); }

/* --- ヘッダーナビ（横並びメニュー＋応募ボタン） --- */
.header__logoArea { display: none !important; }          /* ロゴはページ下の大ロゴに集約 */
.header__contentsWrapper { justify-content: center !important; padding-top: 26px !important; padding-bottom: 14px !important; }
.header__btns { display: flex !important; align-items: center; gap: clamp(16px, 2vw, 34px); }
.nav-link {
  color: var(--c-ink) !important; font-weight: 700; text-decoration: none;
  font-size: 0.98rem; letter-spacing: 0.02em; position: relative; padding: 6px 2px;
  transition: color 0.2s; white-space: nowrap;
}
.nav-link:hover { color: var(--c-accent-deep) !important; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--c-accent); transition: width 0.25s;
}
.nav-link:hover::after { width: 100%; }
.nav-apply {
  background: #d98a45; color: #fff !important; text-decoration: none;
  padding: 10px 28px; border-radius: 999px; font-weight: 800; letter-spacing: 0.04em;
  white-space: nowrap; transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(217,138,69,.35);
}
.nav-apply:hover { transform: translateY(-2px); background: #c87c38; box-shadow: 0 8px 18px rgba(217,138,69,.45); }
/* 中間幅以下はハンバーガーに切替 */
@media (max-width: 880px) {
  .header__btns { display: none !important; }
  .header__menuOpenBtn { display: flex !important; }
  .header__contentsWrapper { justify-content: flex-end !important; }
}
/* モバイルメニュー内の応募ボタン */
.header__menu .nav-apply-m {
  background: #d98a45; color: #fff !important; border-radius: 999px;
  text-align: center; margin-top: 10px; padding: 11px 0; font-weight: 800;
}
.header__menuBtn { padding: 10px 8px; }
/* ハンバーガーアイコンは常に濃色で表示（白背景でも見えるように） */
.header__menuOpenBtn svg, .header__menuOpenBtn svg rect,
.header__menuCloseBtn svg { fill: var(--c-ink) !important; color: var(--c-ink) !important; }

/* =======================================================
   7.5 カバー画像（上部ロゴ）＆ full-bleed画像 ＆ 復元埋め込み
   ======================================================= */
/* カバーロゴ：30vh×coverで左右が切れ＋170px余白 → 全表示・中央・余白圧縮 */
.coverImage {
  width: 100% !important; max-width: 760px !important; height: auto !important;
  object-fit: contain !important; margin: 24px auto 8px !important;
}
/* full-bleed画像（中段ロゴ等）のはみ出し防止＆中央収め */
.notion-asset-wrapper-full { max-width: 100% !important; }
.notion-asset-wrapper-full > div { width: 100% !important; max-width: 100% !important; }
.notion-asset-wrapper-full img {
  object-fit: contain !important; width: 100% !important; height: auto !important;
  max-width: 760px !important; display: block; margin: 0 auto;
}
/* 復元したiframe埋め込み（SpeakerDeck / Googleマップ） */
.embed-restored { overflow: hidden !important; border-radius: 14px; box-shadow: 0 12px 34px rgba(0,0,0,.10); margin: 10px auto; }
.embed-restored[data-src*="google.com/maps"] { height: 380px !important; margin-bottom: 56px !important; }

/* =======================================================
   7.6 各種クリーンアップ（フィードバック対応）
   ======================================================= */
/* 薄い「Join hitotofrom」見出しテキストは視覚的に隠す（SEO用に残す） */
.titleSection .title {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* 上部の余分な余白を圧縮（カバーロゴ周り） */
.titleSection { padding: 0 !important; background: transparent !important; min-height: 0 !important; }
.coverImage { margin: 8px auto 4px !important; }
main.contents, .contents { padding-top: 8px !important; }
/* 右上メニュー（ヘッダー）上の余白を除去（旧fixed用 .page padding-top:50px の名残） */
.page { padding-top: 0 !important; }
body { padding-top: 0 !important; }

/* Position：各職種ページへのカードリンク */
.pos-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 920px; margin: 12px auto 0;
}
.pos-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 32px 20px; border-radius: 16px; text-decoration: none;
  background: #fff; border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pos-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.12); border-color: var(--c-accent); }
.pos-en { font-size: 1.5rem; font-weight: 800; letter-spacing: .04em; color: var(--c-ink); }
.pos-card--ph .pos-en { color: #e0727b; }
.pos-card--vo .pos-en { color: #e8a13a; }
.pos-card--bo .pos-en { color: #5fa8d8; }
.pos-jp { font-size: .95rem; color: var(--c-ink); margin-top: 4px; }
.pos-tag { font-size: 1.05rem; font-weight: 700; margin-top: 14px; color: var(--c-ink); }
.pos-more { font-size: .85rem; font-weight: 700; color: var(--c-accent-deep); margin-top: 18px; }
.pos-recruit { text-align: center; margin-top: 28px; }
.pos-recruit-btn {
  display: inline-block; padding: 13px 32px; border-radius: 999px;
  background: var(--c-ink); color: #fff !important; text-decoration: none;
  font-weight: 700; letter-spacing: .05em; transition: transform .2s, background .2s;
}
.pos-recruit-btn:hover { transform: translateY(-2px); background: #000; }
@media (max-width: 720px) {
  .pos-grid { grid-template-columns: 1fr; gap: 14px; max-width: 420px; }
  .pos-card { padding: 24px 18px; }
}

/* コピーライトを中央寄せ＋上に余白 */
#block-a857986d9ce04b7f9551385f25f23322 { margin-top: 48px !important; }
#block-a857986d9ce04b7f9551385f25f23322,
#block-a857986d9ce04b7f9551385f25f23322 .notion-gray { text-align: center !important; display: block; }

/* =======================================================
   7.7 自動スライドショー（PDFスライド / Culture deck）
   ======================================================= */
.hf-slideshow {
  position: relative; width: 100%; max-width: 100%; margin: 8px auto 88px;
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px;
  box-shadow: 0 14px 38px rgba(0,0,0,.12); background: #fff;
  user-select: none;
}
.hf-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.65,.05,.36,1); will-change: transform; }
.hf-slide { min-width: 100%; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.hf-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.82); color: var(--c-ink);
  font-size: 26px; line-height: 1; cursor: pointer; z-index: 3;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: background .2s, transform .2s;
  display: flex; align-items: center; justify-content: center;
}
.hf-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.hf-prev { left: 14px; } .hf-next { right: 14px; }
/* 再生/停止ボタンは非表示（フィードバック対応・自動再生のみ） */
.hf-play { display: none !important; }
.hf-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hf-dot { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.15); transition: background .2s, transform .2s; }
.hf-dot.is-active { background: var(--c-accent); transform: scale(1.35); }
@media (max-width: 640px) {
  .hf-nav { width: 36px; height: 36px; font-size: 20px; }
  .hf-prev { left: 8px; } .hf-next { right: 8px; }
}

/* =======================================================
   7.8 フローティング「応募する」ボタン
   ======================================================= */
.hf-apply-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 100;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-deep));
  color: #fff !important; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.06em;
  text-decoration: none; box-shadow: 0 12px 28px rgba(225,114,123,.5);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: hf-fab-in .5s .8s both;
}
.hf-apply-fab::before {
  content: ""; width: 22px; height: 22px; flex: none;
  background: currentColor;
  -webkit-mask: no-repeat center/contain url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M2 21l21-9L2 3v7l15 2-15 2z"/></svg>');
  mask: no-repeat center/contain url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M2 21l21-9L2 3v7l15 2-15 2z"/></svg>');
}
.hf-apply-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 38px rgba(225,114,123,.62); }
@keyframes hf-fab-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .hf-apply-fab { right: 16px; bottom: 16px; width: 72px; height: 72px; font-size: 0.76rem; }
}
/* ボランチ募集中下の画像リンク：ホバーで少し持ち上げ */
.vol-link { display: block; cursor: pointer; }

/* =======================================================
   7.9 まんまるの輪 ピックアップ記事（3カード）
   ======================================================= */
.mm-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 880px; margin: 16px auto 0;
}
.mm-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 14px;
  overflow: hidden; box-shadow: 0 8px 22px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mm-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(0,0,0,.13); }
.mm-thumb {
  display: block; width: 100%; aspect-ratio: 4 / 3;
  background-size: cover; background-position: center; background-color: #f3f3f3;
}
.mm-card:hover .mm-thumb { filter: brightness(1.03); }
.mm-title {
  font-size: .95rem; font-weight: 700; line-height: 1.55; color: var(--c-ink);
  padding: 14px 16px 0; flex-grow: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mm-more { font-size: .8rem; font-weight: 700; color: var(--c-accent-deep); padding: 10px 16px 16px; }
@media (max-width: 720px) {
  .mm-grid { grid-template-columns: 1fr; gap: 14px; max-width: 420px; }
  .mm-thumb { aspect-ratio: 16 / 9; }
}

/* =======================================================
   8. スクロール出現アニメーション（JS有効時のみ）
   ======================================================= */
.js-on .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.js-on .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-on .reveal { opacity: 1 !important; transform: none !important; }
  .notion-asset-wrapper-image:hover img { transform: none; }
}
