@charset "utf-8";

/*
 * トップページ専用レスポンシブ上書き
 *
 * - 既存CSSは変更せず、このファイルを最後に読み込んで狭い画面だけ補正する。
 * - すべて .KdsHomeResponsive 配下へ限定し、他ページへ影響させない。
 * - SOY CMSの cms:id / block:id / b_block:id と既存DOM構造は変更しない。
 */

@media screen and (max-width: 1099px) {
  .KdsHomeResponsive {
    overflow-x: hidden;
  }

  .KdsHomeResponsive img {
    max-width: 100%;
  }

  .KdsHomeResponsive .HeaderDiv {
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 20px;
    padding: 14px clamp(12px, 3vw, 28px) 18px;
    background-color: #ffffff;
    border-bottom: 1px solid #dfeae5;
  }

  .KdsHomeResponsive .DescriptionDiv {
    margin: 0 auto 14px;
    max-width: 900px;
    line-height: 1.65;
  }

  .KdsHomeResponsive .DescriptionDiv h2 {
    margin: 0;
    font-size: clamp(12px, 1.7vw, 14px);
    line-height: 1.65;
    letter-spacing: 0;
  }

  .KdsHomeResponsive .TitleDiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 900px;
  }

  .KdsHomeResponsive .LogoTitleDiv,
  .KdsHomeResponsive .NaviDiv,
  .KdsHomeResponsive .MenuDiv {
    float: none;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .KdsHomeResponsive .LogoTitleDiv {
    text-align: center;
  }

  .KdsHomeResponsive .LogoTitleDiv img {
    width: min(260px, 72vw);
    height: auto;
  }

  .KdsHomeResponsive .MenuDiv {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    line-height: 1.45;
  }

  .KdsHomeResponsive .MenuDiv > .NaviDiv_FeatureDiv_Div_SNS,
  .KdsHomeResponsive .MenuDiv > .NaviDiv_FeatureDiv_Div_2 {
    display: flex;
    float: none;
    align-items: stretch;
    justify-content: center;
    box-sizing: border-box;
    width: auto;
    height: auto;
    min-height: 44px;
    margin: 0;
  }

  .KdsHomeResponsive .MenuDiv > .NaviDiv_FeatureDiv_Div_SNS {
    flex: 0 0 44px;
    align-items: center;
    border-radius: 8px;
    background-color: #f4faf7;
    box-shadow: 0 2px 7px rgba(33, 94, 73, 0.14);
  }

  .KdsHomeResponsive .MenuDiv > .NaviDiv_FeatureDiv_Div_SNS a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
  }

  .KdsHomeResponsive .MenuDiv > .NaviDiv_FeatureDiv_Div_SNS img {
    width: 30px;
    height: 30px;
  }

  .KdsHomeResponsive .MenuDiv > .NaviDiv_FeatureDiv_Div_2 {
    flex: 1 1 190px;
    max-width: 260px;
  }

  .KdsHomeResponsive .MenuDiv > .NaviDiv_FeatureDiv_Div_2 p {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .KdsHomeResponsive .MenuDiv > .NaviDiv_FeatureDiv_Div_2 a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.35;
  }

  .KdsHomeResponsive .MenuDiv > .AAAclear {
    display: none;
  }

  .KdsHomeResponsive .MenuDiv > ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 2px 0 0;
    padding: 0;
  }

  .KdsHomeResponsive .MenuDiv > ul li,
  .KdsHomeResponsive .MenuDiv > ul li + li {
    display: block;
    padding: 0;
    border: 0;
    font-size: 14px;
  }

  .KdsHomeResponsive .MenuDiv > ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 8px 6px;
    border: 1px solid #d5e6de;
    border-radius: 8px;
    color: #145f46;
    line-height: 1.35;
    text-align: center;
    background-color: #ffffff;
  }

  .KdsHomeResponsive .MenuDiv > ul li a:hover,
  .KdsHomeResponsive .MenuDiv > ul li a:focus-visible {
    padding: 8px 6px;
    color: #0059c7;
    text-decoration: none;
    background-color: #f1faf6;
    outline: 2px solid #0fb376;
    outline-offset: 2px;
  }

  .KdsHomeResponsive .HomeMemberSiteCta {
    box-sizing: border-box;
    margin: 0 auto 16px;
    padding: 0 clamp(12px, 3vw, 28px);
    text-align: center;
  }

  .KdsHomeResponsive .img-wrap {
    width: calc(100% - clamp(24px, 6vw, 56px));
    max-width: 1000px;
    aspect-ratio: 1600 / 657;
    margin-left: auto;
    margin-right: auto;
  }

  .KdsHomeResponsive .img-wrap > * {
    height: 100%;
  }

  .KdsHomeResponsive .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .KdsHomeResponsive .Mb_img-wrap {
    margin-bottom: clamp(34px, 7vw, 64px);
  }

  .KdsHomeResponsive .BodyDiv,
  .KdsHomeResponsive .BaseDiv,
  .KdsHomeResponsive .NewsDiv,
  .KdsHomeResponsive .HomeContentsTitleDiv,
  .KdsHomeResponsive .HomeBoxDiv,
  .KdsHomeResponsive .FooterMemuDiv,
  .KdsHomeResponsive .FooterMemuDiv_MenuDiv,
  .KdsHomeResponsive .FooterInfoDiv,
  .KdsHomeResponsive .CopyrightDiv_BaseDiv {
    box-sizing: border-box;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  .KdsHomeResponsive .BodyDiv {
    padding: 0 clamp(16px, 4vw, 32px);
  }

  .KdsHomeResponsive .BodyDiv > .Align_Center {
    margin-top: 0;
    margin-bottom: 48px;
  }

  .KdsHomeResponsive .Plan_TitleDiv_P {
    white-space: normal;
  }

  .KdsHomeResponsive .NewsDiv {
    margin-bottom: 52px;
  }

  .KdsHomeResponsive .NewsDiv .NewsDiv {
    margin-bottom: 44px;
  }

  .KdsHomeResponsive .NewsDiv_TitleDiv {
    margin-bottom: 14px;
  }

  .KdsHomeResponsive .NewsDiv_TitleDiv h4,
  .KdsHomeResponsive #NewsDiv_TitleDiv_H4,
  .KdsHomeResponsive #NewsDiv_TitleDiv_H4_1,
  .KdsHomeResponsive #NewsDiv_TitleDiv_H4_2,
  .KdsHomeResponsive #NewsDiv_TitleDiv_H4_3,
  .KdsHomeResponsive #NewsDiv_TitleDiv_H4_4,
  .KdsHomeResponsive #NewsDiv_TitleDiv_H4_5,
  .KdsHomeResponsive #NewsDiv_TitleDiv_H4_6 {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 5px 8px 7px;
    font-size: clamp(16px, 2.4vw, 19px);
    line-height: 1.45;
  }

  .KdsHomeResponsive .NewsDiv_ArticleDiv dl {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px 14px;
    margin: 0;
  }

  .KdsHomeResponsive .NewsDiv_ArticleDiv dl dt,
  .KdsHomeResponsive .NewsDiv_ArticleDiv dl dd {
    float: none;
    min-width: 0;
    margin: 0;
    line-height: 1.65;
  }

  .KdsHomeResponsive .NewsDiv_ArticleDiv dl dd a {
    overflow-wrap: anywhere;
  }

  .KdsHomeResponsive .NewsDiv_ArticleDiv dl > p {
    grid-column: 1 / -1;
    margin-top: 18px;
  }

  .KdsHomeResponsive .HomeContentsTitleDiv {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
  }

  .KdsHomeResponsive .HomeContentsTitleDiv_CenterDiv,
  .KdsHomeResponsive .HomeContentsTitleDiv_IllustDiv_1,
  .KdsHomeResponsive .HomeContentsTitleDiv_IllustDiv_2 {
    float: none;
    width: auto;
    margin: 0;
  }

  .KdsHomeResponsive .HomeContentsTitleDiv_IllustDiv_1,
  .KdsHomeResponsive .HomeContentsTitleDiv_IllustDiv_2 {
    text-align: center;
  }

  .KdsHomeResponsive .HomeContentsTitleDiv_IllustDiv_1 img,
  .KdsHomeResponsive .HomeContentsTitleDiv_IllustDiv_2 img {
    width: auto;
    max-width: 100%;
    height: auto;
  }

  .KdsHomeResponsive .HomeContentsTitleDiv > .AAAclear {
    display: none;
  }

  .KdsHomeResponsive .Home_H2 {
    width: 100%;
    font-size: clamp(19px, 2.8vw, 23px);
    line-height: 1.45;
  }

  .KdsHomeResponsive .Home_H2_P {
    font-size: 15px;
    line-height: 1.7;
  }

  .KdsHomeResponsive .HomeBoxDiv {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
  }

  .KdsHomeResponsive .HomeBoxDiv > .HomeBox_Home {
    display: flex;
    float: none;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    margin: 0;
    padding: 20px;
  }

  .KdsHomeResponsive .HomeBoxDiv > .AAAclear {
    display: none;
  }

  .KdsHomeResponsive .HomeBox_TitleDiv,
  .KdsHomeResponsive .HomeBox_TitleDiv_Small_15 {
    min-height: 32px;
    height: auto;
    margin-top: 0;
    padding-bottom: 7px;
    font-size: 17px;
    line-height: 1.35;
    white-space: normal;
  }

  .KdsHomeResponsive .HomeBox_Home img {
    width: min(169px, 70%);
    height: auto;
    margin-bottom: 14px;
  }

  .KdsHomeResponsive .HomeBox_SentenceDiv,
  .KdsHomeResponsive .HomeBox_SentenceDiv.Mb_-10 {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    margin-bottom: 0;
  }

  .KdsHomeResponsive .HomeBox_SentenceDiv p,
  .KdsHomeResponsive .HomeBox_SentenceDiv p.Mb_-20 {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.65;
  }

  .KdsHomeResponsive .HomeBox_LinkDiv_Home {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 44px;
    margin-top: 18px;
  }

  .KdsHomeResponsive .HomeBox_LinkDiv_Home p {
    display: flex;
    width: 100%;
    margin: 0;
  }

  .KdsHomeResponsive .HomeBox_LinkDiv_Home p a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 14px;
  }

  .KdsHomeResponsive .wrap {
    height: clamp(250px, 38vw, 340px);
  }

  .KdsHomeResponsive .wrap .slideshow .content {
    width: clamp(230px, 36vw, 300px);
    height: clamp(230px, 36vw, 300px);
  }

  .KdsHomeResponsive .Wrap_Slideshow_Li p {
    margin-top: clamp(90px, 16vw, 135px);
    font-size: clamp(1.1rem, 2.6vw, 1.5rem);
    line-height: 1.9;
  }

  .KdsHomeResponsive .AreaDiv {
    box-sizing: border-box;
    width: calc(100% - clamp(32px, 8vw, 64px));
    max-width: 900px;
    height: auto;
    margin: 0 auto 56px;
    padding: 28px clamp(18px, 4vw, 32px) 22px;
  }

  .KdsHomeResponsive .AreaDiv_TitleDiv {
    box-sizing: border-box;
    width: min(100%, 520px);
    height: auto;
    min-height: 70px;
    margin: -64px auto 22px;
    padding: 12px 16px;
  }

  .KdsHomeResponsive .AreaDiv_TitleDiv h3 {
    margin: 0;
    font-size: clamp(17px, 2.7vw, 20px);
    line-height: 1.45;
  }

  .KdsHomeResponsive .AreaDiv p {
    line-height: 1.75;
  }

  .KdsHomeResponsive .PunctuationDiv {
    height: auto;
  }

  .KdsHomeResponsive .PunctuationDiv img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 0;
  }

  .KdsHomeResponsive .FooterTitleDiv {
    padding: 22px clamp(16px, 4vw, 32px);
  }

  .KdsHomeResponsive .FooterMemuDiv {
    margin-top: 0;
  }

  .KdsHomeResponsive .FooterMemuDiv_MenuDiv {
    float: none;
    line-height: 1.45;
  }

  .KdsHomeResponsive .FooterMemuDiv_MenuDiv ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin: 0;
    padding: 0;
  }

  .KdsHomeResponsive .FooterMemuDiv_MenuDiv ul li,
  .KdsHomeResponsive .FooterMemuDiv_MenuDiv ul li + li {
    display: block;
    padding: 0;
    border: 0;
  }

  .KdsHomeResponsive .FooterMemuDiv_MenuDiv ul li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 4px 6px;
  }

  .KdsHomeResponsive .FooterInfoDiv {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
  }

  .KdsHomeResponsive .FooterLogoTitleDiv,
  .KdsHomeResponsive .AddoressDiv {
    float: none;
    width: auto;
    margin: 0;
  }

  .KdsHomeResponsive .FooterLogoTitleDiv img {
    width: min(210px, 38vw);
    height: auto;
  }

  .KdsHomeResponsive .AddoressDiv p {
    line-height: 1.55;
  }

  .KdsHomeResponsive .CopyrightDiv_BaseDiv {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 22px;
    padding: 0 clamp(16px, 4vw, 32px);
  }

  .KdsHomeResponsive .CopyrightDiv_MainDiv,
  .KdsHomeResponsive .CopyrightDiv_RuleDiv {
    float: none;
    width: auto;
    margin: 0;
    text-align: center;
  }

  .KdsHomeResponsive .CopyrightDiv_RuleDiv ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    margin: 0;
    padding: 0;
  }

  .KdsHomeResponsive .CopyrightDiv_RuleDiv ul li {
    display: block;
    margin: 0;
  }
}

