@charset "UTF-8";
/**
 * layout.scss
 * FLOCSS Layout 層。全ページ共通の枠（ヘッダー・フッター）を束ね、
 * theme/assets/css/layout.css として出力する（functions.php で全ページに enqueue）。
 * 各パーツは編集しやすいよう partial に分割している。
 */
/**
 * _token.scss — サイト共通デザイントークン（黒基調プレミアム）
 * layout.scss から @use されて layout.css の先頭に出力される。
 * --line のみヘッダー(0.28)/フッター(0.24)で alpha 値が異なるため各スコープに残留。
 */
:root {
  --ink: #f6efe3;
  --ink-muted: #b9ad9c;
  --surface: #15120f;
  --surface-2: #221b16;
  --accent: #b8975c;
}

/**
 * _l-header.scss — サイト共通ヘッダー（FLOCSS Layout 層）
 * 「黒基調プレミアム」案（旧 Pattern B）を正式採用したもの。
 * スコープルートは .l-header。#header-container は Cocoon 親テーマ構造の
 * id を踏襲し padding 等を上書きする。
 * 旧 A/C 案と URL 切替の仕組みは _dev/header-footer-archive/ を参照。
 * layout.scss から @use され theme/assets/css/layout.css に出力される。
 */
.l-header {
  --line: rgba(246, 239, 227, 0.28);
}

#header-container.l-header {
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
}

.l-header__inner,
.l-header__main,
.l-header__util {
  box-sizing: border-box;
}

.l-header__inner {
  background: linear-gradient(90deg, rgba(184, 151, 92, 0.12), transparent 34%, rgba(184, 151, 92, 0.08)), var(--surface);
  border-bottom: 1px solid var(--accent);
  color: var(--ink);
}

