/*
Theme Name: storefront-toitoy
Theme URI: https://example.com/
Description: Storefront用の新しい子テーマです。
Author: あんぜんちゃん
Template: storefront
Version: 1.0
*/

@import url("../storefront/style.css");  /* 念のため保険的に残してもOK */

/* 🔽 カスタムCSSはここに書く！ */
/* ================================
   💡 ヘッダー・フッター非表示
================================== */
.entry-title,
.site-header,
.site-footer,
.entry-header,
.edit-link
{
  display: none;
}
/* ================================
   🧸 ロゴブロック配置（左固定ゾーン）
================================== */
.logo-block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  text-align: center;
}

.side-logo {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
}

.side-poem {
  color: #e3acae;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
}

/* ================================
   🌼 固定背景ゾーン（左右）
================================== */
.fixed-side-left,
.fixed-side-right {
  position: fixed;
  top: 0;
  height: 100vh;
  width: calc((100% - 400px) / 2);
  background-color: #f8f4e6;
  z-index: 0;
}

.fixed-side-left {
  left: 0;
}

.fixed-side-right {
  right: 0;
}

/* ================================
   📘 PC用：右側フッター内容
================================== */
.side-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
}

.footer-box {
  text-align: center;
  font-size: 14px;
}

.footer-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.footer-icons img {
  width: 32px;
  margin: 0 6px;
}

.footer-divider {
  border-top: 2px dotted #e6cfd2;
  width: 120px;
  margin: 8px auto;
}

.fixed-side-right a.company-button {
  color: #e3acae;
  text-decoration: none;
}

.fixed-side-right a.company-button:hover {
  color: #a3b9e0;
}

.fixed-side-right p {
  font-size: 0.95rem;
  margin-top: 8px;
  color: #e3acae;
}

/* ================================
   📱 スマホ用フッター（mobile）
================================== */
.mobile-footer {
  display: none;
  background-color: #ffffff;
  font-size: 14px;
  text-align: center;
  padding: 20px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 0;
}

.mobile-side-content {
  color: #e3acae;
}

/* SNSアイコン行 */
.mobile-side-content .sns-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* SNSアイコン画像 */
.mobile-side-content .sns-icon {
  width: 32px;
  height: auto;
  display: inline-block;
  margin: 0 6px;
}

/* 区切り線 */
.mobile-side-content .footer-divider {
  border-top: 2px dotted #e6cfd2;
  width: 120px;
  margin: 8px auto;
}

/* リンク */
.mobile-side-content .company-button {
  color: #e3acae;
  text-decoration: none !important;
  display: inline-block;
  margin: 8px 0;
}

.mobile-side-content .company-button:hover {
  color: #a3b9e0;
}

/* コピーライト */
.mobile-side-content .copyright {
  font-size: 0.95rem;
  margin-top: 8px;
  color: #e3acae;
}

/* ================================
   📦 中央コンテンツ
================================== */
.main-content {
  padding: 0 20px;
}

#page {
  background-color: #a3b9e0;
  margin: 0 auto;
  max-width: 100%;
  padding: 40px 0 0 0;
  position: relative;
  z-index: 1;
　overflow: hidden;
}

.toitoy-title {
  display: block;
  font-size: 6vw;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  word-break: keep-all;
  white-space: normal;
  overflow-wrap: break-word;
}

/* ================================
   📏 レイアウト補助クラス
================================== */
.spacer-top {
  height: 35vh !important;
}

.spacer-bottom {
  height: 15vh !important;
}

/* ================================
   🖼 画像表示
================================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 通常画像：中央揃え・幅制限 */
.wp-block-image.aligncenter {
  display: flex !important;
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  padding: 0 !important;
}

.wp-block-image.aligncenter img {
  display: block !important;
  width: 400px;
  max-width: 100%;
  height: auto;
}

/* 波画像：画面いっぱい */
figure.wp-block-image.aligncenter.size-full.nami {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

figure.wp-block-image.aligncenter.size-full.nami img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 0px;
}

/* ================================
   ✏️ テキスト系装飾
================================== */
.wp-block-group.has-white-background-color,
.explanation {
  margin-left: auto;
  margin-right: auto;
  max-width: 400px;
}

.explanation {
  max-width: 370px !important;
  padding: 1.5em;
}

.your-text-class {
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.highlight-toitoy {
  font-size: 1.6em;
  font-weight: bold;
}

.whiteback {
  background-color: #ffffff;
  width: 400px;
}
.pinkback {
  background-color: #e3acae;
  width: 400px;
}
.blueback{
  background-color: #a3b9e0;
  width: 400px;	
}
/* ============================================
   📅お知らせ
=============================================== */
.info-day {
  display: inline-block;
  background-color: #a3b9e0;  /* 好きな色にしてOK */
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 1rem;
  margin-bottom: 4px;
}
.info-divider {
  border-top: 2px dotted #e6cfd2;
  width: 300px;
  margin: 8px auto;
}


/* ============================================
   🍔メニューの設定
=============================================== */
.main-content {
  max-width: 400px;
  margin: 0 auto;
  position: relative; /* ← これが重要！中の absolute の基準になるよ */
}

/* 🍭 メニュー開閉ボタン（顔マーク） */
.menu-toggle {
  position: fixed;
  top: 10%;
  left: 50%; /* ← 中央を基準に */
  transform: translateX(120px); /* ← 400pxの中で右上に配置！ */
  width: 48px;
  height: 48px;
  z-index: 9999;
}

/* 画像2つをぴったり重ねる */
.menu-toggle img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
  border-radius: 50%;
}

