@charset "utf-8";

/* ==========================================================================
   Garnier Inc.
   ベタ塗りの黄色 / 極太ゴシック / まるいアーチ。
   アーチ（オペラ座＝社名の由来）を太く・まるくしたものが唯一のモチーフ。
   ロゴ、カードの角、セクションの境目、装飾すべてを同じ形で通す。
   ========================================================================== */

:root {
  --yellow: #ffe200;
  --yellow-mid: #fff08a;
  --yellow-pale: #fffbdd;
  --ink: #221f1c;
  --ink-soft: #4d4842;
  --gray: #f3f1ee;
  --white: #fff;

  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "YuGothic", "Meiryo", sans-serif;

  --measure: 1120px;
  --gutter: 24px;
  --r: 24px;
  --arch: 999px 999px var(--r) var(--r);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.95;
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
}

main { flex: 1 0 auto; }

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -.01em;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 読み物カラム。左端は他セクションと揃えたまま中身だけ止める */
.narrow > * { max-width: 720px; }

/* --- ロゴ ---------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ロゴマーク。オペラ座のアーチがそのまま頭文字の G になっている。
   実体は assets/logo.png（角は透過済み） */
.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  background: url("logo.png") center / contain no-repeat;
}

.brand-word {
  font-weight: 900;
  font-size: 19px;
  letter-spacing: .06em;
  line-height: 1;
}

.brand-jp {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: .06em;
  line-height: 1;
  margin-top: 5px;
}

/* --- ヘッダー ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 2px solid var(--ink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.menu-btn {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
}
.site-nav a:hover { background: var(--yellow-pale); }

/* 現在地のピルと CTA ボタンは、どちらも塗りつぶしになる。
   内側の余白を揃えて、隣り合っても別々の要素に見えるようにする */
.site-nav a[aria-current="page"] {
  background: var(--yellow);
  padding-inline: 22px;
}

/* CTA は他のメニューと地続きに見えないよう、手前で一段あける */
.site-nav .nav-cta { margin-left: 18px; }
.site-nav .nav-cta a {
  background: var(--ink);
  color: var(--white);
  padding-inline: 22px;
}
.site-nav .nav-cta a:hover { background: var(--ink-soft); }

/* --- ボタン -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  font-size: 15px;
  line-height: 1.4;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink-soft); }

.btn::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: rotate(45deg);
}

.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { box-shadow: 0 6px 0 var(--ink); }

.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { box-shadow: 0 6px 0 var(--ink); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* --- 帯とアーチの切り替え ------------------------------------------------ */

.band-yellow { background: var(--yellow); }
.band-white { background: var(--white); }
.band-pale { background: var(--yellow-pale); }
.band-ink { background: var(--ink); color: var(--white); }

.section { padding-block: 72px; }

/* セクションの境目。下のセクションの色が、不規則なアメーバ状のかたまりになって
   上へせり上がる。繰り返しではなく1枚絵を横幅いっぱいに引き伸ばすので、
   どこにも同じリズムが出ない。クラス名は「下の色-on-上の色」。
   形は assets/wave-*.svg。ふくらみの位置を変えたいときは
   あのファイルの path の d 属性だけ書き換えればよい。 */
.scallop {
  height: 46px;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
}
.scallop-y-on-w { background-image: url("wave-y-on-w.svg"); }
.scallop-w-on-y { background-image: url("wave-w-on-y.svg"); }
.scallop-p-on-w { background-image: url("wave-p-on-w.svg"); }
.scallop-w-on-p { background-image: url("wave-w-on-p.svg"); }
.scallop-i-on-y { background-image: url("wave-i-on-y.svg"); }
.scallop-w-on-i { background-image: url("wave-w-on-i.svg"); }
.scallop-y-on-p { background-image: url("wave-y-on-p.svg"); }

/* --- ヒーロー ------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--yellow);
  padding-top: 64px;
}

.hero .wrap { position: relative; z-index: 2; }

.tag {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1.6;
}

.hero h1 {
  font-size: clamp(34px, 9.6vw, 78px);
  line-height: 1.36;
  letter-spacing: -.02em;
  margin: 24px 0 0;
}

.hero h1 .u {
  background: linear-gradient(transparent 62%, var(--white) 62%);
  padding-inline: 2px;
}

.hero-lead {
  margin: 26px 0 0;
  max-width: 30em;
  font-size: 15px;
  font-weight: 700;
  line-height: 2.1;
  /* 文節で折り返して「す。」だけが次の行に落ちないようにする */
  word-break: auto-phrase;
}

