/* =====================================================================
 * UI の調整（2026-11 に追加。stylus のビルドとは別に、直接書いている。common.css のあとに読み込む）
 * - グローバルメニュー：右から滑り込むパネル＋後ろを暗く、項目が順に出る、矢印と文字の高さをそろえる、ホバー
 * - お問い合わせフォーム：入力欄・選択・送信ボタン・必須の印・エラーの見た目
 * 色はサイトの茶（#402E2D）と金（#B18A3E）
 * ===================================================================== */

:root {
  --es-brown: #402e2d;
  --es-gold: #b18a3e;
  --es-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* スマホでタップしたときの四角い枠を消す */
a, button, #hum, #menuClose, input[type="submit"] {
  -webkit-tap-highlight-color: transparent;
}

/* ---------------------------------------------------------------- グローバルメニュー */
/* パネル：画面の右に固定して、上から下まで。中身が長いときはパネルの中でスクロール
 * （元は header の中で position:absolute・slideToggle で高さが伸び縮みし、スマホでは下まで届かずに後ろのページが見えていた） */
header div#dmenu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 1000;
  border: 0;
  box-shadow: -24px 0 60px rgba(64, 46, 45, 0.12);
  display: block !important; /* 開け閉めはクラス（es-menu-open）で。元の slideToggle の display は使わない */
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.6s var(--es-ease), visibility 0s linear 0.6s;
}
html.es-menu-open header div#dmenu {
  visibility: visible;
  transform: none;
  transition: transform 0.6s var(--es-ease);
}
/* 後ろを暗く（押すと閉じる） */
#es-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(64, 46, 45, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
  cursor: pointer;
}
html.es-menu-open #es-menu-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
}
/* 開いている間は header をページのいちばん上に（右下の予約ボタン（z-index 999）などより上） */
html.es-menu-open header {
  z-index: 10000;
}
/* 開いている間に後ろのページがスクロールしないようにするのは js/motion.js（ホイール・指の動きを止める）。
 * 2026-11：はじめは html・body に overflow:hidden を付けていたが、開いた瞬間にページがいちばん上まで跳んで「ガクっ」となった */

/* 閉じるボタン：押しやすく。ホバーで少し回る */
header div#dmenu div.close {
  transition: transform 0.5s var(--es-ease), opacity 0.3s;
}
@media (hover: hover) {
  header div#dmenu div.close:hover {
    transform: rotate(90deg);
  }
}

/* 項目：文字と矢印の高さをそろえる（元は上の余白が大きく、文字が下に寄り、矢印だけ真ん中にあった）。高さは元と同じ */
header div#dmenu ul.menu li {
  padding: 1.15em 2em 1.15em 0;
}
header div#dmenu ul.menu li a {
  position: relative;
}
/* ホバー：文字が金になり、下の線が左から金で伸び、矢印が少し進む */
header div#dmenu ul.menu li::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--es-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--es-ease);
}
header div#dmenu ul.menu li::after {
  transition: transform 0.5s var(--es-ease);
}
@media (hover: hover) {
  header div#dmenu ul.menu li:hover::before {
    transform: scaleX(1);
  }
  header div#dmenu ul.menu li:hover::after {
    transform: translate(6px, -50%);
  }
}
/* 押したとき（スマホ）は少し沈む */
header div#dmenu ul.menu li:active {
  opacity: 0.7;
}

/* 開いたとき：項目・電話・SNS が順に出る */
header div#dmenu ul.menu > li,
header div#dmenu div.tel,
header div#dmenu ul.sns {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.3s, transform 0.3s;
}
html.es-menu-open header div#dmenu ul.menu > li,
html.es-menu-open header div#dmenu div.tel,
html.es-menu-open header div#dmenu ul.sns {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease-out var(--es-i, 0s), transform 0.8s var(--es-ease) var(--es-i, 0s);
}

/* ヘッダーの電話番号・メニューのボタン：ホバー */
header li#hum {
  transition: background-color 0.3s;
}
@media (hover: hover) {
  header li#hum:hover {
    background-color: #5a4544;
  }
}
header li#hum:active {
  transform: scale(0.96);
}

