@charset "utf-8";

/* =============================================================================
   SMARTPHONE (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {

  /* --- general --- */
  html, body {
    overflow-x: hidden;
  }
  img {
    max-width: 100%;
    height: auto;
  }

  /* --- decorative background images that assume desktop dimensions --- */
  #headerIn,
  #top #header,
  #menu #header,
  #recruit #header,
  #shop #header,
  #link #header,
  #staff #header {
    background-image: none;
  }
  body {
    background-position: center top;
  }

  /* --- header --- */
  #headerInto {
    width: auto;
    max-width: 100%;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
  }
  #headerIn h1 {
    float: none;
    text-align: center;
  }
  #headerIn h1 img {
    max-width: 50%;
  }
  /* PC ナビは隠す (代わりに FAB + オーバーレイ) */
  #headerIn ul {
    display: none;
  }

  /* Floating action button (右下) */
  #spMenuToggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background-color: #5a341a;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
  }
  #spMenuToggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }
  body.spMenuOpen #spMenuToggle {
    background-color: #333;
  }
  body.spMenuOpen #spMenuToggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  body.spMenuOpen #spMenuToggle span:nth-child(2) {
    opacity: 0;
  }
  body.spMenuOpen #spMenuToggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* オーバーレイメニュー */
  #spMenu {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    display: none;
    overflow-y: auto;
  }
  body.spMenuOpen #spMenu {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #spMenu nav {
    text-align: center;
    padding: 20px;
  }
  #spMenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #spMenu li {
    margin: 8px 0;
  }
  #spMenu li a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 0.1em;
    padding: 16px 24px;
    transition: opacity 0.15s;
  }
  #spMenu li a:visited {
    color: #fff;
  }
  #spMenu li a:hover,
  #spMenu li a:active {
    color: #fff;
    opacity: 0.7;
  }

  /* --- header: SP では完全に隠す (ロゴは flashArea にオーバーレイ、ナビは FAB) --- */
  #header {
    display: none;
  }

  /* --- flash area (hero img) — 全ページ共通ヘッダーになる --- */
  #flashArea {
    background: none;
    width: auto;
    max-width: 100%;
    padding: 0;
    position: relative;
  }
  #flashContent img {
    width: 100%;
    height: auto;
    display: block;
  }
  #flashArea .flashLink {
    position: absolute;
    inset: 0;
    z-index: 4;
  }
  #flashArea .spLogoOverlay {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    z-index: 5;
    pointer-events: none;
    width: 35%;
    max-width: 180px;
  }
  #flashArea .spLogoOverlay a {
    pointer-events: auto;
  }
  #flashArea .spLogoOverlay img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.25));
  }

  /* --- container / contents --- */
  #container,
  #contents {
    width: auto;
    max-width: 100%;
  }

  /* main / side stack */
  #main {
    float: none;
    width: 100%;
  }
  #side {
    float: none;
    width: 100%;
    padding: 20px 10px;
    box-sizing: border-box;
  }

  /* --- news / staff area (wood-grain bg) --- */
  #newsArea,
  #staffArea {
    width: auto;
    max-width: 100%;
    background-color: rgba(255, 248, 230, 0.9);
    background-size: 100% auto;
  }
  .newsBox,
  .staffBox {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    padding: 0 32px;
    box-sizing: border-box;
  }
  .newsAreaIn,
  #staffAreaIn {
    background: none;
    height: auto;
    margin-bottom: 20px;
  }

  /* staff box internal layout */
  .staffBox .name,
  .staffBox .con,
  .staffBox .img {
    float: none;
    width: 100%;
    margin-right: 0;
    box-sizing: border-box;
  }
  .staffBox .img {
    text-align: center;
    margin-bottom: 10px;
  }

  /* --- sidebar calendar / images --- */
  .sideCal dd a img {
    width: auto;
    max-width: 100%;
    height: auto;
  }
  img.calendar {
    width: auto;
    max-width: 100%;
    height: auto;
  }

  /* --- dl price / 309 list --- */
  dl.list309 dt {
    float: none;
    width: auto;
    padding-left: 0;
  }
  dl.list309 dd {
    margin-left: 0;
  }
  dl.price dt {
    float: none;
    width: auto;
    padding-right: 0;
  }
  dl.price dd {
    margin-right: 0;
  }

  /* --- footer --- */
  #footer {
    background-color: #5a341a;
    background-image: none;
    padding: 0;
  }
  #footerIn {
    width: auto;
    max-width: 100%;
    height: auto;
    padding: 20px 10px;
    text-align: center;
  }
  #footer ul {
    text-align: center;
  }
  #footer li {
    float: none;
    display: inline-block;
    margin: 4px;
  }
  #footerIn .copy {
    position: static;
    text-align: center;
    margin-top: 10px;
  }
}

/* PC では FAB / オーバーレイを完全に隠す + トップ以外は flashArea を非表示 (従来動作) */
@media (min-width: 769px) {
  #spMenuToggle,
  #spMenu {
    display: none !important;
  }
  body:not(#top) #flashArea {
    display: none;
  }
}
