/* ============================================================
   PSW Global Styles — ヘッダー・ナビ・スマホCTAバー
   ============================================================ */

/* ━━━ ヘッダー ━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.psw-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(14, 22, 40, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
  transition: background .3s, box-shadow .3s;
}
.psw-header.is-scrolled {
  background: rgba(10, 16, 28, 0.98);
  box-shadow: 0 2px 32px rgba(0,0,0,.5);
}

/* ロゴ */
.psw-header__logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.psw-header__logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}
.psw-header__logo-text {
  font-family: 'Shippori Mincho', serif;
  font-size: .82rem;
  font-weight: 700;
  color: #c9b07a;
  letter-spacing: .06em;
  line-height: 1.4;
  white-space: nowrap;
}

/* PCナビ */
.psw-header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0; padding: 0;
}
.psw-header__nav-list li a {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 16px;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  white-space: nowrap;
  transition: color .2s, background .2s;
  position: relative;
}
.psw-header__nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: #c9b07a;
  border-radius: 1px 1px 0 0;
  transform: scaleX(0);
  transition: transform .22s;
}
.psw-header__nav-list li a:hover,
.psw-header__nav-list li a.is-active {
  color: #fff;
  background: rgba(255,255,255,.06);
}
.psw-header__nav-list li a:hover::after,
.psw-header__nav-list li a.is-active::after {
  transform: scaleX(1);
}

/* ヘッダー内CTAボタン */
.psw-header__cta-btn {
  background: #c9b07a !important;
  color: #0e1628 !important;
  padding: 8px 20px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  height: auto !important;
  margin-left: 8px;
}
.psw-header__cta-btn::after { display: none !important; }
.psw-header__cta-btn:hover {
  background: #e0cc9a !important;
  color: #0e1628 !important;
}

/* ハンバーガー（スマホのみ表示） */
.psw-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.psw-header__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.psw-header__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.psw-header__hamburger.is-open span:nth-child(2) { opacity: 0; }
.psw-header__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ━━━ ドロワーメニュー ━━━━━━━━━━━━━━━━━━━━ */
.psw-drawer {
  position: fixed;
  top: 64px; right: 0;
  width: min(320px, 85vw);
  height: calc(100vh - 64px);
  background: #0e1628;
  z-index: 8900;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  padding: 24px 0 120px;
  box-shadow: -4px 0 32px rgba(0,0,0,.4);
}
.psw-drawer.is-open {
  transform: translateX(0);
}
.psw-drawer__list {
  list-style: none;
  padding: 0; margin: 0;
}
.psw-drawer__list li a {
  display: block;
  padding: 16px 28px;
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .2s, color .2s;
}
.psw-drawer__list li a:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}
.psw-drawer__cta {
  margin: 20px 28px 0 !important;
  display: block !important;
  text-align: center;
  background: #c9b07a !important;
  color: #0e1628 !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  padding: 14px 24px !important;
  border-bottom: none !important;
}

.psw-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 8800;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.psw-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ━━━ スマホ固定フッターCTAバー ━━━━━━━━━━━━━━ */
.psw-mobile-bar {
  display: none; /* スマホのみ表示 */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 8500;
  height: 60px;
  background: #0e1628;
  border-top: 1px solid rgba(201,176,122,.25);
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
}
.psw-mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 50%;
  height: 100%;
  font-size: .7rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.psw-mobile-bar a span:first-child { font-size: 1.1rem; }
.psw-mobile-bar__tel {
  float: left;
  color: rgba(255,255,255,.85) !important;
  border-right: 1px solid rgba(255,255,255,.1);
}
.psw-mobile-bar__tel:hover { background: rgba(255,255,255,.07); }
.psw-mobile-bar__contact {
  float: right;
  background: #c9b07a !important;
  color: #0e1628 !important;
}
.psw-mobile-bar__contact:hover { background: #dbc48c !important; }

/* ━━━ body上部余白（ヘッダー分） ━━━━━━━━━━━━━ */
body {
  padding-top: 64px;
}

/* フロントページはヒーローがヘッダー下まで伸びるので余白なし */
.home body,
body.home {
  padding-top: 0;
}
/* front-page.phpの場合もヘッダー分除去 */
.psw-hero {
  margin-top: -64px;
  padding-top: 64px;
}

/* ━━━ ページ共通レイアウト ━━━━━━━━━━━━━━━━ */
/* サービスページ・企業情報ページ共通のヒーロー */
.psw-page-hero {
  padding: 80px 40px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.psw-page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.psw-page-hero h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}
.psw-page-hero .psw-lead {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 2.4rem;
}

/* 夜泣きページ：ダーク */
.psw-page-hero--night {
  background: linear-gradient(160deg, #0e1628 0%, #1a2340 55%, #232f52 100%);
  color: #fff;
}
.psw-page-hero--night .psw-lead { color: rgba(255,255,255,.8); }
.psw-page-hero--night::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(201,176,122,.07) 0%, transparent 70%);
}

