@charset "UTF-8";
/* ============================================================
   ホテル・ボーネン｜ヘッダーとフッター
   ------------------------------------------------------------
   出典：デザイン仕様書_採寸_2026-08-14.md
       ＋ 採寸追補_2026-08-16（現行サイトの描画結果を実測して補った分）
   ※現行サイトのCSSは開いていない。ブラウザに描かれた結果だけを測っている
   ============================================================ */


/* ============================================================
   1. ヘッダー
   ------------------------------------------------------------
   写真の上に重ねて置く（背景は透明）。文字はすべて白。
   スマホではロゴだけになり、メニューも予約ボタンも消える。
   ============================================================ */

.hw-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 101px;
  padding-left: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: transparent;
  z-index: 10;
}

/* ロゴ（291×81px・ヘッダーの下辺にそろう＝上に20px） */
.hw-header__logo {
  margin: 20px 0 0;
  line-height: 0;
}
.hw-header__logo img { width: 291px; height: 81px; }

/* 右側のかたまり（メニュー＋予約ボタン） */
.hw-header__right {
  display: flex;
  align-items: center;   /* 予約ボタン(84px)の中央にメニューをそろえる */
  height: 84px;
}

/* メニューの最後の文字と予約ボタンのあいだ＝実測60px
   （うち20pxは項目の右マージンなので、ボタン側は34px） */
.hw-header__right .hw-btn-book { margin-left: 34px; }

/* --- メニュー --- */
.hw-nav { display: flex; align-items: center; }
/* 項目のあいだ＝40px（左右20pxずつ）。
   ※画面が狭くなると現行サイトは20pxに詰めるが、第1弾は1520pxの見え方に合わせる */
.hw-nav > li { margin: 0 20px; position: relative; }

.hw-nav > li > a {
  display: block;
  padding: 20px 0;
  font-family: var(--hw-font-en);
  font-size: 1.5rem;        /* 15px */
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.15em;   /* 2.25px */
  color: var(--hw-white);
  white-space: nowrap;
}

/* --- 引き出しメニュー（マウスを載せると出る） --- */
.hw-subnav {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}
.hw-nav > li:hover .hw-subnav,
.hw-nav > li:focus-within .hw-subnav {
  visibility: visible;
  opacity: 1;
}
.hw-subnav a {
  display: block;
  padding: 15px 5px;
  background: var(--hw-text-en);   /* #303030 */
  color: var(--hw-white);
  font-size: 1.3rem;        /* 13px */
  line-height: 1.4;         /* 18.2px */
  font-weight: 400;
  letter-spacing: 0.15em;   /* 1.95px */
  transition: opacity .3s ease;
}
.hw-subnav a:hover { opacity: .75; }

/* --- スマホのヘッダー（ロゴ＋三本線ボタン） --- */
@media screen and (max-width: 767px) {
  .hw-header {
    height: 83px;
    padding: 10px 3%;
    display: block;
  }
  .hw-header__logo { margin-top: 10px; }
  .hw-header__logo img { width: 190px; height: 53px; }
  .hw-header__right { display: none; }   /* 代わりに下の「6. スマホメニュー」が出る */
}


/* ============================================================
   2. トップのヒーロー（写真＋キャッチコピー）
   ============================================================ */

.hw-hero {
  position: relative;
  height: 930px;
  overflow: hidden;
}
.hw-hero__img { width: 100%; height: 100%; object-fit: cover; }

/* 3枚の写真がゆっくり入れ替わる（現行サイトと同じ動き。JavaScriptは使わない） */
.hw-hero__slides { position: absolute; inset: 0; }
.hw-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hw-hero-fade 18s infinite;
}
.hw-hero__slide:nth-child(1) { animation-delay:   0s; }
.hw-hero__slide:nth-child(2) { animation-delay:  -6s; }
.hw-hero__slide:nth-child(3) { animation-delay: -12s; }

@keyframes hw-hero-fade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  30%  { opacity: 1; }
  36%  { opacity: 0; }
  100% { opacity: 0; }
}

