@charset "UTF-8";
/* ===== SP・タブレット共通（〜1023px）=====
   PC（1024px〜）は 1920 デザインを拡縮して表示。ここは <link media="(max-width:1023px)"> でだけ読み込む。
   基準：iPhone 375px 幅で設計し、320〜1023px で崩れないよう流し込みで組む。
   ・左右余白 20px（タブレットは中身を最大 720px に収めて中央寄せ）
   ・本文 15px / 行間 1.8、注記 12px 以上
   ・タップできる部品は 44×44px 以上
   ・入力欄は 16px（iOS の自動ズームを防ぐ） */

:root {
  --sp-gutter: 20px;
  --sp-max: 720px;
  --sp-header: 56px;
  --sp-sec: 64px;      /* セクションの上下余白 */
  --sp-body: 15px;
}

:where(.page) img { max-width: 100%; height: auto; }

/* ページの箱：1920 固定・絶対配置をやめて流し込みに */
.page {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding-top: var(--sp-header);
  overflow: hidden;
  background-size: 18px 18px;
}

/* 共通の入れ物（各ページの SP CSS で使う） */
.sp-inner { width: 100%; max-width: calc(var(--sp-max) + var(--sp-gutter) * 2); margin: 0 auto; padding: 0 var(--sp-gutter); }

/* SP だけ／PC だけで出す要素 */
.sp-only { display: revert !important; }
.pc-only { display: none !important; }

/* ---------- ヘッダー（WP テーマの SP 版と同じ：ロゴ＋ハンバーガー） ---------- */
.site-header { width: 100%; height: var(--sp-header); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.site-header__logo { left: 12px; top: 8px; }
.site-header__logo img { width: auto; height: 40px; }
.site-header__contact { display: none; }
.site-header__menu { left: auto; right: 6px; top: 6px; width: 44px; height: 44px; }
.site-header__menu span { left: 6px; }
.site-header__menu span:nth-child(1) { top: 12px; width: 32px; }
.site-header__menu span:nth-child(2) { top: 21px; width: 20px; }
.site-header__menu span:nth-child(3) { top: 30px; width: 24px; }

/* ---------- メニュー（全画面の黒い面。1 列で大きめのタップ領域） ---------- */
.site-menu {
  left: 0; width: 100%; height: 100%; height: 100dvh;
  padding: 72px var(--sp-gutter) 40px;
  overflow-y: auto; overscroll-behavior: contain;
}
.site-menu__close { right: 8px; top: 8px; width: 44px; height: 44px; display: grid; place-items: center; }
.site-menu__close svg { width: 24px; height: 24px; }
.site-menu__list { display: block; max-width: var(--sp-max); margin: 0 auto; }
.site-menu__list li { width: auto; margin: 0; border-bottom: 1px solid rgba(255,255,255,.15); line-height: 1.5; }
.site-menu__list a { display: flex; align-items: center; min-height: 52px; padding: 8px 4px; font-size: 15px; font-weight: 700; }
.site-menu__list a::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
/* SP だけメニュー内にお問い合わせボタン（ヘッダーから外したため） */
.site-menu__cta { display: flex !important; align-items: center; justify-content: center; max-width: var(--sp-max); min-height: 56px; margin: 0 auto 16px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .96px; }

/* ---------- フッター（流し込み。お問い合わせ帯＋2 列リンク＋コピーライト） ---------- */
.site-footer { position: relative !important; top: auto !important; width: 100%; height: auto; }
.f-contact { position: relative; width: 100%; height: 72px; font-size: 18px; }
.footer { position: relative; top: auto; width: 100%; height: auto; padding: 32px var(--sp-gutter) 24px; }
.footer nav, .footer__sub { max-width: var(--sp-max); margin: 0 auto; }
.footer__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; width: auto; }
.footer__list li, .footer__list li:nth-child(6n) { width: auto; margin: 0; line-height: 1.5; }
.footer__list a, .footer__sub a { display: flex; align-items: center; min-height: 44px; font-size: 13px; letter-spacing: .5px; }
.footer__sub { position: static; width: auto; display: flex; gap: 0 24px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); }
.footer__sub li, .footer__sub li + li { margin: 0; text-align: left; line-height: 1.5; }
.footer__sub a { font-size: 12px; }
.copyright { position: relative; top: auto; width: 100%; height: auto; padding: 12px; font-size: 11px; line-height: 1.6; }

/* ---------- PAGE TOP（右下の四角ボタン。本文に重ならない大きさ） ---------- */
.page-top {
  top: auto; right: 12px; bottom: 12px;
  width: 44px; height: 44px; padding: 0;
  writing-mode: horizontal-tb; font-size: 0; border-radius: 50%;
  background: rgba(0,0,0,.75);
}
.page-top svg { display: none; }
.page-top::before { content: ""; position: absolute; left: 50%; top: 56%; width: 11px; height: 11px; border-top: 2px solid #fff; border-left: 2px solid #fff; transform: translate(-50%, -50%) rotate(45deg); }

/* 和文の上ずれ補正（PC 用の translate）は SP では使わない */
.h-sec, .jp-n,
.news__date, .news__title, .news__sub, .prod__name, .cbanner__ttl,
.contact__ttl, .contact__hours, .contact__form-sub,
.info__ttl, .recruit__copy, .pcard__copy { translate: none; }

/* 共通部品の SP 版 */
.label { position: static; display: inline-block; height: 24px; padding: 0 14px; font-size: 12px; line-height: 24px; width: auto !important; }
.h-sec { position: static; font-size: 26px; line-height: 1.5; white-space: normal; }
.btn { position: relative; display: block; width: 100%; max-width: 320px; height: 56px; left: auto !important; top: auto !important; }
.btn__txt { left: 24px; font-size: 15px; }
.btn__circle { left: auto; right: 20px; top: 16px; }
.btn__arrow { left: auto; right: 25.5px; top: 23px; }
.nowrap { white-space: normal; }

@media (min-width: 768px) {
  :root { --sp-header: 64px; --sp-sec: 88px; }
  .site-header__logo img { height: 44px; }
  .site-header__menu { top: 10px; right: 14px; }
  .footer__list { grid-template-columns: repeat(3, 1fr); }
  .h-sec { font-size: 34px; }
}

/* 本文中の電話番号はタップで発信できることがわかるように */
.page main a[href^="tel:"] { text-decoration: underline; text-underline-offset: 3px; }
.page main a[href^="tel:"] { display: inline-block; padding: 12px 0; margin: -12px 0; }
