@charset "UTF-8";
/* =========================================================
   PLANNING IDEA PLUS 30 専用スタイル
   （page-idea-plus.php）

   参照デザイン
     PC … design/idea-plus.jpg（キャンバス幅 1600px・CSS等倍／コンテンツ幅 1200px）
     SP … 支給なし（PCデザインを元に1カラムへ組み替えています）

   ※ functions.php が assets/css/ 内のCSSを
     filemtime() のバージョン付きで自動読み込みします（キャッシュ対策）
   ※ style.css（共通）のあとに読み込まれます
   ※ ページタイトル帯・パンくずは
     style.css の全ページ共通パーツ（.page-hero / .breadcrumb）
   ※「スタイルコレクション TOP に戻る」ボタンは
     style.css の共通パーツ（.sc-back）です
   ※ クラス名はすべて「ip-」接頭辞でコンポーネント化しています
========================================================= */

.l-idea-plus {
  --ip-accent: #65729e; /* 番号・英語名・タイトルの青紫（デザイン実測） */
  --ip-bg: #e0e0ec;     /* 一覧の背景のうすい紫（デザイン実測） */

  padding-bottom: 121px; /* 戻るボタンの下〜フッターまで（デザイン実測） */
  overflow-x: hidden;    /* 戻るボタンの背景の英字で横スクロールが出ないように */
}


/* =========================================================
   メインビジュアル
   ・デザイン実測：画面幅いっぱい（1600 × 641px）
   ・左側の文字（txt.png 284 × 280px）は、写真に対する％で配置しています
     （左から 243px＝15.2%／上から 253px＝39.5%）
========================================================= */

.ip-mv {
  position: relative;
  margin-top: 66px; /* パンくず〜写真の上端（デザイン実測） */
}

.ip-mv__img {
  display: block;
  width: 100%;
  height: auto;
}

.ip-mv__logo {
  position: absolute;
  left: 15.2%;
  top: 39.5%;
  width: 17.75%; /* 284px ÷ 1600px */
  margin: 0;
}

