/* ========== BASE ========== */
:root {
  --color-primary: #1a4b75;
  --color-dark: #0e0e0e;
  --color-light: #f8f8f8;
  --color-white: #ffffff;
  --font-serif-en: "Playfair Display", "Noto Serif", serif;
  --font-serif-jp: "Yu Mincho", "Source Han Serif", serif;
  --font-sans: "Noto Sans", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--color-dark);
  background-color: var(--color-white);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* ========== LAYOUT ========== */
.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

h2 {
  font-family: var(--font-serif-en);
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}

.jp {
  font-family: var(--font-serif-jp);
  font-size: 0.95rem;
  opacity: 0.8;
}

/* === ハンバーガーメニュー === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif-en);
  font-size: 1.4rem;
  line-height: 1.4;
}

.logo a {
  text-decoration: none;
  color: var(--color-dark);
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  color: var(--color-dark);
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--color-primary);
}

.lang-switch a {
  text-decoration: none;
  color: var(--color-dark);
  transition: color 0.3s;
}

.lang-switch a:hover {
  color: var(--color-primary);
}

/* === スマホ用スタイル === */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    display: none;
    flex-direction: column;
    text-align: center;
    border-top: 1px solid #ddd;
  }

  .nav ul {
    flex-direction: column;
  }

  .nav ul li {
    margin: 1rem 0;
  }

  .menu-toggle {
    display: flex;
  }

  .lang-switch, .sns-header {
    display: none;
  }

  /* メニュー開閉時 */
  .nav.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
  }

  @keyframes fadeIn {
    from {opacity: 0; transform: translateY(-10px);}
    to {opacity: 1; transform: translateY(0);}
  }

  /* 三本線→×アニメーション */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
}
/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

.hero-title {
  font-family: var(--font-serif-en);
  font-size: 2.8rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.hero-sub,
.hero-jp {
  color: var(--color-white);
  font-size: 1.1rem;
}

.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  margin-top: 1.5rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-dark);
}

.btn-outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  /*background-color: var(--color-primary);
  color: var(--color-white);*/
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  /*opacity: 0.85;*/
}

.btn-outline02 {
  display: inline-block;
  padding: 0.75rem 2rem;
  margin-top: 1.5rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline02 {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-outline02:hover {
  /*background-color: var(--color-black);*/
  opacity: 0.85;
}

/* ========== CONCEPT ========== */
.concept {
  padding: 6rem 0;
  background-color: var(--color-light);
}

.concept-inner {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.concept-text {
  flex: 1 1 400px;
}

.concept-img {
  flex: 1 1 400px;
  text-align: center;
}

/* 画像を画面サイズに合わせて縮小表示 */
.concept-img img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px; /* 任意：角を少し丸くしたい場合 */
}

/* ========== CATEGORY & GRID ========== */
.category, .artisans, .journal {
  padding: 6rem 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card img {
  width: 100%;
  border-radius: 4px;
}

.card h3 {
  font-family: var(--font-serif-en);
  margin-top: 0.75rem;
  font-size: 1.25rem;
}

/* ========== VISIT ========== */
.visit {
  position: relative;
  color: var(--color-white);
  text-align: center;
  padding: 8rem 0;
}

.visit-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.6);
}

/* マップのサイズ設定 */
#map {
    width: 100%;
    height: 450px;
}

/* ========== FOOTER ========== */
.footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  padding: 3rem 1rem;
}

.footer-nav {
  margin: 1rem 0;
}

.footer-nav a {
  color: var(--color-white);
  margin: 0 0.5rem;
  text-decoration: none;
  opacity: 0.8;
}

.footer-nav a:hover {
  opacity: 1;
}

/* ===== Reveal animation helper ===== */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger (optional) */
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 140ms; }
.reveal:nth-child(4) { transition-delay: 200ms; }

/* Header scrolled state */
.header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 3px 18px rgba(0,0,0,0.06);
  transition: background 200ms ease, box-shadow 200ms ease;
}

/* Reduce motion: respect OS setting */
@media (prefers-reduced-motion: reduce) {
  .js-enabled .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .header.scrolled {
    transition: none;
  }
}

