/* --- 変数定義 --- */
:root {
    --color-background: #15171c; /* 背景色 (真っ黒より少し柔らかい黒) */
    --color-text: #E0E0E0;       /* 基本の文字色 (白) */
    --color-gold: #C9A461;       /* アクセントの金色 */
    --color-gold-hover: #E0C494; /* 金色のホバー色 */
    --color-border: #333333;     /* 境界線 */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Shippori Mincho', serif;
}

/* --- 全体スタイル --- */
body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  margin: 0;
}

main{
  width: 1100px;
  margin: 0 auto;
}

main ul{
  list-style: none;
}

#login main{
  width: 500px;
  margin: 0 auto;
  text-align: center;
}

#login button{
  margin-top: 20px;
}

#login div,#changeP div,#setting div{
  margin: 30px;
}

#changeP main{
  width: 500px;
  text-align: center;
}

#changeP section{
  text-align: left;
}

.changeCol div{
  gap:10px;
}

.btnLogout{
  float: right;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 130px auto;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-gold);
  text-align: center;
  letter-spacing: 2px;
  margin: 10px;
}

h2{
  font-size: 1.5rem;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-gold-hover);
}

.textC{
  text-align: center;
  margin: 10px !important;
}

.form-group-flex {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
   appearance: none;
    background-color: #222;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 10px;
    border-radius: 4px;
    font-family: var(--font-body);
}

button, input[type="submit"] {
    background-color: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    padding: 10px 20px;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    letter-spacing: 1px;
}

button:hover, input[type="submit"]:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
}


/* --- カレンダー & グリッドテーブル (`index.php`, `daily_view.php`) --- */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    font-family: var(--font-heading);
}

.calendar-table,
table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.9em;
  color:#B0B0B0;
}

.calendar-table th, .calendar-table td,
table th, table td {
    border: 1px solid var(--color-border);
    text-align: center;
}

.calendar-table th,
table th {
    padding: 15px 5px;
    font-family: var(--font-heading);
    color: var(--color-gold);
}

.calendar-table td {
    padding: 10px 5px;
    height: 100px;
}

table td {
    padding: 15px;
}

/* カレンダーの空き(◯) */
.circle {
    font-size: 1.8em;
    color: var(--color-gold);
    display: inline-block;
    line-height: 1;
}
.calendar-table a:hover .circle {
    color: var(--color-gold-hover);
}

/* グリッドの空き(◯) */
td.available {
    background-color: transparent;
}
td.available a {
    font-size: 1.8em;
    font-weight: normal;
}

/* グリッドの不可(✕) */
td.booked {
    color: #555;
    font-size: 1.5em;
}


/* --- 予約フォーム (`reservation_form.php`) --- */
.info-box {
    border: 1px solid var(--color-gold);
    padding: 20px;
    margin-bottom: 30px;
    background-color: rgba(201, 164, 97, 0.05);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
  gap:10px;
}
.form-group input {
    width: 100%;
    box-sizing: border-box;
}



.setting-section { 
  margin-bottom: 30px; 
  padding: 15px;
  border: 1px solid #5f3612;
  border-radius: 5px;
}
.grid-cell { 
  border: 1px solid #5f3612;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--color-text) !important;
  box-shadow: 0 0 0 1000px var(--color-background) inset !important;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: var(--color-text);
}








#bookingIndex .select-list a{
  display: block;
  width: 90%;
  max-width: 500px;
  margin: 20px auto;
  padding: 25px;
  background-color: var(--color-gold);
  color: var(--color-background);
  text-decoration: none;
  border-radius: 5px;
  font-family: var(--font-heading);
  font-size: 1.5em;
  text-align: center;
  transition: all 0.2s;
  font-weight: 700;
}

#bookingIndex .select-list a:hover{
  opacity: 0.8;
}

header{
  width: 100%;
  height: 79px;
  background: url(../../images/img_headerbase.png) center top no-repeat;
  position: fixed;
  z-index: 1;
  top: 0;
  transition: all 0.3s ease-in-out;
  
  margin:0;
  padding: 0;
  color: var(--color-text);
  font-family: 'Shippori Mincho', serif;
}

header h1{
  position: absolute;
  top: 9px;
  left: 50%;
  margin-left: -37px;
}

