/* Local shared article candidate. Load only on approved content post IDs. */
@media screen and (max-width: 768px) {
  body#content.page.single #wrapper { min-width: 0; overflow: visible; }
  body#content.page.single #contents,
  body#content.page.single #maincontents,
  body#content.page.single #maincontents article,
  body#content.page.single #sidebar,
  body#content.page.single .inner_box,
  body#content.page.single header .inner,
  body#content.page.single nav.header_nav .inner,
  body#content.page.single footer .inner {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  body#content.page.single #contents { padding: 0 12px 24px; }
  body#content.page.single #maincontents,
  body#content.page.single #sidebar { float: none; }
  body#content.page.single #sidebar { margin-top: 24px; }
  body#content.page.single #maincontents article { margin: 0 0 24px; }
  body#content.page.single header { height: auto; }
  body#content.page.single header .inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px;
  }
  body#content.page.single header .inner > * {
    position: static;
    margin: 0;
    min-width: 0;
    max-width: 100%;
  }
  body#content.page.single header .inner .seo-header-title,
  body#content.page.single header .inner .header_menu { width: 100%; }
  body#content.page.single header .inner .seo-header-title { line-height: 1.5; }
  body#content.page.single header .inner .header_menu { flex-wrap: wrap; gap: 0 14px; }
  body#content.page.single header .inner .header_menu p:not(:first-child) { padding-left: 0; }
  body#content.page.single header .inner .logo { flex: 1 1 100%; }
  body#content.page.single header .inner .tel { flex: 1 1 100%; }
  body#content.page.single header .inner .contact { flex: 1 1 calc(50% - 5px); }
  body#content.page.single header .inner .line { flex: 1 1 100%; }
  body#content.page.single header .inner .contact a,
  body#content.page.single header .inner .line a {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-width: 0; height: auto; min-height: 48px;
    padding: 8px; line-height: 1.5; text-align: center;
  }
  body#content.page.single header .inner .line a::before { content: none; }
  body#content.page.single header .inner .denwa { display: none; }
  body#content.page.single nav.header_nav { height: auto; }
  body#content.page.single nav.header_nav.fixed { position: static; }
  body#content.page.single nav.header_nav .inner > ul#nav { flex-wrap: wrap; }
  body#content.page.single nav.header_nav .inner > ul#nav > li:not(.sp) { flex: 0 0 50%; width: 50%; }
  body#content.page.single nav.header_nav .inner > ul#nav > li > a,
  body#content.page.single nav.header_nav .inner > ul#nav > li > span {
    display: block;
    min-height: 54px;
    padding: 12px 16px;
    white-space: normal;
    height: auto;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  body#content.page.single nav.header_nav .inner > ul#nav > li:first-child > a { padding: 12px 16px; }
  body#content.page.single nav.header_nav .inner ul .menu .menu_box { width: 100%; min-width: 0; left: 0; transform: none; }
  body#content.page.single nav.header_nav .menu_box .inner { padding: 16px 12px; }
  body#content.page.single nav.header_nav .menu_box .inner .cont .box a { width: calc(50% - 10px); }
  body#content.page.single nav.header_nav .menu_box .btn a { width: 100%; box-sizing: border-box; }
  body#content.page.single .side { display: none; }
  body#content.page.single .contents-bnr,
  body#content.page.single .contents-bnr figure { box-sizing: border-box; width: 100%; max-width: 100%; }
  body#content.page.single .contents-bnr figure { display: flex; flex-wrap: wrap; }
  body#content.page.single .contents-bnr h2 { padding: 10px 16px !important; }
  body#content.page.single .contents-bnr figure > *,
  body#content.page.single .contents-bnr .txt { float: none; max-width: 100%; }
  body#content.page.single .contents-bnr .cont_bnr_text { width: auto; }
  body#content.page.single .contents-bnr figure > img { float: none; margin: 0 auto; }
  body#content.page.single img { max-width: 100%; height: auto; }
  body#content.page.single .area_archive,
  body#content.page.single .top_search,
  body#content.page.single #cp,
  body#content.page.single .bnr_box { box-sizing: border-box; width: 100%; min-width: 0; }
  body#content.page.single #cp .inner_box { padding: 0 12px; }
  body#content.page.single .top_search > dl,
  body#content.page.single .top_search > dl > dt,
  body#content.page.single .top_search > dl > dd { float: none; width: 100%; box-sizing: border-box; }
  body#content.page.single .top_search ul { display: flex; flex-wrap: wrap; width: 100%; }
  body#content.page.single .top_search ul li { box-sizing: border-box; width: 50%; min-width: 0; }
  body#content.page.single footer { padding: 70px 12px 24px; }
  body#content.page.single footer .inner .cont { gap: 20px; }
  body#content.page.single footer .inner .cont .logo,
  body#content.page.single footer .inner .cont .add { margin: 0; }
  body#content.page.single footer .inner .cont:nth-of-type(2) { margin: 32px 0; }
  body#content.page.single footer .inner .cont:nth-of-type(2) .box { width: 100%; }
  body#content.page.single footer .copy { overflow-wrap: anywhere; }
  body#content.page.single #maincontents .hgroup .category,
  body#content.page.single #maincontents .cat-link-group,
  body#content.page.single #maincontents .cat-box,
  body#content.page.single #maincontents .cat-box > div,
  body#content.page.single #maincontents .content-top-back,
  body#content.page.single #maincontents .cat-link-group #prev-next-nav,
  body#content.page.single #maincontents .con-bnr,
  body#content.page.single #maincontents .con-bnr li {
    box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0;
  }
  body#content.page.single #maincontents .cat-link-group #prev-next-nav { display: flex; gap: 16px; }
  body#content.page.single #maincontents .cat-link-group .page-nav-box { width: calc(50% - 8px); float: none; }
  body#content.page.single #maincontents .cat-box h4,
  body#content.page.single #maincontents .cat-box ul { width: 100%; box-sizing: border-box; }
  body#content.page.single #maincontents .cat-box .cat-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
  body#content.page.single #maincontents .cat-box .cat-list li { width: calc(50% - 6px); min-width: 0; box-sizing: border-box; }
  body#content.page.single #maincontents .cat-box .cat-list span { display: block; white-space: normal; }
  body#content.page.single .con-bnr li.mail-bnr { height: auto; background-size: contain; }
  body#content.page.single .con-bnr li.mail-bnr { aspect-ratio: 678 / 203; }
  body#content.page.single .con-bnr li.mail-bnr a { display: block; left: 54.13%; top: 58.13%; width: 42%; height: auto; }
  body#content.page.single .con-bnr li.mail-bnr a img { width: 100%; }
  body#content.page.single .area_archive > h3 { height: auto; padding: 24px 12px; font-size: 24px; }
  body#content.page.single .area_archive .map {
    display: flex; flex-wrap: wrap; gap: 16px;
    width: 100%; height: auto; margin: 0;
    padding: 16px 12px; box-sizing: border-box; background: none;
  }
  body#content.page.single .area_archive .map > div { position: static; width: calc(50% - 8px); min-width: 0; }
  body#content.page.single .area_archive .map li { width: auto; margin-right: 12px; }
  body#content.page.single .area_archive .map .text { position: static; width: 100%; }
  body#content.page.single section#cp h3 { width: 100% !important; box-sizing: border-box; }
  body#content.page.single section#cp .button a { width: 100%; background-size: 100% 100%; }
  body#content.page.single #cp_box01 { padding-left: 0; padding-right: 0; }
  body#content.page.single #cp_box01 .ico { position: static; }
  body#content.page.single .bnr_box .inner_box { padding: 12px; }
  body#content.page.single .bnr_box ul { display: flex; flex-wrap: wrap; gap: 12px; }
  body#content.page.single .bnr_box li { width: 100%; margin: 0; }
  body#content.page.single #maincontents .cat-box h4 { margin: 0; }
  body#content.page.single footer .inner .cont:nth-of-type(2) .box .item_box {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); height: auto; gap: 16px;
  }
  body#content.page.single .fix-sp-show { left: 0; width: 100vw; }
  body#content.page.single .top { left: calc(100vw - 68px); right: auto; bottom: 80px; }
  body#content.page.single .top img { width: 56px; height: 56px; }
  body#content.page.single #maincontents .hgroup .date { position: static; margin-top: 12px; }
  body#content.page.single #sidebar #s-content a { white-space: normal; overflow-wrap: anywhere; box-sizing: border-box; padding-right: 12px; }
  body#content.page.single footer .item_box .item,
  body#content.page.single footer .item_box h4 { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
  body#content.page.single footer .item_box ul { padding-left: 20px; }
  body#content.page.single footer .item_box li { list-style-position: outside; }
  /* This article also includes the older map block. Keep every region in flow. */
  body#content.page.single .map-wrap .inner {
    display: flex; flex-wrap: wrap; gap: 16px;
    padding: 0 12px 16px; box-sizing: border-box;
  }
  body#content.page.single .map-wrap .inner > h2 {
    width: calc(100% + 24px); margin: 0 -12px;
    height: auto; line-height: 1.6; padding: 12px; box-sizing: border-box;
  }
  body#content.page.single .map-wrap .inner .map-ttl {
    position: static; width: 100%; min-width: 0;
  }
  body#content.page.single .map-wrap .inner .map-ttl h3 {
    box-sizing: border-box; max-width: 100%; padding: 10px 12px;
  }
  body#content.page.single .map-wrap .inner figure.map {
    width: 100%; margin: 0; padding: 0;
  }
  body#content.page.single .map-wrap .inner dl.area {
    position: static; width: calc(50% - 8px); min-width: 0; margin: 0;
  }
  body#content.page.single .map-wrap .inner dl.area dd li {
    float: none; width: 100%; box-sizing: border-box;
  }
  /* Legacy CFS photos and pasted long URLs must fit the actual text column. */
  body#content.page.single #maincontents article .read-box .photo {
    max-width: 100%; box-sizing: border-box;
  }
  body#content.page.single #maincontents article .read-box .photo img {
    max-width: 100%; margin-left: auto; margin-right: auto;
  }
  body#content.page.single #maincontents article .read-box a {
    overflow-wrap: anywhere;
  }
}
