.main-imgbox {
aspect-ratio: 6 / 6;
  width: 96vw;
margin: 0 calc(50% - 48vw);
  /*overflow: hidden;*/
  position: relative;
}

.slider img {
  max-width: 100%;
  height: 100% !important;
  width: 100% !important;
  object-fit: cover;
  display: block;
}

.main-imgbox-inner {
z-index: 990;
padding: var(--space-sm);
position: absolute;
margin: 0;
width: 100%;
top: 70%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 990;

}

.main-imgbox h2 {
font-size: clamp(2rem, 2.2rem + 0.6vw, 4rem);
font-weight: 700;
line-height: 1.5;
color: #fff;
text-shadow: 2px 2px 10px rgb(130 130 130 / 20%), -2px 2px 10px rgb(130 130 130 / 20%), 2px -2px 10px rgb(130 130 130 / 20%), -2px -2px 10px rgb(130 130 130 / 20%), 2px 0px 10px rgb(130 130 130 / 20%), 0px 2px 10px rgb(130 130 130 / 20%), -2px 0px 10px rgb(130 130 130 / 20%), 0px -2px 10px rgb(130 130 130 / 20%);
}

/*header:after {
display: block;
content: "";
background: url(../img/common/bgAA.svg)no-repeat top left;
position: absolute;
bottom: -11em;
left: 2em;
width: 100px;
height: 100px;
z-index: 10;
}*/

.bx-viewport {
overflow: visible !important;
aspect-ratio: 6 / 6;
}

.slider {
position: relative;
overflow: visible !important;
}

.slider li::before {
    display: block;
    content: "";
    background: url(../img/common/bgAA.svg) no-repeat top left;
    position: absolute;
    top: 10em;
    left: 1em;
    width: 100px;
    height: 100px;
    z-index: 9999;
}

.slider li::after {
display: block;
content: "";
background: url(../img/common/bgA.svg)no-repeat bottom right;
position: absolute;
bottom: -1em;
right: -1em;
width: 100px;
height: 100px;
z-index: 9999;
}

.card {
box-shadow: var(--shadow-md-under);
}
.info-2023 {
display: grid;
width: 90%;
border: 1px solid var(--color-primary);
padding: 2em;
margin-right: auto;
margin-left: auto;
position: relative;
background: url(../img/common/logo-crane.svg) no-repeat 8em 2em / 20%, linear-gradient(rgb(255 255 255 / 80%), rgba(255, 255, 255, 0.5));
background-blend-mode: overlay;
}

.info-2023:before {
display: block;
content: "";
background: url(../img/common/bgC.svg) no-repeat top left;
position: absolute;
top: -1em;
left: -1em;
width: 50px;
height: 50px;
z-index: 9999;
}

.info-2023:after {
display: block;
content: "";
background: url(../img/common/bgA.svg) no-repeat top left;
position: absolute;
bottom: -1em;
right: -1em;
width: 50px;
height: 50px;
z-index: 9999;
}

.info-2023 dl {
min-width: 80%;
margin-top: 1em;
margin-right: auto;
margin-left: auto;
border-bottom: 1px dashed #a1a1a1;
}

.info-2023 dl dt,
.info-2023 dl dd {
display: inline-block;
}

.flow-btns {
position: relative;
}

.flow-info {
width: 500px;
background: #ffffe0;
padding: 2em;
margin-right: auto;
margin-left: auto;
position: inherit;
z-index: 999;
display: grid;
grid-template-columns: 1fr 2fr;
gap: 1em;
align-items: center;
transform: rotate(357deg);
}

.flow-info::before {
width: 180px;
margin: -193px 0 20px 105px;
}

.flow-info::before {
content: "";
display: block;
box-shadow: 1px 1px 1px rgba(0, 0, 0, .05);
transform: rotate(10deg);
background: -moz-linear-gradient(-30deg, rgba(255, 241, 0, .2), rgba(255, 241, 0, .5));
background: -webkit-linear-gradient(-30deg, rgba(255, 241, 0, .2), rgba(255, 241, 0, .5));
background: linear-gradient(60deg, rgba(255, 241, 0, .2), rgba(255, 241, 0, .5));
border-left: solid 18px #fff100;
height: 30px;
position: absolute;
font-family: "Ruvic";
padding-left: 1em;
line-height: 1.1;
color: #fe597f;
}

.mhlw {
    color: #4a4a4a;
    border: 1px solid #ececec;
    margin: 0 auto 0;
    text-align: center;
}

