:root {
  /* ------------------------------------------------
     1. 変数定義 (基本設定)
     ------------------------------------------------ */
  /* 基準となるフォントサイズ */
  --base-fs: 16;

  /* インナー幅と余白 */
  --inner-width: 1480;
  --inner-width-min: 375;
  --padding-pc: 25;
  --padding-sp: 22;

  /* スペーシング（margin-top 統一用） */
  --space-xs: 5;
  --space-sm: 10;
  --space-md: 15;
  --space-lg: 20;
  --space-xl: 40;
  --space-2xl: 50;
  --space-3xl: 60;
  --space-4xl: 80;
  --space-5xl: 100;
  /* ブレークポイント（統一） */
  --bp-sp: 768px;
  --bp-pc: 769px;

  /* ------------------------------------------------
     2. 変数定義 (基本設定)
     ------------------------------------------------ */
  /* カラー */
  --black: #000;
  --black-300: #333;
  --white: #fff;
  --white-100: #F8F8F8;
  --white-200: #666666;
  --white-300: #f1f1f1;

  /* ブルー */
  --blue-100: #e2efff;
  --blue-300: #00c0fa;
  --blue-500: #1161bc;
  --blue-600: #01449b;
  --blue-700: #06346f;
  --blue-800: #002d61;

  /* グレー */
  --gray-100: #e0e0e0;
  --gray-200: #f6f6f6;
  --gray-300: #cccccc;
  --gray-400: #ededed;
  --gray-500: #eeeeee;

  /* イエロー */
  --yellow-500: #ffd113;

  /* エンジ */
  --en-side-nav: #af3341;
  --en-color: #af3243;

  /* フォント */

  /* メイン（ゴシック体）: 日本語はNoto Sans */
  --font-main: "Noto Serif JP", serif;

  /* 日本語はNoto Serif */
  --font-serif: "Noto Sans JP", sans-serif;

  /* 英語アクセント（見出し等） */
  --font-en: "Libre Baskerville", serif;

  --fs-xs: clamp(
    calc(12 * var(--r)),
    calc(12 * var(--r)) + ((14 - 12) * var(--fluid-rate)),
    calc(14 * var(--r))
  );

  --fs-sm: clamp(
    calc(12 * var(--r)),
    calc(12 * var(--r)) + ((16 - 12) * var(--fluid-rate)),
    calc(16 * var(--r))
  );

  --fs-base: clamp(
    calc(14 * var(--r)),
    calc(14 * var(--r)) + ((16 - 14) * var(--fluid-rate)),
    calc(16 * var(--r))
  );

  --fs-md: clamp(
    calc(16 * var(--r)),
    calc(16 * var(--r)) + ((18 - 16) * var(--fluid-rate)),
    calc(18 * var(--r))
  );

  --fs-lg: clamp(
    calc(16 * var(--r)),
    calc(16 * var(--r)) + ((20 - 16) * var(--fluid-rate)),
    calc(20 * var(--r))
  );

  /* ------------------------------------------------
     3. レスポンシブ可変範囲の設定
     ------------------------------------------------ */
  /* 画面幅がここから... */
  --vp-min: var(--inner-width-min);
  /* ここまで広がる間に、値を滑らかに変化させる */
  --vp-max: var(--inner-width);


  /* ------------------------------------------------
     4. 計算用係数・ロジック
     ------------------------------------------------ */
  /* rem変換係数 (1px = 0.0625rem) */
  --r: calc(1rem / var(--base-fs));

  /* vw変換係数 (従来の使い方用) */
  --v: calc(100vw / var(--vp-max));

  /* 進捗率 (Fluid Rate): 0 〜 1 で推移する係数 */
  --fluid-rate: calc(
    (100vw - (var(--vp-min) * 1px)) / (var(--vp-max) - var(--vp-min))
  );
}

html {
  /* ------------------------------------------------
     5. デフォルト設定 (376px ~ 767px)
     ------------------------------------------------ */
  font-size: 100%; /* 一般的に16px */


  /* ------------------------------------------------
     6. スマホ用 (~ 375px)
     ロジック: vw(375, 16)
     ------------------------------------------------ */
  @media (max-width: 375px) {
    /* 16 / 375 * 100vw */
    font-size: calc(var(--base-fs) / var(--inner-width-min) * 100vw);
  }


  /* ------------------------------------------------
     7. PC可変エリア (768px ~ インナー幅限界)
     ロジック: vw($breakpointInner, 16)
     ------------------------------------------------ */
  /* 【重要】
     ここの 1040px (1000 + 20*2) だけは手計算して記述する必要があります。
  */
  @media (min-width: 768px) and (max-width: 1480px) {
    /* 計算式: 16 / (インナー幅 + 余白*2) * 100vw
       変数はプロパティ値の中なら使えるので、計算式は維持できます。
    */
    font-size: calc(var(--base-fs) / (var(--inner-width) + var(--padding-pc) * 2) * 100vw);
  }


  /* ------------------------------------------------
     8. PC固定エリア (インナー幅限界 ~)
     ------------------------------------------------ */
  /* ここも数値は手書きする必要があります */
  @media (min-width: 1481px) {
    font-size: 100%;
  }
}

.l-inner {
  margin-inline: auto;
  max-width: calc(var(--inner-width) * 1px + var(--padding-pc) * 2 * 1px);

  /* SP(calc(20 * var(--r))) 〜 PC(calc(25 * var(--r))) まで滑らかに可変する余白 */
  padding-inline: clamp(
    calc(var(--padding-sp) * 1px),
    calc(var(--padding-sp) * 1px) + ((var(--padding-pc) - var(--padding-sp)) * var(--fluid-rate)),
    calc(var(--padding-pc) * 1px)
  );
  width: 100%;
}

.p-bottom-nav {
  background-color: var(--white-100);
  margin-top: calc(80 * var(--r));
}

/* 背景画像 */

