@charset "UTF-8";
/* =========================================================
   custom_consult.css
   TOPページの「ご相談（.homeConsult）」導線ブロックを /personal/ でも
   表示するための専用CSS。
   - 中身は custom_top.css から当該ブロックが使う分だけを抜き出したもの。
   - 読み込みは custom.css の「後」にすること（既存の部分ルールに勝たせるため）。
   - 元ファイル: assets/css/custom_top.css（該当セレクタ群）
   ========================================================= */

/* --- /personal/ 用の変数補完 ---
   下記の変数は本来 custom_top.css の :root で定義されているが、/personal/ は
   custom_top.css を読み込まないため未定義になり、column-gap（.grid のgap）や
   色（.c-personal 等）が効かなくなる。TOPと同値で補完する。
   ※ 色は base.css のブランドトークンに紐付けて一括管理を崩さない。 */
:root {
  --gap-sp: 16px;
  --gap-pc: 24px;
  --c-personal: var(--c-brand-personal);
  --c-business: var(--c-brand-business);
}

/* --- helpers（c-personal / grid / items-center など） --- */
.c-personal {
  color: var(--c-personal);
}

.c-business {
  color: var(--c-business);
}

/* ---------- ボタンの共通マージン ---------- */
.u-mt-button {
  margin-top: 20px;
}

@media (min-width: 968px) {
  .u-mt-button {
    margin-top: 40px;
  }
}
/* ---------- page ---------- */
.page {
  max-width: 1440px;
  margin-inline: auto;
}

/* ---------- main（既存HTML対応） ---------- */
/* <main id="main" class="pageMain"> */
/* ---------- grid ---------- */
.grid {
  display: grid;
  -moz-column-gap: var(--gap-sp);
       column-gap: var(--gap-sp);
}
@media (min-width: 968px) {
  .grid {
    -moz-column-gap: var(--gap-pc);
         column-gap: var(--gap-pc);
  }
}

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

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-2--media {
  grid-template-columns: auto 1fr;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 968px) {
  .md-grid-1 {
    grid-template-columns: 1fr;
  }
  .md-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* ---------- flex ---------- */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

/* --- homeSection（見出し・サブタイトル・本文） --- */
.homeSection {
  margin: 60px auto 0;
}
.homeSection.homeSection__m0 {
  margin: 0 auto;
}

.homeSection__title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: bold;
}

.homeSection__sbutitle {
  font-family: Montserrat;
  font-weight: bold;
  font-size: 12px;
  line-height: 18px;
  margin: 0;
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 4px;
}
@media (min-width: 968px) {
  .homeSection__sbutitle {
    font-size: 16px;
  }
}
.homeSection__sbutitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.4em;
  height: 0.4em;
  background-color: currentColor;
  border-radius: 50%;
  transform: translateY(-50%);
}

.homeSection__title.homeSection__title--alert {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c1304f;
  font-weight: bold;
}
@media (min-width: 968px) {
  .homeSection__title.homeSection__title--alert {
    font-size: 20px;
    align-items: baseline;
    width: 14.8%;
    min-width: 172px;
  }
}

.homeSection__icon {
  color: #c1304f;
  flex-shrink: 0;
}

.homeSection__text {
  margin: 12px var(--gap-sp) 0;
  line-height: 2;
}
@media (min-width: 968px) {
  .homeSection__text {
    margin: 24px var(--gap-pc) 0;
  }
}

/* --- layout-margin --- */
.layout-margin {
  margin-top: 24px;
}
@media (min-width: 968px) {
  .layout-margin {
    margin-top: 40px;
  }
}

/* --- layout-padding --- */
.layout-padding {
  padding: 0 4.36vw;
}

/* --- homeheading --- */
.homeheading {
  display: flex;
  flex-direction: column;
}

.homeheading__reverse {
  flex-direction: column-reverse;
}

/* --- homeAbout（信用組合について） ---
   TOP（index.html）からコピーした「信用組合について」ブロック用。
   元ファイル: assets/css/custom_top.css の該当セレクタ群（.homeAbout__*）をそのまま複製。
   ※ .homeSection / .layout-padding / .homeheading / .btn* 等は既存（base.css・custom.css・本ファイル）で解決済み。 */
.homeAbout {
  /* TOP では直後の .homeConsult の margin-top:60px が下側の隙間を作っていたが、
     /personal/ では直後が .pageBody（先頭 .section は margin-top:0）になり隙間が消えるため、
     ここで下マージンを補い「ためる」見出しとの間隔を 60px に揃える（.homeConsult と同値）。 */
  margin-bottom: 60px;
}

.homeAbout__points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.homeAbout__point {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 22px 14px 8px;
  text-align: center;
  margin-top: 25px;
}
@media (min-width: 968px) {
  .homeAbout__point {
    padding: 24px 20px 20px;
  }
}

