@charset "utf-8";
/* Webフォント（Aubrey / Zen Antique Soft）は index.html の <link> で読み込み */
body,div,h1, h2, h3, p, ul, dl, dd, figure{ margin: 0; padding: 0; }
ul,ol,li,dl,dt,dd{ list-style: none; }
img{ max-width: 100%; box-sizing: border-box; }
*, *::before, *::after{ box-sizing: border-box; }
body{ font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; overflow-x: clip; /* hidden だと body 自体がスクロール要素になるため clip */ min-height: 100%; font-size: 0.8rem; color: var(--c-b08); background: var(--c-white); }
a{ color: inherit; text-decoration: none; transition: color 0.4s, transform 0.4s; }

:root{
  --c-accent: #ee4d16;
  --c-b09: rgba(0, 0, 0, 0.9);
  --c-b08: rgba(0, 0, 0, 0.8);
  --c-b07: rgba(0, 0, 0, 0.7);
  --c-b06: rgba(0, 0, 0, 0.6);
  --c-b02: rgba(0, 0, 0, 0.2);
  --c-white: #ffffff;
  --c-w08: rgba(255, 255, 255, 0.8);
  --c-w06: rgba(255, 255, 255, 0.6);
  --c-w02: rgba(255, 255, 255, 0.2);

  /* layout (desktop)
     サイズ・余白は rem（1rem = 16px ※ブラウザ標準時）。
     px のまま残しているのは、ブレークポイント・1px罫線・アニメーション移動量・影・サイドバー幅・写真高さ。 */
  --header-h: 2.1rem;
  --footer-h: 2.3rem;
  --side-w: clamp(300px, 23.6vw, 400px);
  --pill-overlap: 7.75rem;   /* 共用機材ピルがグレー面に重なる量 */
  --info-pad-x: clamp(1.25rem, 2vw, 2.1rem);
  --pill-margin: 4%;     /* 共用機材ピルの左右の最低余白（中身が短ければ自動で広がる） */
  --pill-pad-l: clamp(1.5rem, 2.4vw, 2.25rem);
  --pill-pad-r: clamp(1.5rem, 2.4vw, 2.25rem);
  --specs-fs: clamp(0.75rem, 0.95vw, 0.9rem);   /* 機材リストの文字サイズ（画面幅で伸縮） */
}

html{ min-height: 100%; -webkit-text-size-adjust: 100%; }

html:not(.loaded) body *:not(.loader):not(.spinner),
html:not(.loaded) body *:not(.loader):not(.spinner)::before,
html:not(.loaded) body *:not(.loader):not(.spinner)::after {
  animation: none !important;
}

/****** loader ******/
html.loaded{ overflow-x: hidden; overflow-y: auto; height: auto; }
.loader{ position: fixed; top: var(--header-h); left: 0; width: 100%; height: calc(100% - var(--header-h)); display: grid; place-items: center; background-color: var(--c-accent); z-index: 666; animation: jr 1.2s cubic-bezier(0.35, 0.1, 0.25, 1) forwards; }
.loaded .loader, .revisit .loader{ pointer-events: none; display: none; }
@keyframes jr{
  0%{ width: 0%; }
  100%{ width: 100%; }
}

/* spinner */
.spinner{ height:50px; width:50px; border:4px solid var(--c-white); border-radius:50%; border-top-color:var(--c-b06); position: fixed; top:calc(48% - 25px); left: calc(50% - 25px); opacity:0; animation: spin 0.6s linear infinite, fadeIn 0.5s ease forwards; backface-visibility: hidden; }
@keyframes spin{
  to { transform: rotate(360deg); }
}
.spinner.fade-out{ animation: spin 0.6s linear infinite, fadeOut 0.8s ease forwards !important; }

/*********** site grid ***********/
.site{
  opacity: 0; position: relative; display: grid; min-height: 100svh;
  grid-template-columns: minmax(0, 1fr) var(--side-w);
  grid-template-rows: var(--header-h) minmax(0, 1fr) var(--footer-h);
}
.loaded .site{ opacity: 1; }
.brand{ grid-column: 1 / -1; grid-row: 1; z-index: 10; }
.layout{ grid-column: 1; grid-row: 2; }
.side-panel{ grid-column: 2; grid-row: 2 / 4; }
.site-footer{ grid-column: 1; grid-row: 3; }