.p-bottom-nav__banner {
  height: calc(400 * var(--r));
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* 画像に重ねるフィルター */

.p-bottom-nav__banner::after {
  background-color: rgba(0, 78, 115, 0.4);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 80%;
  z-index: 1;
}

.p-bottom-nav__banner img {
  height: 100%;
  width: 80%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* 重なるエリアのコンテナ */

.p-bottom-nav__inner {
  margin: 0 auto;
  margin-top: calc(-300 * var(--r));
  max-width: calc(var(--inner-width) * var(--r));
  padding: 0 calc(var(--padding-pc) * var(--r));
  position: relative;
  z-index: 20;
}

/* カードの横並び */

.p-bottom-nav__card-list {
  display: flex;
  gap: calc(20 * var(--r));
  justify-content: space-between;
  margin-left: calc(200 * var(--r));
  width: calc(1200 * var(--r));
}

/* 白いカード単体 */

.c-nav-card {
  background-color: var(--white);
  box-shadow: 1px 1px 10px var(--en-color);
  flex: 1;
  padding: calc(20 * var(--r)) calc(30 * var(--r));
}

.c-nav-card__title {
  align-items: center;
  color: var(--en-color);
  display: flex;
  font-family: var(--font-main);
  font-size: calc(20 * var(--r));
  gap: calc(5 * var(--r));
}

.c-nav-card__title .c-nav-card__icon {
  display: inline-flex;
  flex-shrink: 0;
}

.c-nav-card__title .c-nav-card__icon img {
  height: auto;
  width: calc(14 * var(--r));
}

.c-nav-card__title--mt-sub {
  margin-top: calc(40 * var(--r));
}

/* リンク一覧 */

.c-nav-card__links {
  list-style: none;
  margin-top: calc(20 * var(--r));
}

.c-nav-card__links li {
  border-bottom: 1px solid var(--gray-100);
}

.c-nav-card__links li:last-child {
  border-bottom: none;
}

.c-nav-card__links a {
  align-items: center;
  color: var(--black-300);
  display: flex;
  font-size: calc(15 * var(--r));
  justify-content: space-between;
  padding: calc(12 * var(--r)) 0;
  text-decoration: none;
  transition: 0.3s;
}

/* 右側の矢印アイコン */

.c-nav-card__links a::after {
  color: #ccc;
  content: '>';
  font-size: 0.8em;
}

.c-nav-card__links a:hover {
  color: var(--en-color);
  padding-left: 5px;
}

@media screen and (max-width: 767px) {
  .p-bottom-nav__inner {
    display: flex;
    justify-content: center;
    margin-top: calc(-200 * var(--r));
    padding: 0 calc(10 * var(--r));
  }

  .p-bottom-nav__banner {
    height: calc(280 * var(--r));
  }

  .p-bottom-nav__banner img {
    height: calc(300 * var(--r));
    width: 100%;
    -o-object-fit: cover;
       object-fit: cover;
  }

  .p-bottom-nav__banner::after {
    height: calc(300 * var(--r));
    width: 100%;
  }

  .p-bottom-nav__card-list {
    flex-wrap: wrap;
    gap: calc(20 * var(--r));
    margin-left: 0;
    max-width: 80%;
  }

  .c-nav-card {
    flex: 0 0 auto;
    width: calc(50% - (10 * var(--r)));
  }

  .c-nav-card:nth-child(n + 3) {
    margin-top: calc(20 * var(--r));
  }

  .c-nav-card__title {
    font-size: calc(16 * var(--r));
  }
  .c-nav-card__links a {
    font-size: calc(12 * var(--r));
  }
}

@media screen and (max-width: 570px) {
  .p-bottom-nav__card-list {
    align-items: center;
    flex-direction: column;
    gap: calc(20 * var(--r));
  }

  .c-nav-card {
    flex: none;
    width: 100%;
  }

  .c-nav-card:nth-child(n + 2) {
    margin-top: 0;
  }
}

.p-daily-life {
  overflow: hidden;
  padding: calc(60 * var(--r)) 0;
}

.p-daily-life__container {
  align-items: center;
  display: flex;
  margin-top: calc(100 * var(--r));
}

/* --- 左側 ヘッダー --- */

.p-daily-life__header {
  background-color: var(--white);
  flex-shrink: 0;
  height: calc(330 * var(--r));
  padding: 0 calc(60 * var(--r));
  text-align: center;
  width: calc(600 * var(--r));
  z-index: 10;
}

.p-daily-life__title-wrap {
  margin-top: calc(80 * var(--r));
  padding-left: calc(80 * var(--r));
}

.p-daily-life__icon {
  height: calc(100 * var(--r));
  width: calc(300 * var(--r));
}

.p-daily-life__jp {
  color: var(--black-300);
  font-size: calc(22 * var(--r));
}

.c-btn-instagram {
  align-items: center;
  border: 1px solid var(--en-color);
  border-radius: calc(25 * var(--r));
  color: var(--en-color);
  display: inline-flex;
  font-size: calc(16 * var(--r));
  height: calc(45 * var(--r));
  justify-content: center;
  margin-top: calc(30 * var(--r));
  text-decoration: none;
  width: calc(200 * var(--r));
}

/* --- 右側 スライダー --- */

.p-daily-life__slider-view {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.p-daily-life__slider-track {
  display: flex;
  width: -moz-max-content;
  width: max-content;
  will-change: transform;
}

/* ホバー時にアニメーションを止める */

.p-daily-life__slider-track:hover {
  animation-play-state: paused;
}

.p-daily-life__list {
  display: flex;
  gap: calc(10 * var(--r));
  list-style: none;
  padding-right: calc(10 * var(--r));
}

.p-daily-life__item {
  flex-shrink: 0;
  height: calc(250 * var(--r));
  width: calc(250 * var(--r));
}

.p-daily-life__item img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* レスポンシブ：スマホでは縦並び */

@media screen and (max-width: 768px) {
  .p-daily-life {
    padding: 0;
  }

  .p-daily-life__container {
    flex-direction: column;
    margin-top: calc(50 * var(--r));
  }

  .p-daily-life__header {
    height: auto;
    padding-bottom: calc(40 * var(--r));
    width: 100%;
  }

  .p-daily-life__title-wrap {
    margin-top: calc(60 * var(--r));
    padding-left: 0;
  }

  .p-daily-life__icon {
    height: calc(60 * var(--r));
    width: calc(200 * var(--r));
  }

  .p-daily-life__jp {
    font-size: calc(18 * var(--r));
  }

  .c-btn-instagram {
    font-size: calc(14 * var(--r));
    height: calc(35 * var(--r));
    margin-top: calc(20 * var(--r));
    width: calc(150 * var(--r));
  }

  .p-daily-life__item {
    height: calc(240 * var(--r));
    width: calc(300 * var(--r));
  }
}

@media screen and (max-width: 510px) {
  .p-daily-life__header {
    padding-bottom: calc(20 * var(--r));
  }

  .p-daily-life__title-wrap {
    margin-top: calc(40 * var(--r));
  }

  .p-daily-life__icon {
    height: calc(50 * var(--r));
    width: calc(150 * var(--r));
  }

  .p-daily-life__jp {
    font-size: calc(16 * var(--r));
  }
}

@media screen and (max-width: 375px) {
  .p-daily-life__item {
    height: calc(200 * var(--r));
    width: calc(240 * var(--r));
  }
}

/* =================================================
   FEATURES SECTION
   ================================================= */

.p-features {
  background-color: var(--white-300);
  overflow: hidden;
  padding: calc(100 * var(--r)) 0;
}

.p-features__inner {
  display: grid;
  gap: calc(60 * var(--r));
  grid-template-columns: 1fr;
  justify-items: center;
  margin: 0 auto;
  max-width: calc(1200 * var(--r));
  padding: 0 calc(var(--padding-pc) * var(--r));
}

/* --- 縦書きメインタイトル --- */

.p-features__main-title {
  color: var(--black);
  font-family: var(--font-main);
  font-size: calc(32 * var(--r));
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
}

/* --- コンテンツエリア (Grid) --- */

.p-features__content {
  align-items: center;
  display: grid;
  gap: calc(80 * var(--r));
  grid-template-columns: repeat(2, 1fr);
  margin-top: calc(50 * var(--r));
}

/* テキストブロック（左側） */

.p-features__text-block {
  grid-column: 1 / 2;
}

.p-features__text-block--reverse {
  grid-column: 2 / 2;
}

.p-features__description {
  color: var(--black-300);
  font-family: var(--font-main);
  font-size: calc(21 * var(--r));
  line-height: 2;
}

.p-features__btn-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: calc(40 * var(--r));
}

/* 丸いボタン */

.c-btn-round,
.c-btn-round__group {
  align-items: center;
  background: var(--white);
  border: 2px solid var(--en-color);
  border-radius: calc(40 * var(--r));
  color: var(--en-color);
  display: inline-flex;
  font-size: calc(20 * var(--r));
  justify-content: center;
  margin-left: auto;
  padding: calc(5 * var(--r)) calc(40 * var(--r));
  position: relative;
  transition: all 0.3s;
}

.c-btn-round::after {
  content: '>';
  font-size: calc(14 * var(--r));
  position: absolute;
  right: calc(15 * var(--r));
}

.p-features__btn-group {
  display: flex;
  flex-direction: row;
  gap: calc(20 * var(--r));
  justify-content: flex-start;
  margin-top: calc(20 * var(--r));
}

/* --- 画像ブロック（右側） --- */

.p-features__image-wrap {
  grid-column: 2 / 2;
  margin: 0 auto;
  position: relative;
}

.p-features__image-wrap--reverse {
  grid-column: 1 / 2;
  margin: 0 auto;
  position: relative;
}

.p-features__image-wrap img {
  display: block;
  height: auto;
  width: 100%;
}

/* 画像に被る縦書きラベル */

.p-features__image-label {
  background: var(--white);
  border-right: 2px solid var(--en-color);
  font-family: var(--font-main);
  font-size: calc(24 * var(--r));
  letter-spacing: 0.1em;
  padding: calc(15 * var(--r)) 0;
  position: absolute;
  right: calc(20 * var(--r));
  top: calc(-30 * var(--r));
  writing-mode: vertical-rl;
}

.c-label-text {
  font-size: calc(30 * var(--r));
  position: relative;
  right: calc(15 * var(--r));
  top: calc(-20 * var(--r));
}

/* =================================================
   RESPONSIVE (Smartphone)
   ================================================= */

@media (max-width: 767px) {

  .p-features {
    padding: calc(50 * var(--r)) 0;
  }

  .p-features__inner {
    display: block;
  }

  .p-features__main-title {
    text-align: center;
    width: 100%;
    writing-mode: horizontal-tb;
  }

  .p-features__content {
    display: flex;
    flex-direction: column-reverse;
    gap: calc(40 * var(--r));
    margin-top: calc(60 * var(--r));
  }

  .p-features__content--reverse {
    flex-direction: column;
  }

  .p-features__text-block,
  .p-features__image-wrap {
    width: 80%;
  }

  .p-features__description {
    font-size: calc(16 * var(--r));
  }

  .p-features__btn-wrap {
    margin-top: calc(20 * var(--r));
  }

  .p-features__image-wrap {
    margin-top: calc(20 * var(--r));
    width: 80%;
  }

  .p-features__image-label {
    font-size: calc(20 * var(--r));
    top: calc(-20 * var(--r));
  }

  .p-features__btn-wrap {
    justify-content: center;
  }

  .c-btn-round {
    font-size: calc(16 * var(--r));
    padding: calc(5 * var(--r)) calc(30 * var(--r));
  }

  .c-btn-round::after {
    font-size: calc(14 * var(--r));
    right: calc(5 * var(--r));
  }
}

@media (max-width: 510px) {
  .p-features__text-block {
    width: 100%;
  }

  .p-features__image-wrap {
    width: 100%;
  }

  .p-features__btn-group {
    gap: calc(10 * var(--r));
  }

  .p-features__btn-wrap {
    margin-top: calc(10 * var(--r));
  }

  .c-btn-round {
    font-size: calc(16 * var(--r));
    padding: calc(5 * var(--r)) calc(20 * var(--r));
  }

  .c-btn-round::after {
    font-size: calc(16 * var(--r));
    right: calc(5 * var(--r));
  }

  .p-features__description {
    font-size: calc(16 * var(--r));
  }
}

@media (max-width: 375px) {
  .p-features__description {
    font-size: calc(14 * var(--r));
  }
}

.l-footer {
  background-color: var(--white-100);
  padding-top: calc(60 * var(--r));
}

.l-footer__inner {
  display: flex;
  gap: calc(40 * var(--r));
  justify-content: space-between;
  margin: 0 auto;
  max-width: calc(1200 * var(--r));
  padding: 0 calc(20 * var(--r));
}

/* 左側：情報エリア */

.l-footer__info {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  text-align: center;
  width: calc(320 * var(--r));
}

.l-footer__logo img {
  height: auto;
  width: calc(300 * var(--r));
}

.l-footer__tel-wrap {
  margin-top: calc(20 * var(--r));
}

.l-footer__tel {
  align-items: center;
  color: var(--en-color);
  display: inline-flex;
  text-decoration: none;
}

.l-footer__tel-icon {
  align-items: center;
  display: flex;
}

.l-footer__tel-icon img {
  height: calc(48 * var(--r));
  width: calc(48 * var(--r));
}

.l-footer__tel .l-footer__tel-number {
  color: var(--en-color) !important;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif !important;
  font-size: calc(36 * var(--r)) !important;
  font-weight: bold !important;
}

.l-footer__tel:hover {
  opacity: 0.85;
}

.l-footer__reception {
  color: var(--black-300);
  font-size: calc(12 * var(--r));
}

.l-footer__contact {
  color: var(--black-300);
  font-size: calc(14 * var(--r));
  line-height: 1.8;
  margin-top: calc(12 * var(--r));
}

.l-footer__contact p {
  margin-top: 0.25em;
}

.l-footer__contact p:first-child {
  margin-top: 0;
}

.c-btn-googlemap,
.c-btn-googlemap:link,
.c-btn-googlemap:visited {
  align-items: center;
  background-color: var(--white);
  border: 1px solid var(--en-color);
  border-radius: calc(100 * var(--r));
  color: var(--en-color);
  display: inline-flex;
  font-size: calc(16 * var(--r));
  justify-content: center;
  margin-top: calc(20 * var(--r));
  padding: calc(10 * var(--r)) calc(60 * var(--r));
  transition: 0.3s;
}

.c-btn-googlemap:hover {
  background-color: var(--en-color);
  color: var(--white);
}

/* 右側：ナビゲーションエリア */

.l-footer__nav {
  flex-grow: 1;
}

.l-footer__nav-grid {
  display: grid;
  gap: calc(10 * var(--r));
  grid-template-columns: repeat(4, 1fr);
  margin-top: calc(20 * var(--r));
}

.l-footer__nav-list {
  list-style: none;
}

/* Swell親テーマの .l-footer__nav a { border-right/left } を上書き */

.l-footer__nav a {
  border-left: none !important;
  border-right: none !important;
}

.l-footer__nav-list li {
  margin-top: 0;
}

.l-footer__nav-list li:first-child {
  margin-top: 0;
}

.l-footer__nav-list a {
  color: var(--black-300);
  font-size: calc(16 * var(--r));
  line-height: 1.4;
  text-decoration: none;
}

.l-footer__nav-list a:hover {
  text-decoration: underline;
}

.l-footer__nav-line2 {
  font-size: calc(12 * var(--r));
}

/* 長いリンクテキストを2行表示 */

.l-footer__nav-list a .l-footer__nav-line1,
.l-footer__nav-list a .l-footer__nav-line2 {
  display: block;
  white-space: nowrap;
}

.l-footer__nav-list a .l-footer__nav-line2 {
  margin-top: 0.2em;
}

/* 研究室電話番号 */

.l-footer__sub-tel-title {
  color: var(--black-300);
  font-size: calc(14 * var(--r));
  font-weight: bold;
}

.l-footer__sub-tel-grid {
  color: var(--black-300);
  display: grid;
  font-size: calc(12 * var(--r));
  grid-template-columns: repeat(4, 1fr);
  margin-top: calc(10 * var(--r));
}

.l-footer__sub-tel-grid p {
  align-items: center;
  display: flex;
  white-space: nowrap;
}

.l-footer__sub-tel-grid a {
  color: var(--black-300);
  text-decoration: none;
}

/* コピーライトエリア */

.l-footer__bottom {
  border-top: 1px solid var(--white-200);
  margin-top: calc(60 * var(--r));
  padding: calc(25 * var(--r)) 0;
  position: relative;
  text-align: center;
}

.l-footer__copyright {
  color: var(--black-300);
  font-size: calc(14 * var(--r));
}

/* Page Top ボタン */

.c-page-top {
  align-items: center;
  background-color: var(--white-200);
  border-radius: calc(50 * var(--r));
  display: flex;
  height: calc(50 * var(--r));
  justify-content: center;
  position: absolute;
  right: calc(20 * var(--r));
  top: calc(-25 * var(--r));
  width: calc(50 * var(--r));
}

.c-page-top::after {
  border-left: 5px solid var(--white);
  border-top: 5px solid var(--white);
  content: "";
  height: calc(20 * var(--r));
  margin-top: calc(5 * var(--r));
  transform: rotate(45deg);
  width: calc(20 * var(--r));
}

/* スマホ対応 */

@media screen and (max-width: 768px) {
  .l-footer__inner {
    align-items: center;
    flex-direction: column;
    gap: calc(40 * var(--r));
    padding: 0 calc(16 * var(--r));
  }

  .l-footer__info {
    width: 100%;
  }

  .l-footer__logo img {
    max-width: calc(360 * var(--r));
    width: 80%;
  }

  .l-footer__tel {
    font-size: calc(28 * var(--r));
  }

  .c-btn-googlemap {
    justify-content: center;
    margin-inline: auto;
    max-width: 100%;
    width: calc(300 * var(--r));
  }

  .l-footer__nav {
    width: 100%;
  }

  .l-footer__nav-grid {
    gap: 0;
    grid-template-columns: 1fr 1fr;
  }

  .l-footer__nav-list {
    margin-top: 0;
  }

  .l-footer__nav-list li {
    margin-top: 0;
  }

  .l-footer__nav-list a {
    font-size: calc(12 * var(--r));
  }

  .l-footer__sub-tel {
    font-size: calc(14 * var(--r));
    margin-top: calc(15 * var(--r));
  }

  .l-footer__sub-tel-grid {
    font-size: calc(10 * var(--r));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .l-footer__sub-tel-grid p {
    font-size: inherit;
  }

  .l-footer__sub-tel-grid a {
    font-size: inherit;
  }

  .l-footer__bottom {
    margin-top: calc(40 * var(--r));
    padding: calc(20 * var(--r)) 0;
  }

  .l-footer__copyright {
    font-size: calc(10 * var(--r));
  }

  .c-page-top {
    right: calc(16 * var(--r));
    top: calc(-22 * var(--r));
  }
}

/* --- 自由は、自分たちでつくるもの。セクション --- */

.p-freedom {
  background-color: var(--white-100);
  margin-top: calc(100 * var(--r));
  overflow: hidden;
  padding-bottom: calc(160 * var(--r));
}

.p-freedom__inner {
  align-items: start;
  display: grid;
  margin: 0 auto;
  max-width: calc(var(--inner-width) * var(--r));
  padding: 0 calc(var(--padding-pc) * var(--r));
}

/* --- テキストエリア（右側） --- */

.p-freedom__text-content {
  grid-column: 8 / 13;
  grid-row: 1;
  justify-self: end;
  padding-right: calc(60 * var(--r));
  width: -moz-max-content;
  width: max-content;
  z-index: 10;
}

.p-freedom__title {
  color: var(--black);
  display: inline-block;
  font-family: var(--font-main);
  font-size: calc(32 * var(--r));
}

.p-freedom__description p {
  color: var(--black-300);
  font-family: var(--font-main);
  font-size: clamp(
    calc(16 * var(--r)),
    calc(16 * var(--r)) + ((20 - 16) * var(--fluid-rate)),
    calc(24 * var(--r))
  );
  line-height: 1.8;
  margin-top: calc(15 * var(--r));
}

/* --- 画像エリア（左側・背景） --- */

.p-freedom__images {
  grid-column: 2 / 11;
  grid-row: 1;
  height: calc(600 * var(--r));
  margin-top: calc(100 * var(--r));
  position: relative;
}

.p-freedom__img {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
  position: absolute;
}

.p-freedom__img--main {
  left: calc(55% - 50vw);
  position: absolute;
  top: 0;
  width: calc(750 * var(--r));
  z-index: 1;
}

.p-freedom__img--main img {
  display: block;
  height: auto;
  width: 100%;
}

/* サブ画像1（ピアノ） */

.p-freedom__img--sub1 {
  bottom: calc(-100 * var(--r));
  filter: none;
  left: 60%;
  transform: translateX(50%);
  width: calc(260 * var(--r));
  z-index: 3;
}

/* サブ画像2（桜） */

.p-freedom__img--sub2 {
  bottom: calc(-50 * var(--r));
  filter: none;
  right: calc(-380 * var(--r));
  width: calc(480 * var(--r));
  z-index: 2;
}

.p-freedom__img img {
  display: block;
  height: auto;
  width: 100%;
}

/* ------------------------------------------------
   レスポンシブ対応 (スマホ・タブレット用)
   ------------------------------------------------ */

@media (max-width: 767px) {
  .p-freedom {
    padding-bottom: calc(100 * var(--r));
  }

  .p-freedom__inner {
    display: block;
    padding: 0 calc(var(--padding-sp) * var(--r));
  }

  .p-freedom__text-content {
    justify-self: stretch;
    padding-right: 0;
    text-align: center;
    width: 100%;
  }

  .p-freedom__images {
    display: flex;
    flex-direction: column;
    gap: calc(20 * var(--r));
    height: auto;
    margin-top: calc(40 * var(--r));
    position: relative;
  }

  .p-freedom__img {
    bottom: auto !important;
    left: auto !important;
    margin: 0 auto;
    position: relative;
    right: auto !important;
    top: auto !important;
  }

  .p-freedom__img--main {
    margin-left: calc(-1 * var(--padding-sp) * var(--r));
    order: 1;
    width: 100vw;
  }

  /* サブ画像1（ピアノ）：縦並びの2番目 */
  .p-freedom__img--sub1 {
    order: 2;
    transform: none;
    width: 80%;
  }

  /* サブ画像2（桜）：縦並びの3番目 */
  .p-freedom__img--sub2 {
    order: 3;
    width: 80%;
  }

  .p-freedom__img img {
    height: auto;
    width: 100%;
  }
}

@media (max-width: 525px) {
  .p-freedom__title {
    font-size: calc(24 * var(--r));
  }

  .p-freedom__description p {
    font-size: calc(14 * var(--r));
  }
}

@media (max-width: 375px) {
  .p-freedom__title {
    font-size: calc(22 * var(--r));
  }

  .p-freedom__description p {
    font-size: calc(14 * var(--r));
  }
}

/* =================================================
   HEADER (PC & Common) - Layout
   ================================================= */

.l-header {
  background-color: var(--white-100);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: calc(80 * var(--r));
  left: 0;
  position: fixed !important;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.l-header__inner {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  margin: 0 auto;
  max-width: calc(var(--inner-width) * var(--r));
  padding: 0 calc(var(--padding-pc) * var(--r));
  position: static !important;
}

.l-header__logo {
  left: 0;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
}

.l-header__logo a {
  display: block;
  margin: 0;
  padding: 0;
}

.l-header__logo-img {
  height: calc(90 * var(--r));
  width: auto;
}

@media (min-width: 769px) {
  .l-header__icon {
    display: none;
  }

  /* drawer用の side-nav はPCでは非表示（フッター側の fixed のみ表示） */
  .l-header__nav .l-side-nav {
    display: none;
  }
}

/* ドロワーパネル（PC時は nav のみ中央、buttons は absolute で右端） */

.l-drawer-panel {
  align-items: center;
  display: flex;
  flex: 1;
  gap: calc(30 * var(--r));
  justify-content: center;
}

.l-drawer-panel .l-header__nav {
  margin-left: 0;
}

.l-header__nav {
  align-items: center;
  display: flex;
  gap: calc(30 * var(--r));
}

.l-header__lists {
  display: flex;
  gap: calc(20 * var(--r));
  list-style: none;
}

.l-header__link {
  align-items: center;
  color: var(--black-300);
  display: flex;
  font-family: var(--font-main);
  font-size: var(--fs-base);
  justify-content: space-between;
  text-decoration: none;
  transition: color 0.3s;
}

.l-header__link:hover {
  color: var(--en-color);
}

/* --- ヘッダーのカプセルボタン（画面右端に absolute 配置） --- */

.l-header__buttons {
  align-items: center !important;
  background-color: var(--white) !important;
  border-radius: calc(100 * var(--r)) !important;
  box-shadow: 0 calc(4 * var(--r)) calc(12 * var(--r)) rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  padding: calc(15 * var(--r)) calc(26 * var(--r)) !important;
  position: absolute !important;
  right: calc((var(--padding-pc) * var(--r)) + 50px) !important;
  top: 50% !important;
  transform: translateY(-30%) !important;
}

.c-icon-button {
  align-items: center;
  color: var(--black);
  display: flex;
  font-family: var(--font-main);
  font-size: var(--fs-lg);
  line-height: 1.2;
  text-decoration: none;
  transition: opacity 0.3s;
}

.c-icon-button:hover {
  opacity: 0.7;
}

.c-icon img {
  display: block;
  height: auto;
  margin-right: calc(6 * var(--r));
  width: calc(18 * var(--r));
}

.c-separator {
  background-color: var(--gray-300);
  height: calc(24 * var(--r));
  margin: 0 calc(15 * var(--r));
  width: 1px;
}

/* =================================================
   HEADER (Responsive / Mobile)
   ================================================= */

@media (max-width: 767px) {
  .l-header {
    height: calc(60 * var(--r));
  }

  .l-header__inner {
    justify-content: flex-end;
    padding: 0 calc(var(--padding-sp) * var(--r));
  }

  .l-header__logo {
    left: 0;
  }

  .l-header__logo img {
    height: calc(70 * var(--r));
  }

  .l-header__icon {
    z-index: 1003;
  }

  /* ドロワーパネル＝ナビとボタンを同じエリアに（右から1枚でスライド） */
  .l-drawer-panel {
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: calc(60 * var(--r)) calc(24 * var(--r)) calc(24 * var(--r));
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition:
      transform 0.3s ease,
      visibility 0.3s;
    visibility: hidden;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  body.is-drawer-open .l-drawer-panel {
    transform: translateX(0);
    visibility: visible;
  }

  .l-drawer-panel .l-header__nav {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    margin: 0;
    order: 1;
    padding: 0;
    width: 100%;
  }

  .l-header__lists {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .l-header__list {
    border-bottom: 1px solid var(--gray-200);
  }

  .l-header__link {
    display: flex;
    font-size: calc(16 * var(--r));
    gap: calc(30 * var(--r));
    padding: calc(16 * var(--r)) 0;
  }

  .l-header__link::after {
    content: "＞";
  }

  /* ボタンはPC表示のまま（横並び・カプセル）ナビ最下部に配置 */
  .l-drawer-panel .l-header__buttons {
    align-items: center !important;
    align-self: center !important;
    background-color: var(--white) !important;
    border-radius: calc(100 * var(--r)) !important;
    border-top: 3px solid var(--gray-200) !important;
    box-shadow: 0 calc(4 * var(--r)) calc(12 * var(--r)) rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    justify-content: center !important;
    margin: 0 !important;
    margin-top: calc(30 * var(--r)) !important;
    max-width: 100% !important;
    order: 2 !important;
    padding: calc(15 * var(--r)) calc(26 * var(--r)) !important;
    padding-top: calc(24 * var(--r)) !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    visibility: visible !important;
    width: calc(360 * var(--r)) !important;
  }

  .l-drawer-panel .l-header__nav {
    order: 1 !important;
  }

  .l-drawer-panel .l-header__buttons .c-icon-button {
    justify-content: center;
  }

  /* PC同様：区切り線は縦線のまま */
  .l-drawer-panel .l-header__buttons .c-separator {
    height: calc(24 * var(--r));
    margin: 0 calc(15 * var(--r));
    width: 1px;
  }

  /* ヘッダー直後の .l-side-nav（固定サイドバー）は非表示（drawer内のみ表示） */
  .l-side-nav:not(.l-side-nav--drawer) {
    display: none;
  }

  /* drawer内の .l-side-nav を縦並びで表示（赤背景セクション） */
  .l-drawer-panel .l-header__nav .l-side-nav {
    background-color: var(--en-side-nav);
    border-top: 3px solid var(--gray-200);
    display: block;
    margin-left: calc(-24 * var(--r));
    margin-right: calc(-24 * var(--r));
    margin-top: calc(24 * var(--r));
    padding: calc(24 * var(--r));
    position: static;
    transform: none;
    width: 100%;
  }

  .l-drawer-panel .l-side-nav__lists {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .l-drawer-panel .l-side-nav__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    flex-direction: column;
    height: auto;
    min-height: auto;
  }

  .l-drawer-panel .l-side-nav__item:last-child {
    border-bottom: none;
  }

  .l-drawer-panel .l-side-nav__button {
    flex-direction: row;
    gap: calc(10 * var(--r));
    height: auto;
    justify-content: space-between;
    min-height: auto;
    padding: calc(16 * var(--r)) 0;
    width: 100%;
    writing-mode: horizontal-tb;
  }

  .l-drawer-panel .l-side-nav__button::after {
    border-bottom: 2px solid var(--white);
    border-right: 2px solid var(--white);
    content: "";
    display: block;
    height: 12px;
    margin-left: auto;
    transform: rotate(45deg);
    transition: transform 0.3s;
    width: 12px;
  }

  .l-drawer-panel .l-side-nav__item.is-open .l-side-nav__button::after {
    transform: rotate(-135deg);
  }

  .l-drawer-panel .l-side-nav__icon {
    order: -1;
  }

  .l-drawer-panel .l-side-nav__button-text {
    flex: 1;
    font-size: calc(16 * var(--r));
    margin-top: 0;
    text-align: left;
  }

  .l-drawer-panel .l-side-nav__details {
    height: auto;
    max-height: 0;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.4s ease;
    width: 100%;
  }

  .l-drawer-panel .l-side-nav__item.is-open .l-side-nav__details {
    max-height: 500px;
    width: 100%;
  }

  .l-drawer-panel .l-side-nav__details {
    border-left: none !important;
    padding: 0;
  }

  .l-drawer-panel .l-side-nav__detail-lists {
    padding: calc(12 * var(--r)) 0;
  }

  .l-drawer-panel .l-side-nav__detail-lists a {
    font-size: calc(14 * var(--r));
    padding: calc(12 * var(--r)) 0;
  }

  /* バックドロップ（オーバーレイ） */
  .l-drawer-backdrop {
    background: rgba(0, 0, 0, 0.4);
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.3s ease;
    z-index: 1001;
  }

  body.is-drawer-open {
    overflow: hidden;
  }

  /* ハンバーガーアイコン */
  .c-drawer-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    display: block;
    flex-shrink: 0;
    height: 18px;
    margin-left: auto;
    outline: none;
    padding: 0;
    position: relative;
    width: 30px;
    z-index: 1001;
  }

  .c-drawer-icon__bar {
    background: var(--en-color);
    display: block;
    height: 2px;
    left: 0;
    position: absolute;
    transition:
      top 0.4s,
      transform 0.4s;
    width: 30px;
  }

  /* 1本目、2本目、3本目の初期位置 */
  .c-drawer-icon__bar:nth-child(1) {
    top: 0;
  }
  .c-drawer-icon__bar:nth-child(2) {
    top: 8px;
  }
  .c-drawer-icon__bar:nth-child(3) {
    top: 16px;
  }

  /* チェック（開いた状態）の時のスタイル */
  .c-drawer-icon.is-checked .c-drawer-icon__bar:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
  }

  .c-drawer-icon.is-checked .c-drawer-icon__bar:nth-child(2) {
    display: none;
  }

  .c-drawer-icon.is-checked .c-drawer-icon__bar:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
  }
}

@media (max-width: 510px) {
  .l-header__logo img {
    height: calc(60 * var(--r));
  }
}

/* --- メインビジュアル --- */

/* フロントページのmainのみに適用（下層ページでは不要） */

main.p-home {
  background: var(--white-100);
}

/* Swiper全体のサイズ設定 */

.p-main-visual.swiper {
  height: calc(95vh - 80px);
  min-height: 700px;
  position: relative;
  width: 100%;
}

/* 各スライドの画像設定 */

.p-main-visual__img {
  height: 100%;
  width: 100%;
}

.p-main-visual__img img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}

/* 画像の上の黒い膜（スライド全体にかける） */

.p-main-visual__img::after {
  background: rgba(0, 0, 0, 0.25);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

/* キャッチコピーのスタイル */

.p-main-visual__catchphrase {
  font-family: var(--font-main);
  font-size: calc(32 * var(--r));
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.8;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* 改行時の微調整 */

.u-sp-only {
  display: none;
}

/* キャッチコピーをスライダーより手前に表示 */

.p-main-visual__content {
  color: var(--white);
  left: 8%;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

@media (min-width: 768px) {
  .p-main-visual__content {
    left: 15%;
  }
}

@media (max-width: 767px) {
  .p-main-visual__content {
    left: 10%;
    top: 50%;
  }

  .u-sp-only {
    display: block;
  }
}

/* ============================================================
  School Identity Section
============================================================ */

.p-identity {
  background-color: var(--white-100);
  padding: 0;
}

.p-identity__inner {
  margin: 0 auto;
  max-width: calc(1200 * var(--r));
  padding: 0 calc(var(--padding-pc) * var(--r));
}

/* --- 共通のセクションタイトル --- */

.p-identity__section-title {
  align-items: baseline;
  display: flex;
  gap: calc(20 * var(--r));
}

.p-identity__section-title h2 {
  color: var(--en-color);
  font-family: var(--font-main);
  font-size: calc(32 * var(--r));
}

.p-identity__sub-en {
  width: calc(100 * var(--r));
}

/* --- 1. 教育目標（縦書き） --- */

.p-identity__goals {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  width: calc(500 * var(--r));
}

/* --- 2. 私たちが目指す生徒像（Grid） --- */

.p-identity__mission {
  margin-top: calc(100 * var(--r));
}

.p-identity__mission-grid {
  display: grid;
  gap: calc(50 * var(--r)) calc(70 * var(--r));
  grid-template-columns: 1fr 1fr;
  margin-top: calc(80 * var(--r));
  padding-top: calc(15 * var(--r));
}

.p-identity__mission-item {
  align-items: center;
  display: flex;
  gap: calc(25 * var(--r));
}

.p-identity__mission-img {
  flex-shrink: 0;
  position: relative;
  width: calc(240 * var(--r));
}

.p-identity__mission-img img {
  box-shadow: 1px 1px 10px var(--en-color);
  width: 100%;
}

.p-identity__mission-num {
  background: linear-gradient(
    135deg,
    var(--white) 0%,
    var(--white) 50%,
    transparent 50%,
    transparent 100%
  );
  color: var(--en-color);
  font-size: calc(22 * var(--r));
  height: calc(50 * var(--r));
  left: calc(-3 * var(--r));
  padding-left: calc(10 * var(--r));
  position: absolute;
  top: calc(-3 * var(--r));
  width: calc(50 * var(--r));
}

.p-identity__mission-text {
  color: var(--black-300);
  font-family: var(--font-main);
  font-size: calc(22 * var(--r));
  line-height: 1.8;
}

/* --- 3. 5つの象徴（円形リスト） --- */

.p-identity__symbol {
  margin-top: calc(120 * var(--r));
}

.p-identity__symbol-list {
  display: flex;
  gap: calc(20 * var(--r));
  justify-content: space-between;
  margin-top: calc(40 * var(--r));
  padding-top: calc(15 * var(--r));
}

.p-identity__symbol-item {
  flex: 1;
  margin: 0 auto;
  text-align: center;
}

.p-identity__symbol-circle {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-shadow: 1px 1px 10px var(--en-color);
  overflow: hidden;
  width: 100%;
}

.p-identity__symbol-circle img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.p-identity__symbol-item figcaption {
  color: var(--black-300);
  font-family: var(--font-main);
  font-size: calc(20 * var(--r));
  line-height: 1.4;
  margin-top: calc(15 * var(--r));
}

/* --- ボタン共通（Component） --- */

.c-center-btn {
  margin-top: calc(50 * var(--r));
  text-align: center;
}

.c-btn-rect {
  align-items: center;
  background-color: var(--white);
  border: 1px solid var(--en-color);
  color: var(--en-color);
  display: inline-flex;
  font-family: var(--font-main);
  font-size: calc(16 * var(--r));
  justify-content: center;
  padding: calc(12 * var(--r)) calc(60 * var(--r));
  position: relative;
  text-decoration: none;
  transition: all 0.3s;
}

.c-btn-rect::after {
  content: ">";
  position: absolute;
  right: calc(20 * var(--r));
}

.c-btn-rect:hover {
  background-color: var(--en-color);
  color: var(--white);
}

@media screen and (max-width: 768px) {
  .p-identity__section-title h2 {
    font-size: calc(24 * var(--r));
  }

  .p-identity__goals {
    max-width: calc(300 * var(--r));
  }

  .p-identity__mission {
    margin-top: calc(50 * var(--r));
  }

  .p-identity__mission-grid {
    gap: calc(30 * var(--r));
    margin-top: calc(40 * var(--r));
  }

  .p-identity__mission-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .p-identity__mission-img {
    width: 100%;
  }

  .p-identity__mission-text {
    font-size: calc(16 * var(--r));
  }

  .p-identity__symbol {
    margin-top: calc(80 * var(--r));
  }

  .p-identity__symbol-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: calc(30 * var(--r));
    justify-content: center;
  }

  .p-identity__symbol-item {
    flex: unset;
    width: 45%;
  }

  .p-identity__symbol-circle {
    /* width: 60%; */
    margin: 0 auto;
  }

  .p-identity__symbol-item figcaption {
    font-size: calc(18 * var(--r));
    margin-top: calc(10 * var(--r));
  }

  .c-center-btn {
    margin-top: calc(30 * var(--r));
  }
}

@media screen and (max-width: 510px) {
  .p-identity__section-title {
    flex-direction: column;
    gap: calc(10 * var(--r));
  }

  .p-identity__symbol-list {
    gap: calc(15 * var(--r));
  }

  .p-identity__symbol-circle {
    width: 100%;
  }

  .p-identity__symbol-item figcaption {
    font-size: calc(18 * var(--r));
  }

  .p-identity__mission-grid {
    grid-template-columns: 1fr;
  }

  .p-identity__mission-item {
    align-items: center;
    flex-direction: column;
  }

  .p-identity__symbol-list {
    gap: calc(20 * var(--r));
  }

  .p-identity__symbol-circle {
    width:100%;
  }

  .p-identity__symbol-item figcaption {
    font-size: calc(16 * var(--r));
  }
}

@media screen and (max-width: 375px) {
  .p-identity__inner {
    padding: 0 calc(var(--padding-sp) * var(--r));
  }

  .p-identity__goals {
    max-width: calc(240 * var(--r));
  }


  .p-identity__mission-grid {
    gap: calc(20 * var(--r));
    margin-top: calc(30 * var(--r));
  }

  .p-identity__symbol {
    margin-top: calc(50 * var(--r));
  }

  .p-identity__symbol-list {
    margin-top: calc(20 * var(--r));
  }

  .p-identity__symbol-item figcaption {
    font-size: calc(14 * var(--r));
  }
}

/* セクション全体の余白調整 */

.p-news {
  background-color: var(--white-100);
  padding: calc(80 * var(--r)) calc(20 * var(--r));
}

.p-news__inner {
  background: var(--white);
  margin: 0 auto;
  max-width: calc(1000 * var(--r));
}

.p-news__contents {
  display: flex;
  padding-block: calc(30 * var(--r));
}

/* --- 左側：タイトルエリア --- */

.p-news__header {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  justify-content: center;
  text-align: center;
  width: calc(230 * var(--r));
}

.c-icon--news {
  height: auto;
  width: calc(60 * var(--r));
}

.p-news__title {
  font-family: var(--font-main);
  font-size: calc(24 * var(--r));
}

/* 一覧ボタン（カプセル型） */

.p-news__more-btn {
  align-items: center;
  border: 1px solid var(--en-color);
  border-radius: calc(20 * var(--r));
  color: var(--en-color);
  display: flex;
  font-size: calc(16 * var(--r));
  height: calc(40 * var(--r));
  justify-content: center;
  margin-top: calc(20 * var(--r));
  position: relative;
  text-decoration: none;
  transition: all 0.3s;
  width: calc(140 * var(--r));
}

.p-news__more-btn::after {
  content: '>';
  font-size: calc(0.8 * var(--r));
  position: absolute;
  right: calc(15 * var(--r));
}

.p-news__more-btn:hover {
  background-color: var(--en-color);
  color: var(--white);
}

/* --- 右側：ニュースリスト --- */

.p-news__content {
  flex-grow: 1;
}

.p-news__list {
  list-style: none;
  margin: 0;
  padding: calc(20 * var(--r)) 0;
  padding-right: calc(40 * var(--r));
}

.p-news__item {
  border-bottom: 1px dotted var(--white-200);
}

.p-news__link {
  align-items: center;
  color: var(--white-200);
  display: block;
  padding: calc(10 * var(--r)) 0;
  position: relative;
  text-decoration: none;
  transition: opacity 0.3s;
}

.p-news__link:hover {
  opacity: 0.7;
}

/* 右端の矢印記号 */

.p-news__link::after {
  color: var(--white-200);
  content: '>';
  font-size: calc(1 * var(--r));
  position: absolute;
  right: calc(10 * var(--r));
  top: 50%;
  transform: translateY(-50%);
}

.p-news__meta {
  align-items: center;
  display: flex;
  gap: calc(15 * var(--r));
}

.p-news__date {
  color: var(--white-200);
  font-size: calc(16 * var(--r));
}

/* カテゴリーラベル */

.p-news__category {
  border: 1px solid var(--en-color);
  border-radius: calc(12 * var(--r));
  color: var(--white-200);
  font-size: calc(12 * var(--r));
  padding: calc(2 * var(--r)) calc(12 * var(--r));
}

.p-news__text {
  font-size: calc(16 * var(--r));
  line-height: 1.6;
  margin-top: calc(8 * var(--r));
}

/* スマホ対応：縦並びにする */

@media (max-width: 767px) {
  .p-news__header {
    margin-top: calc(30 * var(--r));
  }

  .p-news__contents {
    flex-direction: column;
  }
  .p-news__header {
    width: 100%;
  }

  .p-news__content {
    padding: calc(20 * var(--r)) calc(10 * var(--r));
    width: 100%;
  }

  .p-news__list {
    padding-right: 0;
  }
}

.p-block__cards {
  display: grid;
  font-size: 40px;
  gap: var(--child-spacing-md);
  grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
}

.p-block__card__description {
  color: var(--child-gray-400);
}

.p-mv {
  background-color: var(--color_main, var(--child-blue-500));
  padding: var(--child-spacing-3xl) 0;
  text-align: center;
}

.p-mv__title {
  color: var(--child-white);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
}

.p-mv__description {
  color: var(--child-gray-400);
  font-size: clamp(0.9rem, 2.5vw, 1.125rem);
}

/* =================================================
   SIDE NAV - Layout (l-)
   ================================================= */

.l-side-nav {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
}

.l-side-nav__lists {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--r));
  list-style: none;
}

.l-side-nav__item {
  cursor: pointer;
  display: flex;
  height: 250px;
}

.l-side-nav__item--short {
  display: flex;
  height: 190px;
}

/* 青いボタン部分 */

.l-side-nav__button {
  align-items: center;
  background-color: var(--en-side-nav);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: calc(16 * var(--r));
  margin: 0;
  padding: calc(10 * var(--r));
  text-orientation: mixed;
  width: 50px;
  writing-mode: vertical-rl;
  z-index: 2;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}

.l-side-nav__button:focus-visible {
  outline: 3px solid var(--yellow-500);
  outline-offset: 2px;
}

.l-side-nav__icon {
  display: block;
  writing-mode: horizontal-tb;
}

.l-side-nav__button-text {
  font-size: 16px;
  margin-top: calc(10 * var(--r));
}

.l-side-nav__icon img {
  height: 20px;
  width: 20px;
}

/* 飛び出す詳細メニュー */

.l-side-nav__details {
  align-items: center;
  background-color: var(--en-side-nav);
  display: flex;
  height: 100%;
  opacity: 0;
  overflow: hidden;
  transition: width 0.4s ease, opacity 0.4s;
  width: 0;
}

/* JSでis-openがついた時の動き */

.l-side-nav__item.is-open .l-side-nav__details {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 1;
  padding: 0 calc(20 * var(--r));
  width: calc(260 * var(--r));
}

/* 固定サイドバーはキーボードフォーカス時にも詳細を表示する */
.l-side-nav:not(.l-side-nav--drawer) .l-side-nav__item:hover .l-side-nav__details,
.l-side-nav:not(.l-side-nav--drawer) .l-side-nav__item:focus-within .l-side-nav__details {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 1;
  padding: 0 calc(20 * var(--r));
  width: calc(260 * var(--r));
}

/* 詳細リストの中身 */

.l-side-nav__detail-lists {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  writing-mode: horizontal-tb;
}

.l-side-nav__detail-lists li {
  border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
  padding: calc(12 * var(--r)) 0;
}

.l-side-nav__detail-lists a {
  color: var(--white);
  cursor: pointer;
  display: block;
  font-size: calc(14 * var(--r));
  position: relative;
  text-decoration: none;
}

.l-side-nav__detail-lists a:focus-visible {
  outline: 2px solid var(--yellow-500);
  outline-offset: 2px;
}

.l-side-nav__detail-lists a::after {
  content: ">";
  font-size: calc(10 * var(--r));
  position: absolute;
  right: 0;
}

/* --- お知らせ・レイアウト --- */

.p-topics {
  margin: calc(80 * var(--r)) 0;
}

.p-topics__inner {
  display: flex;
  gap: calc(40 * var(--r));
  margin: 0 auto;
  max-width: calc(var(--inner-width) * var(--r));
  padding: 0 calc(var(--padding-pc) * var(--r));
}

/* 左側：ニュースリスト */

.p-topics__list {
  align-items: center;
  background: var(--white);
  display: flex;
  flex: 2;
  gap: calc(40 * var(--r));
  padding: calc(20 * var(--r)) calc(30 * var(--r));
}

.p-topics__list-head {
  min-width: calc(100 * var(--r));
  text-align: center;
}

.p-topics__en-title {
  color: var(--en-color);
  display: block;
  font-family: var(--font-main);
  font-size: calc(14 * var(--r));
  font-style: italic;
}

.p-topics__jp-title {
  color: var(--black);
  display: block;
  font-family: var(--font-main);
  font-size: calc(32 * var(--r));
}

.c-icon--topics {
  height: auto;
  width: calc(80 * var(--r));
}

/* ニュース項目 */

.p-topics__list-items {
  flex: 1;
  list-style: none;
  width: 100%;
}

.p-topics__list-items li {
  border-bottom: 1px dotted var(--gray-100);
}

.p-topics__list-items a {
  align-items: center;
  color: var(--black);
  display: flex;
  justify-content: space-between;
  padding: calc(10 * var(--r)) 0;
  transition: opacity 0.3s;
}

.p-topics__list-items a:hover {
  opacity: 0.6;
}

.p-topics__list-items a::after {
  color: var(--gray-100);
  content: "›";
  font-size: calc(30 * var(--r));
  margin-left: calc(10 * var(--r));
}

/* 右側：カレンダー */

.p-topics__calendar {
  background: var(--white);
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: calc(20 * var(--r)) calc(40 * var(--r));
}

.p-topics__calendar-head {
  align-items: center;
  display: flex;
  gap: calc(15 * var(--r));
  margin-top: calc(20 * var(--r));
}

.c-icon--calendar {
  height: auto;
  width: calc(80 * var(--r));
}

/* カレンダーボタン */

.p-topics__calendar-btn-wrap {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-top: calc(60 * var(--r));
}

.p-topics__calendar-btn {
  background: var(--en-color);
  border-radius: calc(10 * var(--r));
  color: var(--white);
  display: block;
  font-size: var(--fs-base);
  font-weight: bold;
  padding: calc(20 * var(--r));
  text-align: center;
  transition: background-color 0.3s;
  width: calc(300 * var(--r));
}

.p-topics__calendar-btn:hover {
  background-color: var(--black);
}

.p-topics__calendar-note {
  color: var(--white-200);
  font-size: calc(12 * var(--r));
  margin-top: calc(10 * var(--r));
  text-align: center;
}

/* ------------------------------------------------
   レスポンシブ対応 (Mobile)
   ------------------------------------------------ */

@media (max-width: 767px) {
  .p-topics__inner {
    flex-direction: column;
    gap: calc(30 * var(--r));
    padding: 0 calc(var(--padding-sp) * var(--r));
  }

  .p-topics__list {
    flex-direction: column;
    gap: calc(20 * var(--r));
    padding: calc(20 * var(--r));
  }

  .p-topics__list-head {
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: calc(10 * var(--r));
    text-align: left;
    width: 100%;
  }

  .p-topics__jp-title {
    font-size: calc(28 * var(--r));
  }

  .p-topics__list-items a {
    font-size: calc(18 * var(--r));
  }

  .p-topics__calendar {
    padding: calc(30 * var(--r));
  }

  .p-topics__calendar-head {
    margin-top: calc(10 * var(--r));
  }

  .p-topics__calendar-btn {
    margin-top: calc(25 * var(--r));
  }

  .p-topics__calendar-btn-wrap {
    margin-top: calc(10 * var(--r));
  }
}

@media (max-width: 525px) {
  .p-topics__jp-title {
    font-size: calc(24 * var(--r));
  }

  .p-topics__list-items a {
    font-size: calc(14 * var(--r));
  }
}

/**
 * トップページ用ボタン
 */

.el-btn {
  align-items: center;
  border-radius: 4px;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 600;
  justify-content: center;
  padding: var(--child-spacing-sm) var(--child-spacing-lg);
  transition: opacity 0.25s;
}

.el-btn._primary {
  background-color: var(--color_main, var(--child-blue-500));
  color: var(--child-white);
}

.el-btn._primary:hover {
  opacity: 0.9;
}

.el-btn._outline {
  background-color: transparent;
  border: 1px solid currentColor;
  border-radius: 9999px;
  color: var(--child-purple-500);
  font-size: calc(14 * var(--r));
  font-weight: 400;
  gap: calc(8 * var(--r));
  padding: calc(8 * var(--r)) calc(20 * var(--r));
}

.el-btn._outline:hover {
  opacity: 0.7;
}

.u-desktop {
  display: none;

  @media (min-width: 768px) {
    display: block;
  }
}

.u-mobile {
  display: block;

  @media (min-width: 768px) {
    display: none;
  }
}

/* 600px以下でのみ表示（改行用br等） */

.u-sp-only-600 {
  display: none;
}

@media (max-width: 600px) {
  .u-sp-only-600 {
    display: block;
  }
}

html,
body {
  overflow-x: hidden;
}

body {
  color: var(--black-300);
  font-family: var(--font-main);
  font-size: calc(16 * var(--r));
  line-height: 1.6;
}

.l-inner {
  padding-inline: calc(15 * var(--r));
}