/* =========================================================
   SEAGULL FOUR — Header / Footer Shared Parts
   サブページ共用版
   ========================================================= */

:root {
  --color-bg: #F4F7FA;
  --color-fg: #0A1628;
  --color-card: #E8EDF3;
  --color-muted: #5E6E85;
  --color-accent: #1B4F8A;
  --color-border: rgba(10, 22, 40, 0.1);
  --font-display: 'Shippori Mincho B1', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-mono: 'DM Mono', monospace;
}


/* Host page protection */
header#site-hdr{
margin-top:0;
}
#site-hdr,
#site-hdr *,
.sf-site-footer,
.sf-site-footer *,
.search-panel,
.search-panel *,
.search-overlay {
  box-sizing: border-box;
}

#site-hdr a,
.sf-site-footer a,
.search-panel a {
  text-decoration: none;
}

#site-hdr button,
.search-panel button {
  margin: 0;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

#site-hdr img,
.sf-site-footer img {
  max-width: 100%;
  display: block;
}

#site-hdr ul,
.sf-site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#site-hdr p,
.sf-site-footer p {
  margin: 0;
}

/*
  固定ヘッダー分の余白について：
  組み込み先のメインコンテンツ側で既に余白を確保している場合があるため、
  この共通CSSでは body / main / .page-wrap へ自動paddingを入れていません。
  必要なページのみ下記クラスをメインラッパーへ付与してください。
*/
.sf-header-offset {
  padding-top: 108px;
}

@media (max-width: 768px) {
  .sf-header-offset {
    padding-top: 94px;
  }
}

@media (max-width: 480px) {
  .sf-header-offset {
    padding-top: 92px;
  }
}


/* =========================================================
   HEADER
   ========================================================= */
#site-hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

/* Tier 1 — dark bar */
.hd-top {
  background: var(--color-fg);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.hd-top-in {
  position: relative;
  max-width: 1280px;
  height: 40px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.hd-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-width: 0;
  white-space: nowrap;
}

.hd-links.r {
  justify-content: flex-end;
}

.hd-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .6);
  transition: color .3s;
}

.hd-links a:hover {
  color: #fff;
}

.hd-seagull-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hd-seagull-logo a {
  display: flex;
  align-items: center;
  opacity: .8;
  transition: opacity .3s;
}

.hd-seagull-logo a:hover {
  opacity: 1;
}

.hd-seagull-logo svg {
  display: block;
  width: auto;
  height: 24px;
}

@media (max-width: 1024px) {
  .hd-top-in {
    padding: 0 1.5rem;
  }

  .hd-links {
    gap: .875rem;
  }

  .hd-links a {
    font-size: 10px;
    letter-spacing: .1em;
  }
}