/* 動きを減らす設定の方には静止画で見せる */
@media (prefers-reduced-motion: reduce) {
  .hw-hero__slide { animation: none; }
  .hw-hero__slide:nth-child(1) { opacity: 1; }
}

.hw-hero__catch {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hw-hero__en {
  font-family: var(--hw-font-en);
  font-size: 10rem;         /* 100px */
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.03em;   /* 3px */
  color: var(--hw-white);
}
.hw-hero__ja {
  display: block;
  font-family: var(--hw-font-ja);
  font-size: 1.6rem;        /* 16px */
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.25em;   /* 4px */
  color: var(--hw-white);
  margin-top: 40px;
}

@media screen and (max-width: 767px) {
  .hw-hero     { height: 784px; }
  .hw-hero__en { font-size: 5rem; letter-spacing: 0.03em; }  /* 50px / 1.5px */
  .hw-hero__ja { font-size: 1.1rem; letter-spacing: 0.25em; margin-top: 20px; } /* 11px / 2.75px */
}


/* ============================================================
   3. 下層ページの上部ビジュアルとパンくず
   ============================================================ */

.hw-pagemv {
  height: 800px;
  background-position: 50% 0%;
  background-repeat: no-repeat;
  background-size: cover;
}

.hw-breadcrumb {
  padding-top: 30px;
  margin-bottom: 100px;
  font-size: 1.5rem;      /* 15px */
  color: var(--hw-text);
}
.hw-breadcrumb a:hover { text-decoration: underline; }

@media screen and (max-width: 767px) {
  .hw-pagemv    { height: 400px; }
  .hw-breadcrumb{ margin-bottom: 50px; font-size: 1.3rem; }
}


/* ============================================================
   4. フッター
   ============================================================ */

.hw-footer { background: var(--hw-bg-footer); }   /* #F2F2F2 */

/* --- PC --- */
.hw-footer__pc { padding: 100px 0 90px; }

.hw-footer__inner {
  display: flex;
  justify-content: space-between;
}

.hw-footer__logo { margin-bottom: 0; }
.hw-footer__logo img { width: 221px; height: 53px; }

.hw-footer__address {
  font-size: 1.4rem;        /* 14px */
  line-height: 2;           /* 28px */
  font-weight: 500;
  letter-spacing: 0.1em;    /* 1.4px */
  color: var(--hw-text);
  /* ロゴの下端から住所の上端まで＝実測84px（現行サイトの見た目に合わせた値） */
  margin: 84px 0 10px;
}

.hw-footer__sns { display: flex; gap: 30px; }
.hw-footer__sns a { display: inline-flex; align-items: center; gap: 8px; }
.hw-footer__sns img { width: 20px; height: 20px; }
.hw-footer__sns p {
  font-size: 1.5rem;        /* 15px */
  line-height: 2;           /* 30px */
  letter-spacing: 0.05em;   /* 0.75px */
  color: var(--hw-text);
}

/* サイトマップ（5列） */
.hw-footer__nav { display: flex; gap: 40px; padding-top: 20px; }
.hw-footer__nav dt {
  font-family: var(--hw-font-en);
  font-size: 1.5rem;        /* 15px */
  line-height: 2;           /* 30px */
  font-weight: 500;
  letter-spacing: 0.05em;   /* 0.75px */
  color: var(--hw-text);
  margin-bottom: 10px;
  white-space: nowrap;
}
.hw-footer__nav dd {
  font-size: 1.5rem;        /* 15px */
  line-height: 2;           /* 30px */
  font-weight: 500;
  letter-spacing: 0.05em;   /* 0.75px */
  color: var(--hw-text);
  margin-bottom: 5px;
  white-space: nowrap;
}
.hw-footer__nav dd a:hover { opacity: .7; }

/* コピーライト */
.hw-copyright { padding-bottom: 90px; }
.hw-copyright small {
  font-size: 1.4rem;        /* 14px */
  color: var(--hw-sub-light); /* #999999 */
}

/* --- スマホのフッター --- */
.hw-footer__sp { display: none; }

@media screen and (max-width: 767px) {
  .hw-footer__pc,
  .hw-copyright   { display: none; }
  .hw-footer__sp  { display: block; padding-bottom: var(--hw-spbar-h); }

  .hw-footer__sp .hw-footer__address {
    font-size: 1.3rem;      /* 13px */
    line-height: 2;         /* 26px */
    letter-spacing: 0.1em;  /* 1.3px */
    margin: 0;
    padding: 30px 0;
  }
}


/* ============================================================
   5. スマホの下に固定されるバー（4つ）
   ------------------------------------------------------------
   ご予約 ／ Hotel Wohnen ／ 厨房2446 ／ PAGETOP
   ※採寸表には「3つ」と書いてあるが実物は4つ（2026-08-16に訂正）
   ============================================================ */

.hw-spbar { display: none; }

@media screen and (max-width: 767px) {
  .hw-spbar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--hw-spbar-h);   /* 60px */
    z-index: 5;
  }
  .hw-spbar ul { display: flex; height: 100%; }
  .hw-spbar li {
    flex: 1;
    border-right: 1px solid var(--hw-white);
  }
  .hw-spbar li:last-child { border-right: 0; }

  .hw-spbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 59px;
    background: var(--hw-text-en);   /* #303030 */
  }
  .hw-spbar span {
    position: relative;
    display: block;
    padding-top: 30px;               /* この30pxがアイコンの場所 */
    font-size: 1rem;                 /* 10px */
    line-height: 1.4;                /* 14px */
    font-weight: 500;
    letter-spacing: 0.05em;          /* 0.5px */
    color: var(--hw-white);
    text-align: center;
  }
  /* アイコン（30×30px）。画像は自前で用意する */
  .hw-spbar span::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }
}