.homeAbout__pointLabel {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #2aa198;
  color: #fff;
  font-size: 10px;
  font-family: Montserrat;
  padding: 2px 15px;
  border-radius: 4px;
  font-weight: bold;
  white-space: nowrap;
}
@media (min-width: 968px) {
  .homeAbout__pointLabel {
    font-size: 16px;
    line-height: 1;
    padding: 3px 30px;
  }
}

.homeAbout__pointGroup {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 968px) {
  .homeAbout__pointGroup {
    grid-template-columns: 37.88% 57.58%;
    gap: 12px;
    align-items: center;
  }
}

.homeAbout__pointImage {
  width: 100%;
  height: auto;
  aspect-ratio: 80/44;
  -o-object-fit: cover;
     object-fit: cover;
  max-width: 80px;
  margin: 0 auto;
}
@media (min-width: 968px) {
  .homeAbout__pointImage {
    aspect-ratio: 100/55;
    max-width: 100px;
  }
}

.homeAbout__pointBody {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
  margin-top: 4px;
}
@media (min-width: 968px) {
  .homeAbout__pointBody {
    align-items: center;
    font-size: 20px;
  }
  .homeAbout__pointBody br {
    display: none;
  }
}

.homeAbout__summary {
  margin: 20px 16px 0;
  line-height: 2;
}
@media (min-width: 968px) {
  .homeAbout__summary {
    margin: 40px 24px 0;
  }
}

/* --- homeConsult（相談導線・目的グリッド・boder__round・scene） --- */
.homeConsult {
  background: #D9F1EF;
  padding: 24px 0 0;
  /* TOPでは直後の .homeSection の margin-top:60px が隙間を作っていたが、
     /personal/ では直後が .section（margin-top:0）になり隙間が消えるため、
     ここで下マージンを補い「ためる」見出しとの間隔を TOP と同じ 60px に揃える。 */
  margin-bottom: 60px;
  /* .homeSection（custom.css）の max-width:1160px が枠（背景）ごと制限してしまうため、
     枠自体は 100%（全幅）に戻す。中の要素は下記の .layout-padding で 1160px 中央寄せにする。 */
  max-width: none;
}

/* 枠（背景）は全幅、中の要素だけ max-width:1160px で中央寄せ。
   .homeConsult 直下の .layout-padding（見出し・目的グリッド・シーン文）と、
   .homeLifePlan__bg 内の .layout-padding（ライフプランタイル）の両方に効かせる。
   ※ .layout-padding の左右パディング（4.36vw）は小画面の余白として残す。 */
.homeConsult .layout-padding {
  max-width: 1160px;
  margin-inline: auto;
}

.homeConsult__illust {
  max-width: 100px;
  height: auto;
  aspect-ratio: 1/1;
}

.homeConsult__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  margin: 20px auto 0;
  padding: 0;
}
@media (min-width: 1024px) {
  .homeConsult__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 24px auto 0;
  }
}

.homeConsult__item {
  position: relative;
  /* /personal/ では custom.css の .homeConsult__item（flex/枠線/背景/余白/太字）が
     効いてしまうため、TOP設計（position のみ）に戻す打ち消し。
     ※ custom.css より後に読み込む＝後勝ちで効くので、強制上書き指定は使わない */
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-weight: normal;
}

/* custom.css の .homeConsult__item::after { content:"›" } を無効化（TOP設計に「›」は無い） */
.homeConsult__item::after {
  content: none;
}

.homeConsult__link {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: #333;
  box-shadow: 0px 4px 16px rgba(0, 163, 149, 0.2);
  transition: box-shadow 0.3s ease;
  height: 100%;
}
@media (min-width: 968px) {
  .homeConsult__link {
    padding: 12px 20px 10px;
  }
}

