@charset "UTF-8";
/* =============================================================
 * v3のデザインには無かった部分の見た目
 * -------------------------------------------------------------
 *  ① お問い合わせフォーム（MW WP Form）を v3 の形に合わせる
 *  ② 記事の本文ページ
 *  ③ 情報公開（管理画面から編集する部分）
 *  ④ WordPressが出す本文（固定ページ）の基本の形
 * v3の各ページのCSSは一切いじらず、ここに足すだけにしています。
 * 2026-08-01 IT管理係ケン
 * ============================================================= */

/* ===== ⓪ 他のページから借りてくる部品 =====
 * v3ではトップページのCSSにしか入っていなかった部品を、
 * お問い合わせページ・記事ページでも使えるようにここに写しています
 * （中身はトップページのものと同じです）。 */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px;
  max-width: 1100px; margin: 0 auto;
}
.contact-info h3 { font-size: 20px; font-weight: 900; color: var(--blue-dark); margin-bottom: 26px; }
.contact-info-item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 22px; font-size: 14px; color: var(--text); line-height: 1.8;
}
.contact-info-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px;
}
.contact-info-item a { color: var(--blue-dark); text-decoration: none; font-weight: 700; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; gap: 48px; } }

.news-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 30px;
  color: var(--blue-dark); font-weight: 700; font-size: 14px; text-decoration: none;
  border-bottom: 2px solid var(--gold); padding-bottom: 3px; transition: gap .2s, color .2s;
}
.news-more:hover { gap: 12px; color: var(--blue); }

/* ===== ① お問い合わせフォーム（MW WP Form） ===== */
.mw_wp_form { font-size: 15px; }
.mw_wp_form .contact-fields { margin-bottom: 20px; }
.mw_wp_form dl { margin: 0; }
.mw_wp_form dt {
  font-size: 13px; font-weight: 700; color: var(--blue-dark);
  margin: 0 0 7px; display: block;
}
.mw_wp_form dd { margin: 0; }
.mw_wp_form .required {
  display: inline-block; background: var(--blue); color: var(--white);
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px;
  margin-left: 7px; vertical-align: middle;
}
.mw_wp_form .small,
.mw_wp_form .text-gray-500 {
  font-size: 11.5px; color: var(--gray); line-height: 1.8; margin: 6px 0 0;
}
.mw_wp_form input[type="text"],
.mw_wp_form input[type="tel"],
.mw_wp_form input[type="email"],
.mw_wp_form input[type="url"],
.mw_wp_form input[type="number"],
.mw_wp_form select,
.mw_wp_form textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid #D8E0EE; border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--text); background: var(--white);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.mw_wp_form input:focus,
.mw_wp_form select:focus,
.mw_wp_form textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,130,214,.14);
}
.mw_wp_form textarea { resize: vertical; min-height: 150px; }

/* 姓・名を横に並べる行 */
.mw_wp_form .d-flex { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mw_wp_form .d-flex input[type="text"] { width: auto; flex: 1 1 140px; min-width: 120px; }
.mw_wp_form .mr-1, .mw_wp_form .mx-1 { font-size: 13px; color: var(--gray); font-weight: 700; }
.mw_wp_form .mb-1 { margin-bottom: 6px; }
.mw_wp_form .mb-0 { margin-bottom: 0; }

/* 「どのご用件か」のラジオボタン */
.mw_wp_form .mwform-radio-field {
  display: block; padding: 11px 14px; margin: 0 0 8px;
  border: 1.5px solid #D8E0EE; border-radius: 10px; background: var(--white);
  cursor: pointer; transition: border-color .2s, background .2s;
  font-size: 14px; line-height: 1.6;
}
.mw_wp_form .mwform-radio-field:hover { border-color: var(--blue); background: var(--blue-light); }
.mw_wp_form .mwform-radio-field input[type="radio"] {
  width: 17px; height: 17px; margin-right: 9px; accent-color: var(--blue); vertical-align: -3px;
}
.mw_wp_form .mwform-radio-field-text { font-weight: 500; }
.mw_wp_form .horizontal-item + .horizontal-item { margin-left: 0; }

/* 同意チェック */
.mw_wp_form .mwform-checkbox-field {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text); line-height: 1.7; font-weight: 700;
}
.mw_wp_form .mwform-checkbox-field input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0;
}
.mw_wp_form .contact-fields a { color: var(--blue); }