/*.mhlw {
color: #4a4a4a;
border: 1px solid #ececec;
padding: 1em;
margin: 20px auto;
text-align: center;
background-color: #fff;;
background-repeat: no-repeat;
background-position: center 1em;
background-size: 97px auto;
background-image: url(../img/top/mhlw_mark.png);
}*/

dl.mhlw {
width: 100%;
}

.mhlw dt {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px dashed #a1a1a1;
    font-size: var(--size-md);
    text-align: center;
    position: relative; /* 念のため */
    padding: var(--size-sm); /* 上下左右にゆとりを持たせる */
    gap: 0.5em; /* テキストと画像の間に余白 */
  }
  
  .mhlw dt::before {
    content: "";
    display: inline-block;
    width: 60px;
    height: 60px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../img/top/mhlw_mark.png);
    flex-shrink: 0; /* アイコンのサイズを縮めない */
  }

.mhlw dd {
padding-top: 10px;
padding-bottom: 1em;
font-size: var(--size-md);
}

.info {
display: grid;
grid-template-columns: 1fr;
width: 100%;
}

.info-A {
display: flex;
flex-direction: row;
align-items: center;
}

ul.info_lst {
padding: 2em;
background: #ffffff6e;
}

.info_lst li {
background-position: 10px 6px;
background-size: 20px auto;
background: url(../img/top/info_ico.svg) no-repeat top left / 3em;
line-height: 2;
padding-left: 3em;
}

.info_lst li:last-child {
line-height: 1.4;
margin-bottom: 1em;
}