.l-header__util {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 8px 34px 0;
  color: var(--ink-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.l-header__search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.l-header__search:hover,
.l-header__lang a:hover {
  color: var(--ink);
}

.l-header__search svg {
  width: 11px;
  height: 11px;
}

.l-header__lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.l-header__lang a {
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0 2px;
  transition: color 0.2s;
}

.l-header__lang a.is-active {
  color: var(--ink);
}

.l-header__lang-sep {
  color: rgba(246, 239, 227, 0.35);
}

.l-header__main {
  display: grid;
  grid-template-columns: minmax(190px, auto) 1fr auto;
  align-items: center;
  gap: 44px;
  padding: 18px 34px 22px;
}

.l-header__logo {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.l-header__logo img {
  display: block;
  height: 82px;
  width: auto;
  filter: invert(1) brightness(1.18) sepia(0.1);
}

.l-header__nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.l-header__nav-list {
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-header__nav-list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-header__nav-list li::before {
  content: none;
}

.l-header__nav-link {
  position: relative;
  display: inline-block;
  color: var(--ink);
  font-family: "Shippori Mincho", serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-decoration: none;
  white-space: nowrap;
}

.l-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}

.l-header__nav-link:hover::after {
  transform: scaleX(1);
}

.l-header__cta {
  display: flex;
  gap: 10px;
}

.l-header__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  background: rgba(184, 151, 92, 0.08);
  color: var(--ink);
  font-family: "Shippori Mincho", serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}

.l-header__cta-btn:hover {
  background: var(--accent);
  color: var(--surface);
}

.l-header__cta-arrow {
  position: relative;
  display: inline-block;
  width: 11px;
  height: 11px;
}

.l-header__cta-arrow::before {
  content: "";
  position: absolute;
  width: 1.4px;
  height: 13px;
  left: 5px;
  top: -1px;
  background: currentcolor;
  transform: rotate(45deg);
  transform-origin: center;
}

.l-header__cta-arrow::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-top: 1.4px solid currentcolor;
  border-right: 1.4px solid currentcolor;
  right: 0;
  top: 0;
}

/**
 * レスポンシブ折り返しの中身をミックスイン化する。
 * ロゴ｜ナビ｜CTA の 3 カラム（中央ナビは white-space:nowrap で縮まない）は、
 * ナビの実寸がカラム幅を超えると中央基準ではみ出し、左でロゴに重なり右で画面外へ出る。
 * その閾値はナビ文言の長さで決まるため、日本語（短い）と英語（長い）で分ける。
 * - collapse: 3→2 カラム（CTA を独立行へ）
 * - stack:    2→1 カラム（縦積み・ナビは折り返し）
 */
@media (max-width: 1100px) {
  .l-header__main {
    grid-template-columns: auto 1fr;
    gap: 24px;
  }
  .l-header__cta {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
}
@media (max-width: 767px) {
  .l-header__util {
    justify-content: center;
    padding: 8px 18px 0;
  }
  .l-header__main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 20px 22px;
    text-align: center;
  }
  .l-header__logo {
    justify-self: center;
  }
  .l-header__logo img {
    height: 58px;
  }
  .l-header__nav {
    justify-content: center;
  }
  .l-header__nav-list {
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  }
  .l-header__nav-link {
    font-size: 13px;
    letter-spacing: 0.12em;
  }
  .l-header__cta {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }
  .l-header__cta-btn {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    gap: 6px;
    padding: 0 6px;
    font-size: clamp(11px, 3.2vw, 12px);
    letter-spacing: 0.08em;
  }
  .l-header__cta-btn:only-child {
    flex: 0 1 auto;
  }
}
/**
 * 英語ヘッダーの閾値。
 * ナビ実寸 ≈ 673px（HOME / OUR PRODUCTS / SAKURAO DISTILLERY / OUR BUSINESS）で
 * 日本語より大幅に広い。3 カラムが収まるには
 *   ロゴ202 + gap44 + ナビ673 + gap44 + CTA≈180 + 左右padding68 ≈ 1211px
 * が必要なため 1240px で 2 カラムへ、
 * 2 カラム（ロゴ202 + gap24 + ナビ673 + padding68 ≈ 967px）が破綻する前に
 * 1000px で縦積みへ切り替える。修飾子で詳細度が上がり日本語の指定に勝つ。
 */
@media (max-width: 1240px) {
  .l-header--en .l-header__main {
    grid-template-columns: auto 1fr;
    gap: 24px;
  }
  .l-header--en .l-header__cta {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
}
@media (max-width: 1000px) {
  .l-header--en .l-header__util {
    justify-content: center;
    padding: 8px 18px 0;
  }
  .l-header--en .l-header__main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 20px 22px;
    text-align: center;
  }
  .l-header--en .l-header__logo {
    justify-self: center;
  }
  .l-header--en .l-header__logo img {
    height: 58px;
  }
  .l-header--en .l-header__nav {
    justify-content: center;
  }
  .l-header--en .l-header__nav-list {
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  }
  .l-header--en .l-header__nav-link {
    font-size: 13px;
    letter-spacing: 0.12em;
  }
  .l-header--en .l-header__cta {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }
  .l-header--en .l-header__cta-btn {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    gap: 6px;
    padding: 0 6px;
    font-size: clamp(11px, 3.2vw, 12px);
    letter-spacing: 0.08em;
  }
  .l-header--en .l-header__cta-btn:only-child {
    flex: 0 1 auto;
  }
}

/**
 * 検索オーバーレイ（.l-search）
 * ヘッダーの SEARCH クリックで全画面に黒幕＋大きめの検索窓を表示する。
 * マークアップは tmp/header-container.php、開閉は assets/js/layout-header.js。
 * .is-open の付け外しで opacity/visibility を切り替える。
 */
.l-search {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.l-search.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.l-search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.88);
  backdrop-filter: blur(6px);
}

.l-search__panel {
  position: relative;
  box-sizing: border-box;
  width: min(720px, 100% - 48px);
  margin-top: clamp(120px, 24vh, 220px);
  transform: translateY(14px);
  transition: transform 0.35s ease;
}

.l-search.is-open .l-search__panel {
  transform: translateY(0);
}

.l-search__form {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--line, rgba(246, 239, 227, 0.28));
  transition: border-color 0.25s;
}

.l-search__form:focus-within {
  border-color: var(--accent);
}

.l-search__icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.l-search .l-search__input {
  flex: 1;
  min-width: 0;
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-family: "Shippori Mincho", serif;
  font-size: clamp(18px, 3vw, 26px);
  letter-spacing: 0.08em;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  outline: none;
}

.l-search .l-search__input::-moz-placeholder {
  color: var(--ink-muted);
  opacity: 0.7;
}

.l-search .l-search__input::placeholder {
  color: var(--ink-muted);
  opacity: 0.7;
}

.l-search .l-search__input::-webkit-search-decoration,
.l-search .l-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
          appearance: none;
}

.l-search__close {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--ink-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}

.l-search__close:hover {
  color: var(--ink);
}