@media (max-width: 768px) {
  .hd-top {
    display: block;
  }

  .hd-top-in {
    height: 34px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  /* SPでは左側補助リンクを非表示。右側3リンクはすべて残す */
  .hd-links:not(.r) {
    display: none;
  }

  .hd-seagull-logo {
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .hd-seagull-logo svg {
    height: 20px;
  }

  .hd-links.r {
    display: flex;
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: .625rem;
    min-width: 0;
  }

  .hd-links.r a {
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .hd-top-in {
    height: 32px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .375rem;
  }

  .hd-seagull-logo {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .hd-seagull-logo svg {
    height: 18px;
  }

  .hd-links.r {
    width: auto;
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: .45rem;
  }

  .hd-links.r a {
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
  }
}

/* Tier 2 — main nav */
.hd-main {
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  background: transparent;
  transition: background .4s, border-color .4s;
}

.hd-main-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 767px) and (max-width: 900px) {
  .hd-main-in {
    padding: 0 1rem;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .hd-main-in {
    height: 60px;
    padding: 0 1.5rem;
  }
}

/* When hero is present (index.html), default nav is transparent/white text */
.hero-page .hd-main {
  background: transparent;
  border-color: rgba(255, 255, 255, .15);
}

.hero-page header.scrolled .hd-main {
  background: rgba(244, 247, 250, .97);
  backdrop-filter: blur(20px);
  border-color: var(--color-border);
}

.hero-page header.menu-open .hd-main {
  background: rgba(244, 247, 250, .97);
  backdrop-filter: blur(20px);
  border-color: var(--color-border);
}

/* Non-hero pages: always solid */
.solid-header .hd-main {
  background: rgba(244, 247, 250, .97);
  backdrop-filter: blur(20px);
  border-color: var(--color-border);
}

/* Logo */
.hd-logo {
  flex-shrink: 0;
}

.hd-logo a {
  display: block;
  transition: opacity .3s;
}

.hd-logo a:hover {
  opacity: .75;
}

/* Header logo image */
.hd-logo-img {
  display: block;
  width: auto;
  height: 18px;
  transition: filter .4s, opacity .3s;
}

/* Hero page — navy SVG is rendered white before scroll */
.hero-page .hd-logo-img {
  filter: brightness(0) invert(1);
}

.hero-page header.scrolled .hd-logo-img,
.hero-page header.menu-open .hd-logo-img,
.solid-header .hd-logo-img {
  filter: none;
}

/* Nav links */
nav.hd-nav{
border:none;
}
.hd-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  padding-left: 2.5rem;
}

@media (min-width: 768px) and (max-width: 900px) {
  .hd-nav {
    padding-left: 0rem;
  }
}

@media (max-width: 768px) {
  .hd-nav {
    display: none;
  }
}

.hd-nav a,
.hd-drop-btn {
  font-size: 12px;
  letter-spacing: .15em;
  transition: color .3s;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

/* Hero nav text colour */
.hero-page .hd-nav a,
.hero-page .hd-drop-btn {
  color: rgba(255, 255, 255, .8);
}

.hero-page header.scrolled .hd-nav a,
.hero-page header.scrolled .hd-drop-btn,
.hero-page header.menu-open .hd-nav a,
.hero-page header.menu-open .hd-drop-btn {
  color: var(--color-muted);
}

.solid-header .hd-nav a,
.solid-header .hd-drop-btn {
  color: var(--color-muted);
}
#site-hdr.solid-header button.hd-drop-btn{
font-family:"Noto Sans JP", sans-serif;
}
.hd-nav a:hover,
.hd-drop-btn:hover {
  color: var(--color-fg) !important;
}

/* Dropdown */
.hd-drop {
  position: relative;
}

.hd-drop-btn {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hd-drop::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  z-index: 99;
}

.hd-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 32px rgba(10, 22, 40, .12);
  min-width: 200px;
  z-index: 100;
}

.hd-drop:hover .hd-drop-menu,
.hd-drop:hover::after+.hd-drop-menu {
  display: block;
}

.hd-drop:hover .hd-drop-menu {
  display: block;
}

.hd-drop-menu a {
  display: block;
  padding: .75rem 1.5rem;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--color-muted) !important;
  border-bottom: 1px solid rgba(10, 22, 40, .07);
  transition: all .2s;
}

.hd-drop-menu a:hover {
  color: var(--color-fg) !important;
  background: rgba(10, 22, 40, .04);
}

.hd-drop-menu a:last-child {
  border-bottom: none;
}

/* Icon cluster */
.hd-icons {
  display: flex;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .hd-icons {
    display: none;
  }
}

.hd-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: color .3s;
  position: relative;
}

.hd-icon:hover {
  color: var(--color-fg) !important;
}

.hd-icon span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  line-height:1.5;
}

.hd-icon span#BasketSummary {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  border-radius: 100%;
  background-color: var(--color-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: 0;
  color: #fff;
}

.hero-page .hd-icons .hd-icon {
  color: rgba(255, 255, 255, .8);
}