.info_lst li em {
display: inline-block;
font-size: var(--size-xl);
background: linear-gradient(transparent 80%, #f5ff00 20%);
}

.info-B {
display: flex;
width: 100%;
}

.info-B img {
width: 50vw;
margin: auto;
}

.note {
font-size: var(--size-xs);
line-height: 1.4;
text-indent: -1em;
display: inline-block;
margin-left: 1em;
margin-top: 0.5em;
letter-spacing: 0;
}

.main_T_items {
display: grid;
grid-template-columns: 1fr;
gap: var(--space-md);
}

.main_TA, .main_TB,.main_TC, .main_TD, .main_TE {
background: var(--color-background);
padding: 2em;
border: 1px solid var(--color-primary);
}

.box {
position: relative;
}

ul.box_line {
position: relative; /* 追加 */
overflow: visible; /* 必要に応じて */
width: 100%; /* 必要に応じて */
padding: 2em;
border: 1px solid var(--color-primary);
}

ul.box_line::before {
content: "";
display: block;
background: url(../img/common/kazari01.svg) no-repeat left top;
width: 2rem;
height: 2rem;
position: absolute;
left: 0;
top: 0;
}

.main_TA .box_line::after, .main_TB .box_line::after,
.main_TC .box_line::after, .main_TD .box_line::after,
.main_TE .box_line::after {
content: "";
display: block;
background: url(../img/top/main_T_A_sub.png) no-repeat right bottom / contain, #fff;
width: 100px;
height: 100px;
position: absolute;
right: 0;
bottom: -40px;
z-index: 99;
border: 1px solid var(--color-primary);
border-radius: 50%;
}

.main_TB .box_line::after {
background: url(../img/top/main_T_B_sub.png) no-repeat right bottom / contain, #fff;
}

.main_TC .box_line::after {
background: url(../img/top/main_T_C_sub.png) no-repeat right bottom / contain, #fff;
}

.main_TD .box_line::after {
background: url(../img/top/main_T_D_sub.png) no-repeat right bottom / contain, #fff;
}

.main_TE .box_line::after {
background: url(../img/top/main_T_E_sub.png) no-repeat right bottom / contain, #fff;
}


.box_line li::before {
content: "";
display: block;
background: url(../img/common/check.svg) no-repeat left top / contain;
width: 2em;
height: 2em;
}

.box_line li {
padding-left: 0em;
position: relative;
color: var(--color-primary);
}

.box_line li::before {
content: "";
display: inline-block;
background: url(../img/common/check.svg) no-repeat left top / contain;
width: 1em;
height: 1em;
margin-right: 0.5em;
}

.main_T_more {
margin-bottom: var(--space-sm);
background: var(--color-primary);
padding: var(--space-sm);
position: absolute;
bottom: -13px;
right: 0;
}

.main_T_more .circle-btn {
color: var(--color-background);
}

.main_T_more .circle-btn::before {
border-color: var(--color-background);
}

.sec-ttl.pick {
position: relative;
}

.sec-ttl.pick::after {
content: "";
display: block;
background: url(../img/common/pick.svg) no-repeat left bottom;
width: 30%;
height: 30vw;
position: absolute;
right: 10%;
transform: rotate(-90deg);
bottom: -9vw;
}

.pickup.card {
padding: var(--space-md);
background-color: #ffffffc2;
}

.pickup strong {
font-size: 147%;
letter-spacing: 0.05em;
color: var(--color-primary);
}

.pickup .f-A1gothic {
line-height: 1.7;
}

.pickup_sct_ttl {
line-height: 1;/* 行間の調整 */
}

.pickup .big1, .pickup .big2, .pickup .big3 {
width: 2em;
height: 2em;
display: inline-block;
vertical-align: bottom;
padding: 5px 5px;
color: white;
font-size: 4rem;
border: 1px solid var(--color-primary);
background: var(--color-primary);
text-align: center;
}

.pickup .big2 {
border: 1px solid var(--color-secondary);
background: var(--color-secondary);
}

.pickup .big3 {
border: 1px solid var(--color-primary);
background: var(--color-background);
color: var(--color-primary);
}

.afap {
margin-top: var(--space-xl);
}

.afap-ttl {
color: var(--color-text-heading);
text-align: center;
margin-bottom: var(--space-md);
letter-spacing: 0.2em;
font-size: var(--size-xl);
padding: 0.5em 2rem;
display: block;
}

p.f-serif {
position: relative;
margin-top: 2em;
}

p.f-serif::before {
content: "";
display: block;
background: url(../img/common/logo-crane.svg) no-repeat center top;
width: 80px;
height: 80px;
z-index: 999;
position: absolute;
top: -2em;
left: calc((100% - 80px) / 2);
opacity: 35%;
}

.afap_grp {
position: relative;
}

.afap_grps section {
  margin-bottom: 0;
}

.afap_grp_ttl {
writing-mode: vertical-rl;
position: absolute;
top: 0;
left: 0;
font-size: var(--size-sm);
color: var(--color-text-heading);
z-index: 99;
border: 1px solid var(--color-primary);
}

.afap_grp_ttl span {
background: #FFF;
display: block;
padding: 0.5em 0.25em;
}

.afap_grp_ttl em {
display: block;
margin-right: 0.3em;
color: var(--color-notice);
font-size: var(--size-md);
}

a.dispB {
color: var(--color-text);
}

.feature {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 2em;
}

.feat_box {
display: flex;
gap: 2em;
}

.feat_fig {
width: 45%
}

.feat_txt {
width: 50%;
}

.feat_head {
position: relative;
}

.feat_bg {
width: 100vw;
margin: var(--space-lg) calc(50% - 50vw) 0;
}

.custom-bg {
background: #f8f8f865;
padding: 20px;
display: block;
position: relative;
text-align: center;
}

/*.custom-bg::before {
content: "";
position: absolute;
top: -3em;
left: calc((100% - 300px) / 2);
width: calc((100% - 300px) / 2);
height: 50%;
background: url(../img/top/feature_ttl_back.svg) no-repeat top / contain;
z-index: -1;
}*/

.feat_head h2 {
line-height: 1.4;
-moz-text-shadow: 0px 0px 13px rgba(255, 255, 255, 0.8),0px 0px 6px rgba(255, 255, 255, 0.8);
-webkit-text-shadow: 0px 0px 13px rgba(255, 255, 255, 0.8),0px 0px 6px rgba(255, 255, 255, 0.8);
-ms-text-shadow: 0px 0px 13px rgba(255, 255, 255, 0.8),0px 0px 6px rgba(255, 255, 255, 0.8);
text-shadow: 0px 0px 13px rgba(255, 255, 255, 0.8),0px 0px 6px rgba(255, 255, 255, 0.8);
}

.feature-txt-S {
font-size: clamp(2rem, 2.5vw, 3rem); /* 小さい文字 */
color: #4a4a4a;
}
.feature-txt-M {
font-size: clamp(2.8rem, 4vw, 5rem); /* 中サイズ */
color: #222;
}
.feature-txt-L {
font-size: clamp(3.2rem, 5.5vw, 7rem); /* 大サイズ */
color: #111;
}
.feature-txt-number {
font-size: clamp(5.5rem, 8vw, 10rem); /* 数字特大 */
font-weight: 700;
font-style: italic;
color: #b29642;
position: relative;
}
.feature-txt-number::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 5px;
background: #b29642;
}


