:root {
  --ink: #241b18;
  --cream: #f3e1bd;
  --paper: #fff1cf;
  --red: #9f3729;
  --teal: #176f72;
  --cyan: #61e8f2;
  --gold: #d89b3c;
  --night: #101522;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: var(--paper);
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }

.page-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px clamp(14px, 4vw, 60px);
  color: var(--cream);
  background: linear-gradient(rgba(12,14,24,.86), transparent);
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.42));
}
.page-header nav { display: flex; gap: 4px; }
.page-header nav a { padding: 8px 11px; font-size: 10px; font-weight: 900; border: 1px solid rgba(243,225,189,.55); background: rgba(16,21,34,.6); }
.page-header nav a:last-child { background: var(--red); }
.human-language-switch {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0 8px;
  margin-left: 8px;
  padding: 7px 10px;
  color: var(--cream);
  font: inherit;
  cursor: pointer;
  border: 1px solid rgba(243,225,189,.7);
  background: rgba(16,21,34,.72);
}
.human-language-switch span {
  grid-row: 1 / 3;
  max-width: 74px;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
}
.human-language-switch strong { color: var(--cyan); font-size: 10px; letter-spacing: .08em; }
.human-language-switch small { font-size: 7px; opacity: .72; }
.human-language-switch:hover,
.human-language-switch:focus-visible { border-color: var(--cyan); background: rgba(23,111,114,.82); }