.hero-page header.scrolled .hd-icons .hd-icon,
.hero-page header.menu-open .hd-icons .hd-icon {
  color: var(--color-muted);
}

.solid-header .hd-icons .hd-icon {
  color: var(--color-muted);
  background-color: transparent;
}

.hero-page .solid-header .hd-icons .hd-icon#srch-btn {
  gap: 6px 4px;
}

/* Hamburger */
.hamburger {
  display: none;
  padding: 4px;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
}

.hero-page .hamburger {
  color: #fff;
}

.hero-page header.scrolled .hamburger,
.hero-page header.menu-open .hamburger {
  color: var(--color-fg);
}

.solid-header button.hamburger {
  color: var(--color-fg);
  background-color: transparent;
}

/* Mobile menu */
.mob-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(244, 247, 250, .97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 1.5rem;
  flex-direction: column;
  gap: 1.75rem;
}

.mob-menu.open {
  display: flex;
}

.mob-menu a {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: .2em;
  color: var(--color-muted);
}

.mob-menu-utility {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: .5rem;
  border: 1px solid var(--color-border);
  background: var(--color-border);
}

.mob-menu .mob-menu-utility__item {
  min-width: 0;
  min-height: 64px;
  padding: .75rem .5rem;
  border: 0;
  background: var(--color-card);
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .12em;
  text-align: center;
  cursor: pointer;
}

.mob-menu .mob-menu-utility__item:hover {
  background: #fff;
  color: var(--color-fg);
}

.mob-menu .mob-menu-utility__item svg {
  flex: 0 0 auto;
}



/* =========================================================
   FOOTER
   ========================================================= */
.sf-site-footer {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  font-family: "Noto Sans JP", sans-serif;
}

.ft-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

@media (max-width: 768px) {
  .ft-in {
    padding: 3rem 1.5rem;
  }
}

.ft-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .ft-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.ft-logo-wrap {
  margin-bottom: 1.5rem;
}

.ft-logo-wrap a {
  display: inline-block;
  opacity: .85;
  transition: opacity .3s;
}

.ft-logo-wrap a:hover {
  opacity: 1;
}

.ft-logo-img {
  display: block;
  width: auto;
  height: 16px;
}

.ft-addr {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 2;
}

.ft-addr-row {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-top: .75rem;
}

.sf-site-footer .ft-col-h {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.ft-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .875rem;
}
.ft-links>li{
line-height:1.6;
}
.ft-links a {
  font-size: 12px;
  color: var(--color-muted);
  letter-spacing: .1em;
  transition: color .3s;
}

.ft-links a:hover {
  color: var(--color-fg);
}

.ft-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.ft-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-muted);
  letter-spacing: .1em;
}

.ft-soc {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ft-soc a {
  color: var(--color-muted);
  transition: color .3s;
}

.ft-soc a:hover {
  color: var(--color-fg);
}



/* =========================================================
   SEARCH PANEL
   ========================================================= */
.search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 22, 40, .45);
  z-index: 200;
  backdrop-filter: blur(4px);
}

.search-overlay.open {
  display: block;
}