.homeConsult__link {
  border: 2px solid transparent;
  box-sizing: border-box;
}
.homeConsult__link:hover {
  border-color: var(--c-personal);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.homeConsult__media {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #FFB6C1 0%, #FFC0CB 100%);
  margin-bottom: 12px;
}
.homeConsult__media img {
  max-width: 108px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  aspect-ratio: 108/64;
}

.homeConsult__group {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
}

.homeConsult__content {
  flex: 1;
}

.homeConsult__title {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}
@media (min-width: 968px) {
  .homeConsult__title {
    font-size: 15px;
  }
}
.homeConsult__title strong {
  font-weight: bold;
  font-size: 16px;
}

.homeConsult__arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.homeConsult__arrow svg {
  width: 20px;
  height: 20px;
}

@media (hover: hover) {
  .homeConsult__item:hover {
    background: var(--c-primary-weak);
  }
}
.boder__round {
  background: #39A7AA;
  border-radius: 100vh;
  color: #fff;
  padding: 4px 16px;
  font-weight: bold;
}
@media (min-width: 968px) {
  .boder__round {
    font-size: 20px;
    padding: 6px 24px;
  }
}

.homeConsult__scene {
  margin-top: 40px;
}

/* --- homeLifePlan（ライフプランタイル） --- */
.homeLifePlan__bg {
  background-position: 0px 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M23 0V24 M0 23H24' fill='none' stroke='%2339A7AA' stroke-opacity='0.2' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  padding-bottom: 40px;
}
@media (min-width: 968px) {
  .homeLifePlan__bg {
    padding-bottom: 200px;
  }
}

.homeLifePlan__icon {
  position: relative;
}
.homeLifePlan__icon::before {
  content: "";
  width: 50.256vw;
  height: 15.897vw;
  position: absolute;
  z-index: 2;
  right: 4.36%;
  top: clamp(4px, 1.28vw, 8px);
  z-index: 2;
  transform: rotate(-10deg);
  background-image: url("/assets/img/top/homeLifePlan__icon1.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
@media (min-width: 968px) {
  .homeLifePlan__icon::before {
    width: 25.41vw;
    height: 8.06vw;
    right: 5.8%;
    top: 8.2px;
  }
}
.homeLifePlan__icon::after {
  content: "";
  width: 42.05vw;
  height: 12.31vw;
  position: absolute;
  z-index: 2;
  left: 4.36%;
  bottom: clamp(32px, 11.03vw, 48px);
  transform: rotate(-11deg);
  background-image: url("/assets/img/top/homeLifePlan__icon2.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
@media (min-width: 968px) {
  .homeLifePlan__icon::after {
    width: 22.71vw;
    height: 6.55vw;
    left: 4.36vw;
    bottom: max(-11vw,-146px);
  }
}

.homeLifePlan__tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px 0 120px 0;
  margin: 20px auto 0;
  list-style: none;
}
@media (min-width: 968px) {
  .homeLifePlan__tiles {
    grid-template-columns: repeat(3, 1fr);
    padding: 24px 0 0 0;
  }
}

.homeLifePlan__tiles > li {
  display: contents;
}
.homeLifePlan__tiles > li a {
  box-shadow: 0px 4px 16px rgba(0, 163, 149, 0.2);
}

.homeLifePlan__tiles li:nth-child(2) a,
.homeLifePlan__tiles li:nth-child(4) a,
.homeLifePlan__tiles li:nth-child(6) a {
  transform: translateY(80px);
}
@media (min-width: 968px) {
  .homeLifePlan__tiles li:nth-child(2) a,
  .homeLifePlan__tiles li:nth-child(4) a,
  .homeLifePlan__tiles li:nth-child(6) a {
    transform: translateY(0);
  }
}

@media (min-width: 968px) {
  .homeLifePlan__tiles li:nth-child(2) a,
  .homeLifePlan__tiles li:nth-child(5) a {
    transform: translateY(60px);
  }
}

@media (min-width: 968px) {
  .homeLifePlan__tiles li:nth-child(3) a,
  .homeLifePlan__tiles li:nth-child(6) a {
    transform: translateY(120px);
  }
}

.homeLifePlan__tile {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0px 4px 16px rgba(0, 163, 149, 0.2);
  border: 2px solid transparent;
  box-sizing: border-box;
  /* custom.css の .homeLifePlan__tile（grid/min-height:78px/padding:12px/font-weight:900）の
     打ち消し。TOP設計は画像＋contentのブロックカードで、tile自体に余白・最小高さは持たない */
  min-height: 0;
  padding: 0;
  font-weight: normal;
}
.homeLifePlan__tile:hover {
  border-color: var(--c-personal);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.homeLifePlan__tile-image {
  margin: 7px 7px 0 7px;
  aspect-ratio: 156/117;
}
.homeLifePlan__tile-image img {
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.homeLifePlan__tile-content {
  /* tile を display:block に戻したうえで、content を明示的に全幅にして
     space-between（テキスト左／アイコン右）を確実に効かせる。
     ※ base.css の * { box-sizing: border-box } により padding を足しても溢れない */
  width: 100%;
  padding: 12px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.homeLifePlan__tile-text {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  font-weight: bold;
}
@media (min-width: 968px) {
  .homeLifePlan__tile-text br {
    display: none;
  }
}

.homeLifePlan__tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PC: 3列表示 */
@media (min-width: 968px) {
  .homeLifePlan__tiles {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .homeLifePlan__tile-text {
    font-size: 18px;
  }
  .homeLifePlan__tile-content {
    padding: 12px 12px 16px;
  }
}
@media (min-width: 1024px) {
  .homeLifePlan__tiles {
    gap: 24px;
  }
}

/* --- 後方上書き（custom_top.css 末尾の Responsive 節から。最終値を効かせるため最後に置く） --- */
@media (min-width: 968px) {
  .homeLifePlan__tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}
.homeSection__title {
  font-size: 20px;
  line-height: 1.5;
  font-weight: bold;
}
@media (min-width: 968px) {
  .homeSection__title {
    font-size: 32px;
  }
}