header.scrolled {
  height: 40px;
  padding: 10px 0;
  background-position-y: -40px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header.scrolled h1{
  width: 40px;
  top:8px;
  margin-left: -20px;
}

header.scrolled nav.leftNav{
  top: -2px;
  transition: all 0.3s ease-in-out;
  scale:0.7;
  margin-left: -340px;
}

header.scrolled nav.righttNav{
  top: 4px;
  transition: all 0.3s ease-in-out;
}

header.scrolled .language {
  top: 4px;
  transition: all 0.3s ease-in-out;
}

header.scrolled nav ul li p{
  opacity: 0;
}


header a{
  transition: color 0.3s;
  color: var(--color-text);
}

header a:hover {
  color: #c0a062;
}

header .language{
  position: absolute;
  right: 10px;
  top: 23px;
  font-weight: 700;
  font-size: 18px;
  text-align: right;
  transition: all 0.3s ease-in-out;
}

header .language a{
  margin: 4px;
}

header ul{
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  letter-spacing: 0.2rem;
}

header li{
  display: inline-block;
  margin: 0 20px;
}

header .onPage{
  color: #c0a062;
}



nav.leftNav{
  left:50%;
  margin-left: -380px;
  position: absolute;
  top: 9px;
  transition: all 0.3s ease-in-out;
}

nav.leftNav ul li{
  font-size:20px;
}

nav.leftNav ul li p{
  font-size: 12px;
  text-align: center;
}

nav.leftNav ul li span{
  font-size:25px;
}

.opa{
  opacity: 0.2;
}

nav.righttNav{
  left:50%;
  margin-left: 60px;
  position: absolute;
  top: 16px;
}

nav.righttNav ul li{
  font-size:12px;
}

nav.righttNav ul li span{
  font-size:17px;
}

nav ul li p{
  font-size: 12px;
  text-align: center;
}

nav.slide-menu ul li p{
  font-size:11px;
}



.hamburger {
  display: none; 
  position: absolute;
  top: 12px;
  right: 20px;
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 100;
}

.hamburger span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #ae9962;
  transition: all 0.5s;
}

.hamburger span:nth-of-type(1) { top: 0; }
.hamburger span:nth-of-type(2) { top: 11px; }
.hamburger span:nth-of-type(3) { top: 22px; }

.hamburger.active span:nth-of-type(1) {
  top: 11px;
  transform: rotate(45deg);
}
.hamburger.active span:nth-of-type(2) {
  opacity: 0;
}
.hamburger.active span:nth-of-type(3) {
  top: 11px;
  transform: rotate(-45deg);
}

.slide-menu {
  display: none; 
  position: fixed; 
  top: 0;
  right: -100%; 
  width: 210px;
  height: 100%;
  background-color: rgba(21, 23, 28, 0.98);
  padding-top: 80px;
  transition: right 0.5s;
  z-index: 99;
}

.slide-menu.active {
  right: 0;
}

.slide-menu ul li {
  display: block;
  text-align: center;
  padding: 10px 0;
  margin: 0;
}

.slide-menu ul li a {
  color: #ccc;
  font-size: 16px;
  letter-spacing: 0.1em;
  font-weight: bold;
}

.img_sp{
  display: none;
}

.slide-menu ul li.spLang button{
  font-size:12px;
  margin: 4px;
}

.lang-switch {
    margin-left: 20px !important;
    color: #666;
    font-size: 12px;
}
.lang-switch button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
    font-family: 'Teko', sans-serif;
    transition: color 0.3s;
}
.lang-switch button:hover,
.lang-switch button.active {
    color: #c0a062;
}

.success-message{
  padding: 10px;
  text-align: center;
}

.success-message p{
  margin: 5px;
}

.calenderInfoTxt{
  color: var(--color-text);
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}








































/* --- ▼▼▼ レスポンシブ対応 (スマホ用スタイル) ▼▼▼ --- */

@media (max-width: 768px) {

    /* --- 全体 --- */
    .container {
        width: 95%; /* 横幅を画面いっぱいに広げる */
        margin: 60px auto;
    }

    h1 {
        font-size: 1.8em; /* 見出しを少し小さく */
    }
    h2 {
        font-size: 1.5em;
    }

    /* --- カレンダー (`index.php`) --- */
    .calendar-nav {
        font-size: 0.9em;
    }
    .calendar-table th {
        padding: 10px 2px;
        font-size: 0.8em;
    }
    .calendar-table td {
        height: 60px; /* マスの高さを少し低く */
        font-size: 0.9em;
    }
    .circle {
        font-size: 1.3em;
    }

    /* --- 時間別グリッド (`daily_view.php`) --- */
    /* 横長のテーブルは、はみ出した分をスクロールできるようにする */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* iOSでのスクロールを滑らかに */
        margin: 0 -5px;
        padding: 0 5px;
    }
    
    .daily-view-table {
        min-width: 600px; /* テーブルの最小幅を指定して縮みすぎないように */
    }

    .daily-view-table th, .daily-view-table td {
        padding: 10px 8px;
    }

    /* --- フォーム (`reservation_form.php`など) --- */
    .form-group input, .form-group select {
        padding: 12px;
    }
    
    button, input[type="submit"] {
        padding: 12px 20px;
        width: 100%; /* ボタンを横幅いっぱいに */
        box-sizing: border-box;
    }
  
  header {
    height: 49px;
    padding: 0px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    background-position-y: -30px;
    z-index: 101;
    top: 0;
  }

  header.scrolled {
    height:49px;
    background-position-y: -30px;
  }
  
  header.scrolled h1{
    top: 13px;
    margin-left: -34px;
  }
  
  header .language{
    display: none;
  }
  
  header h1 {
    width: 50px;
    top: -7px;
    left: 50px;
    }
  
  li {
    margin: 5px 10px;
    border-bottom: 1px solid #272727;
  }
  
    nav.leftNav,nav.righttNav {
    display: none;
  }

  nav.leftNav ul li,
  nav.leftNav ul li span,
  nav.righttNav ul li,
  nav.righttNav ul li span {
    font-size: 14px;
  }
  
  .hamburger,.slide-menu {
    display: block;
  }
  
   .lang-switch-sp {
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
  }
  .lang-switch-sp button {
    background: none;
    border: 1px solid #666;
    color: #666;
    cursor: pointer;
    padding: 3px 7px 5px 7px;
    margin: 0 5px;
    font-size: 12px;
    border-radius: 5px;
    transition: all 0.3s;
    letter-spacing: 0;
  }
  .lang-switch-sp button:hover,
  .lang-switch-sp button.active {
    background-color: #c0a062;
    border-color: #c0a062;
    color: #15171c;
  }
  
}




