/* ==========================================================================
   common.css
   トップページ・下層ページ共通で使用するスタイル
   ========================================================================== */

:root {
  --color-main: #c8272e;
  --color-main-dark: #a31f26;
  --color-accent: #f6ede4;
  --color-yellow: #f2c94c;
  --color-text: #333333;
  --color-white: #ffffff;
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --content-width: 1200px;
  --header-height: 100px;
  --indent-unit: 1.5vw;
}

@media screen and (max-width: 767px) {
  :root {
    --header-height: 70px;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  /* 内文（小さい文字）は全ページ丸ゴシック（--font-round）にそろえる。見出しは h1〜h3 で別指定 */
  font-family: var(--font-round);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

a {
  transition: opacity 0.3s ease;
}

.inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-family: "Zen Kaku Gothic New", sans-serif;
}

/* ---------------------------------------
   pタグのfont-sizeを画面幅ごとに統一管理
--------------------------------------- */
p {
  font-size: 1.05rem;
  font-weight: 500;
}

@media (max-width: 1561px) {
  p {
    font-size: 0.95rem;
  }
}

@media (max-width: 1200px) {
  p {
    font-size: 0.95rem;
  }
}

@media (max-width: 1268px) {
  :root {
    --indent-unit: 1.2vw;
  }
}

/* ---------------------------------------
   ページ全体レイアウト（上部固定ヘッダー / 下にコンテンツ）
--------------------------------------- */
.l-wrapper {
  position: relative;
}

.l-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.l-main {
  position: relative;
  flex: 1;
}

.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

@media screen and (max-width: 767px) {
  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }
}

/* ---------------------------------------
   フォントウェイト ユーティリティ
--------------------------------------- */
.zen-kaku-gothic-new-light {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.zen-kaku-gothic-new-regular {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.zen-kaku-gothic-new-medium {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.zen-kaku-gothic-new-bold {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.zen-kaku-gothic-new-black {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 900;
  font-style: normal;
}

/* ---------------------------------------
   c-heading（英語ロゴ＋赤い見出し）
   スクロールで画面内に入るたびに繰り返しアニメーションする。
   トリガーは main.js が .js-inview を監視して付け外しする .is-inview
--------------------------------------- */
.c-heading {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.4rem;
  line-height: 1.7;
  margin-left: 5vw;
}

.c-heading__en {
  width: 15vw;
  max-width: 260px;
  height: auto;
  opacity: 0;
  transform: rotate(-10deg);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.is-inview .c-heading__en {
  opacity: 1;
  transform: rotate(0deg);
  margin-left: calc(var(--indent-unit) * -1);
  position: relative;
  bottom: -1rem;
  z-index: 1;
}

.c-heading__ja {
  font-size: min(2.75rem, 2.5vw);
  font-weight: 600;
  line-height: 1.5;
  z-index: 1;
  color: var(--color-main);
}

.c-heading__ja span {
  display: block;
}

.c-heading__ja span:nth-child(2) {
  text-indent: calc(var(--indent-unit) * 1);
}

.c-heading__ja span:nth-child(3) {
  text-indent: calc(var(--indent-unit) * 2);
}

.c-heading__ja span:nth-child(4) {
  text-indent: calc(var(--indent-unit) * 3);
}

/* ---------------------------------------
   c-reveal-shape（背景シェイプが90%→100%に拡大しながら現れる）
   他セクションの背景装飾でも共通で使い回す
--------------------------------------- */
.c-reveal-shape {
  transform: scale(0.9);
  transition: transform 1s ease;
}

.is-inview .c-reveal-shape {
  transform: scale(1);
}

/* ---------------------------------------
   c-btn（点線の丸ボタン。「〇〇について」等で共通使用）
--------------------------------------- */
.c-btn {
  letter-spacing: 0.15rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 2px dashed var(--color-main);
  border-radius: 50px;
  color: var(--color-main);
  font-size: 1.05rem;
  font-weight: 700;
  background-color: transparent;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  margin: 10px auto;
  background: #fff;
}

.c-btn i {
  transition: transform 0.3s ease;
}

.c-btn:hover {
  opacity: 1;
  background-color: var(--color-main);
  color: var(--color-white);
}

.c-btn:hover i {
  transform: translateX(5px);
}

/* ---------------------------------------
  曲線
--------------------------------------- */

.curve-rule-pink {
  display: block;
  width: 100%;
  background: url("../img/bk/curve-pink-rule.png") center;
  background-size: 100% 100%;
  height: 50px;
}

@media (max-width: 1200px) {
  .c-heading__ja {
    font-size: max(1.25rem, 3vw);
  }

  .c-btn {
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .c-heading__ja {
    font-size: max(1.25rem, 3.5vw);
  }

  .c-heading__en {
    width: 22vw;
  }
}

@media (max-width: 767px) {
  .c-heading__ja {
    font-size: max(1.25rem, 4.75vw);
  }

  .c-heading__en {
    width: 30vw;
    min-width: 200px;
    left: -3vw;
    top: 5px;
  }
}

@media (max-width: 500px) {
  .c-heading__ja {
    font-size: max(1.5rem, 5.25vw);
  }
}
/* ---------------------------------------
   太陽の黄色・クリーム色などの追加カラー
   （トップページ・下層ページ共通。元は sub-common.css にあったもの）
--------------------------------------- */
:root {
  --color-pink: #fcf2f2;
  --color-pink-deep: #f6d9da;
  --color-cream: #fff8e6;
  --color-sun: #ffcf3f;
  --color-sun-light: #ffe58f;
  --color-leaf: #6aa84f;
  --font-round: "Zen Maru Gothic", "M PLUS Rounded 1c", var(--font-base);
  --sub-inner: 1200px;
}

/* ==========================================================================
   c-sec-ttl（セクション見出し：トップの新着情報・下層ページ共通）
   英字ラベル＋赤い大見出し＋黄色マーカー。.js-inview で画面に入ると
   マーカーが左から引かれ、英字ラベルがぴょこっと跳ねる。
   ========================================================================== */
.c-sec-ttl {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 56px;
  text-align: center;
}

.c-sec-ttl__en {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 30px;
  background: var(--color-main);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  transform: rotate(-4deg);
}

.c-sec-ttl__en i {
  color: var(--color-sun);
}

.c-sec-ttl__ja {
  position: relative;
  z-index: 0;
  margin-top: 10px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--color-main);
}

.c-sec-ttl__ja::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: 2px;
  height: 0.4em;
  z-index: -1;
  border-radius: 20px;
  background: var(--color-sun-light);
  transform: rotate(-1deg) scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s 0.2s cubic-bezier(0.6, 0, 0.2, 1);
}

.js-inview.is-inview .c-sec-ttl__ja::after {
  transform: rotate(-1deg) scaleX(1);
}

.js-inview.is-inview .c-sec-ttl__en {
  animation: c-hop 0.7s ease;
}

@keyframes c-hop {
  0% {
    transform: rotate(-4deg) translateY(0);
  }
  35% {
    transform: rotate(-8deg) translateY(-10px);
  }
  65% {
    transform: rotate(0deg) translateY(0);
  }
  100% {
    transform: rotate(-4deg) translateY(0);
  }
}

.c-sec-ttl__sub {
  margin-top: 6px;
  font-family: var(--font-round);
  font-weight: 700;
  color: #8c5a5a;
}

@media (max-width: 500px) {
  .c-sec-ttl__ja {
    letter-spacing: 0.01rem;
  }
}
