* { box-sizing: border-box; }

html, body { max-width: 100%; overflow-x: clip; }
body { min-width: 0; overflow-wrap: break-word; }
img, video, iframe { max-width: 100%; }
table { max-width: 100%; }
pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }

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;
  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) {
  .c_contact_yl > li,
  .l_links_yl > li,
  .l_links_yl > li > a,
  .article-relations a,
  .article-relations span { font-size: 14px; }
  .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 (max-width: 767px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { font-size: 16px; line-height: 1.65; }
  main p,
  main li,
  main dd,
  main td,
  main a { font-size: max(16px, 1em); }
  .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: 10px 2px 9px; text-align: left; }
  .logo_yl h1,
  .logo_yl .brand-title {
    max-width: 100%;
    font-size: clamp(22px, 6.5vw, 25px);
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .nav_yl { min-height: 46px; }
  .nav_yl > .container { padding-left: 0; padding-right: 0; }
  .nav_yls,
  .nav_yls .pm-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-height: 44px;
    overflow: visible;
    white-space: normal;
  }
  .nav_yls::after { display: none; }
  .nav_yls li,
  .nav_yls .pm-links > li {
    float: none;
    min-width: 0;
    text-align: center;
  }
  .nav_yls a {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-right: 1px solid #222;
    line-height: 1.25;
    white-space: normal;
  }
  .nav_yls .pm-dropDown,
  .nav_yls .pm-viewMore { display: none !important; }
  .news_yl { margin-top: 8px; }
  .site-summary { margin: 0 0 10px; padding: 9px 10px; font-size: 16px; line-height: 1.65; }
  .news_yl .row,
  main.container > .row { margin-left: 0; margin-right: 0; }
  .news_yl [class*="col-"],
  main.container [class*="col-"] { min-width: 0; 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,
  .n_d_dynamic_yl 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,
  .n_d_dynamic_yl 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% - 12px); margin: 0 6px; }
  .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; font-size: 16px; }
  .l_links_yl > li > a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 16px;
  }
  .d_dynamic h1 {
    margin: 12px 0 6px;
    padding: 10px 2px 9px;
    font-size: clamp(22px, 6vw, 27px);
    line-height: 1.38;
    overflow-wrap: anywhere;
  }
  .d_dynamic_yl > li {
    height: auto;
    min-height: 48px;
    padding: 8px 8px 8px 14px;
    line-height: normal;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  .d_dynamic_yl > li > a {
    display: flex;
    min-height: 48px;
    align-items: center;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    font-size: 16px;
  }
  .r_reco { margin-top: 10px; }
  .breadcrumb { margin: 8px 0; padding: 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 { min-width: 0; padding: 10px 12px; }
  .i_information h1 {
    margin-top: 8px;
    font-size: clamp(21px, 5.8vw, 25px);
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .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 { max-width: 72ch; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
  .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-top: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    font-size: 14px;
    line-height: 1.75;
  }
  .foot_yl p { white-space: normal; }
}

@media (max-width: 359px) {
  .container { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
  .sl { width: 100%; margin: 0 0 12px; }
  .i_information { padding-left: 10px; padding-right: 10px; }
}

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

@media (pointer: coarse) {
  button,
  input[type="button"],
  input[type="submit"],
  .nav_yls a { min-height: 44px; }
}