/* リスニングページ：ライトブルー */
.psw-page-hero--listen {
  background: linear-gradient(135deg, #dff0f8 0%, #eaf5fb 50%, #d2eaf5 100%);
  color: #1a2340;
}
.psw-page-hero--listen .psw-lead { color: #5a5a5a; }

/* がん支援ページ：グリーン */
.psw-page-hero--cancer {
  background: linear-gradient(135deg, #d8ead9 0%, #eaf3eb 50%, #d2e8d3 100%);
  color: #1a2340;
}
.psw-page-hero--cancer .psw-lead { color: #5a5a5a; }

/* 企業情報ページ：ソフト */
.psw-page-hero--company {
  background: linear-gradient(160deg, #1a2340 0%, #2d3e6a 60%, #7a8fb0 100%);
  color: #fff;
}
.psw-page-hero--company .psw-lead { color: rgba(255,255,255,.8); }

/* ページ内セクション */
.psw-page-section {
  padding: 72px 0;
}
.psw-page-section--alt {
  background: #f7f4ef;
}
.psw-page-section--white {
  background: #ffffff;
}
.psw-page-section--dark {
  background: #1a2340;
}
.psw-page-section--night {
  background: #0e1628;
}
.psw-page-section--listen {
  background: #eaf5fb;
}
.psw-page-section--cancer {
  background: #eaf3eb;
}

/* ステップ */
.psw-steps { display: flex; flex-direction: column; gap: 0; max-width: 720px; margin: 2rem auto 0; }
.psw-step {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 28px 0; border-bottom: 1px solid #e0dbd2;
}
.psw-step:last-child { border-bottom: none; }
.psw-step__num {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.psw-step__body h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.psw-step__body p  { font-size: .88rem; color: #5a5a5a; line-height: 1.8; margin: 0; }

/* FAQ */
.psw-faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 2rem auto 0; }
.psw-faq-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  border: 1px solid #e0dbd2;
}
.psw-faq-q {
  padding: 18px 24px;
  font-weight: 700; font-size: .95rem;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .2s;
  list-style: none;
}
.psw-faq-q:hover { background: #faf8f5; }
.psw-faq-toggle { font-size: .7rem; flex-shrink: 0; transition: transform .25s; margin-left: 12px; }
.psw-faq-q.is-open .psw-faq-toggle { transform: rotate(180deg); }
.psw-faq-a {
  padding: 0 24px;
  max-height: 0; overflow: hidden;
  font-size: .9rem; color: #5a5a5a; line-height: 1.85;
  transition: max-height .3s ease, padding .3s ease;
}
.psw-faq-a.is-open { max-height: 400px; padding: 0 24px 20px; }

/* プロフィールカード */
.psw-profile {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  align-items: start;
  background: #fff;
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  border: 1px solid #e0dbd2;
  max-width: 860px;
  margin: 2rem auto 0;
}
@media (max-width: 600px) { .psw-profile { grid-template-columns: 1fr; } }
.psw-profile__avatar {
  width: 100px; height: 100px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
}
.psw-profile h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.psw-profile p  { font-size: .9rem; color: #5a5a5a; line-height: 1.85; margin: 0; }

/* お知らせボックス */
.psw-notice {
  border-radius: 14px;
  padding: 28px 32px;
  border-left: 5px solid;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  max-width: 760px;
  margin: 2rem auto 0;
}
.psw-notice h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.psw-notice p  { font-size: .9rem; line-height: 1.85; margin: 0; }

/* 企業情報テーブル */
.psw-company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  max-width: 680px;
  margin: 2rem auto 0;
}
.psw-company-table th,
.psw-company-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #e0dbd2;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}
.psw-company-table th {
  width: 160px;
  font-weight: 700;
  color: #5a5a5a;
  background: #f7f4ef;
  white-space: nowrap;
}
.psw-company-table tr:last-child th,
.psw-company-table tr:last-child td { border-bottom: none; }

/* マップ */
.psw-map-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  border: 1px solid #e0dbd2;
  max-width: 840px;
  margin: 2rem auto 0;
}
.psw-map-wrap iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

/* ━━━ レスポンシブ ━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 860px) {
  .psw-header__nav { display: none; }
  .psw-header__hamburger { display: flex; }
  .psw-mobile-bar { display: flex; }
  body { padding-bottom: 60px; } /* スマホCTAバー分の余白 */
  .psw-header { padding: 0 20px; }
  .psw-page-hero { padding: 60px 20px 56px; }
  .psw-page-section { padding: 56px 0; }
}
