/* ===== COMMON BASE STYLES ===== */
@import url('variables.css');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  font-size: 16px;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-normal);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

.section {
  padding: clamp(60px, 8vw, 120px) 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, .font-serif {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.3;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.sec-title {
  font-size: clamp(22px, 3.8vw, 38px);
  margin-bottom: 24px;
}

.sec-lead {
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.9;
  max-width: 640px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  padding: 14px 30px;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  transition: background var(--transition-normal), border-color var(--transition-normal), color var(--transition-normal), transform var(--transition-normal);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--vermilion);
  color: var(--paper-white);
}

.btn-primary:hover {
  background: var(--vermilion-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink-mid);
  border: 0.5px solid rgba(0, 0, 0, 0.2);
  padding: 13px 29px;
}

.btn-secondary:hover {
  color: var(--vermilion);
  border-color: var(--vermilion);
  transform: translateY(-1px);
}

.btn-line {
  background: #06c755;
  color: #fff;
}

.btn-line:hover {
  background: #05b04b;
  transform: translateY(-1px);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(16px, 4vw, 64px);
  background: rgba(250, 248, 244, 0.97);
  border-bottom: 0.5px solid rgba(184, 146, 42, 0.18);
  backdrop-filter: blur(18px);
  gap: 16px;
}

.logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

.logo.logo-container:hover .logo-mark {
  opacity: 0.85;
}

.logo-text {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.25;
}

.logo-text span {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--ink-light);
  letter-spacing: 0.14em;
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--ink-light);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--vermilion);
}

.nav a.active {
  color: var(--vermilion);
  font-weight: 500;
}

.header-ctas {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.btn-header-sub {
  font-size: 12px;
  color: var(--ink-mid);
  border: 0.5px solid rgba(0, 0, 0, 0.18);
  padding: 7px 14px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.btn-header-sub:hover {
  border-color: var(--vermilion);
  color: var(--vermilion);
}

.btn-header-main {
  font-size: 12px;
  color: #fff;
  background: var(--vermilion);
  padding: 8px 16px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.btn-header-main:hover {
  background: var(--vermilion-dark);
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s ease;
  transform-origin: center;
}

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

/* ===== MOBILE DRAWER ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 248, 244, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 32px 24px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  display: block;
  font-size: 18px;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
  letter-spacing: 0.03em;
}

.mobile-menu a:hover {
  color: var(--vermilion);
}

.mobile-menu-ctas {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-ctas .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 72px);
  max-height: 800px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 64px);
  background: var(--paper);
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--ink);
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.hero-lead {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--ink-light);
  line-height: 2.0;
  margin-bottom: 36px;
  max-width: 420px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  border-top: 0.5px solid rgba(0,0,0,0.08);
  padding-top: 28px;
}

.stat-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--ink-light);
  letter-spacing: 0.06em;
}

.hero-img {
  position: relative;
  overflow: hidden;
  background: var(--paper-warm);
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* フォールバック: 画像がない場合でも領域確保 */
  min-height: 400px;
}

/* 画像が壊れた場合のフォールバック */
.hero-img img[src=""],
.hero-img img:not([src]) {
  display: none;
}

.hero-img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(24,21,18,.85);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 0.5px solid rgba(255,255,255,.15);
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  padding: 36px 28px;
  background: var(--paper-white);
  border-radius: var(--radius);
  border: 0.5px solid rgba(184, 146, 42, 0.12);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  position: relative;
}

.service-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

/* ===== NEWS GRID ===== */
.news-grid {
  display: grid;
  gap: 1px;
  background: rgba(0,0,0,0.06);
  border: 0.5px solid rgba(0,0,0,0.06);
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 24px;
  background: var(--paper-white);
  transition: background var(--transition-normal);
}

.news-item:hover {
  background: var(--paper-warm);
}

.news-date {
  font-size: 12px;
  color: var(--ink-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.news-cat {
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(184, 146, 42, 0.12);
  color: var(--gold);
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-title {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--paper-warm);
  color: var(--ink-mid);
  padding: 64px 0 32px 0;
  border-top: 0.5px solid rgba(184, 146, 42, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.6;
}

.footer-brand .address {
  margin-top: 16px;
  font-style: normal;
  font-size: 13px;
}

.footer-links h4 {
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--vermilion);
}

.footer-newsletter h4 {
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-newsletter p {
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 16px;
}

.footer-sns {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.03);
  border-radius: 50%;
  font-size: 16px;
  color: var(--ink-mid);
  transition: background var(--transition-normal), color var(--transition-normal);
}

.footer-sns a:hover {
  background: var(--vermilion);
  color: #fff;
}

.footer-sns .line-btn {
  background: #06c755;
  color: #fff;
  border-radius: var(--radius);
  width: auto;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-sns .line-btn:hover {
  background: #05b04b;
}

.footer-bottom {
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-light);
}

/* ===== ARTWORK DISPLAY ===== */
.artwork-card {
  background: var(--paper-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: transform var(--transition-slow);
}

.artwork-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-warm);
}

.artwork-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.artwork-card:hover img {
  transform: scale(1.03);
}

.artwork-info {
  padding: 20px;
}

.artwork-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

.artwork-artist {
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 8px;
}

.artwork-meta {
  font-size: 12px;
  color: var(--ink-light);
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.artwork-price {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--vermilion);
  font-weight: 500;
}

.badge {
  display: inline-block;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: 500;
}

.badge-for-sale { background: var(--vermilion-light); color: var(--vermilion); }
.badge-rental { background: var(--teal-light); color: var(--teal); }
.badge-exhibited { background: rgba(184, 146, 42, 0.1); color: var(--gold); }
.badge-sold { background: #eee; color: #777; }

/* ===== BRUSH STROKE ===== */
.brush-divider {
  display: block;
  width: 240px;
  height: 16px;
  margin: 40px auto;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='16' viewBox='0 0 240 16'><path d='M10 8 Q60 12 120 7 T230 8' stroke='rgba(26,26,26,0.08)' stroke-width='3' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== MOTION & INTERACTION ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.draw-line {
  position: relative;
  display: inline-block;
}

.draw-line::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 4px;
  background: var(--vermilion);
  opacity: 0.7;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.reveal.active .draw-line::after {
  transform: scaleX(1);
}

/* ===== PAGE HERO (各ページ上部) ===== */
.page-hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 64px);
  background: linear-gradient(135deg, var(--paper-warm) 0%, var(--paper) 100%);
  border-bottom: 0.5px solid rgba(184, 146, 42, 0.12);
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 16px;
}

.page-hero .lead {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--ink-light);
  line-height: 1.9;
  max-width: 600px;
}

/* ===== EXHIBITION GRID ===== */
.exhibition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.exhibition-card {
  background: var(--paper-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 0.5px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  text-decoration: none;
  color: inherit;
  display: block;
}

.exhibition-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.exhibition-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-warm);
}

