/*
Theme Name: 森田真生ゼミ
Theme URI:  https://plpb.co.jp/morita-zemi/
Author:     FROTSQUARNEL CO.LTD.
Author URI: https://frq.jp
Description: 森田真生ゼミ | 生活の学校
Version:    1.0.0
License:    Private
Text Domain: morita-zemi
*/

/* ////////////////////////////////////////////////////////////
  共通
//////////////////////////////////////////////////////////// */

@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+Antique&display=swap');

:root {
  --opa-1: 0.95;
  --color-bg: #564f68;
  --color-bg-gradient: linear-gradient(225deg, #7A6C88 0%, #7A6C88 50%, #E5DED1 100%);
  --text-white: #fff;
  --font-IshiiMincho: "MFW-PIshiiMinchoOldStdN-R", serif;
  --font-ZenKakuGothicA: "Zen Kaku Gothic Antique", sans-serif;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  background: var(--color-bg-gradient);
  min-height: 100vh;
  scroll-behavior: auto;
}
body,
html {
  height: auto;
  margin: 0;
  padding: 0;
  color: var(--text-white);
  font-family: var(--font-IshiiMincho);
  overflow-x: hidden !important;
}
a {
  text-decoration: none;
}
.panel-right__cta a,
.panel-right__cta a span {
  /* text-decoration: underline !important; */
  color: inherit;
}
.panel-right__cta a {
  display: block;
  transition: opacity 0.3s ease;
}
.panel-right__cta a:hover {
  opacity: 0.5;
}
:lang(ja) {
  font-family: var(--font-IshiiMincho) !important;
  font-optical-sizing: auto;
  font-style: normal;
}

::selection {
  color: var(--color-bg);
}

#mouse-stalker,


/* ////////////////////////////////////////////////////////////
  GoogleDocumentの呼び出しエリア
//////////////////////////////////////////////////////////// */

.doc-native-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  opacity: 0;
  pointer-events: auto;
  transition: opacity 1s ease-in-out;
}
.doc-native-wrapper.is-visible {
  opacity: var(--opa-1);
}

#native-doc {
  position: absolute;
  inset: 0px;
  display: block;
  overflow: auto;
  height: calc(100svh - 8px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: translateZ(0) scale(1.3);
  transform-origin: top center;
  transition: transform 0.4s ease;
}
#native-doc.is-flipped {
  transform: translateZ(0) scale(1.3) scaleX(-1);
}

#banners {
  display: none !important;
}
#contents {
  width: 100%;
  background-color: transparent;
}
#contents .doc-content {
  min-width: 100%;
  padding: 0 !important;
}
#contents .doc-content,
#contents .doc-content p,
#contents .doc-content p span,
#contents .doc-content h2 span {
  font-family: var(--font-ZenKakuGothicA) !important;
}

.doc-content p {
  line-height: 2.2em !important;
}

/* //////////////////////////////////////////////////////////// エリア
//////////////////////////////////////////////////////////// */ .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem 0 1.1rem;
  font-size: 14px;
}






/* ////////////////////////////////////////////////////////////
  左右パネル
//////////////////////////////////////////////////////////// */

.panel-left,
.panel-right {
  position: fixed;
  top: 0;
  height: 100svh;
  z-index: 200;
  pointer-events: none;
  color: var(--text-white);
}

/* ---- 左パネル ---- */
.panel-left {
  left: 6vw;
}

/* 「2026年6月開講」: 上部固定 */
.panel-left__meta .meta-date {
  position: absolute;
  top: 11.8svh;
  font-family: var(--font-IshiiMincho);
  font-size: 30px;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
}
.meta-date .meta-num {
  margin: 0 0.25em;
}
.meta-date .meta-num:first-child {
  margin-left: 0;
}

/* 「第5期」: 森田真生ゼミの真上・横書き・中央揃え */
.panel-left__period {
  margin-bottom: 21px;
  writing-mode: horizontal-tb;
  font-family: var(--font-IshiiMincho);
  font-size: 33px;
  line-height: 1;
  letter-spacing: 0.25em;
  text-align: center !important;
  white-space: nowrap;
  z-index: 200;
  pointer-events: none;
}

/* 「森田真生ゼミ」: 固定配置 */
.panel-left__title {
  position: fixed;
  text-align: center;
  top: 29svh;
  writing-mode: vertical-rl;
  font-family: var(--font-IshiiMincho);
  font-size: 86px;
  font-weight: 100;
  margin: 0;
  line-height: 1;
  letter-spacing: 0.12em;
  transform: scaleX(0.9);
  transform-origin: left top;
  z-index: 200;
  pointer-events: none;
}

/* ---- 右パネル ---- */
.panel-right {
  right: 6vw;
}

/* 「生活の学校」 */
.panel-right__title {
    position: relative;
    top: 5.5svh;
    /* right: 6vw; */
    writing-mode: vertical-rl;
    font-family: var(--font-IshiiMincho);
    font-size: 86px;
    font-weight: 100;
    margin: 0;
    line-height: 1;
    letter-spacing: 0.14em;
    transform: scaleX(0.93);
    transform-origin: right top;
}

/* 「募集中↗」 */
.panel-right__cta {
  position: absolute;
  bottom: 9svh;
  /* right: 4vw; */
  font-family: var(--font-IshiiMincho);
  font-size: 2rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
  white-space: nowrap;
  margin: 0;
  text-align: center;
  pointer-events: auto;
}
.cta-arrow {
  width: 20px;
  height: auto;
  transform: scaleX(-1) translateX(5px);
  display: block;
  margin: 0 auto;
}

