﻿/* Local responsive refinements for the static mirror. */
* { box-sizing: border-box; }
img, iframe, video { max-width: 100%; }
img { height: auto; }

@media (max-width: 767px) {
  html, body {
    width: 100%;
    min-width: 0 !important;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  body {
    font-size: 15px;
    line-height: 1.75;
  }

  .container,
  .inner,
  #wrapper,
  #content,
  #main,
  .main,
  .contents,
  .content,
  .l-wrap,
  .wrap,
  header,
  footer,
  section,
  article {
    width: auto !important;
    max-width: 100% !important;
  }

  .container,
  .inner,
  .contents,
  .content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .fLeft,
  .fRight,
  .left,
  .right,
  .main-left,
  .main-right,
  .side,
  .sidebar {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
  }

  ul,
  ol {
    padding-left: 1.2em;
  }

  table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    border-collapse: collapse;
  }

  input,
  textarea,
  select,
  button {
    max-width: 100%;
    font-size: 16px;
  }

  iframe {
    width: 100% !important;
    min-height: 280px;
  }

  .slide,
  .slide_body,
  .bx-wrapper,
  .gallery,
  .photo,
  .product-list,
  .post-list,
  .news-list {
    width: 100% !important;
    max-width: 100% !important;
  }

  .product-list li,
  .news-list li,
  .post-list li,
  .gallery li,
  .photo li {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .gnav,
  nav,
  .nav,
  .global-nav {
    max-width: 100%;
  }
}
/* Local smartphone header and lower-page cleanup. */
.sp-local-header,
.sp-local-menu,
.sp-local-overlay {
  display: none;
}

@media (max-width: 767px) {
  #header,
  .sb-slidebar,
  #s1,
  #s2,
  #s3,
  #s4,
  #facebook {
    display: none !important;
  }

  body {
    background: #eee !important;
  }

  #sb-site,
  .main_content {
    width: 100% !important;
    max-width: 640px !important;
    margin: 0 auto !important;
    padding-top: 67px !important;
    transform: none !important;
    background: url(../assets/wp-content_themes_otafuku_pc_img_bg01.jpg) repeat !important;
  }

  .sp-local-header {
    display: flex;
    position: fixed;
    z-index: 10020;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 640px;
    height: 67px;
    transform: translateX(-50%);
    background: url(../assets/wp-content_themes_otafuku_sp_img_bg01.jpg) repeat #fff;
    border-bottom: 1px solid #e6ded4;
  }

  .sp-local-logo {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 10px 8px;
  }

  .sp-local-logo img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
  }

  .sp-local-tel {
    flex: 0 0 54px;
    border-left: 1px solid #eee5dc;
    text-align: center;
  }

  .sp-local-tel img {
    width: 48px;
    height: auto;
  }

  .sp-local-menu-toggle {
    flex: 0 0 100px;
    border: 0;
    border-radius: 0;
    background: #fe4f39 url(../assets/wp-content_themes_otafuku_sp_img_menu_icon01.png) no-repeat center center;
    color: transparent;
    cursor: pointer;
  }

  .sp-local-menu-toggle.is-open {
    background-image: url(../assets/wp-content_themes_otafuku_sp_img_menu_icon02.png);
  }

  .sp-local-menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .sp-local-menu {
    display: block;
    position: fixed;
    z-index: 10010;
    top: 67px;
    left: 50%;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 67px);
    overflow-y: auto;
    transform: translate(-50%, -110%);
    transition: transform .25s ease;
    background: url(../assets/wp-content_themes_otafuku_sp_img_bg01.jpg) repeat #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
  }

  .sp-local-menu.is-open {
    transform: translate(-50%, 0);
  }

  .sp-local-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .sp-local-menu li a {
    display: block;
    padding: 14px 18px 14px 42px;
    border-bottom: 1px solid #e6ded4;
    background: url(../assets/wp-content_themes_otafuku_sp_img_list01.png) no-repeat 18px center;
    background-size: 15px auto;
    color: #333;
    text-decoration: none;
  }

  .sp-local-menu p {
    margin: 0;
    padding: 16px 18px;
    color: #6b5b4b;
    font-size: 13px;
    line-height: 1.7;
  }

  .sp-local-overlay {
    position: fixed;
    z-index: 10000;
    inset: 67px 0 0;
    background: rgba(0,0,0,.35);
  }

  .sp-local-overlay.is-open {
    display: block;
  }

  .sub-image {
    display: none !important;
  }

  .blead {
    margin-top: 0 !important;
  }

  #breadcrumb {
    width: auto !important;
    padding: 10px 16px !important;
  }

  #breadcrumb ul {
    margin: 0 !important;
    padding: 0 !important;
  }

  #breadcrumb li:first-child a::before {
    content: "⌂";
    margin-right: 6px;
  }

  article .container,
  footer .container {
    width: auto !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow: visible !important;
  }

  article section,
  article .p50a {
    padding: 28px 16px !important;
  }

  article h2,
  article h3,
  article p,
  article div,
  article li,
  article dl,
  article dt,
  article dd {
    max-width: 100% !important;
  }

  article h2 img,
  article h3 img {
    max-width: 100% !important;
    height: auto !important;
  }

  footer .footer-bg {
    padding: 24px 0 !important;
  }

  footer h1,
  footer .fRight,
  footer .fLeft {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
  }

  footer .foot-nav {
    padding-left: 0 !important;
  }

  footer .foot-nav li {
    width: 50% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e6ded4;
    background-position: 10px center !important;
  }

  footer .foot-nav li a {
    display: block;
    padding: 10px 8px 10px 30px;
  }
}
/* 2026-07-17: refine lower-page smartphone layout parity. */
@media (max-width: 767px) {
  .sp-local-logo img {
    width: 210px !important;
  }

  .sp-local-menu-toggle {
    background-size: 78px 15px !important;
  }

  .sp-local-menu-toggle.is-open {
    background-size: 69px 15px !important;
  }

  .sp-local-menu-toggle span {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    margin: -1px !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  article .p50a {
    padding: 24px 16px !important;
  }

  .about_s01,
  .about_s02 {
    overflow: hidden !important;
  }

  .about_s01 h2 {
    float: right !important;
    width: 46px !important;
    margin: 0 0 12px 12px !important;
  }

  .about_s01 .fLeft {
    float: none !important;
    width: auto !important;
    overflow: visible !important;
  }

  .about_s01 .fLeft > img {
    display: block !important;
    width: calc(100% - 58px) !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 0 14px 0 !important;
  }

  .about_s01 .fLeft p {
    clear: both !important;
  }

  .about_s02 h2.fLeft {
    float: left !important;
    width: 43px !important;
    margin: 0 12px 12px 0 !important;
  }

  .about_s02 p img.fLeft {
    float: none !important;
    display: block !important;
    width: calc(100% - 58px) !important;
    height: auto !important;
    margin: 0 0 14px 58px !important;
  }

  .about_s02 > div {
    clear: both !important;
  }

  .about_s03 div.about-box01,
  .about-box02,
  .about-box03 {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .about_s03 div.about-box01 p img,
  .about_s03 div.about-box01 div,
  .about-box02 .ul01 {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
  }

  .about-box02 .ul01 {
    border-right: 0 !important;
    margin-right: 0 !important;
  }
}

/* 2026-07-17: tune about smartphone first section and header icons. */
@media (max-width: 767px) {
  .sp-local-tel {
    flex-basis: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .sp-local-tel img {
    width: 42px !important;
  }

  .sp-local-menu-toggle {
    flex-basis: 102px !important;
    background-position: center center !important;
  }

  article > .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .about_s01.p50a {
    padding: 24px 14px 18px !important;
  }

  .about_s01 h2 {
    margin-left: 10px !important;
    margin-bottom: 0 !important;
  }

  .about_s01 .fLeft > img {
    width: calc(100% - 56px) !important;
    margin-bottom: 10px !important;
  }

  .about_s01 .fLeft p.clear {
    clear: none !important;
    width: calc(100% - 56px) !important;
    margin: 0 0 12px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .about_s01 .fLeft p.right {
    clear: none !important;
    width: calc(100% - 56px) !important;
    margin: 12px 0 0 !important;
    text-align: center !important;
  }
}
/* 2026-07-17: match lower-page smartphone header to TOP. */
@media (max-width: 767px) {
  .sp-local-header {
    display: block !important;
    height: 67px !important;
  }

  .sp-local-logo {
    display: block !important;
    width: 160px !important;
    padding: 12px 5px !important;
  }

  .sp-local-logo img {
    width: 100% !important;
    max-width: 160px !important;
    height: auto !important;
  }

  .sp-local-tel {
    position: absolute !important;
    top: 0 !important;
    right: 103px !important;
    display: block !important;
    width: 28px !important;
    padding: 4px 8px !important;
    border-left: solid 1px #f1ede7 !important;
    line-height: 1 !important;
    text-align: center !important;
    box-sizing: content-box !important;
  }

  .sp-local-tel img {
    width: 48px !important;
    max-width: none !important;
    height: auto !important;
  }

  .sp-local-menu-toggle {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    display: block !important;
    width: 100px !important;
    height: 18px !important;
    padding: 25px 15px !important;
    box-sizing: content-box !important;
    background-size: 80px 15px !important;
    -webkit-background-size: 80px 15px !important;
  }

  .sp-local-menu-toggle.is-open {
    background-size: 68px 15px !important;
    -webkit-background-size: 68px 15px !important;
  }
}
