:root {
  --aima-ink: #183f51;
  --aima-paper: #f5f2e8;
  --aima-rust: #ab5837;
  --aima-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --aima-sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --aima-side: clamp(22px, 4.6vw, 80px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#main { scroll-margin-top: clamp(68px, 6vw, 87px); }
body { margin: 0; color: var(--aima-ink); background: var(--aima-paper); font-family: var(--aima-sans); -webkit-font-smoothing: antialiased; }
.aima-skip { position: absolute; z-index: 10; top: 0; left: 12px; padding: 12px; transform: translateY(-150%); color: var(--aima-paper); background: var(--aima-ink); }
.aima-skip:focus { transform: none; }
.aima-mast a, .aima-footer a, .aima-woven-tag { color: inherit; text-decoration: none; }
.aima-mast a:focus-visible, .aima-cover :is(button, a):focus-visible, .aima-footer a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.aima-mast { position: relative; z-index: 5; padding-inline: var(--aima-side); background: var(--aima-paper); }
.aima-enhanced .aima-mast { position: sticky; top: 0; }
.aima-mast__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: clamp(68px, 6vw, 87px); max-width: 1900px; margin: auto; }
.aima-brand { display: flex; align-items: center; gap: 9px; }
.aima-brand__mark { width: clamp(35px, 3.3vw, 49px); height: auto; }
.aima-brand strong, .aima-brand small { display: block; }
.aima-brand strong { font: 700 clamp(22px, 2vw, 31px)/1.06 var(--aima-serif); letter-spacing: .11em; }
.aima-brand small, .aima-footer__brand small { margin-top: 5px; font: 600 8px/1.35 Arial, sans-serif; letter-spacing: .17em; }
.aima-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); }
.aima-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: clamp(12px, 1vw, 15px); font-weight: 700; letter-spacing: .06em; }
.aima-nav a:hover, .aima-footer__back:hover { text-decoration: underline; text-underline-offset: 6px; }
.aima-menu { display: none; }

