header {
    padding: 10px 20px;
    background-color: #57954e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ccc;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}
header .col-2 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 30px;
}

.logo {
    height: 50px;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-button {
    font-size: 14px;
    background-color: #000484;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 15px;
    font-weight: bold;
    cursor: pointer;
}

.menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: #4f8647;
    z-index: 1000;
    transition: right 0.5s ease;
    padding: 70px 20px 20px;
    box-sizing: border-box;
    overflow-y: auto;
}


.menu.active {
    right: 0;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 40px;
}

.menu-grid a {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fdf9e3;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 15px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.menu-grid a:hover {
    background-color: #fff;
    transform: scale(1.03);
}


.menu-toggle {
    width: 60px;
    height: 50px;
    background-color: #ffe600;
    color: #000;
    border-radius: 10px;
    border: 2px solid #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.menu-toggle:hover {
    background-color: #ffcc00;
    transform: scale(1.05);
}

.menu-toggle .icon {
    font-size: 20px;
    line-height: 1;
}

.menu-toggle .menu-label {
    font-size: 10px;
    margin-top: 3px;
    color: #000;
    line-height: 1;
}

.menu-center {
  text-align: center;
  margin: 30px 0;
}

.reserve-button {
  font-size: 1.5rem;
  padding: 15px 40px;
  font-weight: bold;
}

.menu-bottom {
  display: flex;
  justify-content: space-between;
  padding: 0 20px 30px;
  gap: 10px;
  text-align: center;
}

.menu-bottom .login-button2 {
  background-color: #007bff;
  color: #fff;
  border: none;
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.menu-bottom .login-button:hover {
  background-color: #0069d9;
}

.menu-bottom .register-button {
  background-color: #ff9800;
  color: #fff;
  border: none;
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.menu-bottom .register-button:hover {
  background-color: #e68900;
}

.content {
    flex-grow: 1;
    padding: 20px;
}
.login-button {
    font-size: 14px;
    background-color: #000484;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 15px;
    cursor: pointer;
    margin-left: auto;
    display: flex;
    align-items: center;
    margin-right: 17px;
    font-weight: bold;
}
.login-button i {
    margin-right: 8px;
}
.logout-button i {
    margin-right: 8px;
}


/* ===== Mobile header tuning ===== */
@media (max-width: 480px){

  header{
    padding: 8px 12px;          /* 余白を縮める */
  }

  header .col-2{
    padding-left: 10px;         /* 左のムダを削る */
  }

  .header-buttons{
    gap: 8px;                   /* ボタン間隔を少し詰める */
  }

  /* ロゴをモバイル用に縮小 */
  .logo{
    height: 38px;
    width: auto;
  }

  /* ログインボタン：改行させない＆小さめに */
  .login-button{
    white-space: nowrap;        /* これで「ログイン」が改行されません */
    font-size: 12px;
    padding: 6px 10px;
    line-height: 1;
    border-radius: 20px;
    flex: 0 0 auto;
    min-width: 74px;            /* “ログイン”が1行で入る最低幅 */
  }

  /* アイコンがあるなら、極小端末では非表示にして幅を稼ぐ */
  .login-button i{
    display: none;
  }

  /* メニューボタンも少し小さく */
  .menu-toggle{
    width: 54px;
    height: 46px;
  }
  .menu-toggle .icon{
    font-size: 18px;
  }
  .menu-toggle .menu-label{
    font-size: 10px;
  }
}

/* さらに極小端末（iPhone SE等） */
@media (max-width: 360px){
  .logo{ height: 34px; }
  .login-button{
    min-width: 70px;
    font-size: 11px;
    padding: 6px 8px;
  }
  .menu-toggle{
    width: 52px;
    height: 44px;
  }
}



/* ===== Hero: mobile tuning ===== */
@media (max-width: 576px){
  .hero{
    min-height: 48vh;                 /* 62vh → スマホは少し短く */
    background-attachment: scroll;    /* mobileでの挙動安定 */

    /* “何が写っているか分からない”問題の本命 */
    background-size: auto, contain, auto;  /* 2枚目(写真)だけ contain */
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;

    /* 写真が縮んで周囲が薄く見えるのが嫌なら、黒グラデを少し濃くする */
    background-image:
      linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.65)),
      url('/images/hero_mountain.jpg'),
      linear-gradient(180deg, #2b2b2b, #1a1a1a);
  }

  .hero .inner{
    padding: 1.25rem 1rem;
  }

  .hero h1{
    font-size: 1.6rem;  /* モバイルで見出しがデカすぎる場合の保険 */
    line-height: 1.25;
  }
}
/* ===== Hero: smartphone image override ===== */
@media (max-width: 576px){
  .hero{
    background-image:
      linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55)),
      url('/images/hero_mountain_sp.jpg'),
      linear-gradient(180deg, #2b2b2b, #1a1a1a);

    background-size: auto, cover, auto;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-attachment: scroll; /* スマホは固定を切る */
  }
}
