/* ========================================
   Barエコンサ - 専用スタイル
   ======================================== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-dark: #0a0a0a;
  --color-dark-blue: #1a1a2e;
  --color-dark-brown: #2c1810;
  --color-text: #f5f5f5;
  --color-text-light: #d4d4d4;
  --color-accent: #c9a961;
  --color-border: rgba(255, 255, 255, 0.1);
  --spacing-xs: 1rem;
  --spacing-sm: 2rem;
  --spacing-md: 4rem;
  --spacing-lg: 6rem;
  --spacing-xl: 8rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Serif JP', 'Cormorant Garamond', serif;
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-dark);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  overflow-x: hidden;
}

/* ========================================
   eコンサ 共通ヘッダー（index.html 等と同一デザイン）
   ※ style_new.css の値を固定値で移植（Barの本体スタイルに影響させない）
   ======================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #E2E8F0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  /* Barのbodyは serif / font-weight:300 のため、ヘッダーはindexと同じ
     Noto Sans JP・400 に固定（ロゴ社名のみ明朝で上書き） */
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', Meiryo, sans-serif;
  font-weight: 400;
}

#site-header.is-scrolled {
  background: #FFFFFF;
  border-bottom-color: transparent;
  box-shadow: 0 2px 16px rgba(27, 42, 65, 0.07);
}

#site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  height: 92px;
}

.header-logo a {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
}

.header-logo .logo-ja {
  font-family: 'Shippori Mincho', '游明朝', YuMincho, serif;
  font-size: 28px;
  font-weight: 700;
  color: #0E1726;
  letter-spacing: 0.08em;
}

.header-logo .logo-en {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: #1565C0;
  margin-top: 4px;
}

.header-nav,
.header-nav * {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', Meiryo, sans-serif;
}

.header-nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-decoration: none;
}

.header-nav .nav-ja {
  font-size: 13px;
  color: #0E1726;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.header-nav .nav-en {
  font-size: 9px;
  letter-spacing: 0.25em;
  color: #1F2A3A;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.header-nav a:hover .nav-ja,
.header-nav a:hover .nav-en {
  color: #1565C0;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: #0E1726;
  transition: 0.3s ease;
  transform-origin: center;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 92px;
  left: 0;
  right: 0;
  background: #F4F7FB;
  border-bottom: 1px solid #E2E8F0;
  z-index: 999;
  font-weight: 400;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav ul {
  padding: 8px 0;
  list-style: none;
  margin: 0;
}

.mobile-nav li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  font-size: 14px;
  color: #0E1726;
  border-bottom: 1px solid #E2E8F0;
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
}

.mobile-nav li a span {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #1565C0;
}

@media (max-width: 900px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  #site-header .header-inner { padding: 0 24px; }
}

@media (max-width: 600px) {
  #site-header .header-inner { height: 72px; padding: 0 20px; }
  .header-logo .logo-ja { font-size: 21px; }
  .header-logo .logo-en { font-size: 9px; letter-spacing: 0.28em; }
  .mobile-nav { top: 72px; }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  /* 共通ヘッダーの高さ分だけ下げ、初期表示で背景画像がナビに被らないようにする */
  --bar-header-h: 92px;
  height: calc(100vh - var(--bar-header-h));
  min-height: 600px;
  margin-top: var(--bar-header-h);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* 画像がない場合のフォールバック */
  background-color: var(--color-dark);
  background-image: linear-gradient(135deg, var(--color-dark-blue) 0%, var(--color-dark-brown) 50%, var(--color-dark) 100%);
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--spacing-sm) var(--spacing-sm) 6rem;
  max-width: 800px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: clamp(1.2rem, 5vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 0;
  line-height: 1.2;
  white-space: nowrap; /* 「静かな一杯のために。」を常に一行に */
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 300;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.05em;
}

.btn-reserve {
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid var(--color-border);
  background: transparent;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-reserve::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(201, 169, 97, 0.1);
  transition: left 0.3s ease;
}

.btn-reserve:hover::before,
.btn-reserve:focus::before {
  left: 0;
}

.btn-reserve:hover,
.btn-reserve:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(201, 169, 97, 0.3);
  outline: none;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-light);
  text-decoration: none;
  opacity: 0.6;
  animation: bounce 2s infinite;
  z-index: 1;
}

.scroll-indicator:hover,
.scroll-indicator:focus {
  opacity: 1;
  outline: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ========================================
   Concept Section
   ======================================== */
.concept {
  padding: var(--spacing-xl) var(--spacing-sm);
  background-color: var(--color-dark);
}

.concept-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.concept-title {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-light);
}

.concept-text {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 2;
  color: var(--color-text-light);
}

/* フェードイン演出は .js-anim（JS・IntersectionObserver が有効な時だけ付与）が
   付いている時のみ。付かない場合は通常表示のまま＝白飛びしない。 */
