/* 海斗玉造工房 — リニューアル用スタイル */

:root {
  /* 既存サイトに近い、フラットな和紙系ベース（グラデ強めは避ける） */
  --paper: #fffdf8;
  --paper-dark: #f4f1ea;
  --ink: #1a1816;
  --muted: #5c5752;
  --accent: #2a4545;
  --accent-light: #3d5c5c;
  --terracotta: #9a4830;
  --gold: #8a7348;
  --line: rgba(26, 24, 22, 0.14);
  --shadow: 0 8px 28px rgba(26, 24, 22, 0.07);
  --radius: 4px;
  --font-serif: "Shippori Mincho", serif;
  --font-sans: "Zen Kaku Gothic New", system-ui, sans-serif;
  --max: 1100px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .page-hero--home .page-hero__title span {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--terracotta);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
}
.site-brand a {
  color: var(--ink);
  text-decoration: none;
}
.site-brand a:hover {
  color: var(--accent);
}
.site-brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
}

.nav-toggle__icon {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  box-shadow:
    0 5px 0 var(--ink),
    0 -5px 0 var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.nav a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width 0.35s var(--ease-out);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  width: 100%;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(255, 253, 248, 0.98);
    border-bottom: 1px solid var(--line);
    gap: 0.75rem;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a::after {
    display: none;
  }
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  text-align: center;
}

/* main 内は中央揃え（ヒーローは .page-hero のまま左寄せ） */
main .prose {
  margin-inline: auto;
}

main .prose ul,
main .prose ol {
  display: inline-block;
  text-align: left;
}

main .notice {
  margin-inline: auto;
  max-width: 42rem;
}

main .notice ul {
  display: inline-block;
  text-align: left;
}

main .price-box {
  margin-inline: auto;
  max-width: 42rem;
}

main .meta-row {
  justify-content: center;
}

main .section__heading,
main .section__sub {
  text-align: center;
}

main .card__body {
  text-align: center;
}

main .two-col {
  text-align: center;
}

main figure img,
main .two-col img {
  display: block;
  margin-inline: auto;
}

/* 全ページ共通フルブリード・ヒーロー（写真＋テキスト） */
.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  isolation: isolate;
  min-height: min(92vh, 900px);
  min-height: min(92svh, 900px);
  overflow: hidden;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    155deg,
    rgba(14, 12, 10, 0.35) 0%,
    rgba(14, 12, 10, 0.25) 35%,
    rgba(14, 12, 10, 0.75) 100%
  );
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 3.25rem 1.25rem 2.75rem;
  box-sizing: border-box;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.55rem, 4.8vw, 2.85rem);
  line-height: 1.28;
  letter-spacing: 0.06em;
  margin: 0 0 0.85rem;
  color: #fff;
  max-width: 38rem;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.25),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.page-hero__lead {
  margin: 0 0 1.35rem;
  font-size: clamp(0.9rem, 2.3vw, 1.075rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-start;
}

.page-hero--home .page-hero__title span {
  display: inline-block;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) forwards;
}

.page-hero--home .page-hero__title span:nth-child(1) {
  animation-delay: 0.06s;
}

.page-hero--home .page-hero__title span:nth-child(2) {
  animation-delay: 0.16s;
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 0;
    height: clamp(232px, 44vh, 400px);
    height: clamp(232px, 44svh, 400px);
  }

  .page-hero.page-hero--home {
    height: clamp(268px, 52vh, 448px);
    height: clamp(268px, 52svh, 448px);
  }

  .page-hero.page-hero--home .page-hero__lead {
    -webkit-line-clamp: 5;
  }

  .page-hero__inner {
    padding: 0.6rem 1rem 0.95rem;
  }

  .page-hero__title {
    font-size: clamp(1.2rem, 5.6vw, 1.65rem);
    margin-bottom: 0.55rem;
  }

  .page-hero__lead {
    font-size: 0.8rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ホームのCTAまで含めヒーローが伸びないよう、短文リードのみ（長文はページ内でも表示可）*/
  .page-hero__actions {
    gap: 0.45rem;
  }

  .page-hero__actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

.page-hero .btn--primary:hover {
  color: #fff;
}

.page-hero .btn--ghost {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.43);
  background: rgba(255, 255, 255, 0.06);
}

.page-hero .btn--ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    background 0.25s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(47, 79, 79, 0.25);
}

.btn--primary:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.section {
  margin-bottom: 3.5rem;
}

.section__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0 0 0.65rem;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid var(--line);
  display: block;
  max-width: 100%;
}

.section__sub {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem 1.75rem;
}

/* 枠で囲まない：既存サイト同様、写真＋見出し＋本文の流れ */
.card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  border: none;
  box-shadow: none;
}

.card__media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--paper-dark);
  border-radius: var(--radius);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s var(--ease-out);
}

.card:hover .card__media img {
  opacity: 0.92;
}

.card__body {
  padding: 0.85rem 0 0;
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.card__title a {
  color: var(--ink);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.card__title a:hover {
  color: var(--terracotta);
  text-decoration: underline;
}

.card__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.notice {
  background: rgba(255, 250, 246, 0.65);
  border: none;
  border-left: 3px solid var(--terracotta);
  border-radius: 0;
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
}

.notice h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  color: var(--terracotta);
}

.notice ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: var(--muted);
}

.price-box {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.25rem 0;
  margin: 1.5rem 0;
}

.price-box strong {
  color: var(--ink);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.meta-row span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.gallery-strip a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.gallery-strip a:hover img {
  transform: scale(1.06);
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--muted);
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  letter-spacing: 0.05em;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 40rem;
}

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 1.25rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 700px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

.site-footer h2 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.site-footer p,
.site-footer a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover {
  color: #fff;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-nav a {
  text-decoration: none;
}

.copyright {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

@media (max-width: 720px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
