/*
Theme Name: ハチの巣採用 LP
Theme URI: https://hachinosusaiyo.com/
Author: 1週間HP そら
Description: ハチの巣採用のランディングページ専用テーマ。支給されたLP画像をそのまま使い、各端末で比率を崩さずに表示します。
Version: 1.7.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hachinosu
*/

/* ===== 土台 ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* 左右に伸ばす帯がはみ出しても横スクロールにしない */
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #16213f;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
               "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体",
               "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  overflow-x: clip;
}

img { border: 0; }

a { color: #0a3a8f; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 18px;
  background: #082d74;
  color: #fff;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* ===== LP本体 ===== */
.lp {
  position: relative;
  margin: 0 auto;
  background: #eef1f7;   /* 682px より広い画面で左右に残る余白の色 */
  overflow-x: clip;
}

.sec {
  position: relative;
  width: 100%;
  max-width: 682px;   /* 支給画像の実寸。引き伸ばすと文字がにじむので広げない */
  margin: 0 auto;
  line-height: 0;
  font-size: 0;
}

/* 画像どうしの継ぎ目に白い筋が出ないよう 1px 重ねる */
.sec + .sec { margin-top: -1px; }

.sec img {
  display: block;
  width: 100%;
  height: auto;       /* 比率は常に保たれる */
  max-width: 100%;
}

/* 画面が 682px より広いときは、左右に余白を残して LP を1枚の紙として立たせる。
   画像の端の色を左右に伸ばす方法も試したが、セクションごとに色が変わって
   青→白→黄→紺と移り変わる帯になり、落ち着かないのでやめた。
   682px 以下では画像が画面いっぱいなので影は出さない */
@media (min-width: 683px) {
  .sec,
  .cta2 { box-shadow: 0 0 30px rgba(10, 28, 62, .16); }
}

/* 画像の中の見出しを、検索エンジンと読み上げに届くようテキストでも持たせる。
   画面には出さない（画像に同じ文字が描かれているため） */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ===== 画像の上に重ねる相談ボタン ===== */
.hit {
  position: absolute;
  z-index: 2;
  display: block;
  border-radius: 999px;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

/* 画面が狭いとボタンの絵が 32〜38px まで縮む。
   見た目はそのままに、指で押せる範囲だけ 48px 確保する */
.hit::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 48px;
  min-height: 100%;
}

.hit:active { background: rgba(255, 255, 255, .18); }
.hit:focus-visible {
  outline: 3px solid #0b2f72;
  outline-offset: 3px;
  text-indent: 0;
}

/* ===== 資料請求への導線（画像にはないので HTML で作る） =====
   前後の画像と並べても浮かないよう、色は支給画像から拾っています。
   黄 #FDEB26（8,800円の面）／濃紺 #001142（フッターの帯）／
   ボタンはオレンジ #FC6601 から赤 #FD2801（画像の相談ボタンと同じ）。
   背景の六角形も、画像のハチの巣に合わせたもの。 */
.cta2 {
  position: relative;
  z-index: 1;
  max-width: 682px;
  margin: -1px auto 0;
  padding: 34px 20px 38px;
  background-color: #fdeb26;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='55' viewBox='0 0 48 55'%3E%3Cpath d='M24 2l19.1 11v22L24 46 4.9 35V13z' fill='none' stroke='%23ffffff' stroke-width='2.4' opacity='.42'/%3E%3C/svg%3E");
  background-size: 48px 55px;
  text-align: center;
}
.cta2-in { position: relative; }
.cta2-lead {
  margin: 0 0 16px;
  font-size: 23px;
  font-weight: 900;
  color: #001142;
  line-height: 1.5;
  letter-spacing: .01em;
  /* 画像の見出しと同じように白で縁取る */
  text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff,
               1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
}
.btn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* 画像の中の「掲載について相談する」と同じ大きさにそろえる（幅69.5%・高さ58px） */
  width: 100%;
  max-width: 474px;
  min-height: 72px;
  padding: 14px 24px;
  background: linear-gradient(#fc6601, #fd2801);
  border: 3px solid #fff;
  color: #ffffff;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .01em;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 5px 0 rgba(0, 17, 66, .4);
  text-shadow: 0 2px 3px rgba(130, 25, 0, .45);
}
.btn2:hover { filter: brightness(1.07); color: #fff; }
.btn2:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 17, 66, .4); }
.btn2-sub {
  padding: 4px 12px;
  background: #ffffff;
  color: #e81f00;
  font-size: 13px;
  font-weight: 900;
  border-radius: 999px;
  text-shadow: none;
}
.cta2-note {
  margin: 16px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.7;
  color: #001142;
}