.l-search__esc {
  padding: 3px 6px;
  border: 1px solid var(--line, rgba(246, 239, 227, 0.28));
  border-radius: 3px;
}

body.is-search-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .l-search__panel {
    margin-top: 96px;
  }
  .l-search__form {
    gap: 12px;
  }
  .l-search__icon {
    width: 18px;
    height: 18px;
  }
}
/**
 * _l-footer.scss — サイト共通フッター（FLOCSS Layout 層）
 * 「黒基調プレミアム」案（旧 Pattern B）を正式採用したもの。
 * スコープルートは .l-footer。footer-bottom は Cocoon 親テーマ構造の
 * クラスを踏襲し装飾を上書きする。
 * 旧 A/C 案と URL 切替の仕組みは _dev/header-footer-archive/ を参照。
 * layout.scss から @use され theme/assets/css/layout.css に出力される。
 */
/*
 * Cocoon の #footer-in（.wrap）は中央寄せの幅制約コンテナで、その内側から
 * width:100vw + margin-left:calc(50% - 50vw) で全幅化していたが、100vw は
 * スクロールバー幅を含むため縦スクロールのあるページで約7pxの横はみ出しが
 * 出る（VISUAL-01）。制約側を footer 内に限って解除し、各セクションは
 * width:100% で自然に全幅化する。
 */
/* stylelint-disable-next-line selector-class-pattern -- .footer-in は Cocoon 親テーマ出力（改名不可） */
#footer .footer-in {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.l-footer {
  --line: rgba(246, 239, 227, 0.24);
  display: block;
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
}

.l-footer::before,
.l-footer::after {
  content: none;
}

.l-footer__main {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px 54px;
  box-sizing: border-box;
  width: 100%;
  padding: 48px 38px;
  background: linear-gradient(90deg, rgba(184, 151, 92, 0.1), transparent 42%, rgba(184, 151, 92, 0.08)), var(--surface);
  border-top: 1px solid var(--accent);
}

.l-footer__logo {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.l-footer__logo img {
  display: block;
  height: 64px;
  width: auto;
  filter: invert(1) brightness(1.18) sepia(0.1);
}

.l-footer__nav {
  display: flex;
  justify-content: flex-end;
  /* legacy(_legacy-layout .footer-nav) 依存を内包＝common.css 非依存化 */
  max-width: 1020px;
  margin: 0 auto;
}

/* PC のみ: legacy base font-size:20px 相当（SP は legacy 側で別指定だったため除外） */
@media screen and (min-width: 812px) {
  .l-footer__nav {
    font-size: 20px;
  }
}
.l-footer__nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-footer__nav-list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-footer__nav-list li::before {
  content: none;
}

.l-footer__nav-link {
  position: relative;
  color: var(--ink);
  font-family: "Shippori Mincho", serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  white-space: nowrap;
}

.l-footer__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}

.l-footer__nav-link:hover::after {
  transform: scaleX(1);
}

.l-footer__social {
  grid-column: 2;
  justify-self: end;
}

.l-footer__social-list {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-footer__social-list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-footer__social-list li::before {
  content: none;
}

.l-footer__social-list a {
  display: block;
  width: 26px;
  height: 26px;
  line-height: 0;
}

.l-footer__social-list img {
  display: block;
  width: 100%;
  height: 100%;
  filter: invert(1) brightness(1.18) sepia(0.1);
}

.l-footer__company {
  box-sizing: border-box;
  width: 100%;
  padding: 24px 38px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.9;
  text-align: center;
}

.l-footer__company p {
  margin: 0;
}

.l-footer__company p + p {
  margin-top: 0.35em;
}

.l-footer__company a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.l-footer__copyright {
  box-sizing: border-box;
  width: 100%;
  padding: 16px 32px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .l-footer__main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 24px;
    text-align: center;
  }
  .l-footer__logo {
    justify-self: center;
  }
  .l-footer__logo img {
    height: 58px;
  }
  .l-footer__nav {
    justify-content: center;
  }
  .l-footer__nav-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
  }
  .l-footer__nav-link {
    font-size: 13px;
    letter-spacing: 0.12em;
  }
  .l-footer__social {
    grid-column: auto;
    justify-self: center;
  }
  .l-footer__company {
    padding: 20px 24px;
    font-size: 11px;
    text-align: left;
  }
  .l-footer__copyright {
    padding: 15px 20px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }
}