/* ===== Page Hero (shared by About / Crafts) ===== */
.page-hero {
  position: relative;
  height: 48vh;
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  margin-top: 64px; /* header offset */
}

.page-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}

.page-hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.35); z-index: -1;
}

.page-hero .page-title {
  color: var(--color-white);
  font-family: var(--font-serif-en);
  font-size: 3rem;
  letter-spacing: .03em;
}

.page-hero .page-sub,
.page-hero .jp {
  color: var(--color-white);
  opacity: .9;
  max-width: 760px;
  margin: .6rem auto 0;
  padding: 0 1rem;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: .9rem;
  color: #666;
  display: flex; align-items: center; gap: .5rem;
  padding: 1rem 0 0;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }

/* ===== About page blocks ===== */
.about-section {
  padding: 4.5rem 0;
  background: var(--color-white);
}
.about-section.alt { background: var(--color-light); }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: center;
}
.about-text h2 { font-family: var(--font-serif-en); margin-bottom: .6rem; }
.about-text p { margin: .6rem 0; }
.about-media img { width: 100%; border-radius: 6px; }

.about-list { margin: .8rem 0 0 1.1rem; }
.about-list li { margin: .3rem 0; }

/* CTA shared */
.about-cta {
  background: var(--color-light);
  padding: 4rem 0;
  text-align: center;
}
.about-cta-inner h3 {
  font-family: var(--font-serif-en);
  margin-bottom: .4rem;
}

/* ===== Crafts page blocks ===== */
.category.page { padding-top: 3rem; }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover h3 { color: var(--color-primary); }

.craft-block { padding: 4.5rem 0; background: var(--color-white); }
.craft-block.alt { background: var(--color-light); }

.craft-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 2.2rem;
  align-items: center;
}
.craft-media img { width: 100%; border-radius: 6px; }
.craft-text h2 { font-family: var(--font-serif-en); margin-bottom: .6rem; }
.process { margin: .8rem 0 0 1.2rem; }
.process li { margin: .35rem 0; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about-grid, .craft-grid {
    grid-template-columns: 1fr;
  }
  .page-hero .page-title { font-size: 2.4rem; }
}
@media (max-width: 768px) {
  .page-hero { height: 42vh; }
  .about-section, .craft-block { padding: 3.5rem 0; }
}