/* ヒーロー下端。左右非対称の大きなふくらみで白へ抜ける */
.hero-wave {
  position: relative;
  z-index: 1;
  height: 92px;
  margin-top: 56px;
  background: url("wave-hero.svg") center bottom / 100% 100% no-repeat;
}

/* ヒーロー内に浮かぶかたまり。border-radius を8方向バラバラに指定して
   真円にならないようにしている（数値をいじると形が変わる） */
.hero-dot {
  position: absolute;
  background: var(--white);
  opacity: .5;
  z-index: 0;
}
.hero-dot-a {
  width: 280px; height: 236px; top: -84px; right: -64px;
  border-radius: 72% 28% 47% 53% / 32% 66% 34% 68%;
  transform: rotate(-12deg);
}
.hero-dot-b {
  width: 148px; height: 112px; top: 226px; right: 124px; opacity: .42;
  border-radius: 34% 66% 71% 29% / 62% 30% 70% 38%;
  transform: rotate(22deg);
}
.hero-dot-c {
  width: 88px; height: 74px; top: 128px; right: 306px; opacity: .38;
  border-radius: 68% 32% 38% 62% / 30% 70% 30% 70%;
  transform: rotate(-34deg);
}

/* --- 見出し -------------------------------------------------------------- */

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2em;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 20px;
}
.band-yellow .section-label { background: var(--white); }
.band-ink .section-label { background: var(--yellow); }
.band-ink .em { color: var(--yellow); }
.band-ink .note { color: #a49d94; }

.section-head h2 {
  font-size: clamp(26px, 6.4vw, 44px);
  line-height: 1.4;
}

.section-head { margin-bottom: 40px; }

.lead-big {
  font-size: clamp(17px, 3.4vw, 21px);
  font-weight: 900;
  line-height: 1.9;
  margin: 0 0 24px;
}

.prose p { margin: 0 0 1.5em; }
.prose p:last-child { margin-bottom: 0; }
.prose .note { font-size: 13px; color: var(--ink-soft); }

/* --- 名前の話（大きな数字） ---------------------------------------------- */

.bignum {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0 0 8px;
}
.bignum b {
  font-size: clamp(52px, 15vw, 108px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
}
.bignum i {
  font-style: normal;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.7;
}

/* --- 名前の話（本文＋イラスト） ------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

/* イラストの置き場所。画像が無いあいだは破線の枠とファイル名を出す。
   assets/opera.png を置けば自動で切り替わる（差し替え作業は不要）。 */
.figure { margin: 0; }
.figure img { width: 100%; max-width: 460px; margin-inline: auto; }
.figure.is-empty img { display: none; }
.figure.is-empty::before {
  content: attr(data-file);
  display: grid;
  place-content: center;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin-inline: auto;
  border: 3px dashed #d8d3c8;
  border-radius: var(--r);
  color: #a9a298;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
}
.band-ink .figure.is-empty::before { border-color: #4a453d; color: #6f6960; }

/* パラパラ漫画。stage-anim.png は同じ舞台の3コマを横に並べたもので、
   踊り手以外は1ピクセルも動かない。コマ数を変えたら 300%/150%/steps(3) の
   3つの数字をコマ数に合わせて直すこと（n コマなら n*100% / (n-1)*100% / steps(n)）*/
.flipbook {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  background-image: url("stage-anim.png");
  background-repeat: no-repeat;
  background-size: 300% 100%;
  background-position: 0 0;
  animation: flipbook .9s steps(3) infinite;
}
@keyframes flipbook { to { background-position: 150% 0; } }

@media (prefers-reduced-motion: reduce) {
  .flipbook { animation: none; }
}

/* --- カード -------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: 28px 24px 30px;
}

/* 番号はアーチ型のブロックに入れる */
.card-no {
  display: grid;
  place-content: center;
  width: 54px;
  height: 62px;
  margin-bottom: 18px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: var(--arch);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

/* 事業内容の 01/02/03。本文の右に置く大きなアーチ。
   読み物カラムは720pxで止めているので、その右の余白をこれで埋める */
.step-mark {
  display: grid;
  place-content: center;
  width: 100%;
  max-width: 140px;
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: var(--arch);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
}

/* 2カラムのカード。項目数が4つ・8つのときに使う */
.cards.cards-2 { grid-template-columns: 1fr; }

/* 見出しの下につく短い導入文 */
.section-head .sub {
  margin: 18px 0 0;
  max-width: 44em;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 2;
}

.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { margin: 0; font-size: 14px; line-height: 1.95; }

.card-solo { max-width: 380px; }

/* --- 会社概要 ------------------------------------------------------------ */

.deftable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-size: 14.5px;
}
.deftable th,
.deftable td {
  text-align: left;
  vertical-align: top;
  padding: 14px 20px;
  line-height: 1.9;
}
.deftable th {
  width: 11em;
  font-weight: 900;
  white-space: nowrap;
  background: var(--yellow);
  border-radius: 999px 0 0 999px;
}
.deftable td {
  font-weight: 500;
  background: var(--gray);
  border-radius: 0 999px 999px 0;
}
.deftable td a { font-weight: 900; text-decoration: underline; }
/* 代表者名は文字に見える画像（行の高さぴったりに描いてある） */
.deftable .name-img { display: inline-block; width: auto; height: 1.9em; vertical-align: top; }

/* 所在地の地図。カードと同じ墨の枠と角丸 */
.map {
  margin-top: 24px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

.todo {
  display: inline-block;
  background: var(--ink);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 2px 12px;
  border-radius: 999px;
}

/* --- CTA ----------------------------------------------------------------- */

.cta {
  text-align: center;
  padding-block: 76px;
}
.cta h2 {
  font-size: clamp(26px, 7vw, 52px);
  line-height: 1.4;
  margin-bottom: 10px;
}
.cta p { margin: 0 0 30px; font-weight: 700; }
.cta .btn-row { justify-content: center; margin-top: 0; }

.mail {
  display: inline-block;
  font-size: clamp(20px, 5.2vw, 34px);
  font-weight: 900;
  letter-spacing: .01em;
  word-break: break-all;
  border-bottom: 4px solid var(--ink);
  line-height: 1.5;
}

/* --- 下層ページの見出し -------------------------------------------------- */

.page-head { background: var(--yellow); padding-block: 56px 62px; }
.page-head h1 { font-size: clamp(30px, 7.6vw, 56px); }

/* --- 規約ページ ---------------------------------------------------------- */

.policy h2 {
  font-size: 19px;
  margin: 2.4em 0 .7em;
  padding-left: 16px;
  border-left: 8px solid var(--yellow);
}
.policy h2:first-child { margin-top: 0; }
.policy ul { padding-left: 1.3em; margin: 0 0 1.5em; }
.policy li { margin-bottom: .3em; }

/* --- フッター ------------------------------------------------------------ */

.site-footer { background: var(--ink); color: var(--white); padding-block: 54px 32px; }
.site-footer .brand-jp { color: #a49d94; }

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid #443f3a;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}
.footer-nav a:hover { color: var(--yellow); }

.copyright { margin: 22px 0 0; font-size: 12px; font-weight: 700; color: #8d8781; }

/* --- レスポンシブ -------------------------------------------------------- */

@media (min-width: 780px) {
  body { font-size: 15.5px; }
  .section { padding-block: 104px; }
  .hero { padding-top: 96px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards.cards-2 { grid-template-columns: repeat(2, 1fr); }
  /* 2列で奇数枚のとき、最後の1枚は横いっぱいにして穴をあけない */
  .cards.cards-2 > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .step-mark { max-width: 250px; font-size: 86px; }
  .card { padding: 34px 30px 36px; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .menu-btn { display: none; }
  .hero-wave { height: 150px; }
  .scallop { height: 74px; }
  .split { grid-template-columns: 1fr 400px; gap: 52px; }
}

@media (max-width: 779px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--white);
    border-bottom: 2px solid var(--ink);
    padding: 10px var(--gutter) 20px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 14px 16px; font-size: 15px; border-radius: 14px; }
  /* 縦積みのドロップダウンでは、横方向の逃がしは不要 */
  .site-nav a[aria-current="page"] { padding-inline: 16px; }
  .site-nav .nav-cta { margin-left: 0; }
  .site-nav .nav-cta a { text-align: center; margin-top: 8px; }

  .deftable { border-spacing: 0 6px; }
  .deftable th, .deftable td { display: block; width: auto; }
  /* 見出しセルは中身の幅ぶんだけのピルにする（全幅の黄色い帯にしない） */
  .deftable th { width: fit-content; border-radius: 999px; padding: 6px 18px; font-size: 13px; }
  .deftable td { border-radius: 16px; padding: 10px 18px 14px; background: transparent; }

  .hero-dot-a { width: 170px; height: 156px; top: -56px; right: -46px; }
  .hero-dot-b, .hero-dot-c { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