/* ---------------------------------------------------------------- お問い合わせフォーム（Contact Form 7） */
.wpcf7-form .form > label {
  display: inline-block;
  margin-bottom: 0.5em;
  font-weight: 500;
  letter-spacing: 0.05em;
}
/* 必須の項目に「必須」の印 */
.wpcf7-form .form:has([aria-required="true"]) > label::after {
  content: '必須';
  display: inline-block;
  margin-left: 0.6em;
  vertical-align: 0.1em;
  padding: 0.15em 0.6em;
  border-radius: 2px;
  background: var(--es-brown);
  color: #fff;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
}
.wpcf7-form .form:not(:has([aria-required="true"])) > label::after {
  content: '任意';
  display: inline-block;
  margin-left: 0.6em;
  vertical-align: 0.1em;
  padding: 0.15em 0.6em;
  border-radius: 2px;
  border: 1px solid #c9bfbe;
  color: #8a7d7c;
  font-size: 0.72em;
  letter-spacing: 0.1em;
  line-height: 1.4;
}
/* 入力欄：うっすら色の付いた面、角を少し丸く、入力中は金の縁と淡い光 */
.wpcf7-form input.uk-input,
.wpcf7-form select,
.wpcf7-form select.uk-select,
.wpcf7-form textarea,
.wpcf7-form textarea.uk-textarea {
  border: 1px solid #d8cfce !important;
  border-radius: 4px;
  background-color: #fff;
  color: var(--es-brown);
  padding: 0 14px;
  height: 48px;
  font-size: 16px; /* スマホで入力のたびに画面が拡大されないように 16px 以上 */
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.wpcf7-form textarea,
.wpcf7-form textarea.uk-textarea {
  height: auto;
  min-height: 200px;
  padding: 12px 14px;
  line-height: 1.8;
  resize: vertical;
}
.wpcf7-form input.uk-input::placeholder,
.wpcf7-form textarea::placeholder {
  color: #b3a9a8;
}
@media (hover: hover) {
  .wpcf7-form input.uk-input:hover,
  .wpcf7-form select:hover,
  .wpcf7-form textarea:hover {
    border-color: #b9aead !important;
  }
}
.wpcf7-form input.uk-input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--es-gold) !important;
  box-shadow: 0 0 0 3px rgba(177, 138, 62, 0.18);
  background-color: #fff;
}
/* 選択：右に細い矢印 */
.wpcf7-form select,
.wpcf7-form select.uk-select {
  padding-right: 40px;
  height: 48px !important; /* UIkit の uk-select（40px）より、ほかの欄とそろえる */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23402E2D' stroke-width='1.4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 12px 8px !important;
  cursor: pointer;
}
/* エラー：赤すぎない色で、欄の縁も同じ色に */
.wpcf7-form .wpcf7-not-valid {
  border-color: #c0504d !important;
  background-color: #fffafa;
}
.wpcf7-form .wpcf7-not-valid-tip {
  margin-top: 0.4em;
  color: #c0504d;
  font-size: 0.85em;
}
.wpcf7-form .wpcf7-response-output {
  margin: 2em 0 0 !important;
  padding: 1em 1.2em !important;
  border-radius: 4px;
  border-width: 1px !important;
  font-size: 0.9em;
  line-height: 1.7;
  text-align: center;
}
.wpcf7-form.sent .wpcf7-response-output {
  border-color: var(--es-gold) !important;
  background: #fbf8f1;
  color: var(--es-brown);
}
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
  border-color: #c0504d !important;
  background: #fffafa;
  color: #a03f3c;
}
/* 送信ボタン：ホバーで少し明るく浮く。送信中は押せない見た目 */
.wpcf7-form input[type="submit"] {
  cursor: pointer;
  letter-spacing: 0.3em;
  transition: background-color 0.3s, transform 0.3s var(--es-ease), box-shadow 0.3s;
}
@media (hover: hover) {
  .wpcf7-form input[type="submit"]:hover {
    background-color: #5a4544;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(64, 46, 45, 0.18);
  }
}
.wpcf7-form input[type="submit"]:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}
.wpcf7-form.submitting input[type="submit"] {
  opacity: 0.6;
  pointer-events: none;
}
.wpcf7-form .wpcf7-spinner {
  vertical-align: middle;
}

/* =====================================================================
 * ヘッダーの電話番号・ドロワーメニュー・フッターのデザインの調整（2026-11）
 * ===================================================================== */