/* ===== Artisans Page ===== */
.artisans-page {
  padding: 4.5rem 0;
}
.artisans-page h2 {
  text-align: center;
}
.artisan-card img {
  width: 100%;
  border-radius: 6px;
}
.artisan-card h3 {
  font-family: var(--font-serif-en);
  margin-top: 0.6rem;
}
.artisan-card p {
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

/* ===== Visit Page ===== */
.visit-page {
  padding: 4rem 0;
}
.visit-info ul {
  list-style: none;
  margin: 1rem 0;
  line-height: 1.7;
}
.visit-info li strong {
  color: var(--color-primary);
}
.visit-info .map img {
  width: 100%;
  border-radius: 6px;
  margin-top: 1rem;
}

/* ===== Journal Page ===== */
.journal-page {
  padding: 4.5rem 0;
}
.journal-page .card h3 {
  font-family: var(--font-serif-en);
  font-size: 1.2rem;
  margin-top: 0.6rem;
}
.journal-page .card p {
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* ===== Contact Page ===== */
.contact-page {
  padding: 4.5rem 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: flex-start;
}
.contact-text h2 {
  font-family: var(--font-serif-en);
  margin-bottom: 0.6rem;
}
.contact-text p {
  margin: 0.6rem 0;
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  font-size: 0.95rem;
  color: var(--color-dark);
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-form button {
  width: fit-content;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SNS Links ===== */
.sns-links {
  text-align: center;
  margin-top: 1.5rem;
}

.sns-links a {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.sns-links a:hover {
  opacity: 0.7;
}

.sns-icon {
  width: 26px;
  height: 26px;
  filter: grayscale(100%) opacity(0.8);
}

.sns-header {
  display: inline-block;
  margin-left: 1rem;
}
.sns-header .sns-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  filter: grayscale(100%) opacity(0.8);
}
.sns-header a:hover .sns-icon {
  filter: none;
}

/* ===== 2k540 Page ===== */
.page-article {
  padding: 4.5rem 0;
  background: var(--color-white);
}

.page-article .narrow {
  max-width: 840px;
}

.page-article h2,
.page-article h3 {
  font-family: var(--font-serif-en);
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.page-article p {
  margin: 0.8rem 0;
  line-height: 1.8;
  font-size: 1rem;
}

.page-article strong {
  color: var(--color-primary);
}

.article-img {
  display: block;
  width: 100%;
  margin: 1.2rem 0;
  border-radius: 6px;
}

.visit-btn {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .page-article {
    padding: 3rem 1rem;
  }
}

/* ===== Directions Page ===== */
.directions {
  padding: 4.5rem 0;
  background: var(--color-white);
}
.directions .narrow {
  max-width: 840px;
}
.directions h2, .directions h3 {
  font-family: var(--font-serif-en);
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}
.directions p {
  margin: 0.8rem 0;
  line-height: 1.8;
}
.directions strong {
  color: var(--color-primary);
}
.dir-photo {
  display: block;
  width: 100%;
  border-radius: 6px;
  margin: 1.2rem 0;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}
.visit-btn {
  text-align: center;
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .directions {
    padding: 3rem 1rem;
  }
}

/* ===== Suehirocho Directions Page ===== */
.directions {
  padding: 4.5rem 0;
  background: var(--color-white);
}

.directions .narrow {
  max-width: 840px;
}

.directions h2,
.directions h3 {
  font-family: var(--font-serif-en);
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.directions p {
  margin: 0.8rem 0;
  line-height: 1.8;
}

.directions strong {
  color: var(--color-primary);
}

.dir-photo {
  display: block;
  width: 100%;
  margin: 1.2rem 0;
  border-radius: 6px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.visit-btn {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .directions {
    padding: 3rem 1rem;
  }
}

/* ===== Google Map Access Section ===== */
.map-access {
  padding: 4rem 0;
  background-color: #fafafa;
  text-align: center;
  border-top: 1px solid #eee;
}

.map-access h2 {
  font-family: var(--font-serif-en);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.map-access .subtext {
  color: #555;
  font-size: 1rem;
  margin-bottom: 1.8rem;
}

.map-frame {
  position: relative;
  width: 100%;
  height: 380px;
  margin-bottom: 1.8rem;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.map-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
}

.btn-secondary:hover {
  background: #f5f5f5;
}

.map-access .note {
  color: #666;
  font-size: 0.95rem;
  margin-top: 1.2rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .map-access {
    padding: 3rem 1rem;
  }
  .map-frame {
    height: 300px;
  }
  .map-buttons {
    flex-direction: column;
  }
}

/* ===== Online Shop Link Section ===== */
.online-shop-link {
  background: #f9f9f9;
  padding: 4rem 1rem;
  text-align: center;
  border-top: 1px solid #eee;
}

.online-shop-link h2 {
  font-family: var(--font-serif-en);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #111;
}

.online-shop-link p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.8rem;
  line-height: 1.7;
}

.online-shop-link .btn-primary {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  display: inline-block;
  transition: opacity 0.3s ease;
}

.online-shop-link .btn-primary:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .online-shop-link {
    padding: 3rem 1rem;
  }
  .online-shop-link h2 {
    font-size: 1.5rem;
  }
}

/* ===== FAQ Page ===== */
.faq {
  padding: 4.5rem 0;
  background-color: #fff;
}

.faq .narrow {
  max-width: 800px;
}

.faq h2 {
  font-family: var(--font-serif-en);
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: color 0.3s ease;
  font-family: var(--font-sans-en);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question::after {
  content: "+";
  float: right;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0.5rem 0 1rem;
  line-height: 1.8;
  color: #444;
}

.faq-answer.open {
  display: block;
}

.faq-answer a {
  color: var(--color-primary);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .faq {
    padding: 3rem 1rem;
  }
  .faq-question {
    font-size: 1rem;
  }
}

