/* =========================================================
   おもてなしLABO — 共通（ヘッダー / フッター）全ページで読み込み
   ========================================================= */
:root {
  --navy-900: #071a3d;
  --navy-800: #0b2557;
  --navy-700: #0f3a8c;   /* ロゴの濃紺 */
  --sky-500: #36a9e1;    /* ロゴの水色 */
  --sky-100: #e6f3fb;
  --gold: #a88b5a;
  --gold-soft: #cdb98f;
  --ivory: #faf8f3;
  --paper: #ffffff;
  --ink: #1d2433;
  --ink-soft: #565e6e;
  --line: #e2ddd2;

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --en: "Cormorant Garamond", "Times New Roman", serif;

  --header-h: 76px;
  --container: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

.olab-container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.header ul, .footer ul { margin: 0; padding: 0; list-style: none; }
.header a, .footer a { text-decoration: none; }
.footer p { margin: 0; }
.header img, .footer img { display: block; max-width: 100%; height: auto; }
body.is-locked { overflow: hidden; }

/* Astra のボタンスタイルを打ち消す */
.header .menu-btn, .header .menu-btn:hover, .header .menu-btn:focus {
  padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; line-height: 1;
}

/* 管理バー表示時 */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.header:is(.is-scrolled, .is-solid) { background: rgba(255,255,255,.94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.header__inner { height: 100%; width: min(100% - 40px, 1280px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: auto; transition: filter .4s; filter: brightness(0) invert(1); }
.brand__text { display: flex; flex-direction: column; line-height: 1.3; color: #fff; transition: color .4s; }
.brand__ja { font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: .14em; }
.brand__en { font-family: var(--en); font-size: 11px; letter-spacing: .32em; opacity: .8; }
.header:is(.is-scrolled, .is-solid) .brand__mark, .header.is-open .brand__mark { filter: none; }
.header:is(.is-scrolled, .is-solid) .brand__text, .header.is-open .brand__text { color: var(--navy-700); }

.nav ul { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 13px; letter-spacing: .1em; color: #fff; position: relative; padding: 4px 0; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header:is(.is-scrolled, .is-solid) .nav a { color: var(--ink); }
.nav__cta a { border: 1px solid currentColor; padding: 8px 20px; }
.nav__cta a::after { display: none; }
.header:is(.is-scrolled, .is-solid) .nav__cta a { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.menu-btn span { position: absolute; left: 10px; width: 24px; height: 1px; background: #fff; transition: transform .4s var(--ease), top .4s var(--ease), background .3s; }
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 26px; }
.header:is(.is-scrolled, .is-solid) .menu-btn span, .header.is-open .menu-btn span { background: var(--navy-700); }
.header.is-open .menu-btn span:nth-child(1) { top: 22px; transform: rotate(30deg); }
.header.is-open .menu-btn span:nth-child(2) { top: 22px; transform: rotate(-30deg); }

@media (max-width: 1024px) {
  .menu-btn { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--ivory);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .header.is-open .nav { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 22px; }
  .nav a, .header:is(.is-scrolled, .is-solid) .nav a { color: var(--ink); font-family: var(--serif); font-size: 17px; }
  .nav__cta a, .header:is(.is-scrolled, .is-solid) .nav__cta a { background: var(--navy-700); color: #fff !important; border-color: var(--navy-700); padding: 10px 32px; }
  .header.is-open { background: transparent; box-shadow: none; }
}


/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--navy-900); color: rgba(255,255,255,.8); padding: 72px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { width: 40px; }
.footer__name { font-family: var(--serif); font-size: 17px; letter-spacing: .14em; color: #fff; line-height: 1.6; }
.footer__sub { font-family: var(--en); font-size: 12px; letter-spacing: .32em; line-height: 1.4; }
.footer__addr { margin-top: 10px !important; font-size: 12px; letter-spacing: .08em; line-height: 1.7; color: rgba(255,255,255,.7); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; }
.footer__nav a:hover { color: #fff; }
.footer__copy { text-align: center; margin-top: 28px; font-family: var(--en); font-size: 12px; letter-spacing: .14em; color: rgba(255,255,255,.55); }

.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px;
  background: var(--navy-700); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s, background .3s;
}
.totop::before { content: ""; position: absolute; left: 50%; top: 54%; width: 10px; height: 10px; border-left: 1px solid #fff; border-top: 1px solid #fff; transform: translate(-50%, -50%) rotate(45deg); }
.totop.is-show { opacity: 1; visibility: visible; }
.totop:hover { background: var(--gold); }

@media (max-width: 640px) {
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .footer__nav { gap: 10px 22px; }
  .footer { padding-bottom: 88px; }
  .footer__copy { letter-spacing: .08em; }
}

/* 文節改行スクリプト適用後：<wbr> の位置でのみ改行（長すぎる語だけは折り返し） */
.is-phrased .footer,
.is-phrased .entry-title, .is-phrased .entry-content { word-break: keep-all; overflow-wrap: break-word; }
