/* ==============================================
 * Mobile Responsive Styles
 * ============================================== */

/* Desktop: hide mobile-only elements */
.mobile-nav-controls,
.mobile-menu-drawer {
  display: none;
}

@media screen and (max-width: 768px) {

  /* --- Reset desktop min-width --- */
  html:not(.responsive) {
    min-width: 0 !important;
  }

  /* --- All images: shrink to fit, never enlarge --- */
  img {
    max-width: 100%;
    height: auto;
  }

  /* --- Base layout --- */
  body {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden;
    padding-bottom: 56px;
  }

  main {
    overflow-x: hidden;
  }

  .wrap {
    width: 100% !important;
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }


  /* ==============================================
   * Header
   * ============================================== */

  header {
    position: relative;
  }

  header > .wrap {
    position: relative;
    padding: 0;
    margin-top: 52px;
  }

  /* ナビバーにロゴがあるのでヘッダー内のロゴは非表示 */
  header .logo {
    display: none !important;
  }

  /* H1 title: hide on mobile */
  header h1 {
    display: none;
  }

  /* Tel */
  header .tel {
    display: none !important;
  }


  /* Vertical side nav — hide on mobile */
  header .nav-fl {
    display: none;
  }

  /* Hero key image */
  header #key {
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-height: 200px;
  }


  /* Fixed WEB reservation button */
  header .btn_fixed {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    position: fixed;
    z-index: 150;
  }

  header .btn_fixed a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    background: #b51e23;
    color: #fff;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-decoration: none;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.25);
  }

  header .btn_fixed a::before {
    content: "WEB予約はこちら";
  }

  header .btn_fixed img {
    display: none;
  }


  /* Always show nav bar on mobile */
  header .nav-fixed {
    opacity: 1 !important;
    visibility: visible !important;
    position: fixed !important;
    top: 0 !important;
  }

  /* Fixed nav bar */
  header .nav-fixed .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 52px;
    margin-top: 0;
    box-sizing: border-box;
  }

  /* Hide desktop nav images and tel image on mobile */
  header .nav-fixed nav,
  header .nav-fixed > .wrap > p {
    display: none !important;
  }

  /* Mobile logo (left side of nav bar) */
  .mobile-logo {
    display: flex !important;
    align-items: center;
    text-decoration: none;
  }

  .mobile-logo img {
    height: 36px;
    width: auto;
  }

  /* Mobile controls: phone icon + hamburger (right side) */
  .mobile-nav-controls {
    display: flex !important;
    align-items: center;
    gap: 20px;
    margin-left: auto;
  }

  /* Phone icon button */
  .mobile-tel-btn {
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    line-height: 1;
  }

  /* Hamburger button */
  .hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 26px;
    color: #fff;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile menu drawer */
  .mobile-menu-drawer {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 200;
    padding: 24px 0;
    overflow-y: auto;
  }

  .mobile-menu-drawer.open {
    display: flex;
  }

  .mobile-menu-drawer a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 16px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.1em;
  }

  .mobile-menu-drawer a:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }


  /* ==============================================
   * Section common — reset overflow-causing patterns
   * ============================================== */

  section .wrap {
    position: relative;
  }

  /* Reset absolutely-positioned headings */
  section h2,
  section h3 {
    position: static !important;
    left: auto !important;
    top: auto !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  /* Reset absolutely-positioned photos */
  section .photo,
  section .left .photo,
  section .right .photo {
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Flex sets → column */
  section .set1,
  section .set2,
  section .set3,
  section .content,
  section .box {
    display: block !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: static !important;
  }

  /* Box left/right columns → full width */
  section .box .left,
  section .box .right {
    width: 100% !important;
    position: static !important;
    box-sizing: border-box !important;
    padding: 16px !important;
  }

  /* Hide vertical divider between columns */
  section .box .left::before {
    display: none !important;
  }

  /* Text containers: reset fixed widths and large paddings */
  section .txt,
  section .text,
  section .left,
  section .right,
  section .set1 .left,
  section .set1 .right,
  section .set2 .text,
  section .set3 .text {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 8px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: static !important;
    box-sizing: border-box !important;
  }

  /* Reset min-height on large background sections */
  section[id] {
    min-height: 0 !important;
  }

  /* Fixed-width content columns → full width */
  section .content > div,
  section .item {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Sliders/large image wrappers */
  section .s5-lide,
  section [class*="slide"],
  section [class*="lide"] {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Feed / news blocks */
  #feed {
    flex-direction: column !important;
  }

  #feed dl {
    width: 100% !important;
  }

  /* Announcement block */
  .oshirase {
    width: 90% !important;
    position: static !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  /* ==============================================
   * sumibiyaki.html specific fixes
   * ============================================== */

  /* sec3: 焼き鳥セクション — 価格を写真位置に合わせる */
  #sec3 .left,
  #sec3 .right {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    padding: 0 !important;
  }

  #sec3 .price {
    position: absolute !important;
    display: block !important;
    font-size: 16px !important;
    width: auto !important;
    margin: 0 !important;
    line-height: 1;
    white-space: nowrap;
    z-index: 2;
  }

  #sec3 .price span {
    font-size: 14px !important;
  }

  #sec3 .left .photo,
  #sec3 .right .photo {
    text-align: center;
    padding: 0 !important;
    margin: 0 !important;
  }

  #sec3 .left p,
  #sec3 .right p {
    text-align: center;
  }

  #sec3 .left .price_1 {
    top: 28%;
    left: 18%;
  }

  #sec3 .left .price_2 {
    top: 24%;
    left: 84%;
    transform: translateX(-50%);
  }

  #sec3 .left .price_3 {
    bottom: 1%;
    left: 35%;
  }

  #sec3 .left .price_4 {
    bottom: 3%;
    left: 79%;
    transform: translateX(-50%);
  }

  #sec3 .right .price_1 {
    top: 37%;
    left: 56%;
  }

  #sec3 .right .price_2 {
    top: 55%;
    left: 2%;
  }

  #sec3 .right .price_3 {
    bottom: 18%;
    left: 15%;
  }

  #sec3 .right .price_4 {
    bottom: 1%;
    left: 46%;
  }

  /* ==============================================
   * course.html specific fixes
   * ============================================== */

  /* sec1 */
  #sec1 .txt {
    width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* sec2 */
  #sec2 .photo {
    position: static !important;
    text-align: center;
    padding: 16px 0 !important;
  }

  /* sec3 / sec4: コースボックス */
  #sec3 .box,
  #sec4 .box {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-direction: column !important;
  }

  #sec3 .box .left,
  #sec3 .box .right,
  #sec4 .box .left,
  #sec4 .box .right {
    width: 100% !important;
    position: static !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }

  #sec3 .box .right ul,
  #sec4 .box .right ul {
    padding: 16px !important;
    line-height: 2 !important;
  }

  #sec3 .box .left dl dt,
  #sec4 .box .left dl dt {
    font-size: 16px !important;
    padding: 16px 8px !important;
    margin-bottom: 16px !important;
  }

  #sec3 .box .left dl dt span,
  #sec4 .box .left dl dt span {
    font-size: 22px !important;
  }

  #sec3 .box .left dl dd,
  #sec4 .box .left dl dd {
    font-size: 24px !important;
    padding-left: 0 !important;
  }

  /* sec5 */
  #sec5 .box {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }

  #sec5 .box h2 {
    padding: 24px 0 16px !important;
  }

  #sec5 .set2 {
    position: static !important;
  }

  #sec5 .set2 h3 {
    position: static !important;
    padding: 16px !important;
  }

  #sec5 .set2 .txt_2 {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 16px !important;
    padding-bottom: 24px !important;
  }

  /* sec6 */
  #sec6 {
    min-height: 0 !important;
  }

  #sec6 h2 {
    margin-left: 0 !important;
    padding: 24px 16px 16px !important;
    text-align: center !important;
  }

  #sec6 .floor {
    position: static !important;
    padding: 16px !important;
  }

  #sec6 .photo {
    padding-left: 16px !important;
    padding-right: 16px !important;
    position: static !important;
  }

  #sec6 .txt {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  /* ==============================================
   * Footer
   * ============================================== */

  footer {
    text-align: center;
    position: relative;
  }

  footer .wrap {
    position: relative;
  }

  footer .nav-inline {
    flex-wrap: wrap;
    padding: 24px 16px 0;
    gap: 8px;
    justify-content: center;
  }

  footer .nav-inline a {
    font-size: 12px;
    height: auto;
    line-height: 1.8;
    width: auto !important;
  }

  footer .logo {
    position: static;
    display: block;
    padding: 24px 0 8px;
  }


  footer .tel {
    position: static;
    display: block;
    padding: 8px 0;
  }


  footer .vcard {
    margin-left: 0 !important;
    padding: 16px;
    text-align: left;
    box-sizing: border-box;
  }

  footer .vcard dl {
    display: block;
    width: 100%;
  }

  footer .vcard dl dt {
    display: block;
    width: 100%;
    font-weight: bold;
  }

  footer .vcard dl dd {
    display: block;
    width: 100%;
    padding-left: 8px;
  }

  footer address {
    padding: 24px 16px 40px;
    font-size: 12px;
  }

  footer #socialbuttons {
    margin-left: 0;
  }

  /* Footer WEB予約 button */
  .dis_b {
    position: static !important;
    display: flex !important;
    justify-content: center;
    padding: 16px 0;
  }

  .btn_ebi_te {
    width: 260px;
  }

  /* ==============================================
   * index.html specific
   * ============================================== */

  /* Bxslider / hero section */
  #key ul, #key li {
    min-height: 200px;
  }

  #sec3 {
    overflow: hidden;
  }

  #sec3 dl {
    margin: 0 !important;
  }

  #sec3 dl dt {
    text-align: center;
  }

  #sec3 dl dd,
  #sec3 .set1 .left dl dd,
  #sec3 .set2 dl dd {
    padding: 10px 0 24px !important;
    margin: 0 !important;
    text-align: center;
    font-size: 24px !important;
    line-height: 1.4;
    white-space: nowrap;
  }

  #sec3 dl dd span {
    font-size: 14px !important;
  }

  #sec3 .set1 .left dl,
  #sec3 .set1 .right dl {
    padding: 16px 0 0 !important;
  }

  #sec3 .set2 .text .txt,
  #sec3 .set2 .text .btn {
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center;
  }

  #sec4 {
    overflow: hidden;
  }

  #sec4 .set1 .left h2,
  #sec4 .set1 .right h3,
  #sec4 .set2 h3 {
    padding-top: 24px !important;
    text-align: center;
  }

  #sec4 .set1 .right .txt {
    padding: 24px 16px !important;
  }

  #sec4 .set2 dl {
    margin: 0 !important;
    position: static !important;
    width: 100% !important;
  }

  #sec4 .set2 dl dt {
    text-align: center;
  }

  #sec4 .set2 dl dd {
    position: static !important;
    padding: 10px 16px 24px !important;
    margin: 0 !important;
    text-align: center;
    font-size: 20px !important;
    line-height: 1.6;
    white-space: nowrap;
  }

  #sec4 .set2 dl dd br {
    display: none;
  }

  #sec4 .set2 h3::before,
  #sec4 .set3::before {
    display: none !important;
  }

  #sec4 .set3 .photo_1,
  #sec4 .set3 .photo_2,
  #sec4 .set3 .btn {
    margin: 0 !important;
    padding: 16px 0 !important;
    text-align: center;
  }

  /* ==============================================
   * access.html specific
   * ============================================== */

  #sec1 .info {
    padding: 0;
  }

  #sec1 .photo {
    text-align: center;
  }

  #sec2 .gllarey {
    display: block;
  }

  #sec2 .gllarey .map {
    text-align: center;
    margin-bottom: 16px;
  }


  #sec2 .txt {
    font-size: 13px;
    line-height: 1.8;
  }

  #sec3 iframe {
    height: 300px;
  }

  #sec3 .banner {
    flex-direction: column;
    align-items: center;
  }

  #sec3 .banner li {
    margin-bottom: 8px;
  }

  /* ==============================================
   * General section images
   * ============================================== */

  /* Text paragraphs */
  section p,
  section .txt,
  section .catch,
  section .lead {
    font-size: 13px;
    line-height: 1.8;
  }

  /* Flex layouts → column */
  section .flex,
  section .flex-wrap,
  section .col,
  section .columns {
    flex-direction: column !important;
  }

  /* Gallery grids */
  section .gallery,
  section .images,
  section .photo-list {
    display: block;
  }


  /* Menu / list tables */
  section dl,
  section table {
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Remove fixed pixel widths from common elements */
  section div,
  section ul,
  section ol {
    max-width: 100%;
    box-sizing: border-box;
  }

}