/* ---------------------------------------------------------------- ヘッダーの電話番号 */
/* PC：受話器の印の右に「ご予約・お問い合わせ」と番号を 2 段で */
header ul#header li.tel {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 0.45em;
  align-items: center;
  transition: opacity 0.3s;
}
header ul#header li.tel span.icon {
  grid-row: 1 / 3;
  grid-column: 1;
  width: 0.95em;
  height: 0.95em;
  margin-right: 0;
}
header ul#header li.tel .es-tel-label {
  grid-row: 1;
  grid-column: 2;
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
  color: #402e2d;
  opacity: 0.75;
  margin-bottom: 0.35em;
}
header ul#header li.tel .es-tel-label.home {
  color: #fff;
}
header ul#header li.tel p {
  grid-row: 2;
  grid-column: 2;
  line-height: 1;
  transition: color 0.3s;
}
@media (hover: hover) {
  header ul#header li.tel:hover p {
    color: #b18a3e;
  }
  header ul#header li.tel:hover .es-tel-label {
    opacity: 1;
  }
}
/* スマホ：受話器の印だけが浮いていたので、メニューのボタンと並ぶ枠付きのボタンに */
@media only screen and (max-width: 770px) {
  header ul#header li.tel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid #402e2d;
    background: rgba(255, 255, 255, 0.85);
  }
  header ul#header li.tel .es-tel-label {
    display: none;
  }
  header ul#header li.tel span.icon {
    width: 1.3em;
    height: 1.3em;
  }
  header ul#header li.tel:active {
    transform: scale(0.96);
  }
  header ul#header li#hum {
    margin-left: 10px;
  }
}

/* ---------------------------------------------------------------- ドロワーメニュー */
/* 上の「MENU」の見出し */
header div#dmenu .es-dmenu-label {
  position: absolute;
  top: 52px;
  left: 65px;
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.35em;
  color: #b18a3e;
  line-height: 1;
}
@media only screen and (max-width: 770px) {
  header div#dmenu .es-dmenu-label {
    top: 38px;
    left: 40px;
  }
}
/* 閉じるボタンは少し小さく、細く見せる */
header div#dmenu div.close {
  width: 2em;
  height: 2em;
}
/* 項目の英語の下の日本語は、金色で小さく */
header div#dmenu ul.menu li a span {
  color: #b18a3e;
  font-size: 0.72em;
  letter-spacing: 0.12em;
  margin-top: 0.4em;
}
/* 電話：茶色のカード（「ご予約・お問い合わせ」＋番号） */
header div#dmenu div.tel {
  position: relative;
  flex-wrap: wrap;
  margin: 2.2em 0 0;
  padding: 0.9em 1em 1em;
  border-radius: 4px;
  background: #402e2d;
  color: #fff;
  font-size: 1.7em;
  transition: background-color 0.3s;
}
header div#dmenu div.tel .es-tel-label {
  flex-basis: 100%;
  margin-bottom: 0.5em;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-align: center;
  color: #d9c7a3;
}
header div#dmenu div.tel p,
header div#dmenu div.tel p.home {
  position: static;
  color: #fff;
  line-height: 1;
}
header div#dmenu div.tel p a {
  z-index: 1;
}
header div#dmenu div.tel span.icon {
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.3em;
  background-image: url(../img/header/icon-tel.svg);
}
@media (hover: hover) {
  header div#dmenu div.tel:hover {
    background: #5a4544;
  }
}
/* 店舗の情報（住所・営業時間・定休日） */
header div#dmenu .es-dmenu-info {
  margin: 1.4em 0 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: #6b5b5a;
}
header div#dmenu .es-dmenu-info p {
  color: inherit;
}
/* Instagram：少し小さく、ホバーで薄く */
header div#dmenu ul.sns {
  margin: 1.6em 0 1em;
}
header div#dmenu ul.sns li {
  max-width: 36px;
}
header div#dmenu ul.sns li div.thumb {
  transition: opacity 0.3s, transform 0.3s;
}
@media (hover: hover) {
  header div#dmenu ul.sns li:hover div.thumb {
    opacity: 0.7;
  }
}

/* ---------------------------------------------------------------- フッター */
footer {
  padding-top: 72px;
}
/* ご予約・お問い合わせの案内 */
footer .es-foot-cta {
  max-width: 880px;
  margin: 0 auto 56px;
  padding: 0 20px 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}
footer .es-foot-cta__en {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.35em;
  color: #c9a565;
}
footer .es-foot-cta__ja {
  margin: 0.7em 0 1.6em;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: #fff;
}
footer .es-foot-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
footer .es-foot-cta__buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  height: 56px;
  padding: 0 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
