/* サイト共通のスタイル。

   もとは index.html の <style> に直接書かれていたもの。ページ分割にあたって
   全ページで同じものを使うため、このファイルへ切り出した。

   ※ 読み込みは必ず**いちばん最後**にすること。
      もとの <style> が外部CSSより後ろにあったため、順序を変えると
      打ち消し合いの結果が変わってしまう。 */

/* --------------------- もとから index.html にあった指定 --------------------- */

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title .jp {
  display: block;
  font-size: 1.1rem;
  color: #d4a574;
  margin-bottom: 5px;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.section-title .en {
  display: block;
  font-size: 3.2rem;
  font-family: 'Noto Serif JP', serif;
  color: #fff;
  line-height: 1.1;
}

.hero-content h1,
.hero-content p {
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

.about-content {
  display: flex;
  gap: 50px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.about-image-wrapper {
  flex: 1;
}

.about-image-wrapper img {
  width: 100%;
  border-radius: 10px;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 2.2;
  color: #ccc;
  text-align: justify;
}

.stores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.store-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(212, 165, 116, 0.1);
}

/* 管理画面で写真を拡大して見せる設定にすると、img が枠より大きくなる。
   はみ出した分は必ずここで切る（付けないと、下の店名の上に写真が乗る） */
.store-img-box {
  overflow: hidden;
}

.store-img-box img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.store-card:hover .store-img-box img {
  transform: scale(1.05);
}

.store-body {
  padding: 30px;
  flex-grow: 1;
}

.store-name {
  font-size: 1.6rem;
  color: #d4a574;
  margin-bottom: 15px;
  font-family: 'Noto Serif JP', serif;
  border-bottom: 1px solid rgba(212, 165, 116, 0.2);
  padding-bottom: 10px;
}

.store-name small {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-top: 5px;
}

.store-description {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #ccc;
  margin-bottom: 25px;
  text-align: justify;
}

.store-info {
  font-size: 0.88rem;
  line-height: 1.7;
}

.info-row {
  display: flex;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 5px;
}

.info-label {
  color: #d4a574;
  width: 110px;
  flex-shrink: 0;
  font-weight: 700;
}

.info-val,
.info-val a {
  color: #eee !important;
  text-decoration: none !important;
}

.map-link {
  color: #d4a574 !important;
  text-decoration: underline !important;
  margin-left: 8px;
  font-weight: 700;
}

/* 住所の [MAP] は、上の指定だけでは `.info-val a`（白）に負けて白いままだった。
   詳細度が同じでも「要素をひとつ多く指す」ほうが強いため、こう書いて効かせる。
   （!important どうしの勝負は、詳細度で決まる） */
.info-val a.map-link {
  color: #d4a574 !important;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
  margin-left: auto;
}

.menu-btn span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: #d4a574;
  margin: 6px 0;
  transition: 0.3s;
}

/* ------------------------- ページ分割で足した指定 ------------------------- */

/* いま開いているページを、ヘッダーとフッターで示す */
.nav-menu a[aria-current="page"] span:first-child,
.footer-nav a[aria-current="page"] {
  color: #d4a574 !important;
}

/* トップ以外のページの見出し部分。
   ヘッダーが固定（高さ70px）で重なるため、その分を空ける。 */
.page-head {
  padding: 150px 0 0;
  text-align: center;
}

.page-head .section-title {
  margin-bottom: 22px;
}

.page-head .page-lead {
  max-width: 760px;
  margin: 0 auto;
  line-height: 2;
  color: #ccc;
}

/* 店舗カードから、その店のページへの入口 */
.store-more {
  display: inline-block;
  margin-top: 20px;
  padding: 11px 22px;
  border: 1px solid rgba(212, 165, 116, 0.55);
  border-radius: 6px;
  color: #d4a574;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.store-more:hover {
  background: rgba(212, 165, 116, 0.12);
}

/* 画面が広いときだけ効かせる改行（狭い画面では自然に折り返させる） */
@media (max-width: 900px) {
  br.pc-only {
    display: none;
  }
}

/* --- トップページ：各ページへの入口 --- */

.entrance-section {
  padding: 100px 0;
  background: #0a0e1a;
}

.entrance-lead {
  max-width: 760px;
  margin: -20px auto 55px;
  text-align: center;
  line-height: 2.2;
  color: #ccc;
}

.entrances {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.entrance {
  display: block;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(212, 165, 116, 0.15);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
}

.entrance-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.entrance:hover .entrance-img {
  transform: scale(1.05);
}

.entrance-body {
  padding: 22px 24px 26px;
}

.entrance-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  color: #d4a574;
  margin: 0;
  font-weight: 700;
}

.entrance-title .en {
  display: block;
  font-size: 0.68rem;
  color: #888;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 6px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
}

.entrance-text {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #ccc;
  margin: 14px 0 0;
}

.entrance-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: #d4a574;
  font-weight: 700;
}

/* --------------------------- スマートフォン --------------------------- */

@media (max-width: 900px) {

  /* スマホ：文字の位置を50%から60%に下げました */
  .hero-content {
    top: 60% !important;
  }

  .hero-title {
    font-size: 2.8rem !important;
  }

  .hero-subtitle {
    font-size: 0.95rem !important;
    margin: 15px 0 !important;
  }

  .logo img {
    height: 30px !important;
  }

  .about-content {
    display: block !important;
    padding: 0 15px;
  }

  .about-image-wrapper {
    width: 100% !important;
    margin-bottom: 30px;
  }

  .about-text {
    width: 100% !important;
    padding: 0 !important;
  }

  .about-text p {
    text-align: left !important;
    font-size: 0.95rem;
    line-height: 2;
  }

  .stores-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .menu-btn {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(10, 14, 26, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px !important;
    transition: 0.4s ease-in-out;
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* ページ分割で足したぶん */

  .page-head {
    padding: 120px 0 0;
  }

  .entrance-section {
    padding: 70px 0;
  }

  .entrances {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 15px;
  }
}

/* スタッフ用（管理画面）への入口。
   お客様の邪魔にならないよう、著作権表示の下に小さく置く。
   ※ URL を隠すことは防御にならない（誰でも /admin は開ける）。
      守っているのは ID・パスワードと、ログインの試行制限・ボット確認。 */
.footer-staff {
  margin-top: 20px;
}

.footer-staff a {
  color: #4d4d4d;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.footer-staff a:hover {
  color: #d4a574;
}

/* --------------------------- フッターの行き先 ---------------------------

   4項目を横一列に並べると、狭い画面では項目の途中で折り返してしまう
   （「私たちにつ／いて」のように割れる）。スマートフォンでは
   2項目ずつの2段に組み替える。

   ※ ul には HTML に直接 display:flex 等が書かれている（もとの作りのまま）。
      インラインの指定は CSS より強いため、ここは !important で上書きする。 */

@media (max-width: 640px) {
  .footer-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    max-width: 340px;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 18px 10px !important;
  }

  .footer-nav li {
    text-align: center;
  }

  /* 項目の途中では折り返さない */
  .footer-nav a {
    display: inline-block;
    white-space: nowrap;
  }
}