.feat.feat_1, .feat.feat_2, .feat.feat_3, .feat.feat_4, .feat.feat_5, .feat.feat_6 {
border: 1px solid var(--color-primary);
padding: 1em 2em;
position: relative;
}

.feat.feat_2, .feat.feat_4, .feat.feat_6 {
border: 1px solid var(--color-tertiary);
}


h3.feat_ttl {
font-size: var(--size-sm);
font-family: 'Noto Serif JP';
margin-bottom: var(--space-xs);
}

.feat_ttl .num {
font-style: italic;
font-size: var(--size-xl);
padding: 0 0.5em 0 0;
}

.feat_txt {
display: flex;
flex-direction: column; /* 縦に並べる */
justify-content: space-between; /* 上下にスペースを分ける */
position: relative; /* 絶対位置指定の基準を親要素にする */
}

.feat_txt p.btn {
margin-top: auto; /* ボタンを下に寄せる */
align-self: flex-end; /* ボタンを右端に配置 */
}

.feat_txt p.btn a {
font-size: var(--size-sm);
}

.bg_feat {
margin: var(--space-lg) calc(50% - 50vw);
padding: var(--space-lg) 0;
}

.message {
align-items: center;
position: relative;
}

.message_h2 {
font-style: italic;
font-size: var(--size-xl);
color: var(--color-text-heading);
position: relative;
}

.message_h2::before {
position: absolute;
content: "";
display: block;
background: url(../img/top/message.svg) no-repeat left / contain;
width: 100%;
height: 4em;
bottom: 0;
left: 0;
transform: translate(8vw, 5vh);
}

.messag_p img {
/* width: 100%; */
min-width: 100%;
}

.treatment-section {
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: var(--space-md);
gap: 2em;
}

.treatment-card {
border-radius: var(--radius-md);
max-width: calc( 100%/3 );
flex: 1 1 300px;
box-shadow: var(--shadow-sm);
-webkit-border-radius: var(--radius-md)x;
-moz-border-radius: var(--radius-md)x;
-ms-border-radius: var(--radius-md)x;
-o-border-radius: var(--radius-md)x;
display: flex;
flex-direction: column; /* ← これが重要 */
}

.main_TA h4, .main_TB h4, .treatment-card h4 {
font-size: var(--size-md);
color: var(--color-gray);
margin-bottom: 1em;
text-align: center;
}

.main_TA h3, .main_TB h3, .treatment-card h3 {
font-size: var(--size-lg);
line-height: 1.6;
}

.main_TA h3, .main_TB h3, .treatment-card h3 span {
color: var(--color-darkgray);
}

.treatment-card h3 span.green {
    color: var(--color-green);
}
        
.treatment-card h3 span.blue {
color: var(--color-blue);
}
        
.treatment-card h3 span.pink {
color: var(--color-pink);
}

section.bgF {
    padding: var(--space-lg) 0;
    width: 100vw;
    margin: var(--space-lg) calc(50% - 50vw);
}

.features {
display: flex;
flex-wrap: wrap;
gap: 1.5em;
justify-content: center;
margin-bottom: 2em;
}

.features li {
    width: 120px;
    height: 120px;
    border-radius: 50%;
   /*background: linear-gradient(to bottom, #a5d6a7 50%, #81c784 50%);*/
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1em;
    margin-bottom: 0;
    font-size: var(--size-xs);
    color: var(--color-green);
    font-weight: bold;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
    line-height: 1.4;
    position: relative;
    transition: transform 0.2s ease;
}

ul.features.green li {
    border: 3px solid var(--color-green);
}

ul.features.blue li {
border: 3px solid var(--color-blue);
color: var(--color-blue);
}

ul.features.pink li {
border: 3px solid var(--color-pink);
color: var(--color-pink);
}

.features li:hover {
transform: scale(1.05);
}

.features li::before {
content: none; /* チェックマークを消す */
}


.price-box {
border-top: 2px solid #eee;
padding-top: 1.5em;
}

.price-box p {
font-size: var(--size-sm);
line-height: 1.6;
margin-bottom: 1em;
padding-bottom: 1em;
border-bottom: 1px solid #ddd;
}

.price-box p::before {
    content: "✔";
    font-weight: bold;
    color: #4caf50;
  }

.price-box .free {
color: var(--color-pink);
font-weight: bold;
}

.price-box .price {
font-size: var(--size-lg);
font-weight: bold;
font-style: italic;
color: var(--color-pink);
display: block;
text-align: right;
}

.treatment-card p.sec-btn {
margin-top: auto;
}

.treatment-card p.sec-btn a.link-box {
    margin: 0 auto;
}