/* 指定文字を左右反転 */
.flip-char {
  display: inline-block;
  transform: scaleX(-1);
}

/* ////////////////////////////////////////////////////////////
  左右反転ボタン
//////////////////////////////////////////////////////////// */

/* ---- flip-unit: ラベル + カーソルのセットを画面中央に固定 ---- */
#flip-unit {
  position: fixed;
  bottom: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, 50%);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: .3rem;
  pointer-events: none;
}

#flip-label {
  writing-mode: vertical-rl;
  color: var(--text-white);
  font-family: var(--font-IshiiMincho);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-shadow: none;
  pointer-events: none;
}

#flip-btn {
  position: static;
  pointer-events: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  width: auto;
  height: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}
#flip-btn:hover,
#flip-btn:focus-visible {
  opacity: 1;
}
#flip-btn .flip-icon {
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  display: inline-block;
  transition: transform 0.4s ease;
}
#flip-btn .flip-icon svg {
  width: 180px;
  height: auto;
}
/* カーソルアイコンは反転しない */

/* flip-btn の旧 bottom/right 上書きは廃止（全画面で中央固定） */



/* ////////////////////////////////////////////////////////////
  SPスクロール中フェード
//////////////////////////////////////////////////////////// */

.fade-on-scroll {
  transition: opacity .8s ease;
}

@media (max-width: 767px) {
  body.is-sp-scrolling .fade-on-scroll {
    opacity: 0;
    pointer-events: none;
  }
  body.is-sp-scrolling .doc-native-wrapper {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* ////////////////////////////////////////////////////////////
  SPレイアウト（767px以下）
//////////////////////////////////////////////////////////// */

@media screen and (max-width: 767px) {
  html, body {
    overflow-x: hidden !important;
  }
  ::selection {
    color: inherit;
  }
}

/* ////////////////////////////////////////////////////////////
  スマホ＋タブレット共通（1024px以下）
//////////////////////////////////////////////////////////// */

@media (max-width: 1024px) {
  .doc-native-wrapper {
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto !important;
  }
  #native-doc {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0) scale(1);
    inset: 0;
  }
  #native-doc.is-flipped {
    transform: translateZ(0) scale(1) scaleX(-1);
  }
  #contents {
    padding: 0;
    -webkit-font-smoothing: antialiased;
  }
  #contents p span {
    overflow: auto !important;
    width: auto !important;
    height: auto !important;
  }
  #contents p img {
    width: 100% !important;
    height: auto !important;
  }
  #contents .doc-content {
    padding: 1.8rem !important;
    max-width: 100%;
  }
  #contents .doc-content p,
  #contents .doc-content li {
    line-height: 1.7;
  }
  table {
    width: 100%;
  }
}

/* ////////////////////////////////////////////////////////////
  SPパネル配置（767px以下）
//////////////////////////////////////////////////////////// */

@media (max-width: 767px) {
  .panel-right {
    right: 1vw;
  }

  .panel-left {
    left: 1vw;
  }

  /* 「第5期」: 横書き・左下・森田真生ゼミの真上 */
  .panel-left__period {
    writing-mode: horizontal-tb;
    top: auto;
    left: 0;
    bottom: calc(7svh * 6 + 3svh);
    right: auto;
    font-size: 2.5svh;
    transform: none;
    white-space: nowrap;
  }

  /* 「2026年6月開講」: 左上・フォント小さめ */
  .panel-left__meta .meta-date {
    top: 3vh;
    left: 2vw;
    font-size: 1.3rem;
  }

  #flip-btn .flip-icon svg {
    width: 120px;
  }

  #flip-label {
    font-size: 0.9rem;
  }

  /* 「募集中↗」: 大きく表示 */
  .panel-right__cta {
    font-size: 1.4rem;
    bottom: 3svh;
    right: 0;
    text-align: right;
  }

}

/* ---- 円形テキスト ---- */
#circular-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(770px, 90vmin);
  height: min(770px, 90vmin);
  z-index: 1999;
  pointer-events: none;
  overflow: visible;
}
.ctext {
  fill: var(--text-white);
  font-family: var(--font-IshiiMincho);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.02rem;
}

@media (max-width: 767px) {
  .ctext {
    font-size: 17px;
  }
  #circular-text {
    width: min(639px, 74.7vmin);
    height: min(639px, 74.7vmin);
  }
}

/* ////////////////////////////////////////////////////////////
  SEOコンテンツ（クローラー向け・視覚非表示）
//////////////////////////////////////////////////////////// */

.seo-content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ////////////////////////////////////////////////////////////
  タイトル修正：折り返し防止・固定配置
//////////////////////////////////////////////////////////// */

.morita-zemi-title,
.morita-zemi-school {
  white-space: nowrap;
  overflow: visible;
}

@media (max-width: 767px) {
  .morita-zemi-title {
    position: fixed;
    top: auto;
    left: 3vw;
    right: auto;
    bottom: 3vh;
    padding-bottom: 0;
    transform: none;
    font-size: 36px;
    z-index: 200;
  }

  .morita-zemi-school {
    position: fixed;
    top: 3vh;
    right: 3vw;
    left: auto;
    bottom: auto;
    transform: none;
    font-size: 36px;
    opacity: 1;
    visibility: visible;
    z-index: 200;
  }
}