.js-anim .concept-title {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-anim .concept-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.concept-title.visible,
.concept-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* スマホでは各文が1行に収まるよう、文字を少し小さく・余白を詰める */
@media (max-width: 600px) {
  .concept {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .concept-text {
    font-size: 0.82rem;
  }
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
  padding: var(--spacing-xl) var(--spacing-sm);
  background-color: var(--color-dark-blue);
}

.gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-title {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-md);
}

/* 画像は既定で表示。フェードインは .js-anim が付いている時だけの演出。 */
.js-anim .gallery-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--color-dark-brown);
  /* 画像がない場合のフォールバック */
  background-image: linear-gradient(135deg, var(--color-dark-brown) 0%, var(--color-dark-blue) 100%);
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
}

.gallery-caption {
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-align: center;
  letter-spacing: 0.1em;
  font-weight: 300;
}

/* ========================================
   Info Section
   ======================================== */
.info {
  padding: var(--spacing-xl) var(--spacing-sm);
  background-color: var(--color-dark);
}

.info-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.info-title {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-light);
}

.info-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.info-main {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* 会社概要風：ラベル｜内容 の横並び行 */
.info-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.info-item:first-child {
  border-top: 1px solid var(--color-border);
}

.info-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.info-label {
  flex: 0 0 8rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.info-value {
  flex: 1;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.9;
  color: var(--color-text);
}

.info-note {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

/* 埋め込み地図（会社概要と同じく枠付き） */
.info-map {
  border: 1px solid var(--color-border);
  overflow: hidden;
  line-height: 0;
  margin-top: 0.3rem;
}

.info-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

/* スマホでは縦積みに */
@media (max-width: 600px) {
  .info-item {
    flex-direction: column;
    gap: 0.4rem;
  }

  .info-label {
    flex: none;
  }
}

.info-link {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-link:hover,
.info-link:focus {
  color: #1E88E5;
  outline: none;
}

.info-access-links {
  margin-top: 1rem;
  margin-bottom: var(--spacing-sm);
  text-align: center;
  padding-top: var(--spacing-sm);
}

.access-link {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-decoration: none;
  letter-spacing: 0.2em;
  font-weight: 300;
  transition: color 0.3s ease;
  display: inline-block;
}

.access-link:hover,
.access-link:focus {
  color: var(--color-text);
  outline: none;
}

.access-link-separator {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin: 0 0.5rem;
  opacity: 0.5;
}

.info-menu-link {
  margin-top: var(--spacing-md);
  text-align: center;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--color-border);
}

.menu-link {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-decoration: none;
  letter-spacing: 0.2em;
  font-weight: 300;
  transition: color 0.3s ease;
  display: inline-block;
}

.menu-link:hover,
.menu-link:focus {
  color: var(--color-text);
  outline: none;
}

.info-footer {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.info-footer small {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.info-footer a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-footer a:hover,
.info-footer a:focus {
  color: #1E88E5;
  outline: none;
}

/* ========================================
   Responsive
   ======================================== */
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Info 全体の最大幅を読みやすく */
.info-inner {
  max-width: 760px;
}

@media (min-width: 1024px) {
  .concept,
  .gallery,
  .info {
    padding: var(--spacing-xl) var(--spacing-md);
  }
}

/* ========================================
   スマホ：ヒーロー背景の全面表示
   横長写真(約3:2)をトリミングせず表示し、ロゴが見切れないようにする。
   iOSの固定背景不具合も回避（attachment: scroll）。
   ======================================== */
@media (max-width: 767px) {
  .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 1920 / 1277;
  }

  .hero-background {
    background-size: cover;
    background-attachment: scroll;
  }

  /* 短いヒーローではタイトルを最下部（テーブル上）に置きロゴと重ねない */
  .hero-content {
    padding-bottom: 1.4rem;
  }

  .scroll-indicator {
    display: none;
  }
}

/* スマホはヘッダーが72pxなので下げ幅も72pxに（基本.heroより後ろで上書き） */
@media (max-width: 600px) {
  .hero {
    --bar-header-h: 72px;
  }
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator {
    animation: none;
  }

  /* アニメ無効環境でも要素が消えないように表示を保証
     （Reduce Motion 端末で Atmosphere 画像が出ない不具合の対策） */
  .concept-title,
  .concept-text,
  .gallery-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========================================
   Menu Modal
   ======================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-image-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--color-border);
}

.modal-content-map {
  max-height: 95vh;
  padding: 1rem;
  align-items: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.modal-image-wrapper-map {
  width: 100%;
  max-height: none;
  overflow: visible;
}

.modal-image-map {
  max-height: none;
  width: 100%;
  height: auto;
  display: block;
  border: none;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
  padding: 0;
}

.modal-close:hover,
.modal-close:focus {
  border-color: var(--color-text);
  color: var(--color-text);
  outline: none;
}

.modal-overlay.active body {
  overflow: hidden;
}

/* Focus styles：クリック時は枠を出さず、キーボード操作時のみブルー枠（eコンサと同色） */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #1565C0;
  outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-dark);
  color: var(--color-text);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