@media screen and (max-width: 767px) {
  .KdsHomeResponsive {
    font-size: 16px;
    line-height: 1.7;
  }

  .KdsHomeResponsive .HeaderDiv {
    padding: 12px 12px 16px;
  }

  .KdsHomeResponsive .DescriptionDiv {
    margin-bottom: 12px;
  }

  .KdsHomeResponsive .DescriptionDiv h2 {
    font-size: 12px;
    line-height: 1.55;
    text-align: left;
  }

  .KdsHomeResponsive .TitleDiv {
    gap: 14px;
  }

  .KdsHomeResponsive .MenuDiv {
    gap: 8px;
  }

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

  .KdsHomeResponsive .HomeMemberSiteCta_Button {
    width: 100%;
    max-width: 520px;
    min-height: 52px;
  }

  .KdsHomeResponsive .HomeMemberSiteCta_Title,
  .KdsHomeResponsive .HomeMemberSiteCta_Sub {
    white-space: normal;
  }

  .KdsHomeResponsive .img-wrap {
    width: calc(100% - 24px);
  }

  .KdsHomeResponsive .Mb_img-wrap {
    margin-bottom: 34px;
  }

  .KdsHomeResponsive .BodyDiv {
    padding: 0 16px;
  }

  .KdsHomeResponsive .BodyDiv > .Align_Center {
    margin-bottom: 40px;
  }

  .KdsHomeResponsive .BodyDiv > .Align_Center br {
    display: none;
  }

  .KdsHomeResponsive .BodyDiv > .Align_Center p,
  .KdsHomeResponsive .BodyDiv > .Align_Center h2 {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.75;
  }

  .KdsHomeResponsive .BodyDiv > .Align_Center .Plan_TitleDiv_P {
    margin-bottom: 26px;
    padding: 18px 16px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.75;
    background-color: #eef9fd;
  }

  .KdsHomeResponsive .NewsDiv {
    margin-bottom: 42px;
  }

  .KdsHomeResponsive .NewsDiv_ArticleDiv dl {
    display: block;
  }

  .KdsHomeResponsive .NewsDiv_ArticleDiv dl dt {
    margin-bottom: 2px;
    color: #52615b;
    font-size: 13px;
  }

  .KdsHomeResponsive .NewsDiv_ArticleDiv dl dd {
    margin-bottom: 14px;
  }

  .KdsHomeResponsive .NewsDiv_ArticleDiv dl dd a {
    display: inline-block;
    min-height: 44px;
    padding: 8px 0;
    font-size: 16px;
    line-height: 1.65;
  }

  .KdsHomeResponsive .NewsDiv_ArticleDiv dl > p {
    margin-top: 14px;
    line-height: 1.65;
  }

  .KdsHomeResponsive .HomeContentsTitleDiv {
    display: block;
    margin-bottom: 24px;
  }

  .KdsHomeResponsive .HomeContentsTitleDiv_IllustDiv_1,
  .KdsHomeResponsive .HomeContentsTitleDiv_IllustDiv_2 {
    display: none;
  }

  .KdsHomeResponsive .Home_H2 {
    margin-bottom: 14px;
    padding-bottom: 8px;
    font-size: 20px;
  }

  .KdsHomeResponsive .Home_H2_P {
    margin-bottom: 0;
    font-size: 15px;
  }

  .KdsHomeResponsive .Home_H2_P br {
    display: none;
  }

  .KdsHomeResponsive .HomeBoxDiv {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }

  .KdsHomeResponsive .HomeBoxDiv > .HomeBox_Home {
    padding: 20px 18px;
  }

  .KdsHomeResponsive .HomeBox_TitleDiv,
  .KdsHomeResponsive .HomeBox_TitleDiv_Small_15 {
    font-size: 18px;
  }

  .KdsHomeResponsive .HomeBox_Home img {
    width: min(169px, 56%);
  }

  .KdsHomeResponsive .HomeBox_SentenceDiv p,
  .KdsHomeResponsive .HomeBox_SentenceDiv p.Mb_-20 {
    font-size: 16px;
  }

  .KdsHomeResponsive .wrap {
    height: 260px;
  }

  .KdsHomeResponsive .wrap .slideshow .content {
    width: 230px;
    height: 230px;
  }

  .KdsHomeResponsive .Wrap_Slideshow_Li p {
    margin-top: 92px;
    font-size: 1.05rem;
    line-height: 1.8;
  }

  .KdsHomeResponsive .AreaDiv {
    width: calc(100% - 32px);
    margin-bottom: 42px;
    padding: 26px 18px 18px;
  }

  .KdsHomeResponsive .AreaDiv_TitleDiv {
    margin-top: -58px;
    padding: 11px 12px;
  }

  .KdsHomeResponsive .AreaDiv p {
    font-size: 15px;
    line-height: 1.8;
  }

  .KdsHomeResponsive .FooterTitleDiv {
    padding: 20px 16px;
  }

  .KdsHomeResponsive .FooterMemuDiv_MenuDiv ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
  }

  .KdsHomeResponsive .FooterMemuDiv_MenuDiv ul li a {
    justify-content: center;
    text-align: center;
  }

  .KdsHomeResponsive .FooterInfoDiv {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .KdsHomeResponsive .FooterLogoTitleDiv img {
    width: min(210px, 64vw);
  }

  .KdsHomeResponsive .AddoressDiv p {
    font-size: 13px;
    line-height: 1.65;
  }

  .KdsHomeResponsive .CopyrightDiv {
    padding: 18px 0;
  }

  .KdsHomeResponsive .CopyrightDiv_MainDiv {
    font-size: 11px;
    line-height: 1.6;
  }
}

@media screen and (max-width: 380px) {
  .KdsHomeResponsive .MenuDiv > .NaviDiv_FeatureDiv_Div_2 {
    flex-basis: 100%;
  }

  .KdsHomeResponsive .MenuDiv > ul,
  .KdsHomeResponsive .FooterMemuDiv_MenuDiv ul {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .KdsHomeResponsive,
  .KdsHomeResponsive .slideshow,
  .KdsHomeResponsive .img-wrap > * {
    scroll-behavior: auto;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