/*
@media (max-width: 860px) {

  main{
    min-width: auto;
  }
  
  .content-section,
  .two-column-section {
    width: 100%;
    margin-top: 80px;
  }
  
  

  .hero {
    margin: 0;
    height: auto;
    background-size: cover; 
    margin-top: 49px;
    padding-bottom: 20%;
  }

  .hero .hero-content {
    position: static;
    margin: 0;
    padding-top: 20%;
    text-align: center;
  }
  
  .hero .hero-content h2 img {
    width: 70%;
    max-width: 400px;
  }

  .hero-vertical-text {
    writing-mode: lr;
    width: 100%;
    left: 0;
    margin-left: 0;
    position: static;
    text-align: center;
    font-size: 3vw;
    letter-spacing: 0.2rem;
  }

  .content-text {
    position: static; 
    width: 100%;
    left: auto;
    padding: 0 3%;
  }
  
  .img_sp{
    display: block;
    width:100%;
    margin: 3% 0 0 0;
  }

  #fitting .content-body,
  #lesson .content-body {
    background-image: none;
    height: auto;
    padding-top: 0;
  }

  .content-text h4 {
    font-size: 22px;
  }

  .content-text p,
  #lesson .content-text p {
    font-size: 15px;
  }
  
  .two-column-section {
    flex-direction: column;
    gap: 60px;
  }
  
  .column-content{
    padding: 0 3%;
  }

  .column-content img{
    width: 75%;
  }
  
  .column-content p {
    width: 100%;
    padding-left: 0;
    box-sizing: border-box;
  }

  .about-section {
    padding: 60px 5%;
  }
  
  .opa{
    color: #333;
    opacity: 1;
  }

  .footer {
    height: auto;
    padding: 15px 0 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-position-y: 11px;
  }

  .footer h5,
  .footer-sns {
    position: static;
    margin-bottom: 5px;
  }
  
  .footer h5{
    display: none;
  }
  
  .footer p {
    padding-top: 0;
  }
  
 
  #info ul li {
    width: 100%;
    margin: 0;
  }
  
  .lineFrame img.lineQR{
    display: none;
  }
  
  .media-item {
    width: 100%;
  }
  
  .media-grid {
    grid-template-columns: repeat(auto-fit, 100%);
  }
  
  #makerLogo ul li {
    margin: 3%;
  }
}

*/




/* --- booking_calendar.php の休業日セル用 --- */
td.closed-day-cell {
  background-color: #333; /* 少し濃いグレー */
  color: #888;
  font-weight: bold;
  font-size: 1.1em;
  vertical-align: middle; /* 文字を上下中央に */
  writing-mode: vertical-rl; /* 文字を縦書きに */
  text-orientation: mixed;
  letter-spacing: 3px; /* 文字の間隔 */
}

/* --- manage_availability.php の一括切替ボタン用 --- */
.availability-grid-table .toggle-button {
  font-size: 0.8em; /* 文字を小さめに */
  padding: 2px 5px; /* ボタンのサイズを小さく */
  background-color: #555; /* ボタンの背景色 */
  color: #eee; /* ボタンの文字色 */
  border: none;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 5px; /* 日付との間に少し隙間 */
}
.availability-grid-table .toggle-button:hover {
    background-color: #777;
}

.calDay{
  text-align: center;
}

/* --- booking_calendar.php の休業日セル用 --- */
td.closed-day-cell {
  background-color: #333;
  color: #888;
  font-weight: bold;
  font-size: 1.3em !important;
  vertical-align: middle;
  writing-mode: vertical-rl; /* ← これが縦書き指定 */
  text-orientation: mixed;
  letter-spacing: 3px;
}


.staff-selector { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; justify-content: center; }
.staff-selector a {
padding: 10px 15px; border: 1px solid var(--color-gold); border-radius: 20px;
color: var(--color-gold); text-decoration: none; transition: all 0.2s;
}
.staff-selector a:hover { background-color: rgba(201, 164, 97, 0.1); }
.staff-selector a.selected { background-color: var(--color-gold); color: var(--color-background); font-weight: bold; }

.week-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.calendar-grid-table th, .calendar-grid-table td { padding: 8px 4px; font-size: 0.8em; min-width: 60px; }
.calendar-grid-table td { height: 40px; }
.calendar-grid-table .time-label { font-weight: bold; }
.grid-circle a { color: var(--color-gold); font-size: 1.5em; font-weight: normal; }
.grid-cross { color: #555; font-size: 1.2em; }