footer .es-foot-cta__tel {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-size: 24px;
  letter-spacing: 0.12em;
}
footer .es-foot-cta__tel .icon {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.4em;
  background: url(../img/header/icon-tel.svg) no-repeat center / contain;
}
footer .es-foot-cta__mail {
  border: 1px solid #b18a3e;
  background: #b18a3e;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.15em;
}
@media (hover: hover) {
  footer .es-foot-cta__tel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
  }
  footer .es-foot-cta__mail:hover {
    background: #c49c52;
    border-color: #c49c52;
    color: #fff;
  }
  footer .es-foot-cta__buttons a:hover {
    transform: translateY(-2px);
  }
}
footer .es-foot-cta__buttons a:active {
  transform: scale(0.98);
}
@media only screen and (max-width: 770px) {
  footer {
    padding-top: 56px;
  }
  footer .es-foot-cta {
    margin-bottom: 44px;
    padding-bottom: 44px;
  }
  footer .es-foot-cta__buttons a {
    width: 100%;
    min-width: 0;
  }
}
/* 住所・営業時間 */
footer div.info {
  margin: 1.8em 0 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 2.1;
}
/* サイト内の主なページ */
footer .es-foot-nav {
  max-width: 1120px;
  margin: 2.4em auto 0;
  padding: 0 20px;
}
footer .es-foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
}
footer .es-foot-nav a {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.15em;
  opacity: 0.85;
  text-decoration: none;
  transition: color 0.3s, opacity 0.3s;
}
@media (hover: hover) {
  footer .es-foot-nav a:hover {
    color: #c9a565;
    opacity: 1;
  }
}
@media only screen and (max-width: 770px) {
  footer .es-foot-nav ul {
    gap: 12px 20px;
  }
}
/* プライバシーポリシー・Instagram */
footer div.menu {
  margin-top: 1.8em;
}
footer div.menu a {
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.7;
  text-decoration: none !important;
}
footer div.menu a:hover {
  opacity: 1;
}
footer div.sns {
  margin: 1.6em 0 0;
}
footer div.sns div.icon {
  transition: opacity 0.3s;
}
@media (hover: hover) {
  footer div.sns li:hover div.icon {
    opacity: 0.7;
  }
}
/* コピーライト：区切り線の下に小さく */
footer p.copy {
  max-width: 880px;
  margin: 2.6em auto 0;
  padding: 2em 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

/* =====================================================================
 * スタッフのページ（/stylist/）（2026-11）
 * 見出し（STYLIST）の下に「スタッフ紹介」。PC は写真が上のカードを 3 列、スマホは写真の横に文字
 * ===================================================================== */
.wrapperSmall.stylist .pagetitle {
  margin-bottom: 0.6em;
}
.wrapperSmall.stylist .es-page-sub {
  margin: 0 0 3.2em;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: #b18a3e;
}
.wrapperSmall.stylist .es-page-sub::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 12px;
  background: currentColor;
  vertical-align: middle;
}
ul#stylist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}
ul#stylist li {
  display: block;
  margin: 0;
}
ul#stylist div.thumb {
  width: 100%;
  background-color: #eee9e8;
}
ul#stylist div.thumb::after {
  padding-top: 125%; /* 4:5 の縦長に */
}
ul#stylist div.text {
  width: 100%;
  padding-top: 1.3em;
}
ul#stylist p.position {
  margin: 0 0 0.4em;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #b18a3e;
}
ul#stylist h3.name {
  word-break: keep-all; /* 「竹井 美奈 （てんちゃん）」が「てんちゃ／ん）」と途中で折れないように、空白のところで折り返す */
  overflow-wrap: anywhere;
  margin: 0;
  padding-bottom: 0.7em;
  border-bottom: 1px solid #e3dcdb;
  font-size: 1.25em;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: #402e2d;
}
ul#stylist div.introduction {
  margin-top: 0.9em;
}
ul#stylist div.introduction p {
  font-size: 0.88em;
  line-height: 1.9;
  white-space: pre-line; /* 自己紹介の改行をそのまま */
  color: #5a4a49;
}
ul#stylist div.introduction p:empty {
  display: none;
}
/* 本文のリンク（UIkit の青のまま）をサイトの色に */
ul#stylist div.introduction a {
  color: #b18a3e;
  text-decoration: underline;
  text-decoration-color: rgba(177, 138, 62, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s;
}
ul#stylist div.introduction a:hover {
  text-decoration-color: currentColor;
}
@media only screen and (max-width: 1270px) {
  ul#stylist {
    gap: 40px 24px;
  }
}
/* スマホ：写真の横に文字 */
@media only screen and (max-width: 770px) {
  .wrapperSmall.stylist .es-page-sub {
    margin-bottom: 2.2em;
  }
  ul#stylist {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  ul#stylist li {
    display: grid;
    grid-template-columns: 38% 1fr;
    gap: 18px;
    align-items: start;
    padding-bottom: 28px;
    border-bottom: 1px solid #efe9e8;
  }
  ul#stylist li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
  ul#stylist div.text {
    padding-top: 0.2em;
  }
  ul#stylist h3.name {
    font-size: 1.1em;
    padding-bottom: 0.5em;
  }
  ul#stylist div.introduction p {
    font-size: 0.8em;
    line-height: 1.8;
  }
}