/* ボタン */
.mw_wp_form .contact-btn {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px;
}
.mw_wp_form input[type="submit"],
.mw_wp_form button[type="submit"] {
  background: var(--blue-dark); color: var(--white); border: none;
  padding: 17px 52px; border-radius: 50px; font-size: 16px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  box-shadow: 0 8px 24px rgba(35,78,141,.3);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.mw_wp_form input[type="submit"]:hover,
.mw_wp_form button[type="submit"]:hover {
  background: var(--blue); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(35,78,141,.38);
}
.mw_wp_form .back-btn,
.mw_wp_form input[name="submitBack"] {
  background: var(--white); color: var(--blue-dark); border: 1.5px solid #D8E0EE;
  box-shadow: none; padding: 16px 34px;
}
.mw_wp_form .back-btn:hover { background: var(--gray-light); color: var(--blue-dark); transform: none; box-shadow: none; }

/* 入力ミスの案内 */
.mw_wp_form .error {
  display: block; color: #C0392B; font-size: 12.5px; font-weight: 700;
  margin-top: 6px; line-height: 1.7;
}
/* 確認画面（まだ送信されていないことをはっきり伝える） */
.mw_wp_form_confirm::before {
  content: "① 入力内容をご確認ください（まだ送信されていません）";
  display: block; background: var(--gold-light, #FCF1DE); color: #8A5A00;
  border: 1.5px solid rgba(176,116,18,.35); border-radius: 12px;
  padding: 14px 18px; font-size: 14px; font-weight: 700; line-height: 1.7;
  margin-bottom: 22px;
}
.mw_wp_form_confirm dt { margin-top: 16px; }
.mw_wp_form_confirm dd {
  font-size: 15px; line-height: 1.9; padding: 10px 14px;
  background: var(--gray-light); border-radius: 8px; word-break: break-all;
}
.mw_wp_form_confirm .contact-fields { margin-bottom: 6px; }

/* 送信完了 */
.mw_wp_form_complete {
  font-size: 15.5px; line-height: 2.1;
  background: var(--white); border: 2px solid var(--green, #4CAF82);
  border-radius: 16px; padding: 30px 28px;
}
.mw_wp_form_complete::before {
  content: "✅ 送信が完了しました";
  display: block; font-size: 19px; font-weight: 900;
  color: var(--green-dark, #2E7D5B); margin-bottom: 12px;
}

/* 入力ミスがあったときに、フォームの先頭で気づけるように */
.mw_wp_form_input .error:first-of-type { scroll-margin-top: 120px; }

/* ===== ② 記事の本文ページ ===== */
.single-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.single-meta time { font-family: var(--en); font-size: 13px; color: var(--gray); font-weight: 700; }
.single-meta .post-cat { text-decoration: none; }
.single-title {
  font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); font-weight: 900;
  color: var(--blue-dark); line-height: 1.6; letter-spacing: .04em;
}
.single-box {
  background: var(--white); border-radius: 20px; overflow: hidden;
  box-shadow: 0 8px 36px rgba(30,64,118,.08);
}
.single-thumb img { width: 100%; height: auto; display: block; }
.single-body { padding: 40px; }
@media (max-width: 900px) { .single-body { padding: 26px 20px; } }

.single-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.single-nav-btn {
  background: var(--white); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 16px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s, transform .2s;
}
.single-nav-btn:hover { border-color: var(--blue); transform: translateY(-2px); }
.single-nav-btn.next { text-align: right; }
.single-nav-label { font-size: 11.5px; font-weight: 700; color: var(--blue); }
.single-nav-title { font-size: 13.5px; color: var(--text); line-height: 1.7; font-weight: 700; }
@media (max-width: 700px) { .single-nav { grid-template-columns: 1fr; } .single-nav-btn.next { text-align: left; } }

.single-back { text-align: center; margin-top: 30px; }
.single-related { margin-top: 56px; }
.single-related-h {
  font-family: var(--serif); font-size: 20px; font-weight: 900;
  color: var(--blue-dark); margin-bottom: 22px; letter-spacing: .04em;
}

/* 記事がないとき */
.post-empty {
  background: var(--white); border-radius: 18px; padding: 44px 28px; text-align: center;
  font-size: 15px; line-height: 2; color: var(--gray); box-shadow: 0 8px 30px rgba(30,64,118,.07);
}
.post-empty a { color: var(--blue); font-weight: 700; }
.news-empty { padding: 22px 4px; font-size: 14px; color: var(--gray); }

/* ページ送りの「…」と「前へ」 */
.page-btn.dots { border: none !important; background: none !important; }

/* トップページのお知らせタグ（BLOG用） */
.tag-blog { background: var(--green-light); color: var(--green-dark); }


/* =====================================================================
 * トップページ「お知らせ・トピックス」＝写真つきの横スライド
 * ---------------------------------------------------------------------
 * 指でなぞる／マウスで横スクロールすると、カードがピタッと止まります
 * （スクロールスナップ）。左右の矢印でも動かせます。
 * ===================================================================== */
.nsw { position: relative; }

.news-snap {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  padding: 6px 2px 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(35,78,141,.35) transparent;
}
.news-snap::-webkit-scrollbar { height: 8px; }
.news-snap::-webkit-scrollbar-track { background: rgba(35,78,141,.07); border-radius: 50px; }
.news-snap::-webkit-scrollbar-thumb { background: rgba(35,78,141,.32); border-radius: 50px; }
.news-snap::-webkit-scrollbar-thumb:hover { background: rgba(35,78,141,.5); }
.news-snap:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 14px; }

/* カード1枚 */
.nsc {
  flex: 0 0 296px;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: 0 6px 22px rgba(30,64,118,.09);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.nsc:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(30,64,118,.18); }

/* 写真 */
.nsc-thumb {
  position: relative; display: block;
  aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--blue-light);
}
.nsc-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.nsc:hover .nsc-thumb img { transform: scale(1.06); }
.nsc-thumb.noimg {
  display: flex; align-items: center; justify-content: center; font-size: 42px;
}
.nsc-thumb.noimg.bg-green { background: var(--green-light); }
.nsc-thumb.noimg.bg-blue { background: var(--blue-light); }

/* 日付のふだ */
.nsc-date {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(255,255,255,.94);
  border-radius: 10px; padding: 6px 11px;
  display: flex; flex-direction: column; align-items: center; line-height: 1.15;
  box-shadow: 0 3px 10px rgba(22,41,74,.18);
  font-family: var(--en);
}
.nsc-date b { font-size: 10px; font-weight: 700; color: var(--gray); letter-spacing: .04em; }
.nsc-date i { font-size: 17px; font-weight: 700; font-style: normal; color: var(--blue-dark); }

/* 文字の部分 */
.nsc-body {
  display: flex; flex-direction: column; gap: 9px;
  padding: 16px 18px 20px; flex: 1;
}
.nsc-cat {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 5px;
  background: var(--blue-light); color: var(--blue-dark);
}
.nsc-cat.blog { background: var(--green-light); color: var(--green-dark); }
.nsc-title {
  font-size: 14px; font-weight: 700; line-height: 1.75; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.nsc-more {
  margin-top: auto; font-size: 12px; font-weight: 700; color: var(--blue);
  display: inline-flex; align-items: center; gap: 5px; transition: gap .2s;
}
.nsc:hover .nsc-more { gap: 11px; }

/* いちばん最後の「一覧へ」カード */
.nsc-last { background: var(--blue-dark); color: var(--white); }
.nsc-last-in {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; height: 100%; min-height: 260px; padding: 24px; text-align: center;
}
.nsc-last-icon { font-size: 40px; }
.nsc-last-txt { font-size: 15px; font-weight: 700; line-height: 1.8; }
.nsc-last .nsc-more { color: #FFD98A; margin-top: 4px; }

/* 左右の矢印 */
.nsc-arrow {
  position: absolute; top: 40%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: none; cursor: pointer; z-index: 3;
  background: var(--white); color: var(--blue-dark);
  font-size: 26px; line-height: 1; font-family: inherit;
  box-shadow: 0 5px 18px rgba(22,41,74,.22);
  transition: background .2s, color .2s, opacity .2s, transform .2s;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 3px;
}
.nsc-arrow:hover { background: var(--blue-dark); color: var(--white); }
.nsc-arrow.prev { left: -18px; }
.nsc-arrow.next { right: -18px; }
.nsc-arrow[disabled] { opacity: 0; pointer-events: none; }

/* 「横にスライドできます」の案内 */
.nsc-hint {
  text-align: center; font-size: 11.5px; letter-spacing: .12em;
  color: var(--gray); opacity: .75; margin-top: 2px;
}

@media (max-width: 900px) {
  .nsc { flex: 0 0 78%; }
  .nsc-arrow { display: none; }          /* スマホは指でなぞるので矢印は出さない */
  .news-snap { gap: 14px; }
  .nsc-last-in { min-height: 220px; }
}
@media (min-width: 1200px) {
  .nsc-arrow.prev { left: -24px; }
  .nsc-arrow.next { right: -24px; }
}

/* ===== ③ 情報公開（管理画面から編集する部分） ===== */
/* 管理画面で「見出し＋箇条書き」で書けば、v3のボタン風に整います。 */
.doc-content h2,
.doc-content h3 {
  font-size: 14px; font-weight: 900; color: var(--blue-dark);
  margin: 26px 0 12px; display: flex; align-items: center; gap: 8px;
}
.doc-content > :first-child { margin-top: 0; }
.doc-content ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 6px; padding: 0; }
.doc-content ul li { margin: 0; }
.doc-content ul li a,
.doc-content p a[href$=".pdf"] {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 16px; font-size: 13px; font-weight: 700; color: var(--blue-dark);
  text-decoration: none; transition: border-color .2s, background .2s, transform .2s;
}
.doc-content ul li a::before,
.doc-content p a[href$=".pdf"]::before { content: "📄"; }
.doc-content ul li a:hover,
.doc-content p a[href$=".pdf"]:hover {
  border-color: var(--blue); background: var(--blue-light); transform: translateY(-1px);
}
.doc-content p { font-size: 13.5px; color: var(--gray); line-height: 2; margin: 0 0 12px; }

/* ===== ④ WordPressの本文（固定ページ・記事）の基本の形 ===== */
.wp-content, .single-body { font-size: 15.5px; line-height: 2.1; color: var(--text); }
.wp-content > *:first-child, .single-body > *:first-child { margin-top: 0; }
.wp-content p, .single-body p { margin: 0 0 1.4em; }
.wp-content h2, .single-body h2 {
  font-family: var(--serif); font-size: 22px; font-weight: 900; color: var(--blue-dark);
  line-height: 1.6; margin: 2em 0 .8em; padding-left: 14px; border-left: 5px solid var(--blue);
}
.wp-content h3, .single-body h3 {
  font-size: 18px; font-weight: 900; color: var(--blue-dark); margin: 1.8em 0 .7em;
}
.wp-content h4, .single-body h4 { font-size: 16px; font-weight: 700; color: var(--blue-dark); margin: 1.6em 0 .6em; }
.wp-content a, .single-body a { color: var(--blue); }
.wp-content ul, .wp-content ol,
.single-body ul, .single-body ol { margin: 0 0 1.4em; padding-left: 1.6em; }
.wp-content li, .single-body li { margin-bottom: .5em; }
.wp-content img, .single-body img { max-width: 100%; height: auto; border-radius: 12px; }
.wp-content figure, .single-body figure { margin: 1.6em 0; }
.wp-content figcaption, .single-body figcaption { font-size: 12.5px; color: var(--gray); margin-top: 8px; text-align: center; }
.wp-content blockquote, .single-body blockquote {
  margin: 1.6em 0; padding: 18px 22px; background: var(--gray-light);
  border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; font-size: 14.5px;
}
.wp-content table, .single-body table {
  width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 14px; background: var(--white);
}
.wp-content th, .wp-content td,
.single-body th, .single-body td { border: 1px solid var(--line); padding: 12px 14px; line-height: 1.9; }
.wp-content th, .single-body th { background: var(--blue-light); color: var(--blue-dark); font-weight: 700; text-align: left; }
.wp-content iframe, .single-body iframe { max-width: 100%; }

/* 表が画面をはみ出さないように（スマホ） */
@media (max-width: 700px) {
  .wp-content table, .single-body table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* =====================================================================
 * フッターの「お問い合わせ」をはっきり見せる
 * ---------------------------------------------------------------------
 * 他のリンクと同じ小さい文字で埋もれていたので、
 * 電話番号を大きく・フォームはボタンにして目立たせています。
 * ===================================================================== */
.footer-top { grid-template-columns: 1.7fr 1fr 1fr 1.5fr; }

.footer-contact .foot-tel {
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 14px; padding: 0;
  text-decoration: none; color: var(--white);
}
.footer-contact .foot-tel:hover { padding-left: 0; }
.foot-tel-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  transition: background .2s;
}
.footer-contact .foot-tel:hover .foot-tel-icon { background: rgba(255,255,255,.2); }
.foot-tel-body { display: flex; flex-direction: column; line-height: 1.25; }
.foot-tel-num {
  font-family: var(--en); font-size: 21px; font-weight: 700;
  color: var(--white); letter-spacing: .01em;
}
.foot-tel-sub { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 3px; }

.footer-contact .foot-cta {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 0 0 14px; padding: 15px 18px;
  background: var(--gold, #C9A227); color: #1B2B45;
  border-radius: 12px; text-decoration: none;
  font-size: 14.5px; font-weight: 900; line-height: 1.5; text-align: center;
  box-shadow: 0 6px 20px rgba(201,162,39,.32);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.footer-contact .foot-cta:hover {
  padding-left: 18px;                    /* 他のリンクの「ずれる」動きを打ち消す */
  background: #E0B93A; color: #1B2B45;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(201,162,39,.42);
}
.foot-cta-arrow { transition: transform .2s; }
.footer-contact .foot-cta:hover .foot-cta-arrow { transform: translateX(4px); }
.foot-cta-br { display: none; }

.foot-note {
  font-size: 12px; line-height: 1.9; color: rgba(255,255,255,.6);
  margin: 0 0 18px; padding: 11px 13px;
  background: rgba(255,255,255,.06); border-radius: 10px;
}
.foot-note strong { color: #FFD98A; }

.foot-sub-links { display: flex; flex-direction: column; gap: 0; }
.footer-contact .foot-sub-links a { font-size: 12px; margin-bottom: 9px; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }   /* お問い合わせは横いっぱいに */
  .foot-cta-br { display: inline; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .foot-cta-br { display: none; }
}

/* お問い合わせページの上の説明文 */
.contact-intro { margin-bottom: 8px; }

/* 検索まど */
.search-form { display: flex; gap: 8px; flex-wrap: wrap; }
.search-form label { flex: 1 1 220px; }
.search-form .search-field {
  width: 100%; padding: 12px 16px; border: 1.5px solid #D8E0EE; border-radius: 10px;
  font-size: 15px; font-family: inherit; outline: none;
}
.search-form .search-field:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,130,214,.14); }
.search-form .search-submit {
  background: var(--blue-dark); color: var(--white); border: none; cursor: pointer;
  padding: 12px 26px; border-radius: 50px; font-size: 14px; font-weight: 700; font-family: inherit;
}
.search-form .search-submit:hover { background: var(--blue); }


/* =====================================================================
 * 演出を控えるボタン（全ページ・ヘッダー右上）
 * ---------------------------------------------------------------------
 * ボタンを押すと <html> に pwp-calm が付き、
 * 背景の動画・アニメーション・ふわっと表示がすべて止まります。
 * 設定はその端末に記憶されます（localStorage）。
 * ===================================================================== */

.motion-toggle {
  margin-left: auto;            /* これでメニューは今までどおり右端のまま */
  margin-right: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-radius: 50px;
  font-family: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  white-space: nowrap; cursor: pointer; flex: 0 0 auto;
  transition: background .25s, border-color .25s, color .25s;
}
.motion-toggle:hover { background: rgba(255,255,255,.26); }
.motion-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.motion-toggle .mt-ico { font-size: 13px; line-height: 1; }

/* スクロールしてヘッダーが白くなったら、文字も濃い色にする */
header.scrolled .motion-toggle { border-color: #CFD9E6; background: var(--white); color: var(--blue-dark); }
header.scrolled .motion-toggle:hover { background: var(--blue-light); }

/* 「控える」と「戻す」は片方だけ見せる */
.motion-toggle .off { display: none; }
html.pwp-calm .motion-toggle .on { display: none; }
html.pwp-calm .motion-toggle .off { display: inline; }

/* 控えている間は色を変えて「今どちらか」を分かるようにする */
html.pwp-calm .motion-toggle { border-color: var(--gold); background: rgba(214,169,74,.22); }
html.pwp-calm header.scrolled .motion-toggle { border-color: var(--gold); background: #FBF3E2; color: var(--blue-dark); }

/* スマホのメニューの中に置くほう */
.mt-inmenu {
  margin: 18px auto 0; width: 82%; max-width: 320px;
  height: 46px; justify-content: center; font-size: 13.5px;
  border-color: rgba(255,255,255,.55);
}

/* 画面が狭いときはヘッダーのボタンをアイコンだけにする（文字はメニューの中に出す） */
@media (max-width: 1080px) {
  .motion-toggle:not(.mt-inmenu) .mt-txt { display: none; }
  .motion-toggle:not(.mt-inmenu) { padding: 0 11px; margin-right: 10px; }
  html.pwp-calm .motion-toggle:not(.mt-inmenu) .mt-txt { display: none; }
}

/* =====================================================================
 * 「演出を控える」がONのとき
 * ---------------------------------------------------------------------
 * animation を none にすると、部品は「動く前のふつうの状態」に戻ります。
 * （終わりかけの位置で固まらないよう、あえて none にしています）
 * ===================================================================== */

html.pwp-calm *,
html.pwp-calm *::before,
html.pwp-calm *::after {
  animation: none !important;
  transition: none !important;
}
html.pwp-calm { scroll-behavior: auto !important; }

/* 背景の動画は消さずに「一時停止」します（JavaScript側で止めています）。
   消してしまうと下地の紺色だけになり、写真が無くなってしまうためです。 */

/* スクロールで出てくる部品は、最初から全部見えるようにする（読めなくならないように） */
html.pwp-calm .fade-up,
html.pwp-calm .fade-left,
html.pwp-calm .fade-right,
html.pwp-calm .num-item,
html.pwp-calm .service-card,
html.pwp-calm .about-feature,
html.pwp-calm .voice-card,
html.pwp-calm .dual-cta-card,
html.pwp-calm .principle-card,
html.pwp-calm .warmth-item,
html.pwp-calm .merit-card,
html.pwp-calm .worry-item,
html.pwp-calm .quality-note,
html.pwp-calm .flow-note,
html.pwp-calm .flow-step,
html.pwp-calm .forwho-card,
html.pwp-calm .benefit-card,
html.pwp-calm .staff-card,
html.pwp-calm .shuttle-banner,
html.pwp-calm .post-card {
  opacity: 1 !important;
  transform: none !important;
}
html.pwp-calm .section-line { width: 56px !important; }

/* 流れるお知らせの帯は、流さずに先頭を見せる */
html.pwp-calm .ticker-inner { transform: none !important; }
