@charset "UTF-8";

/* アドミンバーによる html タグの上余白を強制リセット */
html {
  margin-top: 0 !important;
}
body.admin-bar {
  margin-top: 0 !important;
}
#wpadminbar {
  display: none !important;
}

/* ==========================================================================
   Modern Reset CSS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "palt";
  scroll-behavior: smooth;
  tab-size: 4;
}

body {
  min-height: 100vh;
  line-height: 1.75;
  letter-spacing: 0.15em;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* フォーム要素のリセット */
input, button, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  border-radius: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

button, input[type="submit"], input[type="button"] {
  cursor: pointer;
}

/* リスト・メディア・リンクのリセット */
ol, ul {
  list-style: none;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover, button:hover {
  opacity: 0.7;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ==========================================================================
   Design Tokens (:root)
   ========================================================================== */
:root {
  --clr-main: #2B5FBF;
  --clr-bg-main: #FFFEFD;
  --clr-bg-sec:  #F7F2EB;
  --clr-bg-spot: #E7F3EB;
  --clr-text-100: #3E3A39;
  --clr-text-80:  #615E5D;
  --clr-text-60:  #9F9D9C;
  --clr-text-40:  #DFDEDE;
  --clr-text-20:  #F1F1F1;
  --clr-functional-joy: #E8826E;
  --clr-sunny:      #EAB83D;
  --clr-sunny-bg:   #FAF1DC;
  --clr-clover:     #6DC49A;
  --clr-clover-bg:  #E7F3EB;
  --clr-sky:        #66ADDA;
  --clr-sky-bg:     #E5F0F9;
  --clr-grape:      #A98FD4;
  --clr-grape-bg:   #ECE9F4;
  --clr-joy-deco:   #E8826E;
  --clr-joy-deco-bg:#F9E8E1;
  --clr-hug:        #E8849C;
  --clr-hug-bg:     #FAE6EB;
  --clr-senior:     #5B9E9A;
  --clr-senior-bg:  #DEECEB;
  --font-title: "dnp-shuei-mgothic-std", sans-serif;
  --font-body:  "dnp-shuei-gothic-gin-std", sans-serif;
  --font-note:  "Noto Sans JP", sans-serif;
  --font-en:    poppins, sans-serif;
  --floating-banner-height: calc(100 / 393 * 100vw);
}

@media screen and (min-width: 768px) {
  :root {
    --floating-banner-height: min(calc(105 / 1000 * 100vw), 105px);
  }
}
@media screen and (min-width: 1024px) {
  :root {
    --floating-banner-height: min(calc(105 / 1000 * 100vw), 105px);
  }
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
  font-family: "dnp-shuei-gothic-gin-std", var(--font-body), sans-serif;
  color: var(--clr-text-100);
}

button {
  letter-spacing: 0.1em;
}

/* モーダル・ナビ開閉時の背面スクロール制御 */
body.is-nav-open,
body.is-modal-open,
html:has(body.is-nav-open),
html:has(body.is-modal-open) {
  overflow: hidden !important;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */
.l-container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

@media screen and (min-width: 1040px) {
  .l-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.section-title {
  color: var(--clr-main);
  margin-bottom: calc(30 / 393 * 100vw);
}

.c-section-sub {
  line-height: 1;
  display: block;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--clr-main);
  letter-spacing: 0.1em;
   margin-bottom: calc(10 / 393 * 100vw);
}

@media screen and (min-width: 768px) {
  .section-title {
    margin-bottom: min(calc(70 / 1000 * 100vw), 70px);
  }
  .c-section-sub {
   margin-bottom: min(calc(10 / 1000 * 100vw), 10px);
}
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6,
.section-title, .fz-title, .fz-title-s, .fz-mid {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: 0.15em;
}

.fz-note, .fz-note-s, .c-note {
  font-family: var(--font-note);
  font-weight: 400;
  color: var(--clr-text-80);
  line-height: 1.5;
  letter-spacing: 0;
}

.fz-title   { font-size: calc(32 / 393 * 100vw); }
.fz-title-s { font-size: calc(30 / 393 * 100vw); }
.fz-mid     { font-size: calc(26 / 393 * 100vw); }
.fz-sub     { font-size: calc(22 / 393 * 100vw); }
.fz-sub-s   { font-size: calc(20 / 393 * 100vw); }
.fz-body    { font-size: calc(16 / 393 * 100vw); }
.fz-body-s  { font-size: calc(14 / 393 * 100vw); }
.fz-body-xs { font-size: calc(12 / 393 * 100vw); }
.fz-note    { font-size: calc(10 / 393 * 100vw); }
.fz-note-s  { font-size: calc(10 / 393 * 100vw); }

@media screen and (min-width: 768px) {
  .fz-title   { font-size: min(calc(46 / 1000 * 100vw), 46px); }
  .fz-title-s { font-size: min(calc(42 / 1000 * 100vw), 42px); }
  .fz-mid     { font-size: min(calc(36 / 1000 * 100vw), 36px); }
  .fz-sub     { font-size: min(calc(26 / 1000 * 100vw), 26px); }
  .fz-sub-s   { font-size: min(calc(24 / 1000 * 100vw), 24px); }
  .fz-body    { font-size: min(calc(18 / 1000 * 100vw), 18px); }
  .fz-body-s  { font-size: min(calc(16 / 1000 * 100vw), 16px); }
  .fz-body-xs { font-size: min(calc(14 / 1000 * 100vw), 14px); }
  .fz-note    { font-size: min(calc(12 / 1000 * 100vw), 12px); }
  .fz-note-s  { font-size: min(calc(10 / 1000 * 100vw), 10px); }
}

@media screen and (max-width: 767.9px) {
  .pcItem { display: none !important; }
  .spItem { display: block !important; }
}
@media screen and (min-width: 768px) {
  .pcItem { display: block !important; }
  .spItem { display: none !important; }
}

/* Wave Component */
.c-wave-top, .c-wave-bottom {
  display: block;
  width: 100%;
  height: min(calc(100vw * 159 / 1300), 159px);
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: relative;
  z-index: 1;
}

.c-wave-top {
  background-image: url("../img/bg_wave_top.svg");
  margin-bottom: -1px; 
  z-index: 11;
}

.c-wave-bottom {
  background-image: url("../img/bg_wave_bottom.svg");
  margin-top: -1px;
  transform-origin: bottom center;
}

/* ==========================================================================
   Component: 汎用モーダル (きょうだいプラン・レビュー共通)
   ========================================================================== */
.l-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  padding: calc(40 / 393 * 100vw) 0;
}

.l-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.l-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--clr-bg-sec);
  z-index: 1;
}

.l-modal__container {
  position: relative;
  background-color: var(--clr-bg-main);
  width: calc(340 / 393 * 100vw);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  z-index: 10010;
  padding: calc(40 / 393 * 100vw) calc(20 / 393 * 100vw) calc(30 / 393 * 100vw);
}

.l-modal__close {
  position: absolute;
  top: calc(-18 / 393 * 100vw);
  right: calc(-18 / 393 * 100vw);
  width: calc(46 / 393 * 100vw);
  height: calc(46 / 393 * 100vw);
  background-color: var(--clr-clover);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.l-modal__close:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.l-modal__close svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  height: 65%;
  fill: currentColor;
}

.l-modal__header {
  text-align: center;
  margin-bottom: calc(30 / 393 * 100vw);
}

.l-modal__sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(16 / 393 * 100vw);
  color: var(--clr-text-80);
  font-weight: 600;
  margin-bottom: calc(12 / 393 * 100vw);
}

