/* =========================================================
   SEAGULL FOUR — Shared Stylesheet
   ========================================================= */

/* ── Custom Properties ── */
: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;
}

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--color-bg); color: var(--color-fg); font-family: var(--font-sans); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font-family: inherit; color: inherit; }

/* ── Utility ── */
.mw { max-width: 1280px; margin: 0 auto; padding: 0 3rem; }
@media (max-width: 768px) { .mw { padding: 0 1.5rem; } }

/* =========================================================
   HEADER
   ========================================================= */
header { 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; }

/* Hero page — logo white when not scrolled */
.hero-page .hd-logo svg { color: #fff; transition: color .4s; }
.hero-page header.scrolled .hd-logo svg,
.hero-page header.menu-open .hd-logo svg { color: var(--color-fg); }
.solid-header .hd-logo svg { color: var(--color-fg); }

/* Nav links */
.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); }

.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; }
.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); }
.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 .hamburger { color: var(--color-fg); }

/* 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
   ========================================================= */
footer { background: var(--color-card); border-top: 1px solid var(--color-border); }
.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-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; }

.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 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); }

/* =========================================================
   PAGE WRAP (offset for fixed header)
   ========================================================= */
.page-wrap { padding-top: 108px; }
@media (max-width: 768px) { .page-wrap { padding-top: 94px; } }
@media (max-width: 480px) { .page-wrap { padding-top: 92px; } }

/* =========================================================
   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;
}

/* ========================================
   Page Top
   ======================================== */
.page-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 64px;
  height: 64px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: var(--color-fg);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 6px 20px rgba(10,22,40,.08);
  transition:
    opacity .3s ease,
    visibility .3s ease,
    transform .3s ease,
    background-color .3s ease,
    color .3s ease;
}

.page-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-top:hover {
  background: var(--color-fg);
  color: #fff;
}

.page-top:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.page-top__arrow {
  width: 9px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: rotate(45deg);
}

.page-top__text {
  font-size: 9px;
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .page-top {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .page-top__text {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-top {
    transition: none;
  }
}

/* ========================================
   wrapper inquiry_aspx
   ======================================== */
.wrapper.inquiry_aspx .UserRegistTitle+p a{
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: .18em;
    text-decoration-thickness: 1px;
}