/* ==========================================================================
   基本スタイル
   各ページの要素スタイルは common.css（全ページ共通）と page-*.css にあります。
   ========================================================================== */

:root {
  --ff-heading: "Noto Sans JP", sans-serif; /* 元サイト：見出ゴMB1 */
  --ff-body: "Noto Sans JP", sans-serif;    /* 元サイト：中ゴシックBBB */
  --ff-en: "Poppins", sans-serif;
}

/* ---------- reset ---------- */
html, body { margin: 0; padding: 0; }
body {
  background: #eeeeee;
  color: #333;
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, .15); }
a, button { background: none; border: 0; margin: 0; padding: 0; font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
input, select, textarea { margin: 0; }
input[type=email], input[type=tel], input[type=text], select, textarea { -webkit-appearance: none; appearance: none; }
textarea { resize: none; }
table { border-collapse: collapse; border-spacing: 0; }

/* ---------- 要素の基本形（STUDIO のボックスと同じ振る舞い） ---------- */
:where(.el) {
  position: relative;
  z-index: 0;
  display: flex;
  flex-flow: column;
  flex: none;
  align-content: center;
  align-items: center;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  transition-property: all, --g-angle, --g-color-0, --g-position-0, --g-color-1, --g-position-1;
}
:where(.el)::-webkit-scrollbar { display: none; }
:where(.el.text, .el.icon) {
  display: flex;
  flex-direction: row;
  place-content: center;
  align-items: center;
  overflow: visible;
  word-break: break-word;
  overflow-wrap: anywhere;
}
:where(.el.icon.fa) { display: inline-flex; }
.material-icons { font-family: "Material Icons"; font-weight: normal; font-style: normal; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; }
:where(.image) { position: relative; }
:where(.image)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-position: 50%;
  background-size: cover;
  pointer-events: none;
  transition: inherit;
}
:where(.link) { cursor: pointer; }
:where(.button) { cursor: pointer; transition: all .4s cubic-bezier(.4, .4, 0, 1); }
:where(.fixed) { z-index: 2; }
:where(.sticky) { z-index: 1; }
:where(.frame) { display: block; overflow: hidden; }
:where(.frame) > iframe { width: 100%; height: 100%; }
.el.section { flex-flow: column !important; align-content: center !important; align-items: center !important; width: 100% !important; max-width: 100% !important; height: auto !important; padding: 0 !important; }
:where(.el.section-inner) { position: static !important; }
:where(.page) { min-height: 100dvh; overflow: clip; }