/* ===== スマホで下に出る相談バー ===== */
.fixcta { display: none; }

@media (max-width: 682px) {
  .fixcta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    gap: 8px;
    padding: 9px 10px;
    padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -4px 18px rgba(10, 28, 62, .17);
    transform: translateY(115%);
    transition: transform .25s ease;
  }
  .fixcta.on { transform: translateY(0); }
  .fixcta a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 6px 8px;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
  }
  .fixcta-sub {
    flex: 0 0 36%;
    background: #fdeb26;
    border: 2px solid #001142;
    color: #001142;
    font-size: 14px;
    font-weight: 900;
  }
  .fixcta-main {
    flex: 1 1 auto;
    background: linear-gradient(#fc6601, #fd2801);
    border: 2px solid #fff;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 3px 0 rgba(0, 17, 66, .4);
  }
  .fixcta-main:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 17, 66, .4); }
}

@media (max-width: 360px) {
  .fixcta-sub { font-size: 13px; }
  .fixcta-main { font-size: 15px; }
}

/* ===== フッター ===== */
.ft {
  background: #001240;   /* 支給画像いちばん下の紺に合わせてある */
  color: #e8edf8;
  padding: 30px 20px 40px;
  font-size: 14px;
  line-height: 1.95;
}
.ft-in {
  max-width: 682px;
  margin: 0 auto;
}
.ft-name {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}
.ft-addr {
  margin: 0 0 18px;
  color: #c3cde6;
}
.ft-addr a { color: #ffe95e; text-decoration: none; }
.ft-addr a:hover { text-decoration: underline; }

.ft-links {
  margin: 0 0 20px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.ft-links a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  padding-bottom: 2px;
}
.ft-links a:hover { border-bottom-color: #ffe95e; color: #ffe95e; }

.ft-copy {
  margin: 0;
  font-size: 12px;
  color: #93a2c4;
}

/* ===== 文章ページ（利用規約・プライバシーポリシー・特商法） ===== */
/* ロゴは「ハチの巣」の文字が紺色なので、帯は白のままにして下に黄色の線を引く */
.ph {
  background: #ffffff;
  border-bottom: 4px solid #fdeb2d;
  padding: 13px 20px;
}
.ph-in {
  max-width: 820px;
  margin: 0 auto;
}
.ph a { display: inline-block; line-height: 0; }
.ph img { display: block; width: 190px; height: auto; }

.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 42px 20px 64px;
}
.doc h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.45;
  letter-spacing: .01em;
  color: #0b2250;
}
.doc .lead {
  margin: 0 0 34px;
  padding-bottom: 20px;
  border-bottom: 3px solid #fdeb2d;
  color: #55617d;
  font-size: 15px;
}
.doc h2 {
  margin: 38px 0 14px;
  padding-left: 14px;
  border-left: 5px solid #082d74;
  font-size: 20px;
  line-height: 1.5;
  color: #0b2250;
}
.doc h3 {
  margin: 26px 0 10px;
  font-size: 16.5px;
  color: #12306d;
}
.doc p { margin: 0 0 15px; }
.doc ul, .doc ol { margin: 0 0 18px; padding-left: 1.5em; }
.doc li { margin-bottom: 7px; }
.doc dl { margin: 0 0 18px; }
.doc dt {
  margin-top: 16px;
  font-weight: 700;
  color: #0b2250;
}
.doc dd { margin: 4px 0 0; padding-left: 0; }
.doc .note {
  margin: 26px 0 0;
  padding: 16px 18px;
  background: #f4f7fd;
  border-radius: 10px;
  font-size: 14px;
  color: #4a5876;
}
.doc .back {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #dde3ef;
}
.doc .back a {
  display: inline-block;
  padding: 11px 26px;
  background: #082d74;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.doc .back a:hover { background: #0b3b96; }
.doc table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  font-size: 15px;
}
.doc th, .doc td {
  padding: 13px 14px;
  border: 1px solid #dde3ef;
  text-align: left;
  vertical-align: top;
}
.doc th {
  width: 32%;
  background: #f4f7fd;
  color: #0b2250;
  font-weight: 700;
}

@media (max-width: 600px) {
  .doc { padding: 30px 18px 52px; }
  .doc h1 { font-size: 23px; }
  .doc h2 { font-size: 18px; }
  .doc th, .doc td { display: block; width: 100%; border-bottom: 0; }
  .doc td { border-top: 0; }
  .doc tr:last-child td { border-bottom: 1px solid #dde3ef; }
  .ph img { width: 150px; }
}

/* ===== 資料請求ページ（/shiryou/）とお礼ページ（/shiryou-thanks/） ===== */
/* 資料の中身を並べる箇条書き。行頭はチェックの印 */
.pts {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.pts li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 31px;
}
.pts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 15px;
  height: 8px;
  border-left: 3px solid #0b2250;
  border-bottom: 3px solid #0b2250;
  transform: rotate(-45deg);
}