.aima-cover { position: relative; color: var(--aima-ink); background: var(--aima-paper); }
.aima-cover__stage { position: relative; height: clamp(480px, 78vh, 910px); height: clamp(480px, 78svh, 910px); }
.aima-cover__images { position: absolute; inset: 0; overflow: hidden; background: #b7c3b8; }
.aima-cover__reel { position: absolute; inset: 0; isolation: isolate; }
.aima-cover__photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; opacity: 0; }
.aima-cover__reel .aima-cover__photo { mix-blend-mode: plus-lighter; }
.aima-cover__photo--process, .aima-cover__photo--yard { object-position: center; }
.aima-cover__photo.is-current { opacity: 1; }
.aima-headline {
  position: absolute;
  z-index: 1;
  top: clamp(27px, 6vh, 70px);
  right: clamp(34px, 8vw, 150px);
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: clamp(7px, 1vw, 17px);
  margin: 0;
  color: #fffaf0;
  font: 600 clamp(31px, 3.15vw, 56px)/1.2 var(--aima-serif);
  letter-spacing: .105em;
}
.aima-headline span {
  position: relative;
  display: block;
  writing-mode: vertical-rl;
  padding: .55em .34em .46em;
  background-color: #194855;
  background-image: repeating-linear-gradient(6deg, transparent 0 2px, #8ca8a41b 2px 3px), repeating-linear-gradient(94deg, transparent 0 3px, #cfdacd19 3px 4px);
  clip-path: polygon(0 .6%, 43% .2%, 98% 0%, 100% 50%, 98% 99.5%, 63% 100%, 0 99.3%, 1% 48%);
}
.aima-headline span::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-inline: 1px dashed #e6ead47a;
  border-block: 1px dashed #e6ead443;
  pointer-events: none;
}
.aima-headline span:first-child { transform: rotate(.9deg); }
.aima-headline span + span { margin-top: 1.15em; transform: rotate(-1.4deg); background-color: #2b5667; }
.aima-cloth-edge { position: absolute; right: 0; bottom: -1px; width: 100%; height: clamp(53px, 7.2vw, 124px); pointer-events: none; }
.aima-woven-tag {
  position: absolute;
  z-index: 1;
  right: clamp(40px, 8.8vw, 165px);
  bottom: -12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: clamp(144px, 12vw, 187px);
  min-height: clamp(76px, 6.2vw, 104px);
  gap: 3px;
  padding: 14px 20px;
  background-color: #e9dfbb;
  background-image: repeating-linear-gradient(2deg, transparent 0 2px, #c3b79755 2px 3px), repeating-linear-gradient(90deg, transparent 0 3px, #fffbdd88 3px 4px);
  color: #244249;
  box-shadow: 0 3px 6px #23363032;
  transform: rotate(-5deg);
}
.aima-woven-tag::before { content: ""; position: absolute; inset: 5px; border: 1px dashed #817d60; }
.aima-woven-tag::after { content: ""; position: absolute; inset: 2px -3px; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 2px, #e0d5b2 2px 3px, transparent 3px 5px) left / 3px 100% no-repeat, repeating-linear-gradient(0deg, transparent 0 2px, #e0d5b2 2px 4px) right / 3px 100% no-repeat; }
.aima-woven-tag > span { font: 700 clamp(18px, 1.65vw, 27px)/1.5 var(--aima-serif); letter-spacing: .045em; }
.aima-woven-tag small { font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.aima-woven-tag b { margin-left: 4px; color: #944728; }
.aima-woven-tag:hover > span { text-decoration: underline; text-underline-offset: 5px; }
.aima-cover__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; min-height: 58px; padding: 7px var(--aima-side) 14px; }
.aima-caption { margin: 0; font-size: 12px; line-height: 1.65; }
.aima-selector:not([hidden]) { display: inline-flex; flex-wrap: wrap; gap: 0 4px; max-width: 100%; }
.aima-selector button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 5px 7px; border: 0; background: transparent; color: var(--aima-ink); font: 600 12px/1.4 var(--aima-sans); cursor: pointer; }
.aima-selector button::before { content: ""; display: block; width: 8px; height: 8px; border: 1px solid #58747c; border-radius: 50%; }
.aima-selector button[aria-pressed="true"]::before { background: var(--aima-ink); border-color: var(--aima-ink); }
.aima-selector button:hover { text-decoration: underline; text-underline-offset: 4px; }
.aima-selector button[hidden] { display: none; }
.aima-selector .aima-autoplay { margin-left: 4px; padding-left: 12px; color: #435d66; font-weight: 500; }
.aima-selector .aima-autoplay::before { width: 1px; height: 12px; margin-right: 3px; border: 0; border-radius: 0; background: #a8b9b5; }

@media (prefers-reduced-motion: no-preference) {
  /* Scale the moving layer just enough to keep both edges of the frame covered. */
  .aima-cover__reel {
    --travel: var(--aima-photo-depth, 0);
    transform: translateY(calc(2.9% * var(--travel))) scale(calc(1 + .06 * var(--travel)));
  }
  .aima-cover__photo.is-zooming {
    transform-origin: 40% 22%;
    animation: aima-photo-zoom 10.5s linear both;
    animation-play-state: paused;
  }
  .aima-cover__stage.is-playing .aima-cover__photo.is-zooming { animation-play-state: running; }
  @keyframes aima-photo-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
  }
  .aima-nav a { position: relative; }
  .aima-nav a::after {
    content: "";
    position: absolute;
    inset: auto 0 6px;
    height: 1px;
    background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 6px);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease-out;
  }
  .aima-nav a:is(:hover, :focus-visible) { text-decoration: none; }
  .aima-nav a:is(:hover, :focus-visible)::after { transform: scaleX(1); }
  .aima-woven-tag { transition: transform .25s ease-out, box-shadow .25s ease-out; }
  .aima-woven-tag:focus-visible { transform: translateY(-3px) rotate(-3deg); box-shadow: 0 7px 12px #23363040; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .aima-woven-tag:hover { transform: translateY(-3px) rotate(-3deg); box-shadow: 0 7px 12px #23363040; }
}
.aima-footer { padding: clamp(35px, 5vw, 78px) var(--aima-side) 12px; color: var(--aima-paper); background: #183643; }
.aima-footer__main, .aima-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1450px; margin-inline: auto; }
.aima-footer__main { padding-bottom: clamp(24px, 3.5vw, 54px); }
.aima-footer__nav { display: grid; grid-template-columns: repeat(3, auto); gap: 0 26px; }
/* Footer glyph subset of Noto Sans JP Regular. License: fonts/OFL.txt. */
@font-face {
  font-family: "Noto Sans JP";
  src: url("fonts/noto-sans-jp-footer.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.aima-footer__nav a, .aima-footer__contact { display: inline-flex; align-items: center; min-height: 44px; font-family: "Noto Sans JP", var(--aima-sans); font-size: 13px; }
.aima-footer__contact { gap: 8px; }
.aima-footer__nav a:hover, .aima-footer__contact:hover { text-decoration: underline; text-underline-offset: 4px; }
.aima-footer__bottom { padding-top: 10px; border-top: 1px solid #bbc9be5c; }
.aima-footer__brand { display: block; font: 600 30px/1.4 var(--aima-serif); letter-spacing: .1em; }
.aima-footer__brand small { display: block; }
.aima-footer p { margin: 0; font-size: 12px; line-height: 1.7; }
.aima-footer__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; }

@media (max-width: 940px) {
  .aima-nav { display: none; }
  .aima-menu { display: block; }
  .aima-menu summary { display: grid; place-items: center; width: 46px; height: 46px; list-style: none; cursor: pointer; }
  .aima-menu summary::-webkit-details-marker { display: none; }
  .aima-menu summary:focus-visible { outline: 3px solid var(--aima-ink); }
  .aima-menu__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .aima-menu__icon { width: 26px; height: 12px; border-block: 1.5px solid currentColor; position: relative; }
  .aima-menu__icon::after { content: ""; position: absolute; top: 4px; left: 0; right: 4px; border-top: 1.5px solid currentColor; }
  .aima-menu[open] .aima-menu__icon { transform: rotate(-45deg); height: 0; border-bottom: 0; }
  .aima-menu[open] .aima-menu__icon::after { top: -1px; right: 0; transform: rotate(90deg); }
  .aima-menu nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; padding: 12px var(--aima-side) 20px; background: var(--aima-paper); box-shadow: 0 8px 10px #233e4121; }
  .aima-menu nav a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid #cbd0c2; font-size: 14px; font-weight: 600; }
}

@media (max-width: 740px) {
  .aima-mast__inner { min-height: 66px; gap: 12px; }
  .aima-brand { gap: 5px; }
  .aima-brand__mark { width: 31px; }
  .aima-brand strong { font-size: 21px; }
  .aima-brand small { font-size: 7px; }
  .aima-cover__stage { height: clamp(420px, 72vh, 680px); height: clamp(420px, 72svh, 680px); }
  .aima-cover__photo { object-position: 0% 14%; }
  .aima-cover__photo--open { object-position: 29% 44%; }
  .aima-cover__photo--process, .aima-cover__photo--yard { object-position: center; }
  .aima-headline { top: 24px; right: 18px; gap: 5px; font-size: clamp(24px, 5.1vw, 33px); }
  .aima-headline span { padding-inline: .52em; padding-block: .29em; }
  .aima-cloth-edge { height: 53px; }
  .aima-woven-tag { left: var(--aima-side); right: auto; bottom: -11px; min-width: 128px; min-height: 67px; padding: 10px 15px; }
  .aima-woven-tag > span { font-size: 19px; }
  .aima-cover__foot { display: grid; grid-template-columns: minmax(0,1fr) auto; padding-top: 26px; gap: 4px 8px; }
  .aima-caption { font-size: 11px; }
  .aima-selector:not([hidden]) { gap: 0; }
  .aima-selector button { font-size: 11px; padding-inline: 5px; }
  .aima-footer__main, .aima-footer__bottom { align-items: start; flex-direction: column; }
  .aima-footer__bottom { gap: 0; }
  .aima-footer__nav { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 510px) {
  .aima-cover__foot { grid-template-columns: 1fr; gap: 0; }
  .aima-selector { justify-self: start; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .aima-cover__photo:first-child { min-height: 158vw; }
}
@media (max-width: 360px) {
  :root { --aima-side: 15px; }
  .aima-headline { right: 12px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aima-cover__photo { transition: none; }
}