/* ============================================================
   6. スマホメニュー（三本線ボタン＋上から降りる引き出し）
   ------------------------------------------------------------
   767px以下でだけ出る。PC幅では存在しないのと同じ扱い。
   出典：2026-08-17に現行サイトの描画結果を375px幅で実測した値
        （getComputedStyle＝描かれた結果のみ。相手のCSSは開いていない）
   ============================================================ */

.hw-spmenu,
.hw-spmenu-btn { display: none; }

@media screen and (max-width: 767px) {

  /* --- 三本線ボタン（画面の右上・100×100px） ----------------- */
  .hw-spmenu-btn {
    display: flex;
    position: absolute;      /* 現行サイトと同じ＝下へスクロールすると流れて消える */
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 9999;           /* 引き出し(999)より上＝開いたままでも押せる */
  }

  /* 線と文字のかたまり（50×57px・右そろえ） */
  .hw-spmenu-btn__in {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 50px;
  }

  /* 3本の線＝長さが 50 / 32 / 23px の段違い（現行サイトの実測） */
  .hw-spmenu-btn__line {
    display: block;
    height: 1px;
    background: var(--hw-white);
    transition: width .3s ease, transform .3s ease, opacity .3s ease;
  }
  .hw-spmenu-btn__line:nth-child(1) { width: 50px; margin-bottom:  8px; }
  .hw-spmenu-btn__line:nth-child(2) { width: 32px; margin-bottom:  8px; }
  .hw-spmenu-btn__line:nth-child(3) { width: 23px; margin-bottom: 10px; }

  .hw-spmenu-btn__txt {
    font-family: var(--hw-font-ja);
    font-size: 1.4rem;        /* 14px */
    line-height: 2;           /* 28px */
    font-weight: 500;
    letter-spacing: 0.05em;   /* 0.7px */
    color: var(--hw-white);
  }

  /* 開いているとき＝上下の線が中央で交わって × になり、真ん中の線は消える
     （線の中心は上から 22.5 / 31.5 / 40.5px なので ±9px で重なる） */
  .hw-spmenu-btn.is-open .hw-spmenu-btn__line:nth-child(1) {
    width: 50px;
    transform: translateY(9px) rotate(45deg);
  }
  .hw-spmenu-btn.is-open .hw-spmenu-btn__line:nth-child(2) { opacity: 0; }
  .hw-spmenu-btn.is-open .hw-spmenu-btn__line:nth-child(3) {
    width: 50px;
    transform: translateY(-9px) rotate(-45deg);
  }


  /* --- 引き出しメニュー（画面いっぱい・上から降りてくる） ------ */
  .hw-spmenu {
    display: block;
    position: fixed;
    inset: 0;                     /* 上下左右0＝画面いっぱい */
    z-index: 999;
    overflow-y: auto;
    /* 引き出しの中を指ではらったとき、裏のページまで一緒に動かない
       （動くとボタンが画面の外へ流れて、閉じられなくなるため） */
    overscroll-behavior: contain;
    background-color: var(--hw-text-en);   /* #303030 */
    background-image: url("../img/_karioki/humnavi_bg.png");
    background-repeat: no-repeat;
    background-size: 190%;
    background-position: 50% 100%;
    transform: translateY(-100%);          /* 閉じているときは画面の上に隠す */
    visibility: hidden;                    /* 隠れている間はキーボードでも触れない */
    transition: transform .4s ease, visibility .4s;
  }
  .hw-spmenu.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  /* ロゴ（200pxの枠を中央に・上80px／下40px） */
  .hw-spmenu__logo {
    width: 200px;
    margin: 0 auto;
    padding: 80px 0 40px;
    text-align: center;
    line-height: 0;
  }
  /* ロゴの元データはフッター用（濃い色）なので、白に反転して使う
     ＝現行サイトの引き出しの中も白いロゴ */
  .hw-spmenu__logo img {
    width: 197px;
    height: 48px;
    filter: brightness(0) invert(1);
  }

  /* 一覧（左右5%あけ） */
  .hw-spmenu__nav { margin: 0 5%; }

  .hw-spmenu__item {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, .4);
  }

  /* 1段目の項目（68px＝18px＋上下25px） */
  .hw-spmenu__link {
    display: block;
    width: 100%;
    padding: 25px 20px;
    border: 0;
    background: transparent;
    font-family: var(--hw-font-en);   /* Playfair Display SC */
    font-size: 1.8rem;                /* 18px */
    line-height: 1;                   /* 18px */
    font-weight: 400;
    letter-spacing: 0.04em;           /* 0.72px */
    color: var(--hw-white);
    text-align: left;
    cursor: pointer;
  }

  /* 子を持つ項目の右端の矢印（14px角・線1px。閉＝下向き／開＝上向き） */
  .hw-spmenu__item.has-sub::before {
    content: "";
    position: absolute;
    top: 24px;
    right: 20px;
    width: 14px;
    height: 14px;
    border-top: 1px solid var(--hw-white);
    border-right: 1px solid var(--hw-white);
    transform: rotate(135deg);
    transition: top .2s ease-in-out, transform .2s ease-in-out;
  }
  .hw-spmenu__item.is-open::before {
    top: 32px;
    transform: rotate(-45deg);
  }

  /* 2段目（たたまれている。親を押すと開く） */
  .hw-spmenu__sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .hw-spmenu__item.is-open > .hw-spmenu__sub { max-height: 300px; }

  .hw-spmenu__sub li { border-bottom: 1px solid rgba(255, 255, 255, .4); }
  .hw-spmenu__sub li:last-child { border-bottom: 0; }

  /* 2段目の項目（47px＝13px＋上下17px・背景が少し明るい） */
  .hw-spmenu__sublink {
    display: block;
    padding: 17px 20px;
    background: rgba(255, 255, 255, .3);
    font-size: 1.3rem;         /* 13px */
    line-height: 1;            /* 13px */
    font-weight: 400;
    letter-spacing: 0.72px;    /* 1段目から受け継ぐ値と同じ（現行サイトの実測） */
    color: var(--hw-white);
    text-align: left;
  }

  /* いちばん下に余白（引き出しを下までスクロールしたとき文字が詰まらないように） */
  .hw-spmenu__nav { padding-bottom: 60px; }
}

/* 動きを減らす設定の方には、すべりを付けない */
@media (prefers-reduced-motion: reduce) {
  .hw-spmenu,
  .hw-spmenu__sub,
  .hw-spmenu-btn__line,
  .hw-spmenu__item.has-sub::before { transition: none; }
}
