@charset "UTF-8";

/* =========================================================
   philosophy.css … エムズの想い（philosophy/index.html）
   ※ フォントサイズは custom.css の :root 変数のみ使用
   ※ ページ見出し（写真・丸い見出し・飾りの輪）は common.css の .page-hero（ほかの下層ページと共通）
   ※ 余白のルール
     ・セクション／ブロックどうしの間隔は下側だけ（margin-bottom／padding-bottom）で付ける
     ・中身の幅は親の padding で作らず、子要素に width（SPの左右の余白）＋ max-width ＋ margin: 0 auto
   ========================================================= */

/* =========================================================
   ページ全体（SP）
   ========================================================= */
.philosophy {
  overflow-x: clip;
  /* 飾りの輪・傾いた帯が画面の外にはみ出しても横スクロールさせない */
  color: #5b534d;
}

/* パンくずはPCのみ */
.breadcrumb {
  display: none;
}

/* ---------- ページ見出し（FV） ---------- */
.philosophy-head {
  width: calc(100% - 24px);
  margin: 0 auto 50px;
  padding-top: 30px;
  /* ヘッダーとの間（ページの一番上なので上側に付ける） */
}

/* スライダーの飾りの輪（SP）… 中央の写真（幅315px）の左上と左下 */
.philosophy-head .page-hero-img::before,
.philosophy-head .page-hero-img::after {
  content: "";
  position: absolute;
  z-index: 1;
  aspect-ratio: 1;
  border: 3.5px solid transparent;
  border-radius: 50%;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.philosophy-head .page-hero-img::before {
  top: -18px;
  left: calc(50% - 157.5px - 5px);
  width: 73px;
  background: linear-gradient(135deg, #a9b5e0, #e79bb5) border-box;
}

.philosophy-head .page-hero-img::after {
  top: 382px;
  left: calc(50% - 157.5px - 19px);
  width: 79px;
  background: linear-gradient(100deg, #fbd87a, #d26f87) border-box;
}

/* =========================================================
   共通の部品（SP）
   ========================================================= */
/* 中身の幅：SPは左右 20px（width 90%弱）、PCは最大 1160px */
.philosophy-inner {
  width: calc(100% - 40px);
  max-width: 1160px;
  margin: 0 auto;
}

/* 文字の色 */
.philosophy-pink {
  color: #c96e86;
}

/* 下に緑の線（画面いっぱい）を引くまとまり。線の下の余白は各セクションで指定 */
.philosophy-line-box {
  padding-bottom: 28px;
  border-bottom: 2px solid #7f9f83;
}

/* 中央ぞろえのまとまり（SLOGAN・PHILOSOPHY・MESSAGE の見出し） */
.philosophy-center {
  text-align: center;
}

/* 英字ラベル（SLOGAN｜スローガン など） */
.philosophy-label {
  margin-bottom: 20px;
  font-family: "Inter", sans-serif;
  font-size: var(--sub-heading);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* 英字と日本語のあいだの縦線 */
.philosophy-label-sep {
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin: 0 10px;
  background-color: #b5aca5;
  vertical-align: -0.1em;
}

/* 大きいキャッチ（オレンジの明朝）。MESSAGE は緑 */
.philosophy-catch {
  margin-bottom: 26px;
  color: #f2900f;
  font-family: "Noto Serif JP", serif;
  font-size: var(--main-heading);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
  /* SPは字間なし（28px で1行に収めるため） */
  text-align: left;
}

.philosophy-catch-green {
  margin-bottom: 0;
  color: #7f9f83;
}

/* SPは2行目を右に寄せる（PCは1行でつなげる） */
.philosophy-indent {
  display: block;
  text-align: right;
}

/* 2行目を右に寄せる見出しは、箱の幅を最大 13文字分（スマホの幅くらい）にして、箱ごと中央に置く
   （画面幅いっぱいだと、タブレットで2行目が右端まで離れて読みにくいため）
   ※ 1行は13文字以内にする（今は最大11文字） */
.philosophy-catch,
.philosophy-topic-title {
  max-width: 13em;
  margin-right: auto;
  margin-left: auto;
}

.philosophy-text {
  font-size: var(--main-text);
  line-height: 1.85;
  text-align: left;
}

/* ---------- 小見出し＋文章のまとまり（働く人が笑顔でいられること。など） ---------- */
.philosophy-topic {
  position: relative;
  isolation: isolate;
}

.philosophy-topic-title {
  margin-bottom: 26px;
  color: #c96e86;
  font-family: "Noto Serif JP", serif;
  font-size: var(--main-heading);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
}

/* 文章の後ろのうすい白い輪（飾り） */
.philosophy-topic::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 30%;
  z-index: -1;
  width: 230px;
  aspect-ratio: 1;
  border: 2px solid #fff;
  border-radius: 50%;
  pointer-events: none;
}

/* =========================================================
   導入（SP）
   ========================================================= */
.philosophy-intro {
  position: relative;
  isolation: isolate;
  margin-bottom: 70px;
}

.philosophy-intro .philosophy-line-box {
  margin-bottom: 24px;
}

.philosophy-intro-title {
  width: calc(100% - 24px);
  /* 1行12文字（28px × 12 ＝ 336px）が w360 でも入るよう、左右の余白を 12px に */
  max-width: 1160px;
  margin: 0 auto;
  font-family: "Noto Serif JP", serif;
  font-size: var(--main-heading);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.02em;
  /* 字間をわずかに詰めて、予定の位置（<br>）以外で改行しないように。PCは 0.04em */
}

.philosophy-intro-note {
  width: calc(100% - 40px);
  max-width: 1160px;
  margin: 0 auto;
  font-size: var(--main-text);
  line-height: 1.8;
}

/* SPの飾りの輪（左上：黄色〜ピンク／右下：黄緑〜緑） */
.philosophy-intro-ring {
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border: 3.5px solid transparent;
  border-radius: 50%;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.philosophy-intro-ring-green {
  top: 15px;
  right: 14px;
  width: 118px;
  background: linear-gradient(100deg, #f3e88f, #7f9f83) border-box;
}

/* =========================================================
   横長の写真（SP）… 写真の後ろに、写真と同じ大きさの図形を2度傾けて置く
   通常：左回り（右上・左下が見える）／.philosophy-photo-reverse：右回り（左上・右下が見える）
   色：通常はピンク／.philosophy-photo-light：うすいピンク（4枚のうち偶数番目）
   ========================================================= */
.philosophy-photo {
  position: relative;
  isolation: isolate;
  margin-bottom: 60px;
  --photo-bar: #d2889a;
  --photo-tilt: -2deg;
}

.philosophy-photo img {
  position: relative;
  z-index: 1;
  aspect-ratio: 390 / 290;
  object-fit: cover;
}

.philosophy-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--photo-bar);
  transform: rotate(var(--photo-tilt));
}

/* ---------- 右回りに傾ける ---------- */
.philosophy-photo-reverse {
  --photo-tilt: 2deg;
}

/* ---------- うすいピンク ---------- */
.philosophy-photo-light {
  --photo-bar: #e5d3d8;
}

/* =========================================================
   スローガン・理念・小見出しのブロック（SP）
   ========================================================= */
.philosophy-block {
  margin-bottom: 50px;
}

/* 線の下 → 小見出し */
.philosophy-block > .philosophy-line-box {
  margin-bottom: 50px;
}

/* ---------- 地域とともに、これからも。＋ 写真2枚 ---------- */
.philosophy-region {
  margin-bottom: 70px;
}

.philosophy-region .philosophy-topic {
  margin-bottom: 70px;
}

/* SP：左の写真は左寄せ、右の写真は右寄せ。ほんの少しだけ重ねる（写真が大きく見えるよう縦長めの 4:3） */
.philosophy-region-photos {
  display: flex;
  flex-direction: column;
}

.philosophy-region-img {
  width: 80%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.philosophy-region-img-left {
  margin-bottom: -6%;
  /* 右の写真の上の端だけ少し重ねる（写真の高さの約1割） */
  border-bottom: 6px solid #7f9f83;
}

.philosophy-region-img-right {
  align-self: flex-end;
  border-bottom: 6px solid #d2889a;
}

/* =========================================================
   社長メッセージ（SP）… うすい緑の背景
   ========================================================= */
.philosophy-message {
  padding: 70px 0 80px;
  /* 背景の内側の上下の余白 */
  background-color: #f3faf7;
}

.philosophy-message > .philosophy-line-box {
  margin-bottom: 50px;
}

.philosophy-message .philosophy-label {
  margin-bottom: 26px;
}

.philosophy-message .philosophy-catch {
  margin-bottom: 0;
}

.philosophy-message-body {
  margin-bottom: 70px;
}

/* SP：写真は画面いっぱい */
.philosophy-message-photo {
  margin-bottom: 40px;
}

.philosophy-message-photo img {
  aspect-ratio: 390 / 292;
  object-fit: cover;
}

.philosophy-message-text {
  width: calc(100% - 56px);
  max-width: 617px;
  margin: 0 auto;
  font-size: var(--main-text);
  line-height: 1.9;
}

.philosophy-message-text p {
  margin-bottom: 1.9em;
}

.philosophy-message-sign {
  text-align: right;
}

.philosophy-message-text .philosophy-message-sign {
  margin-bottom: 0;
}

/* ---------- ボタン（SPは塗り、PCは共通の枠線ボタン） ---------- */
.philosophy-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.more-btn.philosophy-btn {
  border-color: #c6a991;
  background-color: #c6a991;
  color: #fff;
  font-weight: 700;
}

/* 枠の外にはみ出す長い矢印は茶色 */
.more-btn.philosophy-btn::before,
.more-btn.philosophy-btn::after {
  background-color: #6b5f58;
}

/* =========================================================
   PC（1024px〜）  ※カンプ w1440 基準（中身の幅 1160px）
   ========================================================= */
@media screen and (min-width: 1024px) {

  /* ---------- パンくず ---------- */
  .breadcrumb {
    display: block;
    width: min(1160px, 100% - 80px);
    margin: 0 auto;
    padding: 10px 0 0 0;
  }

  .breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    font-size: var(--breadcrumb-text);
    list-style: none;
  }

  .breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    margin: 0 10px;
  }

  .breadcrumb-link {
    color: #5b534d;
  }

  .breadcrumb-link:hover {
    text-decoration: underline;
  }

  /* ---------- ページ見出し ---------- */
  .philosophy-head {
    width: auto;
    margin-bottom: 95px;
    padding-top: 0;
  }

  .philosophy-head .page-hero-img::before,
  .philosophy-head .page-hero-img::after {
    display: none;
  }

  /* 丸い見出しの英字と日本語の間に短い線 */
  .philosophy-head .page-hero-label::after {
    content: "";
    display: block;
    width: 66px;
    height: 1px;
    margin: 16px auto 0;
    background-color: #7f9f83;
  }

  .philosophy-head .page-hero-title {
    margin-top: 14px;
  }

  /* ---------- 共通の部品 ---------- */
  .philosophy-inner {
    width: calc(100% - 80px);
  }

  .philosophy-line-box {
    padding-bottom: 22px;
  }

  .philosophy-label {
    margin-bottom: 14px;
  }

  .philosophy-catch {
    margin-bottom: 22px;
    text-align: center;
  }

  /* PCは1行でつなげる */
  .philosophy-indent {
    display: inline;
  }

  /* PCは1行なので、見出しの箱の幅の上限をなくす */
  .philosophy-catch,
  .philosophy-topic-title {
    max-width: none;
  }

  .philosophy-catch,
  .philosophy-topic-title,
  .philosophy-intro-title {
    letter-spacing: 0.04em;
  }

  .philosophy-center .philosophy-text {
    text-align: center;
  }

  .philosophy-topic-title {
    margin-bottom: 24px;
  }

  .philosophy-topic::before {
    top: -50px;
    left: 5%;
    width: 265px;
  }

  /* 右寄せの小見出し（保護者の毎日にも、少しゆとりを） */
  .philosophy-topic-right {
    text-align: right;
  }

  .philosophy-topic-right .philosophy-text {
    text-align: right;
  }

  .philosophy-topic-right::before {
    top: 20px;
    right: 0;
    left: auto;
  }

  /* ---------- 導入 ---------- */
  .philosophy-intro {
    margin-bottom: 115px;
  }

  .philosophy-intro .philosophy-line-box {
    margin-bottom: 30px;
    padding-bottom: 26px;
  }

  .philosophy-intro-title,
  .philosophy-intro-note {
    width: calc(100% - 80px);
    text-align: center;
  }

  /* ---------- 横長の写真 ---------- */
  .philosophy-photo {
    margin-bottom: 110px;
  }

  .philosophy-photo img {
    aspect-ratio: 1440 / 645;
  }

  /* ---------- ブロック ---------- */
  .philosophy-block {
    margin-bottom: 105px;
  }

  .philosophy-block > .philosophy-line-box {
    margin-bottom: 120px;
  }

  /* ---------- 地域とともに、これからも。＋ 写真2枚（左：低い位置・右：高い位置、画面いっぱい） ---------- */
  .philosophy-region {
    margin-bottom: 140px;
  }

  .philosophy-region .philosophy-topic {
    margin-bottom: 120px;
  }

  .philosophy-region-photos {
    flex-direction: row;
    align-items: flex-end;
  }

  .philosophy-region-img {
    width: 50%;
    aspect-ratio: 720 / 403;
    /* PCは横並びなので横長に戻す */
  }

  .philosophy-region-img-left {
    margin-bottom: 0;
    border-bottom-width: 12px;
  }

  /* 下揃えにして、右の写真の下に余白 → 左の写真が 62px 下にずれる（カンプ） */
  .philosophy-region-img-right {
    margin-bottom: 62px;
    border-top: 12px solid #d2889a;
    border-bottom: none;
  }

  /* ---------- 社長メッセージ ---------- */
  .philosophy-message {
    padding: 72px 0 120px;
  }

  .philosophy-message > .philosophy-line-box {
    margin-bottom: 100px;
  }

  .philosophy-message .philosophy-label {
    margin-bottom: 14px;
  }

  /* 左に写真（後ろに傾いた緑の板）・右に文章 */
  .philosophy-message-body {
    display: grid;
    grid-template-columns: minmax(0, 444px) minmax(0, 617px);
    justify-content: space-between;
    align-items: center;
    /* 写真は文章の高さの中央に */
    column-gap: 60px;
    /* 画面が狭いとき（w1024〜1160くらい）も写真と文章がくっつかないように */
    width: calc(100% - 80px);
    max-width: 1160px;
    margin: 0 auto 120px;
  }

  .philosophy-message-photo {
    position: relative;
    isolation: isolate;
  }

  .philosophy-message-photo::before {
    content: "";
    position: absolute;
    inset: 30px 10px -30px -25px;
    z-index: -1;
    background-color: #7f9f83;
    transform: rotate(-2deg);
  }

  .philosophy-message-photo img {
    aspect-ratio: 1;
  }

  .philosophy-message-text {
    width: auto;
    max-width: none;
    margin: 0;
    line-height: 1.85;
  }

  .philosophy-message-text p {
    margin-bottom: 1.85em;
  }

  /* ボタン：PCは横並び・共通の枠線ボタン */
  .philosophy-btns {
    flex-direction: row;
    justify-content: center;
    gap: 130px;
  }

  .more-btn.philosophy-btn {
    border-color: #6b5f58;
    background-color: transparent;
    color: #5b534d;
    font-weight: 500;
  }

  .more-btn.philosophy-btn:hover {
    border-color: var(--hover-color);
    background-color: var(--hover-color);
    color: #fff;
  }

}
