/* ===========================================
   松阪建匠 共通スタイル shared.css
   =========================================== */

/* ----- リセット ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: #2c3e50;
  background: #faf8f5;
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s ease; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ----- カラー変数 ----- */
:root {
  --navy: #2c3e50;
  --wood: #6b4423;
  --sand: #d4b896;
  --offwhite: #faf8f5;
  --gold: #b8893b;
  --gold-light: #d6a85a;
  --line: #e8e2d5;
  --shadow: 0 6px 24px rgba(44, 62, 80, 0.08);
  --shadow-lg: 0 16px 48px rgba(44, 62, 80, 0.12);
}

/* ----- フォント ----- */
.font-mincho, h1, h2, h3, h4 {
  font-family: 'Shippori Mincho', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.font-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ----- 共通レイアウト ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 100px 0; }
.section-tight { padding: 64px 0; }

/* ----- セクション見出し ----- */
.sec-head {
  text-align: center;
  margin-bottom: 60px;
}
.sec-head .en {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.sec-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}
.sec-head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--gold);
}
.sec-head .lead {
  margin-top: 20px;
  color: #5a6878;
  font-size: 0.96rem;
}

/* ----- スキップリンク（アクセシビリティ） ----- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  transition: top .2s;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--gold);
}

/* ===========================================
   ヘッダー
   =========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(250, 248, 245, 0.0);
  transition: all .35s ease;
}
.site-header.scrolled {
  background: rgba(250, 248, 245, 0.97);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 12px 0;
  backdrop-filter: blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Shippori Mincho', serif;
  color: #fff;
  transition: color .35s;
}
.site-header.scrolled .site-logo,
.site-header.solid .site-logo { color: var(--navy); }

.site-logo .logo-mark {
  width: 42px;
  height: 42px;
  border: 2px solid currentColor;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0;
}
.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.site-logo .logo-text .name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.site-logo .logo-text .sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  opacity: 0.8;
}

.nav-list {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-list a {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}
.site-header.scrolled .nav-list a,
.site-header.solid .nav-list a { color: var(--navy); }
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width .3s;
}
.nav-list a:hover::after,
.nav-list a.is-current::after { width: 100%; }
.nav-list a.is-current { color: var(--gold); }
.site-header.scrolled .nav-list a.is-current { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: #fff !important;
  padding: 10px 22px !important;
  letter-spacing: 0.1em;
  border: 1px solid var(--gold);
  transition: background .25s;
}
.nav-cta:hover { background: var(--wood); border-color: var(--wood); }
.nav-cta::after { display: none; }

/* ハンバーガー */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 110;
}
.hamburger span {
  position: absolute;
  left: 8px;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all .3s;
}
.site-header.scrolled .hamburger span,
.site-header.solid .hamburger span { background: var(--navy); }
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 26px; }
.hamburger.is-open span { background: var(--navy); }
.hamburger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ===========================================
   フッター
   =========================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.88);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}
.footer-brand .site-logo { color: #fff; margin-bottom: 18px; }
.footer-brand .desc {
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.7);
}
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  letter-spacing: 0.1em;
}
.footer-col ul li {
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}
.footer-col ul a:hover { color: var(--gold-light); }
.footer-col .info-row {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 12px;
  line-height: 1.7;
}
.footer-col .info-row strong {
  display: block;
  color: var(--gold-light);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}
.footer-sns {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.footer-sns a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all .25s;
}
.footer-sns a:hover { background: var(--gold); border-color: var(--gold); }
.footer-sns svg { width: 16px; height: 16px; fill: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}

/* ===========================================
   汎用ボタン
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  transition: all .3s;
  position: relative;
}
.btn:hover { background: var(--gold); border-color: var(--gold); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); }
.btn-gold:hover { background: var(--wood); border-color: var(--wood); }
.btn .arrow { font-family: 'Cormorant Garamond', serif; font-style: italic; }

/* ===========================================
   ページタイトル（下層共通ヒーロー）
   =========================================== */
.page-hero {
  position: relative;
  height: 380px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  margin-top: 0;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(44,62,80,0.65), rgba(44,62,80,0.78)),
    url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.page-hero .en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-light);
  letter-spacing: 0.3em;
  margin-bottom: 14px;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.15em;
}
.page-hero .breadcrumb {
  margin-top: 20px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
}
.page-hero .breadcrumb a:hover { color: var(--gold-light); }
.page-hero .breadcrumb .sep { margin: 0 10px; opacity: .5; }

/* ===========================================
   レスポンシブ
   =========================================== */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .hamburger { display: block; }
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: var(--offwhite);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 36px;
    gap: 24px;
    transition: right .35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  }
  .nav-list.is-open { right: 0; }
  .nav-list a {
    color: var(--navy) !important;
    font-size: 1.05rem;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-list .nav-cta {
    margin-top: 14px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--gold);
    color: #fff !important;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .page-hero { height: 280px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .container, .container-narrow { padding: 0 18px; }
  .section { padding: 56px 0; }
  .sec-head { margin-bottom: 40px; }
  .site-logo .logo-text .name { font-size: 1.05rem; }
  .site-logo .logo-text .sub { font-size: 0.62rem; }
  .site-logo .logo-mark { width: 36px; height: 36px; font-size: 0.95rem; }
}