.fm-row { margin: 0 0 20px; }
.fm-label {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
  font-weight: 700;
  color: #0b2250;
}
.fm-req,
.fm-any {
  display: inline-block;
  margin-left: 9px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: 2px;
}
.fm-req { background: #d8352b; color: #fff; }
.fm-any { background: #eef1f7; color: #55617d; }

.fm .wpcf7-form-control-wrap { display: block; }

.fm input[type="text"],
.fm input[type="tel"],
.fm input[type="email"],
.fm textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #c3cbdd;
  border-radius: 8px;
  background: #fff;
  color: #16213f;
  font-family: inherit;
  font-size: 16px;   /* iPhone は 16px 未満だと入力のとき画面を勝手に拡大する */
  line-height: 1.6;
}
.fm textarea { min-height: 130px; resize: vertical; }
.fm input:focus,
.fm textarea:focus {
  border-color: #0b2250;
  outline: 2px solid rgba(11, 34, 80, .2);
  outline-offset: 0;
}

.fm-agree {
  margin: 26px 0 22px;
  padding: 15px 18px;
  background: #f4f7fd;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.8;
}
.fm-agree .wpcf7-list-item { margin: 0; }
.fm-agree input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: -4px;
  accent-color: #0b2250;
}

.fm-send { margin: 0; text-align: center; }
.fm-send .wpcf7-submit {
  width: 100%;
  max-width: 420px;
  min-height: 62px;
  padding: 15px 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(#ff8a1f, #f4620b);
  color: #fff;
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: 0 4px 0 #c44a05;
}
.fm-send .wpcf7-submit:hover { filter: brightness(1.06); }
.fm-send .wpcf7-submit:active { transform: translateY(2px); box-shadow: 0 2px 0 #c44a05; }
.fm-send .wpcf7-submit:disabled { background: #9aa5bd; box-shadow: 0 4px 0 #78839a; cursor: default; }

/* 入力漏れの知らせ */
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #c7221a;
  font-size: 13.5px;
  font-weight: 700;
}
.wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 14px 16px !important;
  border: 2px solid #c7221a !important;
  border-radius: 8px;
  color: #c7221a;
  font-size: 14.5px;
  line-height: 1.7;
}
.wpcf7-form.sent .wpcf7-response-output {
  border-color: #1a7f4b !important;
  color: #1a7f4b;
}
.wpcf7-spinner { margin: 0 0 0 10px; }

/* 「資料より直接聞きたい」人向けの案内 */
.alt {
  margin: 36px 0 0;
  padding: 24px 20px 26px;
  border: 2px solid #dde3ef;
  border-radius: 12px;
  text-align: center;
}
.alt-lead {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #0b2250;
}
.alt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 30px;
  background: #0b2250;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 0 #04112e;
}
.alt-btn:hover { background: #12306d; color: #fff; }
.alt-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #04112e; }
.alt-note { margin: 13px 0 0; font-size: 13px; color: #55617d; }

/* お礼のページ */
.tk-mark { margin: 0 0 16px; line-height: 0; }
.flow { margin: 0 0 10px; padding-left: 1.4em; }
.flow li { margin-bottom: 11px; }

/* 請求したその場で資料を開けるようにする箱 */
.dl {
  margin: 30px 0 36px;
  padding: 26px 20px 28px;
  background: #fffbe6;
  border: 2px solid #fdeb2d;
  border-radius: 12px;
  text-align: center;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 14px 32px;
  background: linear-gradient(#ff8a1f, #f4620b);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 0 #c44a05;
}
.dl-btn:hover { filter: brightness(1.06); color: #fff; }
.dl-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #c44a05; }
.dl-note { margin: 14px 0 0; font-size: 13px; color: #55617d; }

@media (max-width: 600px) {
  .fm-send .wpcf7-submit { font-size: 18px; }
  .alt { padding: 20px 16px 22px; }
  .alt-btn { width: 100%; font-size: 16px; padding: 12px 18px; }
  .dl { padding: 20px 14px 22px; }
  .dl-btn { width: 100%; font-size: 16px; padding: 13px 14px; }
}

/* 印刷したときに読めるように */
@media print {
  .ph, .ft-links, .doc .back { display: none; }
  body { font-size: 11pt; line-height: 1.7; }
}