.l-modal__sub::before,
.l-modal__sub::after {
  content: "";
  display: block;
  width: 1px;
  height: calc(18 / 393 * 100vw);
  background-color: var(--clr-text-40);
}

.l-modal__sub::before { transform: rotate(-30deg); }
.l-modal__sub::after { transform: rotate(30deg); }

.l-modal__title {
  color: var(--clr-main);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.l-modal__example {
  margin: calc(20 / 393 * 100vw) 0;
}
.l-modal__ex-title {
  text-align: center;
  color: var(--clr-main);
}

@media screen and (min-width: 768px) {
  .l-modal {
    padding: min(calc(60 / 1000 * 100vw), 60px) 0;
  }

  .l-modal__container {
    width: min(calc(500 / 1000 * 100vw), 500px);
    padding: min(calc(50 / 1000 * 100vw), 50px) min(calc(40 / 1000 * 100vw), 40px);
  }

  .l-modal__close {
    top: max(calc(-25 / 1000 * 100vw), -25px);
    right: max(calc(-25 / 1000 * 100vw), -25px);
    width: min(calc(60 / 1000 * 100vw), 60px);
    height: min(calc(60 / 1000 * 100vw), 60px);
  }
  
  .l-modal__close svg {
    width: 70%;
    height: 70%; 
  }

  .l-modal__header {
    margin-bottom: min(calc(20 / 1000 * 100vw), 20px);
  }
  
  .l-modal__sub {
    gap: min(calc(24 / 1000 * 100vw), 24px);
    margin-bottom: min(calc(16 / 1000 * 100vw), 16px);
  }

  .l-modal__sub::before,
  .l-modal__sub::after {
    height: min(calc(24 / 1000 * 100vw), 24px);
  }

  .l-modal__example {
    margin: min(calc(30 / 1000 * 100vw), 30px) 0;
  }
}

/* レビューモーダル専用調整 */
.l-modal__container.is-review {
  padding: calc(30 / 393 * 100vw) calc(20 / 393 * 100vw);
}

.l-modal__container.is-review .l-modal__close {
  background-color: var(--clr-main) !important;
}

.l-review-modal__tags {
  display: flex;
  justify-content: center;
  margin-top: calc(20 / 393 * 100vw);
}

.l-review-modal__tag {
  display: inline-block;
  font-family: var(--font-note, sans-serif);
  font-size: calc(12 / 393 * 100vw);
  font-weight: 600;
  color: #ffffff !important;
  padding: calc(4 / 393 * 100vw) calc(16 / 393 * 100vw);
  border-radius: 50px !important;
  line-height: 1.2;
  text-align: center;
}

.l-review-modal__meta {
  text-align: center;
  color: var(--clr-text-100);
  margin-top: calc(8 / 393 * 100vw);
  font-family: var(--font-note);
  padding-bottom: calc(12 / 393 * 100vw);
  border-bottom: 1px solid var(--clr-text-40);
  width: 100%;
}

.l-review-modal__title {
  color: var(--clr-main);
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  margin-top: calc(16 / 393 * 100vw);
  margin-bottom: calc(12 / 393 * 100vw);
}

.l-review-modal__text-wrap {
  color: var(--clr-text-100);
  line-height: 1.6;
  text-align: left;
  margin-bottom: calc(20 / 393 * 100vw);
}

.l-review-modal__img img,
.l-review-modal__sub-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.l-review-modal__sub-img {
  margin-bottom: calc(20 / 393 * 100vw);
}

@media screen and (min-width: 768px) {
  .l-modal__container.is-review {
    padding: min(calc(40 / 1000 * 100vw), 40px);
  }
  
  .l-review-modal__tags {
    margin-top: min(calc(24 / 1000 * 100vw), 24px);
  }
  
  .l-review-modal__tag {
    font-size: min(calc(16 / 1000 * 100vw), 16px);
    padding: min(calc(4 / 1000 * 100vw), 4px) min(calc(14 / 1000 * 100vw), 14px);
  }

  .l-review-modal__meta {
    font-size: min(calc(14 / 1000 * 100vw), 14px);
    margin-top: min(calc(10 / 1000 * 100vw), 10px);
    padding-bottom: min(calc(12 / 1000 * 100vw), 12px);
  }

  .l-review-modal__title {
    margin-top: min(calc(16 / 1000 * 100vw), 16px);
    margin-bottom: min(calc(12 / 1000 * 100vw), 12px);
  }
  
  .l-review-modal__text-wrap {
    line-height: 1.7;
    margin-bottom: min(calc(20 / 1000 * 100vw), 20px);
  }
  .l-review-modal__sub-img {
    margin-bottom: min(calc(20 / 1000 * 100vw), 20px);
  }
}

/* ==========================================================================
   Floating Actions (追従ボタン) & Page Top Button
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: calc(15 / 393 * 100vw);
  left: calc(20 / 393 * 100vw);
  right: calc(20 / 393 * 100vw);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  gap: calc(10 / 393 * 100vw);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.floating-actions.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.floating-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--clr-bg-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-actions .btn-main {
  background-color: var(--clr-main);
  width: calc(283 / 393 * 100vw);
  height: calc(51 / 393 * 100vw);
  border-radius: calc(25 / 393 * 100vw);
  font-size: calc(20 / 393 * 100vw);
  position: relative;
  padding-right: calc(10 / 393 * 100vw);
  letter-spacing: 0.1em;
}

.floating-actions .btn-main::after {
  content: "";
  position: absolute;
  right: calc(16 / 393 * 100vw);
  width: calc(18 / 393 * 100vw);
  height: calc(18 / 393 * 100vw);
  background-image: url("../img/icon_arrow_white.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.floating-actions .btn-chat {
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  background-color: var(--clr-sky);
  width: calc(60 / 393 * 100vw);
  height: calc(60 / 393 * 100vw);
  border-radius: 50% 50% 0 50%;
  font-size: calc(10 / 393 * 100vw);
  line-height: 1.3;
  text-align: center;
  flex-direction: column;
  position: relative;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.floating-actions .btn-chat.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.floating-actions .btn-chat::before {
  content: "";
  width: calc(20 / 393 * 100vw);
  height: calc(20 / 393 * 100vw);
  margin-bottom: calc(2 / 393 * 100vw);
  background-image: url("../img/icon_chat.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.floating-actions .btn-chat::after {
  content: "";
  position: absolute;
  top: calc(2 / 393 * 100vw);
  right: calc(2 / 393 * 100vw);
  width: calc(10 / 393 * 100vw);
  height: calc(10 / 393 * 100vw);
  background-color: var(--clr-functional-joy);
  border-radius: 50%;
}

@media screen and (min-width: 768px) {
  .floating-actions {
    bottom: 20px;
    width: auto;
    pointer-events: none;
    justify-content: center;
  }

  .floating-actions .btn-main {
    pointer-events: auto;
    width: min(calc(480 / 1000 * 100vw), 480px);
    height: min(calc(60 / 1000 * 100vw), 60px);
    border-radius: min(calc(52.5 / 1000 * 100vw), 52.5px);
    font-size: min(calc(24 / 1000 * 100vw), 24px);
    margin: 0;
  }

  .floating-actions .btn-main::after {
    right: min(calc(32 / 1000 * 100vw), 32px);
    width: min(calc(24 / 1000 * 100vw), 24px);
    height: min(calc(24 / 1000 * 100vw), 24px);
  }

  .floating-actions .btn-chat {
    pointer-events: auto;
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: min(calc(105 / 1000 * 100vw), 105px);
    height: min(calc(105 / 1000 * 100vw), 105px);
    font-size: min(calc(18 / 1000 * 100vw), 18px);
    line-height: 1.4;
  }

  .floating-actions .btn-chat::before {
    width: min(calc(35 / 1000 * 100vw), 35px);
    height: min(calc(35 / 1000 * 100vw), 35px);
    margin-bottom: 0;
  }

  .floating-actions .btn-chat::after {
    top: min(calc(6 / 1000 * 100vw), 6px);
    right: min(calc(6 / 1000 * 100vw), 6px);
    width: min(calc(14 / 1000 * 100vw), 14px);
    height: min(calc(14 / 1000 * 100vw), 14px);
  }
}

@media screen and (min-width: 1024px) {
  .floating-actions .btn-main {
    width: min(calc(500 / 1000 * 100vw), 500px);
    height: min(calc(65 / 1000 * 100vw), 65px);
    font-size: min(calc(30 / 1000 * 100vw), 30px);
  }

  .floating-actions .btn-chat {
    right: 40px;
  }
}

.btn-pagetop { display: none; }

@media screen and (min-width: 768px) {
  .btn-pagetop {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 40px;
    bottom: calc(60px + min(calc(105 / 1000 * 100vw), 105px) + 20px); 
    width: min(calc(60 / 1000 * 100vw), 60px);
    height: min(calc(60 / 1000 * 100vw), 60px);
    background-color: var(--clr-bg-main);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    cursor: pointer;
  }

  .btn-pagetop-icon {
    display: block;
    width: min(calc(14 / 1000 * 100vw), 14px);
    height: min(calc(14 / 1000 * 100vw), 14px);
    border-top: min(calc(3 / 1000 * 100vw), 3px) solid var(--clr-main);
    border-left: min(calc(3 / 1000 * 100vw), 3px) solid var(--clr-main);
    transform: rotate(45deg);
    margin-top: min(calc(4 / 1000 * 100vw), 4px);
  }

  .btn-pagetop.is-hidden-pagetop {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* 下層ページ用コントロール */
body:not(.home) .floating-actions {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

body:not(.home) .floating-actions.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body:not(.home) .btn-pagetop.is-active-pagetop {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body:not(.home) .floating-actions a,
body:not(.home) .floating-actions a:hover,
body:not(.home) .floating-actions .btn-main,
body:not(.home) .floating-actions .btn-main:hover,
body:not(.home) .floating-actions .btn-chat,
body:not(.home) .floating-actions .btn-chat:hover {
  color: var(--clr-bg-main, #FFFEFD) !important;
  text-decoration: none !important;
}

@media (hover: hover) {
  body:not(.home) .floating-actions a:hover {
    opacity: 0.8 !important;
  }
}

/* ==========================================================================
   Section: Search by Age (p-search-age)
   ========================================================================== */
.p-search-age {
  width: 100%;
  position: relative;
  padding-top: calc(80 / 393 * 100vw);
  padding-bottom: calc(80 / 393 * 100vw);
}

/* TOPページ等の背景ベージュ指定 */
.p-search-age.is-bg-beige {
  background-color: var(--clr-bg-sec);
}

.p-search-age__title-wrap,
.p-search-age__list {
  position: relative;
  z-index: 2;
}

.p-search-age__title-wrap .section-title,
.p-search-age__title-wrap .c-section-sub {
  text-align: center;
}

/* --------------------------------------------------------------------------
   SP表示 (スマホ)
   -------------------------------------------------------------------------- */
.p-search-age__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: calc(47 / 393 * 100vw);
  row-gap: calc(40 / 393 * 100vw);
  justify-items: center;
  margin: 0 auto;
  width: calc(125 / 393 * 100vw);
  justify-content: center;
  padding: 0;
}

.p-search-age__item {
  width: 100%;
  display: flex;
  justify-content: center;
}

.p-search-age__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
  .p-search-age__link:hover {
    opacity: 0.7;
  }
}

.p-search-age__img-thumb {
  position: relative;
  width: calc(120 / 393 * 100vw);
  height: calc(120 / 393 * 100vw);
  max-width: 160px;
  max-height: 160px;
  min-width: 100px;
  min-height: 100px;
  margin-bottom: 12px;
  border-radius: 50%;
}

.p-search-age__img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.p-search-age__img-thumb::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  z-index: 1;
}

.p-search-age__img-thumb.is-sunny::after  { background-color: var(--clr-sunny); }
.p-search-age__img-thumb.is-clover::after { background-color: var(--clr-clover); }
.p-search-age__img-thumb.is-sky::after    { background-color: var(--clr-sky); }
.p-search-age__img-thumb.is-grape::after  { background-color: var(--clr-grape); }
.p-search-age__img-thumb.is-hug::after    { background-color: var(--clr-hug); }
.p-search-age__img-thumb.is-senior::after { background-color: var(--clr-senior); }

.p-search-age__label {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--clr-text-100);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   PC表示 (768px以上)：2枚目の「元の絶妙な余白感」を完全再現
   -------------------------------------------------------------------------- */
@media screen and (min-width: 768px) {
  .p-search-age {
    padding-top: min(calc(80 / 1000 * 100vw), 80px);
    padding-bottom: min(calc(80 / 1000 * 100vw), 80px);
  }

  .p-search-age__list {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    column-gap: min(calc(40 / 1000 * 100vw), 40px) !important;
    row-gap: min(calc(40 / 1000 * 100vw), 40px) !important;
    width: 100% !important;
    max-width: min(calc(700 / 1000 * 100vw), 700px) !important; /* ★全体幅を700pxに制限して中央に寄せる */
    margin: 0 auto !important;
  }

  .p-search-age__item {
    width: 100% !important;
  }

  /* 上段2列（中央寄り） */
  .p-search-age__item:nth-child(1) { grid-column: 2 / 4 !important; }
  .p-search-age__item:nth-child(2) { grid-column: 4 / 6 !important; }

  /* 下段3列 */
  .p-search-age__item:nth-child(3) { grid-column: 1 / 3 !important; }
  .p-search-age__item:nth-child(4) { grid-column: 3 / 5 !important; }
  .p-search-age__item:nth-child(5) { grid-column: 5 / 7 !important; }

  .p-search-age__img-thumb {
    width: min(calc(160 / 1000 * 100vw), 160px);
    height: min(calc(160 / 1000 * 100vw), 160px);
  }
}