.exhibition-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.exhibition-card:hover .exhibition-img img {
  transform: scale(1.04);
}

.exhibition-info {
  padding: 20px;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--ink);
}

.form-group label .required {
  color: var(--vermilion);
  font-size: 11px;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 0.5px solid rgba(0,0,0,0.18);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--sans);
  background: var(--paper-white);
  color: var(--ink);
  transition: border-color var(--transition-normal);
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(184, 146, 42, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ===== TABLETS (max 1024px) ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* ===== MOBILE (max 768px) ===== */
@media (max-width: 768px) {
  /* Header */
  .header {
    height: 60px;
  }

  .nav {
    display: none;
  }

  .header-ctas {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero - スマホでは縦積み */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
  }

  .hero-text {
    padding: 48px 24px 36px;
    order: 1;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 18px;
  }

  .hero-lead {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .stat-num {
    font-size: 22px;
  }

  .hero-img {
    order: 0;
    height: 260px;
    max-height: 300px;
  }

  .hero-img img {
    min-height: 260px;
  }

  .hero-img-badge {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 12px 16px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 28px 20px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer {
    padding: 48px 0 24px;
  }

  /* Representative Profile */
  .representative-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* General layout */
  .exhibition-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section {
    padding: clamp(40px, 8vw, 64px) 0;
  }

  .btn {
    font-size: 14px;
    padding: 13px 24px;
  }

  /* News items */
  .news-item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
  }

  .news-title {
    width: 100%;
  }

  /* Page hero */
  .page-hero {
    padding: 40px 0 28px;
  }

  .page-hero h1 {
    font-size: clamp(24px, 7vw, 36px);
  }
}

/* ===== EXTRA SMALL (max 480px) ===== */
@media (max-width: 480px) {
  .logo {
    font-size: 16px;
  }
  .logo-mark {
    height: 38px;
  }
  .logo-text {
    font-size: 15px;
  }
  .logo-text span {
    font-size: 8px;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-num {
    font-size: 20px;
  }

  .stat-label {
    font-size: 10px;
  }
}