.search-panel {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 201;
  background: rgba(244, 247, 250, .98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 3rem;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .35s ease, visibility .35s;
}

.search-panel.open {
  transform: translateY(0);
  visibility: visible;
}

.search-panel-in {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-input {
  flex: 1;
  border: none;
  border-bottom: 1.5px solid var(--color-fg);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: .05em;
  padding: .5rem 0;
  color: var(--color-fg);
  outline: none;
}

.search-input::placeholder {
  color: var(--color-muted);
}

.search-submit {
  min-height: 36px;
  padding: .5rem .875rem;
  border: 1px solid var(--color-fg);
  background: var(--color-fg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .12em;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity .2s;
}

.search-submit:hover {
  opacity: .78;
}

.search-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  cursor: pointer;
  background: none;
  transition: all .2s;
  flex-shrink: 0;
}

.search-close-btn:hover {
  color: var(--color-fg);
  border-color: rgba(10, 22, 40, .4);
}

@media (max-width: 768px) {
  .search-panel {
    padding: 1.25rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .search-panel-in {
    gap: .625rem;
  }

  .search-submit {
    padding: .5rem .625rem;
  }

  .search-submit span {
    display: none;
  }
}

/* =========================
   Mobile drawer navigation
   ========================= */
.mob-menu {
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: calc(100vh - var(--hdr-total-h, 0px));
  padding-bottom: 2rem;
}

.mob-menu-section {
  padding: 1.25rem 0rem 0;
}

.mob-menu-heading {
  margin: 0 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--color-fg);
}

.mob-menu-list,
.mob-menu-category,
.mob-menu-category ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mob-menu-list>li+li {
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.mob-menu-list a,
.mob-menu-category a {
  display: block;
  box-sizing: border-box;
  color: var(--color-muted);
  text-decoration: none;
}

.mob-menu-list>li>a {
  padding: .8rem 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .06em;
}

.mob-menu-list a:hover,
.mob-menu-category a:hover {
  color: var(--color-fg);
}

.mob-menu .rmark {
  font-size: .65em;
  vertical-align: super;
}

.mob-menu-category>li {
  border-bottom: 1px solid var(--color-border);
}

.mob-menu-category .topcate {
  margin: 0;
}

.mob-menu-category .topcate>a {
  padding: .9rem 0 .7rem;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--color-fg);
}

.mob-menu-category .childcate {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 .75rem;
  padding: 0 0 .8rem .75rem;
}

.mob-menu-category .childcate>li>a {
  padding: .45rem 0;
  font-size: 14px;
  line-height: 1.5;
}

.mob-menu-category .childcate-inner {
  padding: 0 0 .25rem .75rem;
}

.mob-menu-category .childcate-inner a {
  padding: .3rem 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
}

@media (max-width: 480px) {
  .mob-menu-category .childcate {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Mobile drawer category accordion
   ========================= */
.mob-menu-category .topcate .mob-category-toggle {
  width: 100%;
  padding: .9rem 0 .7rem;
  border: 0;
  background: transparent;
  color: var(--color-fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: left;
  cursor: pointer;
}

.mob-menu-category .topcate .mob-category-toggle svg {
  flex: 0 0 auto;
  transition: transform .2s ease;
}

.mob-menu-category>li.is-open .topcate .mob-category-toggle svg {
  transform: rotate(180deg);
}

/* 既存の display:grid !important を開閉できるよう上書き */
.mob-menu-category .childcate {
  display: none !important;
}

.mob-menu-category>li.is-open>.childcate {
  display: grid !important;
}



/* =========================================================
   Mobile drawer — supplied navigation structure
   ========================================================= */
@media (max-width: 768px) {
  .mob-menu {
    gap: 0;
    max-height: calc(100vh - 94px);
    max-height: calc(100dvh - 94px);
    padding: 1.5rem 1.5rem 2.5rem;
  }

  .mob-menu-utility {
    margin-top: 0;
  }

  .mob-menu-section {
    padding-top: 1.75rem;
  }

  .mob-menu-heading {
    margin-bottom: .5rem;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: .12em;
  }

  .mob-menu-list>li>a {
    padding: .75rem 0;
  }

  .mob-menu-category .topcate .mob-category-toggle {
    min-height: 46px;
    padding: .75rem 0;
  }

  .mob-menu-category .childcate {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 0 .75rem 1rem;
  }

  .mob-menu-category .childcate>li>a {
    padding: .5rem 0;
  }

  .mob-menu-category .childcate-inner {
    padding: 0 0 .25rem 1rem;
  }
}

@media (max-width: 480px) {
  .mob-menu {
    max-height: calc(100vh - 92px);
    max-height: calc(100dvh - 92px);
  }
}