/*********** header ***********/
.brand{ opacity: 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0 1.75rem 0 2.25rem; background: var(--c-white); }
.loaded .brand{ opacity: 1; animation: fadeIn 1s ease forwards; }

/* ロゴ：デスクトップでは2枚の写真の継ぎ目に重ねる */
#site-title{ position: absolute; z-index: 5; top: calc(var(--header-h) + 2.25rem); left: calc((100% - var(--side-w)) / 2); width: clamp(10.625rem, 15vw, 15.625rem); transform: translateX(-50%); line-height: 0; pointer-events: none; }
#site-title img{ width: 100%; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15)); }

.brand-social{ display: flex; align-items: center; gap: 0.5rem; }
.brand-social a{ font-size: 0.6875rem; font-weight: 700; color: var(--c-b09); text-decoration: none; transition: color .18s ease; }
.brand-social a span{ display: none; color: var(--c-accent); }
.brand-social a:hover, .brand-social a:focus-visible{ color: var(--c-accent); }
.brand-star{ width: 1.25rem; height: 1.375rem; fill: var(--c-accent); }


/*********** main ***********/
.bgc01 { --bg: #eddece; }
.bgc02 { --bg: #e1d1d1; }
.bgc03 { --bg: #796060; }
.bgc04 { --bg: #2c2727; }
.bga {
  display: grid;
  background-image: linear-gradient( to right, var(--bg, #eee), var(--bg, #eee));
  background-repeat: no-repeat; background-position: left center; background-size: 0% 100%;
  animation: bga 1.2s cubic-bezier(0.35, 0.1, 0.25, 1) forwards;
}
@keyframes bga {
  0%   { background-size: 0% 100%; }
  100% { background-size: 100% 100%; }
}

.layout{ display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; position: relative; background: var(--c-white); }

/* 2スタジオ：上段に写真、下段に情報（左右2カラム） */
.studios{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(150px, 1fr) auto; min-width: 0; min-height: 0; background: var(--c-accent); }
.studio{ display: contents; }
.studio-01 > *{ grid-column: 1; }
.studio-02 > *{ grid-column: 2; }
.studio-photo{ grid-row: 1; }
.studio > .bga{ grid-row: 2; }

.studio-label { display: block; color: var(--c-b06); font-family: "Zen Antique Soft", "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 0.6875rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; }
.studio-photo{ overflow: hidden; min-height: 0; position: relative; animation: pha 1.4s cubic-bezier(0.35, 0.1, 0.25, 1) forwards; }
@keyframes pha {
  0%   { transform: translateX(-30px); }
  100% { transform: translateX(0); }
}
.studio-photo::after{ content: ""; position: absolute; top: 0; right: 0; width: 0; height: 100%; z-index: 1; background: var(--c-accent);animation: phbg 1.4s cubic-bezier(0.35, 0.1, 0.25, 1) forwards; }
@keyframes phbg {
  0%   { width: 100%; }
  100% { width: 0; }
}
.studio-photo img{ display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.studio-01:hover .studio-photo img, .studio-02:hover .studio-photo img{ transform: scale(1.06); }

/* 下側のピル（共用機材）が重なる分だけグレー面を下に伸ばす */
.studio-info{ container-type: inline-size; position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 0 var(--info-pad-x) calc(var(--pill-overlap) + 2.5rem); }
.studio-head{ position: relative; z-index: 2; display: flex; align-items: center; gap: 1.625rem; margin-top: -0.4375rem; }
.studio-logo{ flex: none; width: auto; height: 4.6rem; }
.studio-heading{ min-width: 0; padding-top: 1rem; }
.studio-heading h2{ margin-top: 0.25rem; color: var(--c-b09); font-family: "Aubrey", "Helvetica Neue", sans-serif; font-size: clamp(1.25rem, calc((100cqi - 8.5rem) / 10.4), 2.5rem); font-weight: 400; line-height: 1.05; letter-spacing: 0.02em; }

/* h2 の文字サイズは情報欄の幅（cqi）から計算：ロゴ分を引いた幅に「AMBER NOTES PICO」が1行で収まる最大値（上限 2.5rem） */
/* Zen Antique Soft（400のみのため太字は擬似ボールドにならないよう標準ウェイトで表示） */
.specs, .work-groups{ font-family: "Zen Antique Soft", "Hiragino Mincho ProN", "Yu Mincho", serif; }
.work-groups h3{ font-weight: 400; }
/* ベースフォントに戻す箇所 */
.specs dt, .works span{ font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-weight: 700; }

.panel-kicker{ display: block; flex: none; color: var(--c-b06); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; padding: 0.125rem 0.25rem; margin-right: 0.5rem; background: var(--c-w06); }

.specs{ display: grid; grid-template-columns: 4rem minmax(0, 1fr); column-gap: 0.75rem; margin-top: 0.9rem; font-size: var(--specs-fs); border-top: 1px solid var(--c-b02); }
.specs dt, .specs dd{ padding: 0.8rem 0; border-bottom: 1px solid var(--c-b02); }
.specs dt{ color: var(--c-accent); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.specs dt::before{ content: "\200B"; font-family: "Zen Antique Soft", "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: var(--specs-fs); font-weight: 400; }
.specs dd{ min-width: 0; }

.pdf-link{ align-self: flex-start; margin-top: auto; padding-top: 1.5rem; color: var(--c-b09); font-size: 0.68rem; font-weight: 700; text-decoration: none; }
.pdf-link::after{ content: " \2197"; content: " \2197" / ""; color: var(--c-accent); } /* 2つ目：読み上げでは矢印を読まない（未対応ブラウザは1つ目を使用） */
.pdf-link:hover, .pdf-link:focus-visible{ color: var(--c-accent); }

/* PICO：左右反転レイアウト */
.studio-02 .studio-head{ flex-direction: row-reverse; text-align: right; }
.studio-02 .specs{ grid-template-columns: minmax(0, 1fr) 4rem; grid-auto-flow: row dense; }
.studio-02 .specs dt{ grid-column: 2; text-align: right; }
.studio-02 .specs dd{ grid-column: 1; text-align: right; }
.studio-02 .pdf-link{ align-self: flex-end; }

/*********** shared equipment (pill) ***********/
.shared-wrap{ position: relative; z-index: 3; width: max-content; max-width: calc(100% - var(--pill-margin) * 2); margin: calc(var(--pill-overlap) * -1) auto 0; overflow: hidden; }
.shared{ min-width: 0; padding: 0.9rem var(--pill-pad-r) 0.4rem var(--pill-pad-l); color: var(--c-white); }

.panel-title{ display: flex; align-items: center; margin-bottom: 0.75rem; }
.panel-title h2{ font-family: "Zen Antique Soft", "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 1.125rem; font-weight: 400; color: var(--c-white); }
.shared .panel-title{ margin-bottom: 0.5rem; }

.compact-list{ display: grid; grid-template-columns: 4.625rem minmax(0, 1fr); column-gap: 0.75rem; }
.compact-list dt{ padding: 0.5rem 0; color: var(--c-white); font-size: 0.625rem; font-weight: 700; }
.compact-list dt::before{ content: "\200B"; font-size: 1.28em; font-weight: 400; }
.compact-list dd{ padding: 0.5rem 0; border-top: 1px solid var(--c-w02); color: var(--c-w08); }
.compact-list dt:first-child + dd{ border-top: 0; }

/*********** works (side panel) ***********/
.side-panel{ min-width: 0; min-height: 0; }
.production{ display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 1.5rem 0.625rem 1.5rem 1.5625rem; overflow: hidden auto; /* 横はホバー時のずれで横スクロールが出ないよう hidden */ color: var(--c-white); scrollbar-width: thin; scrollbar-color: var(--c-accent) transparent; }
.production .panel-title{ margin-bottom: 1.125rem; }

.work-groups{ display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; min-height: 0; }
.work-groups h3{ margin-bottom: 0.5rem; color: var(--c-accent); font-size: 0.875rem; font-weight: 700; }
.works li{ border-bottom: 1px solid var(--c-w02); position: relative; }
.works li:last-of-type{ border-bottom: none; }
.works li::after{ content: ""; position: absolute; top: 50%; transform: translateY(-50%); left: 0; width: 1.3125rem; height: 0.9375rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 20'%3E%3Cpath fill='%23FF0000' d='M27.4 3.1A3.5 3.5 0 0 0 24.9.6C22.7 0 14 0 14 0S5.3 0 3.1.6A3.5 3.5 0 0 0 .6 3.1C0 5.3 0 10 0 10s0 4.7.6 6.9a3.5 3.5 0 0 0 2.5 2.5C5.3 20 14 20 14 20s8.7 0 10.9-.6a3.5 3.5 0 0 0 2.5-2.5C28 14.7 28 10 28 10s0-4.7-.6-6.9z'/%3E%3Cpath fill='%23fff' d='M11.2 14.3 18.5 10l-7.3-4.3z'/%3E%3C/svg%3E") no-repeat center / contain; opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.works a{ display: block; padding: 0.68rem 0; color: var(--c-w08); font-size: 0.8125rem; line-height: 1rem; text-decoration: none; }
.works span{ display: block; margin-bottom: 1px; color: var(--c-w06); font-size: 0.625rem; font-weight: 700; text-transform: uppercase; }
/* ホバー：マウス等ホバーできる端末のみ（タッチ端末でタップ後に残らないように） */
@media (hover: hover) {
  .works a:hover{ color: var(--c-accent); transform: translateX(30px); }
  .works li:hover::after{ opacity: 1; }
}
/* キーボード操作時：クリック後にフォーカスが残ってもアイコンが出ないよう focus-visible のみ */
.works a:focus-visible{ color: var(--c-accent); transform: translateX(30px); }
.works li:has(a:focus-visible)::after{ opacity: 1; }

/*********** footer ***********/
.site-footer { opacity: 0; display: flex; align-items: center; justify-content: center; padding: 0 3%; background: var(--c-white); color: var(--c-b06); font-size: 0.68rem; }
.loaded .site-footer{ opacity: 1; animation: fadeIn 1s ease forwards; }


/*********** large desktop ***********/
@media (min-width: 1440px) and (min-height: 900px) {
  :root{ --header-h: 2.75rem; --footer-h: 2.875rem; --pill-overlap: 8.5rem; }
  body{ font-size: 0.875rem; }
  .studio-logo{ height: 5.25rem; }
  .specs dt, .specs dd{ padding: 0.9rem 0; }
  .panel-title h2{ font-size: 1.1rem; }
  .compact-list dt{ padding: 0.5625rem 0; font-size: 0.68rem; }
  .compact-list dd{ padding: 0.5625rem 0; }
  .works a{ padding: 0.875rem 0; font-size: 0.875rem; line-height: 1.0625rem; }
  .works span{ font-size: 0.625rem; }
}

/* 画面に収まる高さのときは1画面固定 */
@media (min-width: 1081px) and (min-height: 820px) {
  html, html.loaded, body{ height: 100%; }
  .site{ height: 100%; min-height: 0; grid-template-rows: var(--header-h) minmax(min-content, 1fr) var(--footer-h); }
  .layout{ grid-template-rows: minmax(min-content, 1fr) auto; }
  .side-panel{ position: relative; }
  .side-panel > .production{ position: absolute; inset: 0; }
  .studio-photo img{ position: absolute; inset: 0; }
}
@media (min-width: 1081px) and (max-height: 819px) {
  .studios{ grid-template-rows: clamp(260px, 30vw, 380px) auto; }
}


/*********** small screen ***********/
@media (max-width: 1080px) {
  :root{ --side-w: 0px; }
  .site{ grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--header-h) auto auto auto; }
  .brand, .layout, .side-panel, .site-footer{ grid-column: 1; grid-row: auto; }

  .studios{ grid-template-rows: auto auto; }
  .studio-photo{ aspect-ratio: 16 / 10; }

  :root{ --pill-margin: 6%; --pill-pad-l: 1.5rem; --pill-pad-r: 1.5rem; --specs-fs: clamp(0.68rem, 1.45vw, 0.875rem); }
  .shared-wrap{ margin-bottom: 1.75rem; }

  .production{ padding: 1.75rem 1.625rem; overflow: visible; }
  .work-groups{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .work-groups h3{ margin-bottom: 0.375rem; padding-bottom: 0.375rem; border-bottom: 1px solid var(--c-w02); }

  .site-footer{ height: 5rem; }
}

@media (max-width: 720px) {
  :root{ --header-h: 5rem; --pill-overlap: 3.75rem; }
  /* 写真が縦積みになり継ぎ目が無くなるため、ロゴはヘッダーへ戻す */
  .brand{ display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); gap: 0; padding: 0 3% 0 2%; }
  #site-title{ position: static; width: auto; transform: none; pointer-events: auto; }
  #site-title img{ width: 6.25rem; filter: none; }
  .brand-social{ justify-self: end; gap: 0.375rem; }
  .brand-social a span{ display: inline; }
  .brand-star{ width: 0.875rem; height: 1rem; }

  .studios { grid-template-columns: 1fr; grid-template-rows: none; }
  .studio{ display: block; }
  .studio-photo{ aspect-ratio: auto; height: 230px; }
  .studio-info { padding: 0 1.25rem calc(var(--pill-overlap) + 1.875rem); }
  .studio-01 .studio-info{ padding-bottom: 1.875rem; }
  .pdf-link { margin-top: 0; }

  /* スマホでは反転を解除 */
  .studio-02 .studio-head{ flex-direction: row; text-align: left; }
  .studio-02 .specs{ grid-template-columns: 4rem minmax(0, 1fr); }
  .studio-02 .specs dt{ grid-column: 1; text-align: left; }
  .studio-02 .specs dd{ grid-column: 2; text-align: left; }
  .studio-02 .pdf-link{ align-self: flex-start; }

  :root{ --pill-margin: 1rem; --pill-pad-l: 1.125rem; --pill-pad-r: 1.125rem; --specs-fs: 0.8125rem; }
  .shared-wrap{ width: auto; margin-left: var(--pill-margin); margin-right: var(--pill-margin); }
  .production { padding: 1.5rem 1.25rem; }
}

@media (max-width: 420px) {
  .specs, .compact-list, .work-groups { grid-template-columns: 1fr; }
  .studio-02 .specs{ grid-template-columns: 1fr; }
  .studio-02 .specs dt, .studio-02 .specs dd{ grid-column: 1; }
  .specs dt { padding-bottom: 0; border-bottom: 0; }
  .specs dd { padding-top: 0.125rem; }
  .compact-list dt { padding-bottom: 0; }
  .compact-list dd { padding-top: 0.125rem; border-top: none; border-bottom: 1px solid var(--c-w02); }
  .compact-list dd:last-of-type{ border-bottom: none; }
}

@media (max-width: 390px) {
  .brand { grid-template-columns: 4.875rem minmax(0, 1fr); gap: 0.625rem; }
  #site-title img{ width: 4.875rem; }
}

/*********** animation ***********/
.fadeInRight{ opacity: 0; }
.fadeInRight.visible{ animation: fadeInRight 1s forwards; }

@keyframes fadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@keyframes fadeOut{
  from{ opacity: 1; }
  to{ opacity: 0; }
}
@keyframes fadeInRight{
  from{ opacity: 0; transform: translateX(-1rem); }
  to{ opacity: 1; transform: translateX(0); }
}

.visible.a-d04s{ animation-delay:0.4s; }
.visible.a-d06s{ animation-delay:0.6s; }
.visible.a-d08s{ animation-delay:0.8s; }
.visible.a-d1s{ animation-delay:1s; }

/* 背景の帯（.bga）は .visible が付かないため、遅延はこちらで指定 */
.bga.a-d06s{ animation-delay:0.6s; }
.bga.a-d08s{ animation-delay:0.8s; }
.bga.a-d1s{ animation-delay:1s; }