/* 本文（リッチテキスト） */
.richText { display: block; word-break: break-word; }
.richText p { align-self: stretch; margin: 10px 0; display: block; }
.richText > p { min-height: 1em; }
.richText img, .richText video { vertical-align: bottom; max-width: 100%; height: auto; }
.richText h1 { margin: 20px 0; font-size: 3em; font-weight: 700; }
.richText h2 { margin: 10px 0; font-size: 2em; font-weight: 700; }
.richText h3 { margin: 10px 0; font-size: 1em; font-weight: 700; }
.richText h4, .richText h5 { margin: 10px 0; font-size: 1em; font-weight: 600; }
.richText ul { margin: 0 0 0 20px; }
.richText ul li { margin: 10px 0; list-style: outside; }
.richText ol { margin: 0 0 0 20px; }
.richText ol li { margin: 10px 0; list-style: decimal; }
.richText strong { font-weight: 900; }
.richText a { color: #007cff; text-decoration: underline; }

/* ---------- 改行の出し分け（data-bp） ---------- */
br[data-bp~="base:0"] { display: none; }
br[data-bp~="base:1"] { display: inline; }
@media screen and (max-width: 1140px) {
  br[data-bp~="@small:0"] { display: none; }
  br[data-bp~="@small:1"] { display: inline; }
}
@media screen and (max-width: 840px) {
  br[data-bp~="@tablet:0"] { display: none; }
  br[data-bp~="@tablet:1"] { display: inline; }
}
@media screen and (max-width: 540px) {
  br[data-bp~="@mobile:0"] { display: none; }
  br[data-bp~="@mobile:1"] { display: inline; }
}
@media screen and (max-width: 320px) {
  br[data-bp~="@mini:0"] { display: none; }
  br[data-bp~="@mini:1"] { display: inline; }
}

/* ---------- グラデーション用のカスタムプロパティ ---------- */
@property --g-angle { syntax: "<angle>"; inherits: false; initial-value: 180deg; }
@property --g-color-0 { syntax: "<color>"; inherits: false; initial-value: transparent; }
@property --g-position-0 { syntax: "<percentage>"; inherits: false; initial-value: .01%; }
@property --g-color-1 { syntax: "<color>"; inherits: false; initial-value: transparent; }
@property --g-position-1 { syntax: "<percentage>"; inherits: false; initial-value: 100%; }

/* ---------- 横に流れる帯（マーキー） ---------- */
.marquee-item { animation: marquee var(--marquee-duration, 20s) linear infinite; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-item { animation: none; }
}

/* ---------- スマホ・タブレット用メニュー ---------- */
.menu { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; background: rgba(0, 0, 0, .16); opacity: 0; transition: opacity .4s cubic-bezier(.4, .4, 0, 1); }
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu__panel { display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; padding: 100px 60px; overflow: hidden auto; background: #dbe1e1; }
.menu__inner { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
.menu__logo { margin: 0 0 60px; }
.menu__logo img { width: 260px; max-width: 100%; height: auto; }
.menu__nav { display: flex; flex-direction: column; width: 100%; border-bottom: 1px solid #c1cccb; margin: 0 0 20px; }
.menu__cols { display: flex; flex-direction: row; width: 100%; }
.menu__col { display: flex; flex-direction: column; align-items: flex-start; width: 50%; }
.menu__col--left { padding: 0 40px 0 0; border-right: 1px solid #c1cccb; }
.menu__col--right { padding: 0 0 0 20px; }
.menu__item { display: flex; flex-direction: column; align-items: flex-start; transition: opacity .4s; }
.menu__item--gap { margin: 30px 0 0; }
.menu__en { color: #242424; font-family: var(--ff-en); font-size: 36px; font-weight: 600; line-height: 1.1; margin: 0 0 4px; }
.menu__ja { color: #242424; font-family: var(--ff-heading); font-size: 14px; font-weight: 700; letter-spacing: .05em; line-height: 1.1; }
.menu__sub { display: flex; align-items: center; margin: 20px 0 0; }
.menu__sub--s { margin-top: 14px; }
.menu__bar { width: 10px; height: 1px; margin: 0 6px 0 0; background: #c1cccb; }
.menu__subtext { color: #333; font-family: var(--ff-heading); font-size: 14px; font-weight: 700; line-height: 1.2; transition: color .4s; }
.menu__sub:hover .menu__subtext { color: #c1cccb; }
.menu__cta { display: flex; flex-direction: column; align-items: center; width: 100%; margin: 30px 0; padding: 30px 0 0; border-top: 1px solid #c1cccb; }
.menu__contact { position: relative; display: flex; align-items: center; justify-content: center; width: 240px; height: 60px; overflow: hidden; background: #000; }
.menu__contact-text { position: relative; z-index: 1; color: #fff; font-family: var(--ff-heading); font-size: 16px; font-weight: 700; line-height: 1.4; transition: color .4s; }
.menu__contact-bg { position: absolute; inset: 0; background: #fff; scale: 0 1; transform-origin: left center; transition: scale .4s cubic-bezier(.4, .4, 0, 1); }
.menu__contact:hover .menu__contact-text { color: #000; }
.menu__contact:hover .menu__contact-bg { scale: 1; }
.menu__close { position: fixed; top: 0; right: 0; display: flex; align-items: center; justify-content: center; width: 100px; height: 100px; background: #000; transition: background .4s; }
.menu__close:hover { background: #888; }
.menu__close img { width: 40px; height: auto; }
@media screen and (max-width: 540px) {
  .menu { align-items: center; flex-direction: column; }
  .menu__panel { justify-content: flex-start; padding: 60px 30px; }
  .menu__inner { align-items: center; }
  .menu__logo img { width: 210px; }
  .menu__cols { flex-direction: column; align-items: center; }
  .menu__col--left { padding: 0; }
  .menu__col--right { padding: 0; margin: 24px 0 0; }
  .menu__en { font-size: 28px; margin: 0; }
  .menu__item--gap { margin-top: 24px; }
  .menu__sub { width: 100%; padding: 0 10px 0 0; }
  .menu__bar { display: none; }
  .menu__subtext { font-size: 13px; }
  .menu__contact { border-radius: 32px; background: linear-gradient(90deg, #19418e 0%, #89aaea 100%); }
  .menu__close { width: 60px; height: 60px; }
  .menu__close img { width: 24px; }
}
@media screen and (max-width: 320px) {
  .menu__panel { padding: 60px 24px; }
  .menu__logo img { width: 218px; }
  .menu__en { font-size: 24px; }
  .menu__ja { font-size: 13px; }
}

/* ---------- お問い合わせフォーム ---------- */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { width: 100%; margin: 16px 0 0; font-family: var(--ff-heading); font-size: 15px; font-weight: 700; line-height: 1.6; color: #19418e; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: #c62828; }