.hero {
  display: grid;
  grid-template-columns: minmax(330px, .72fr) minmax(0, 1.28fr);
  min-height: 100svh;
  color: var(--cream);
  background: #172d33;
}
.hero-copy { align-self: center; padding: 120px clamp(24px, 7vw, 110px) 70px; }
.eyebrow { margin: 0 0 14px; color: #ffcf72; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.eyebrow.dark { color: var(--red); }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: 0; }
h1 { font-size: clamp(52px, 7vw, 105px); }
h2 { font-size: clamp(42px, 6vw, 78px); }
h3 { font-size: clamp(22px, 2vw, 30px); }
.hero-copy > p:nth-of-type(2) { margin: 25px 0 30px; font-weight: 700; line-height: 2; }
.hero-image { position: relative; min-height: 780px; overflow: hidden; }
.hero-image img { height: 100%; object-fit: cover; object-position: center 38%; }
.hero-image::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, #172d33, transparent 22%); pointer-events: none; }
.hero-image p {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  margin: 0;
  padding: 10px 14px;
  font-size: 9px;
  line-height: 1.7;
  background: rgba(28,37,37,.84);
  border: 1px solid #b77e4e;
}
.hero-image strong { font-size: 13px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 18px;
  color: var(--cream);
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(#315e5e, #174a4c);
  border: 3px solid #af7142;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px #1b2827, 0 7px 0 #201713;
}
.button span { width: 10px; height: 10px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 12px var(--cyan); }

.ticker { overflow: hidden; padding: 12px 0; color: var(--cream); background: var(--red); border-block: 3px solid #361e18; }
.ticker div { display: flex; align-items: center; gap: 28px; width: max-content; font-size: 11px; font-weight: 900; letter-spacing: .08em; animation: ticker 25s linear infinite; }
.ticker b { color: #ffcf72; }

.services { padding: clamp(90px, 11vw, 150px) clamp(18px, 7vw, 100px); }
.section-heading { display: grid; grid-template-columns: 1fr .7fr; gap: 40px; align-items: end; max-width: 1200px; margin: 0 auto 60px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading p:last-child { margin: 0; font-weight: 700; line-height: 1.9; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1200px; margin: auto; }
.service-grid article { min-height: 270px; padding: 30px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.service-grid article:nth-child(1) { background: #e98e83; }
.service-grid article:nth-child(2) { background: #e3bd61; }
.service-grid article:nth-child(3) { background: #74c7ca; }
.service-grid article:nth-child(4) { background: #82bd91; }
.service-grid span { display: block; margin-bottom: 55px; font-size: 11px; font-weight: 900; }
.service-grid p { max-width: 430px; font-weight: 700; line-height: 1.8; }

.exhibition { padding: clamp(90px, 11vw, 150px) clamp(18px, 6vw, 90px); color: var(--cream); background: #111827; }
.exhibition-heading { display: grid; grid-template-columns: 1fr .7fr; gap: 40px; align-items: end; max-width: 1240px; margin: 0 auto 70px; }
.exhibition-heading > p { margin: 0; line-height: 2; }
.exhibit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; max-width: 1240px; margin: auto; }
.exhibit { border: 1px solid rgba(243,225,189,.32); background: #182332; }
.exhibit-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr .75fr; }
.exhibit-space {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: 30px;
  color: rgba(243,225,189,.55);
  text-align: center;
  background:
    linear-gradient(rgba(97,232,242,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97,232,242,.08) 1px, transparent 1px),
    #101a27;
  background-size: 28px 28px;
  border: 1px dashed rgba(97,232,242,.42);
}
.exhibit-space::before { position: absolute; width: 90px; height: 90px; content: ""; border: 1px solid rgba(97,232,242,.25); border-radius: 50%; box-shadow: 0 0 30px rgba(97,232,242,.12); }
.exhibit-space span { position: absolute; top: 15px; left: 17px; font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.exhibit-space strong { position: relative; z-index: 1; font-size: 20px; }
.exhibit-space small { position: absolute; bottom: 15px; font-size: 7px; letter-spacing: .12em; }
.exhibit-space.portrait, .exhibit-space.square { min-height: 360px; }
.exhibit-copy { padding: 34px; }
.exhibit-copy > p:not(.eyebrow) { line-height: 1.9; }
.exhibit-copy dl { margin-top: 30px; font-size: 10px; }
.exhibit-copy dl div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(243,225,189,.18); }
.exhibit-copy dt { color: #ffcf72; }
.future-shelf { display: flex; align-items: center; gap: 18px; max-width: 1240px; margin: 34px auto 0; padding: 24px; color: rgba(243,225,189,.72); border: 1px dashed rgba(243,225,189,.35); }
.future-shelf span { display: grid; place-items: center; width: 48px; height: 48px; font-size: 28px; border: 1px solid rgba(243,225,189,.4); border-radius: 50%; }
.future-shelf p { margin: 4px 0 0; font-size: 11px; }

.tool-shop {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 11vw, 150px) clamp(18px, 6vw, 90px);
  background:
    linear-gradient(rgba(36, 27, 24, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 27, 24, .08) 1px, transparent 1px),
    var(--paper);
  background-size: 30px 30px;
}
.tool-shop::before {
  position: absolute;
  right: -24px;
  top: 22px;
  content: "TOOLS / TEMPLATE / HIIRO /";
  color: rgba(159, 55, 41, .12);
  font-size: clamp(46px, 10vw, 128px);
  font-weight: 900;
  white-space: nowrap;
}
.shop-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr .76fr;
  gap: 38px;
  align-items: end;
  max-width: 1240px;
  margin: 0 auto 56px;
}
.shop-heading .eyebrow { grid-column: 1 / -1; }
.shop-heading p:last-child {
  margin: 0;
  font-weight: 700;
  line-height: 2;
}
.shop-shelf {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr repeat(2, minmax(0, .9fr));
  gap: 18px;
  max-width: 1240px;
  margin: auto;
}
.shop-item {
  min-height: 300px;
  padding: 28px;
  background: #f8e6bf;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--ink);
}
.shop-item span {
  display: inline-block;
  margin-bottom: 38px;
  padding: 6px 9px;
  color: var(--cream);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  background: var(--red);
}
.shop-item p {
  font-weight: 700;
  line-height: 1.8;
}
.shop-item a {
  display: inline-flex;
  margin-top: 20px;
  padding-bottom: 5px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  border-bottom: 1px solid var(--red);
}
.shop-featured {
  color: var(--cream);
  background:
    radial-gradient(circle at 78% 20%, rgba(97,232,242,.22), transparent 28%),
    #172d33;
}
.shop-featured span {
  color: var(--ink);
  background: #ffcf72;
}
.shop-featured a {
  color: #ffcf72;
  border-color: #ffcf72;
}

.contact { padding: 120px 20px; text-align: center; background: #d9ba7c; }
.contact p:not(.eyebrow) { font-weight: 700; }
.contact .button { margin-top: 22px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px clamp(18px, 5vw, 70px); color: var(--cream); font-size: 9px; letter-spacing: .1em; background: #0b0f19; }

@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 650px; order: -1; }
  .hero-image::after { background: linear-gradient(0deg, #172d33, transparent 28%); }
  .hero-copy { padding: 55px 24px 80px; }
  .section-heading, .exhibition-heading, .shop-heading { grid-template-columns: 1fr; }
  .shop-shelf { grid-template-columns: 1fr; }
  .exhibit-wide { display: block; }
}

@media (max-width: 640px) {
  .page-header { padding: 10px; }
  .brand-logo { width: 30px !important; height: 30px !important; }
  .brand strong { font-size: 11px; }
  .page-header nav a:not(:last-child) { display: none; }
  .human-language-switch { margin-left: 4px; padding: 6px 8px; }
  .human-language-switch span { display: none; }
  .human-language-switch strong,
  .human-language-switch small { grid-column: 1; }
  .hero-image { min-height: 540px; }
  .hero-copy { padding-inline: 18px; }
  h1 { font-size: 54px; }
  h2 { font-size: 42px; }
  .services, .exhibition { padding-inline: 18px; }
  .service-grid, .exhibit-grid { grid-template-columns: 1fr; }
  .service-grid article { min-height: 230px; }
  .exhibit-wide { grid-column: auto; }
  .exhibit-space { min-height: 320px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