.ip-mv__logo img {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================================================
   導入（見出し ＋ リード文）
========================================================= */

.ip-intro {
  max-width: calc(var(--container) + 40px);
  margin: 0 auto;
  padding: 64px 20px 28px;
  text-align: center;
}

.ip-intro__title {
  margin: 0;
  line-height: 0;
}

.ip-intro__title img {
  width: min(770px, 100%);
  height: auto;
}

.ip-intro__sub {
  margin: 18px 0 0;
  font-family: var(--font-sans);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.ip-intro__lead {
  margin: 55px 0 0;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1.9;
  letter-spacing: 0.15em;
}


/* =========================================================
   30項目の一覧
   ・デザイン実測：カード 583 × 583px／列のすき間 34px／行のすき間 35px
     背景の上下の余白 96px
========================================================= */

.ip-list {
  padding: 96px 20px;
  background-color: var(--ip-bg);
}

.ip-list__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px 34px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/*
   カードの中身は「カードの幅」を基準に伸び縮みさせます（コンテナクエリ）。
   cqw … カード幅の1%（PCのカード幅 583px のとき 1cqw ＝ 5.83px）
*/
.ip-list__item {
  container-type: inline-size;
  scroll-margin-top: calc(var(--header-h) + 24px); /* 説明ページから #idea-01 などで飛んできたとき、固定ヘッダーに隠れないように */
}


/* =========================================================
   カード（番号・英語名・タイトル ＋ 写真 ＋ 説明文）
========================================================= */

.ip-card {
  display: grid;
  grid-template-columns: 43.22cqw minmax(0, 1fr); /* 左の文字の列 252px ÷ 583px */
  grid-template-rows: auto 1fr; /* 同じ段のカードと高さをそろえたとき、余りは説明文の下に回す */
  grid-template-areas:
    "head photo"
    "text text";
  align-items: start;
  height: 100%;
  background-color: #fff;
}

/* ---- 左上：番号・英語名・タイトル ---- */
.ip-card__head {
  grid-area: head;
  padding: 15.44cqw 0 0 4.29cqw; /* 上 90px／左 25px ÷ 583px */
}

/*
   番号の画像（i_01.svg 〜）は数字によって幅が 183〜205px と異なるため、
   幅ではなく高さ（116px）をそろえて表示します
*/
.ip-card__num {
  height: 19.9cqw; /* 116px ÷ 583px */
  margin: 0;
}

.ip-card__num img {
  display: block;
  width: auto;
  height: 100%;
}

.ip-card__en,
.ip-card__name {
  padding-left: 3.77cqw; /* 英語名・タイトルは番号より 22px 右から始まる */
  color: var(--ip-accent);
  font-family: var(--font-sans);
}

.ip-card__en {
  margin: 3.6cqw 0 0;
  font-size: clamp(1.1rem, 2.92cqw, 1.7rem); /* 17px ÷ 583px */
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/*
   タイトル
   ・word-break: keep-all … 言葉の途中では改行しません。
     改行するのは functions.php の文言に入れた <wbr> の位置だけです
     （例：ウォークイン／クローゼット）
*/
.ip-card__name {
  margin: 0.8cqw 0 0;
  font-size: clamp(1.6rem, 4.46cqw, 2.6rem); /* 26px ÷ 583px */
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.05em;
  word-break: keep-all;
}

/* ---- 右上：写真（デザイン実測 331 × 343px／カードの上から 29px・右端に接する） ---- */
.ip-card__photo {
  grid-area: photo;
  margin: 4.97cqw 0 0;
  aspect-ratio: 331 / 343;
  overflow: hidden;
}

.ip-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- 下：説明文 ---- */
.ip-card__text {
  grid-area: text;
  margin: 24px 0 0;
  padding: 0 30px 64px 35px;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1.76;
  letter-spacing: 0.15em;
}


/* =========================================================
   戻るボタン（共通パーツ .sc-back）の、このページでの上の余白
   紫の背景の下端〜英字の上端までが 78px（はみ出す 58px ＋ 78px）
========================================================= */

.l-idea-plus > .sc-back {
  margin-top: 136px;
}


/* =========================================================
   タブレット（1299px以下）
========================================================= */
@media screen and (max-width: 1299px) {

  .ip-intro__sub {
    font-size: 3.6rem;
  }

  .ip-list__items {
    gap: 24px;
  }

  .ip-card__text {
    padding: 0 24px 40px 28px;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
  }
}


/* =========================================================
   SP（767px以下）… 1列に並べます
========================================================= */
@media screen and (max-width: 767px) {

  .l-idea-plus {
    padding-bottom: 72px;
  }

  /*
     SPでは写真の高さが足りないため、高さを決めて左側を基準に切り抜きます
     （左側の白い壁の上に文字が乗る構図を保つため）
  */
  .ip-mv {
    margin-top: 32px;
  }

  .ip-mv__img {
    height: 240px;
    object-fit: cover;
    object-position: left center;
  }

  .ip-mv__logo {
    left: 20px;
    top: 50%;
    width: 112px;
    transform: translateY(-50%);
  }

  .ip-intro {
    padding: 40px 16px 24px;
  }

  .ip-intro__sub {
    margin-top: 12px;
    font-size: 2.2rem;
  }

  .ip-intro__lead {
    margin-top: 24px;
    font-size: 1.3rem;
    line-height: 2;
    letter-spacing: 0.06em;
    text-wrap: balance;
  }

  .ip-list {
    padding: 48px 16px;
  }

  .ip-list__items {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .ip-list__item {
    scroll-margin-top: calc(var(--header-h-sp) + 16px);
  }

  .ip-card__text {
    margin-top: 16px;
    padding: 0 18px 24px;
    font-size: 1.4rem;
    line-height: 1.8;
    letter-spacing: 0.06em;
  }

  .l-idea-plus > .sc-back {
    margin-top: 84px;
  }
}