/* 非表示用 */
.fade-icon.hidden {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

/* 表示中の画像が上になるように */
.fade-icon:not(.hidden) {
  z-index: 2;
}

/* 🍱 メニュー本体（初期非表示） */
/* 🍱 メニュー本体：フェード用スタイルに変更 */
.global-menu {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  position: fixed;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  max-width: 90vw;
  background-color: #ffffff;
  border: 2px solid #a3b9e0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 16px 20px;
  z-index: 1000;
}

/* クラスがついた時に表示される */
.global-menu.open {
  opacity: 1;
  visibility: visible;
}


.global-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-menu li {
  margin: 10px 0;
}

.global-menu a {
  text-decoration: none;
  color: #a3b9e0;
  font-weight: bold;
  font-size: 16px;
}

.global-menu a:hover {
  color: #e3acae;
}
@media screen and (min-width: 768px) {
  .menu-toggle {
    display: block !important;
  }
}
.global-menu li:last-child {
  margin-bottom: 16px;
}

/* ============================================
   🌿 ① タブレット以上（768px〜）：背景ゾーン表示
=============================================== */
@media screen and (min-width: 768px) {
  .fixed-side-left,
  .fixed-side-right {
    display: block;
  }
}

/* ============================================
   🌱 ② スマホ・タブレット共通（〜959px）：モバイルフッター表示
=============================================== */
@media screen and (max-width: 959px) {
  .mobile-footer {
    display: block;
  }
}

/* ============================================
   📵 ③ 縦向きスマホだけ：左右背景ゾーン非表示
=============================================== */
@media screen and (max-width: 767px) and (orientation: portrait) {
  .fixed-side-left,
  .fixed-side-right {
    display: none;
  }
}

/* ============================================
   🌿 ④ 横向きスマホ・タブレット・PC：背景ゾーンを常時表示
=============================================== */
@media screen and (min-width: 900px),
       screen and (orientation: landscape) {
  .fixed-side-left,
  .fixed-side-right {
    display: block;
  }
}

/* ============================================
   📏 ⑤ 画面が縦で小さい端末用：余白を調整
=============================================== */
@media screen and (max-width: 900px) and (orientation: portrait) {
  .spacer-top {
    height: 22vh !important;
  }
  .spacer-bottom {
    height: 10vh !important;
  }
}

/* ============================================
   🧠 ⑥ landscapeモード：タイトル文字サイズ調整
=============================================== */
@media screen and (max-width: 900px) and (orientation: landscape) {
  .toitoy-title {
    font-size: 6vw;
    line-height: 1.2;
    text-align: center;
    word-break: keep-all;
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }
}

/* ============================================
   📵 ⑦ 横向きスマホ時：ロゴ＆右側中身を非表示
=============================================== */
@media screen and (max-width: 700px) and (orientation: landscape) {
  .fixed-side-left .logo-block,
  .fixed-side-right .side-inner {
    display: none !important;
  }
}

/* ============================================
   📱 ⑧ スマホ〜タブレット縦表示：PC用中身を非表示
=============================================== */
@media screen and (max-width: 899px) {
  .side-content-pc {
    display: none !important;
  }
}

/* ============================================
   🖼 ⑨ スマホ表示：通常画像の中央揃え補正
=============================================== */
@media (max-width: 700px) {
  figure.wp-block-image.aligncenter {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  figure.wp-block-image.aligncenter img {
    width: 100% !important;
    height: auto;
    display: block;
  }
}

/* ============================================
   🖼 ⑩ PC表示：波画像を400px幅に制限（中央寄せ）
=============================================== */
/* 共通：波画像を中央揃え＆幅制御（基本はPC向け） */
figure.wp-block-image.aligncenter.size-full.nami {
  width: auto !important;
  max-width: 400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

figure.wp-block-image.aligncenter.size-full.nami img {
  width: 100% !important;
  height: auto;
  display: block;
}

/* 🌈 画面幅が400〜599pxのとき：max-widthを外してフィットさせる */
@media screen and (max-width: 599px) and (min-width: 400px) {
  figure.wp-block-image.aligncenter.size-full.nami {
    max-width: 100% !important;
  }
}
@media screen and (min-width: 401px) and (max-width: 599px) {
  figure.wp-block-image.aligncenter.size-full.nami {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  figure.wp-block-image.aligncenter.size-full.nami img {
    width: 100% !important;
    height: auto !important;
    display: block;
    image-rendering: auto; /* crisp-edges にしてもOK */
  }
}

body.page-id-791 #page {
  background-color: transparent;
  padding: 0;
  max-width: none;
}
body.page-id-1117 #page {
  background-color: transparent;
  padding: 0;
  max-width: none;
}
body.page-id-1321 #page {
  background-color: transparent;
  padding: 0;
  max-width: none;
}
body.page-id-1375 #page {
  background-color: transparent;
  padding: 0;
  max-width: none;
}
body.page-id-1384{
	background-color:#a3b9e0;
}
body.page-id-1384 #page {
  background-color: transparent;
  padding: 0;
  max-width: none;
}
body.page-id-1500 #page {
  background-color: transparent;
  padding: 0;
  max-width: none;
}
body.page-id-1532 #page {
  background-color: transparent;
  padding: 0;
  max-width: none;
}
body.page-id-1534 #page {
  background-color: transparent;
  padding: 0;
  max-width: none;
}
body.page-id-1541 #page {
  background-color: transparent;
  padding: 0;
  max-width: none;
}
body.page-id-1543 #page {
  background-color: transparent;
  padding: 0;
  max-width: none;
}