* { box-sizing: border-box; }

html, body { max-width: 100%; overflow-x: hidden; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  min-width: 0;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a:focus-visible { outline: 2px solid #ff9900; outline-offset: 2px; }

.logo_yl h1,
.logo_yl .brand-title { display: block; margin: 0; font-size: 28px; font-weight: 700; line-height: 1.25; }
.logo_yl > a { display: inline-flex; min-height: 44px; align-items: center; }

.nav_yl { height: auto; min-height: 42px; }
.nav_yls { height: auto; min-height: 40px; white-space: normal; }
.nav_yls::after { display: table; clear: both; content: ""; }
.nav_yls a { min-height: 40px; }

.news_yl .row,
main.container > .row { margin-left: -15px; margin-right: -15px; }

.n_news_yl,
.Intro,
.r_recomm,
.c_contact,
.l_links,
.d_dynamic,
.r_reco,
.i_information,
.i_information-m { min-width: 0; }

.r_recomm_yl { width: 100%; }
.site-summary {
  margin: 12px 0 18px;
  padding: 10px 12px;
  border-left: 1px solid #ff9900;
  background: #f7f7f7;
  color: #444;
  font-size: 16px;
  line-height: 1.75;
}
.sl img { display: block; object-fit: cover; }
.sl p { white-space: normal; }
.home-image-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 22px auto 0;
  padding: 0;
  align-items: start;
}
.home-image-strip img { display: block; width: 100%; height: auto; object-fit: contain; }
.home-main-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 0;
}
.page-home .home-news-panel {
  margin: 0;
  padding: 0 5px 4px;
  border-bottom: 1px solid #e4e4e4;
}
.page-home .home-sidebar > section {
  margin: 0;
  border: 1px solid #e4e4e4;
  border-top: 0;
}
.page-home .home-sidebar > section:first-child { border-top: 1px solid #e4e4e4; }
.page-home .home-sidebar .r_reco_txt,
.page-home .home-sidebar .Intro_yl { margin-bottom: 0; }
@media (min-width: 768px) {
  .n_news_yli > li,
  .n_d_dynamic_yli > li,
  .Intro_yl > li,
  .r_reco_txt > li {
    white-space: normal;
    text-overflow: clip;
    overflow: visible;
    overflow-wrap: anywhere;
    height: auto;
  }
}
.i_information h1 { margin: 20px 0 10px; font-size: 21px; font-weight: 600; line-height: 1.4; text-align: center; }
.i_information_con { overflow-wrap: anywhere; }
.i_information_con img { height: auto; }
.article-relations a,
.article-relations span { display: block; min-height: 28px; line-height: 28px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { padding: 22px 14px; color: #777; white-space: normal; }
.site-map-list { padding: 10px 15px 20px; }
.site-map-list li { border-bottom: 1px dotted #e4e4e4; line-height: 44px; }
.foot_yl { height: auto; overflow: visible; }

@media (pointer: coarse) {
  .nav_yls a,
  .n_news_yli a,
  .Intro_yl a,
  .r_reco_txt a,
  .l_links_yl a,
  .d_dynamic_yl a { min-height: 44px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; line-height: 1.65; }
  .container { width: 100%; min-width: 0; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .logo_yl { padding: 14px 2px; text-align: center; }
  .logo_yl h1,
  .logo_yl .brand-title { font-size: 25px; }
  .nav_yls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav_yls li { float: none; min-width: 0; text-align: center; }
  .nav_yls a { display: flex; min-height: 44px; padding: 2px 8px; align-items: center; justify-content: center; line-height: 1.35; border-right: 1px solid #222; border-bottom: 1px solid #222; white-space: normal; }
  .news_yl .row,
  main.container > .row { margin-left: 0; margin-right: 0; }
  .news_yl [class*="col-"],
  main.container [class*="col-"] { padding-left: 0; padding-right: 0; }
  .n_news_yl { padding: 0; }
  .n_news_yl h5,
  .Intro h5,
  .r_recomm h5,
  .r_reco h5,
  .c_contact h5,
  .l_links h5 {
    min-height: 44px;
    margin-bottom: 0;
    line-height: 44px;
  }
  .n_news_yl h5 a,
  .Intro h5 a,
  .r_recomm h5 a,
  .r_reco h5 a,
  .c_contact h5 a,
  .l_links h5 a {
    display: flex;
    min-height: 44px;
    align-items: center;
  }
  .n_news_yli > li,
  .Intro_yl > li,
  .r_reco_txt > li {
    height: auto;
    min-height: 44px;
    line-height: normal;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  .n_news_yli > li > a,
  .Intro_yl > li > a,
  .r_reco_txt > li > a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    font-size: 16px;
  }
  .sl { width: calc(50% - 15px); }
  .sl img { height: auto; aspect-ratio: 16 / 9; }
  .home-image-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-main-grid { grid-template-columns: 1fr; column-gap: 0; }
  .page-home .home-sidebar { margin-top: 10px; }
  .c_contact_yl,
  .l_links_yl { display: flex; width: 100%; flex-wrap: wrap; }
  .c_contact_yl > li { width: 100%; min-height: 44px; line-height: 1.6; font-size: 16px; }
  .l_links_yl > li { width: 50%; min-width: 0; height: auto; min-height: 44px; margin-right: 0; }
  .l_links_yl > li > a { display: flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 6px; font-size: 16px; }
  .d_dynamic_yl > li { min-height: 48px; line-height: normal; }
  .d_dynamic_yl > li > a { display: flex; min-height: 48px; align-items: center; font-size: 16px; }
  .r_reco { margin-top: 10px; }
  .breadcrumb { margin: 10px 0; white-space: normal; font-size: 16px; }
  .breadcrumb > li { min-height: 44px; }
  .breadcrumb > li > a,
  .breadcrumb > li.active { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .i_information { padding: 10px 14px; }
  .i_information h1 { font-size: 22px; }
  .i_information_yl { margin: 8px 0 18px; color: #555; font-size: 16px; line-height: 1.5; white-space: normal; overflow: visible; text-overflow: clip; }
  .i_information_con { font-size: 17px; line-height: 1.9; }
  .i_information_con p { margin: 16px 0; }
  .article-relations a,
  .article-relations span { display: flex; min-height: 44px; align-items: center; font-size: 16px; line-height: 1.5; white-space: normal; }
  .site-map-list,
  .site-map-list li,
  .site-map-list a {
    height: auto;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  .site-map-list li { min-height: 44px; padding: 8px 0; line-height: 1.6; }
  .site-map-list a { display: flex; min-height: 44px; align-items: center; font-size: 16px; line-height: 1.6; }
  .empty-state a,
  .foot_yl a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 4px; }
  .foot_yl { padding-bottom: max(12px, env(safe-area-inset-bottom)); font-size: 14px; line-height: 1.8; }
}

@media (max-width: 374px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .logo_yl h1,
  .logo_yl .brand-title { font-size: 23px; }
  .nav_yls { grid-template-columns: 1fr 1fr; }
  .i_information { padding: 10px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (min-width: 421px) and (max-width: 767px) {
  .nav_yls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
