/*
Theme Name: Tanabe Recruit
Description: 田辺薬品 採用サイト（join-tanabe.com からの移行・見た目踏襲）。コンテンツはブロックエディタで編集。
Version: 1.0.0
Author: 田辺薬品株式会社
Text Domain: tanabe-recruit
*/

/* ============ 基本 ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 16px;
  color: #50370D;
  background-color: #F3F3F3;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
[id] { scroll-margin-top: 70px; }

/* 画像ホバー（現行踏襲） */
img:hover { transform: scale(1.02); }
img { transition: transform .25s ease; }

/* ============ ヘッダー ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px 0 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { width: 220px; height: auto; }
.site-header__logo img:hover { transform: none; }
.site-header__nav { display: flex; align-items: center; gap: 34px; }
.site-header__nav a {
  color: #50370D;
  font-size: 16px;
  text-decoration: none;
  font-weight: 700;
}
.site-header__nav a:hover { color: #CA8003; }
.menu-toggle { display: none; }
body { padding-top: 48px; }

/* ============ メイン ============ */
.site-main { padding: 0 16px; }
.site-main > * { margin-left: auto; margin-right: auto; }

/* 全幅（ヒーロー・その先を知るバナー） */
.site-main .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ヒーロー */
.hero-img { margin-top: 0; margin-bottom: 0; }
.hero-img img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-img img:hover { transform: none; }

/* リード文 */
.lead-wrap { margin: 40px 0 0; }
.lead-wrap p { margin: 1.5em 0; line-height: 1.6; }

/* ============ セクション共通 ============ */
section.wp-block-group { margin: 60px 0; }
section.wp-block-group h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}
p.sec-sub { margin: 0 0 24px; font-size: 16px; }

/* カード列（Notionの46pxガター踏襲） */
.wp-block-columns.cards { gap: 46px; margin-bottom: 24px; }
.wp-block-columns.cards .wp-block-image { margin: 0; }
.wp-block-columns.cards img { display: block; width: 100%; }

/* その先を知る 全幅バナー */
.beyond-img { margin-top: 8px; margin-bottom: 8px; }
.beyond-img img { display: block; width: 100%; }
.beyond-img img:hover { transform: none; }

/* ============ ボタン（枠線ピル型） ============ */
.wp-block-buttons { margin: 24px 0; }
.wp-block-button.btn-pill .wp-block-button__link {
  background: transparent;
  color: #50370D;
  border: 1.5px solid #50370D;
  border-radius: 999px;
  padding: 12px 34px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.wp-block-button.btn-pill .wp-block-button__link:hover {
  color: #CA8003;
  border-color: #CA8003;
}

/* ============ Q&A（アコーディオン） ============ */
.wp-block-details {
  border-bottom: 1px solid #ddd;
  padding: 16px 8px;
  margin: 0;
  font-size: 16px;
}
.wp-block-details:first-of-type { border-top: 1px solid #ddd; }
.wp-block-details summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-left: 22px;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::before {
  content: '';
  position: absolute;
  left: 4px; top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent #50370D;
  transition: transform .2s ease;
}
.wp-block-details[open] summary::before {
  transform: translateY(-50%) rotate(90deg);
}
.wp-block-details p { line-height: 1.8; margin: 1em 0 0; }
.wp-block-details a { color: #CA8003; word-break: break-all; }
.qa-line-banner { margin: 16px 0 0; }
.qa-line-banner img { max-width: 576px; display: block; }

/* お知らせアンカー（現行のQ&A下の余白を踏襲） */
#news { margin: 0; padding-bottom: 120px; }

/* ============ フッター ============ */
.site-footer {
  color: #fff;
  background-color: #50370D;
  margin-top: 50px;
  padding: 50px 24px 60px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer__in {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1360px;
  margin: 0 auto;
}
.site-footer__nav { list-style: none; margin: 0; padding: 0; font-size: 14px; flex: 0 0 auto; }
.site-footer__nav li { margin: 0 0 14px; }
.site-footer__nav a:hover { color: #CA8003; }
.site-footer__info { flex: 0 1 auto; }
.site-footer__info img { width: 240px; height: auto; display: block; margin-bottom: 12px; }
.site-footer__info img:hover { transform: none; }
.site-footer__info p { margin: 6px 0; font-size: 14px; font-weight: 700; }
.site-footer__info .copyright { margin-top: 14px; font-size: 13px; font-weight: 400; }
.site-footer__info .copyright a { text-decoration: underline; color: #E8C58A; }
.site-footer__entry { flex: 0 0 auto; align-self: center; }
.site-footer__entry img { width: 240px; height: auto; display: block; }

/* ============ スマホ ============ */
@media screen and (max-width: 800px) {
  .site-header { height: 48px; padding: 0 12px 0 6px; }
  .site-header__logo img { width: 150px; }
  .site-header__nav {
    display: none;
    position: fixed;
    top: 0; left: 8px; right: 8px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
  }
  .site-header__nav.open { display: flex; }
  .site-header__nav a {
    padding: 13px 20px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
  }
  .site-header__nav a:last-child { border-bottom: none; }
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 10001;
  }
  .menu-toggle span {
    display: block;
    width: 24px; height: 3px;
    background: #50370D;
    margin: 5px 0;
    border-radius: 2px;
  }
  .site-header__nav .menu-close {
    align-self: flex-end;
    background: #eee;
    border: none;
    font-size: 20px;
    line-height: 1;
    padding: 8px 12px;
    margin: 4px 8px 4px 0;
    cursor: pointer;
    color: #50370D;
    border-radius: 4px;
  }

  section.wp-block-group { margin: 40px 0; }
  section.wp-block-group h2 { font-size: 18px; }
  .wp-block-columns.cards { gap: 24px; flex-wrap: wrap !important; }
  .wp-block-columns.cards .wp-block-column { flex-basis: 100% !important; }

  .site-footer { padding: 40px 20px 50px; }
  .site-footer__in { flex-direction: column; gap: 28px; }
  .site-footer__entry { align-self: center; }
  .qa-line-banner img { max-width: 100%; }
}
@media screen and (min-width: 801px) {
  .site-header__nav .menu-close { display: none; }
}
