@charset "UTF-8";

/* ==========================================================
   茶寮 凛 / Header

   編集ガイド
   - PCヘッダー最大幅: 1400px
   - PC/SP切り替え: 900px
   - ブランドカラー・フォント: typo.css
========================================================== */

/* 01. 最小リセット */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* 02. ヘッダー本体 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #eee;
}

.header-inner {
  width: min(100%, 1400px);
  min-height: 50px;
  margin: auto;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 03. ロゴ・所在地・店名 */
.header-brand {
  flex: 0 0 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.header-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* PCでは屋号内の要素を従来どおり横並びに扱う */
.header-brand__text {
  display: contents;
}

.header-origin {
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  margin-left: 20px;
}

.header-brand strong {
  font-family: var(--rin-font-heading);
  font-size: 28.8px;
  letter-spacing: 1.92px;
}

.header-brand i {
  font-size: 19.2px;
  font-style: normal;
  font-weight: 400;
  margin: auto 0;
}

/* 04. PCナビゲーション */
.pc-nav {
  min-width: 0;
  margin-left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.pc-nav a {
  display: flex;
  align-items: center;
  font-family: sans-serif;
  font-size: 12.8px;
  text-decoration: none;
  white-space: nowrap;
}

.pc-nav a + a::before {
  content: "|";
  margin-inline: 4px;
  color: var(--rin-hojicha);
}

/* 05. PC LINEボタン */
.header-line {
  width: 140px;
  height: 40px;
  flex: 0 0 140px;
  display: grid;
  place-items: center;
  margin-left: 10px;
  padding: 0 8px;
  color: #fff;
  background: #06c755;
  border-radius: 10px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  font-size: 12px;
}

/* PCではSP専用UIを非表示 */
.hamburger,
.sp-nav {
  display: none;
}

/* ==========================================================
   06. SPヘッダー（900px以下）
========================================================== */
@media (max-width: 900px) {
  .header-inner {
    width: 100%;
    max-width: 390px;
    padding: 5px 0;
    display: grid;
    grid-template-columns: 20% 30% 30% 20%;
    gap: 0;
  }

  .header-brand {
    display: contents;
  }

  .header-brand img {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    width: 42px;
    height: 42px;
    margin-left: 10px;
  }

  .header-brand__text {
    display: contents;
  }

  .header-origin {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    margin-left: 0;
    font-size: 10.88px;
    white-space: nowrap;
  }

  .header-brand strong {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    min-width: 0;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 21.6px;
    line-height: 1;
  }

  .header-brand i {
    font-size: 15.2px;
    line-height: 1;
  }

  .pc-nav,
  .header-line {
    display: none;
  }

  /* ハンバーガーボタン */
  .hamburger {
    position: static;
    grid-column: 4;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    width: 38px;
    height: 38px;
    margin: 0 10px 0 0;
    padding: 8px;
    display: grid;
    align-content: space-around;
    transform: none;
    background: none;
    border: 0;
  }

  .hamburger span {
    display: block;
    height: 2px;
    background: #111;
    transition: .25s;
  }

  .hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* 開閉メニュー */
  .sp-nav {
    position: fixed;
    z-index: 99;
    top: 56px;
    left: 50%;
    width: min(100%, 390px);
    padding: 0 10px 10px;
    transform: translateX(-50%);
    background: #fff;
  }

  .sp-nav.is-open {
    display: block;
  }

  .sp-nav a {
    display: block;
    padding: 3px;
    font-family: Arial, sans-serif;
    font-size: 12.8px;
    letter-spacing: 2.56px;
    text-align: center;
    text-decoration: none;
    border-bottom: 1px dotted #777;
  }

  .sp-nav .sp-line {
    margin-top: 8px;
    padding: 6px;
    color: #fff;
    background: #06c755;
    border: 0;
    font-family: var(--rin-font-body);
  }

  body.menu-open {
    overflow: hidden;
  }
}