.new-label {
    display: inline-block;
    background-color: #e60000; /* 赤 */
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 2px 6px;
    margin-left: 8px;
    border-radius: 4px;
}

.news-list li {
    border-bottom: 1px dashed var(--color-primary);
    padding-bottom: var(--space-xs);
}

.news-list li a {
    text-decoration: none;
}

@media only screen and (width <=576px) {
.flow-info {
width: 100%;
}

.info {
grid-template-columns: 1fr;
/* モバイルでは1列に変更 */
}

.info_lst li {
background-size: 2em auto;
height: auto;
padding-left: 2.5em;
}

.main_T_more {
right: inherit;
left: 27%;
}
}

@media only screen and (width >=577px) {
.main_T_items {
grid-template-columns: repeat(2, 1fr);
}

.main_TA .box_line::after, .main_TB .box_line::after, .main_TC .box_line::after, .main_TD .box_line::after, .main_TE .box_line::after {
content: none;
}
}

@media only screen and (width <=768px) {
.feature {
grid-template-columns: 1fr;
}

.feat_txt {
display: flex;
flex-direction: column;
}

.feat_txt p.btn {
margin-top: auto;
align-self: end;
}
}

@media only screen and (width >=769px) {
.header::after {
bottom: -5em;
}

.main-imgbox {
aspect-ratio: 16 / 9;
}

.bx-viewport {
aspect-ratio: 16 / 9;
}

.info-2023 {
width: 50%;
}
.info {
grid-template-columns: repeat(2, 1fr);
position: relative;
padding-bottom: 3%;
}
.info-B {
display: block;
width: 100%;
position: relative;
padding-bottom: 68.25%;
}

.info-B img.p1 {
position: absolute;
width: inherit;
max-width: 90%;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
}

.info-B img.p2 {
position: absolute;
width: inherit;
max-width: 55%;
z-index: 10;
right: -2vw;
bottom: -3vw;
}

.feature_box {
width: 100vw;
margin: var(--space-lg) calc(50% - 50vw);
background: url(../img/top/feature_back.jpg) no-repeat top / cover;
padding: 2em;
}
}

@media (width <=960px) {
.pickup .big1, .pickup .big2, .pickup .big3 {
font-size: 2.8rem;
}

.treatment-card {
padding: 2em;
max-width: 100%;
}
}

@media (width >=1281px) {
.main-imgbox-inner{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-sm);
  top: 50%;
  left: 50%;
}

.main-imgbox h2{
font-size: clamp(3rem, 3.5rem + 0.6vw, 4rem);
  writing-mode: vertical-rl;
  text-orientation: upright;
  margin:0;                /* grid/flex で中央に来るので余計な外側余白を除去 */
  text-shadow:
    2px  2px 10px rgb(130 130 130 / 20%),
   -2px  2px 10px rgb(130 130 130 / 20%),
    2px -2px 10px rgb(130 130 130 / 20%),
   -2px -2px 10px rgb(130 130 130 / 20%),
    2px  0   10px rgb(130 130 130 / 20%),
    0    2px 10px rgb(130 130 130 / 20%),
   -2px  0   10px rgb(130 130 130 / 20%),
    0   -2px 10px rgb(130 130 130 / 20%);
}
.mhlw {
color: #4a4a4a;
border: 1px solid #ececec;
margin: 40px auto 30px;
text-align: center;
background-repeat: no-repeat;
background-position: 36px 50%;
background-size: 97px auto;
background-image: url(../img/top/mhlw_mark.png);
}

dl.mhlw {
    width: 1060px;
    padding: 60px 30px 60px 160px;
}

.mhlw dt {
    border-bottom: 1px dashed #a1a1a1;
    font-size: var(--size-lg);
    padding: 0;
    padding-bottom: 10px;
    text-align: center;
}

.mhlw dt::before {
    display: none;
}

.mhlw dd {
padding-top: 10px;
margin-left: -10px;
font-size: var(--size-md);
}

.main_TA .box_line::after, .main_TB .box_line::after, .main_TC .box_line::after, .main_TD .box_line::after, .main_TE .box_line::after {
content: "";
width: 180px;
height: 180px;
}

.sec-ttl.pick::after {
width: 50%;
top: 0;
right: inherit;
left: 0;
transform: rotate(0deg);
}
section.bgF {
    background: url(../img/top/treatment_bg.jpg)no-repeat bottom right/ 65%, url(../img/top/treatment_bg_A.jpg)no-repeat top left/ 65%, #93a3a10f;
}
}