/* ブレイクポイント一覧 */
/*
--breakpoint-xl: 1600px;
--breakpoint-lg: 1250px;
--breakpoint-md: 960px;
--breakpoint-sm: 640px;
--breakpoint-xs: 320px;
*/

@charset "utf-8";

@layer reset, base, component, pages, utility;

/* import - reset */
@import "https://cdn.jsdelivr.net/npm/destyle.css@3.0.2/destyle.css"
  layer(reset);

/* import - base */
@import "./lv-kerning.css?20251127a" layer(base);

/* import - component */
@import "./language.css?20251127a" layer(component);
@import "./header.css?20251127a" layer(component);
@import "./sidebar.css?20251127a" layer(component);
@import "./photo_gallery.css?20251127a" layer(component);
@import "./footer.css?20251127a" layer(component);

/* import - pages */
@import "./about.css?20251127a" layer(pages);
@import "./news.css?20251127a" layer(pages);
@import "./exhibition_past.css?20251127a" layer(pages);
@import "./exhibition.css?20251127a" layer(pages);

/* import - utility */
@import "./variable.css?20251127a" layer(utility);
@import "./shapes.css?20251127a" layer(utility);

@layer reset {
  * {
    text-rendering: geometricPrecision;
  }

  body.ja p {
    text-align: justify;
  }

  h1:not(:has(img)),
  h2:not(:has(img)),
  h3:not(:has(img)),
  h4:not(:has(img)),
  h5:not(:has(img)),
  h6:not(:has(img)),
  p:not(:has(img)),
  span:not(:has(img)),
  ul:not(:has(img)),
  li:not(:has(img)),
  ol:not(:has(img)),
  a:not(:has(img)),
  div:not(:has(img)),
  section:not(:has(img)),
  figure:not(:has(img)),
  hgroup:not(:has(img)),
  time:not(:has(img)) {
    text-box: trim-both cap alphabetic;
    line-height: var(--line-height-heading);
  }

  span {
    display: inline-block;
  }
}

@layer base {
  @font-face {
    font-family: "LouisVuitton";
    src: url("/assets/wp-assets/fonts/LouisVuitton-Regular.woff2")
      format("woff2");
    font-weight: 300;
    font-display: block;
  }

  @font-face {
    font-family: "LouisVuitton";
    src: url("/assets/wp-assets/fonts/LouisVuitton-Regular-Oblique.woff2")
      format("woff2");
    font-weight: 300;
    font-style: oblique;
    font-display: block;
  }

  @font-face {
    font-family: "LouisVuitton";
    src: url("/assets/wp-assets/fonts/LouisVuitton-Medium.woff2")
      format("woff2");
    font-weight: 400;
    font-display: block;
  }

  @font-face {
    font-family: "LouisVuitton";
    src: url("/assets/wp-assets/fonts/LouisVuitton-Medium-Oblique.woff2")
      format("woff2");
    font-weight: 400;
    font-style: oblique;
    font-display: block;
  }

  @font-face {
    font-family: "LouisVuitton";
    src: url("/assets/wp-assets/fonts/LouisVuitton-Demi.woff2") format("woff2");
    font-weight: 500;
    font-display: block;
  }

  @font-face {
    font-family: "LouisVuitton";
    src: url("/assets/wp-assets/fonts/LouisVuitton-Demi-Oblique.woff2")
      format("woff2");
    font-weight: 500;
    font-style: oblique;
    font-display: block;
  }

  /* テキスト */
  body {
    font-family: var(--font-family);
    font-size: 10.666px;
  }

  /* テキスト - 段落 */
  p {
    line-height: var(--line-height-text);
    letter-spacing: var(--letter-spacing-text);
  }

  p + p {
    margin-top: 30px;
  }

  h1 + p,
  h2 + p,
  h3 + p,
  h4 + p,
  h5 + p,
  h6 + p {
    margin-top: 30px;
  }

  ul + p,
  ol + p {
    margin-top: 30px;
  }

	figcaption p {
    font-size: 9px;
    color: var(--color-gray);
    line-height: var(--line-height-caption);
    letter-spacing: var(--letter-spacing-caption);
    text-align: unset;
  }

  figcaption p + p {
    margin-top: 20px;
  }

  /* テキスト - 見出し */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: "LouisVuitton";
  }

  h1 {
    font-size: 14px;
    font-weight: 400;
  }

  h1 > a {
    font-weight: 400;
  }

  h2 {
    font-size: 32px;
    font-weight: 300;
  }

  h3,
  h4,
  h5,
  h6 {
    font-size: 22px;
    font-weight: 300;
  }

  ul, ol {
    margin-top: 20px;
  }

  li {
    margin-top: 20px;
  }

  /* TODO: 一時的。最終的には全てmarginに直した方が良い。 */
  #terms #main ul,
  #about #main ol
  {
    margin-left: 20px;
  }

  /* 画像 */
  img {
    width: 100%;
    object-fit: contain;
    max-height: 1600px;
  }

  /* リンク */
  a {
    font-family: "LouisVuitton";
    font-weight: 500;
    color: var(--color-black);
  }

  a:hover {
    color: var(--color-red);
  }

  p > a {
    font-family: var(--font-family);
    text-decoration: underline;
  }

  /* その他 */
  * + blockquote {
    margin-top: 12px;
  }

  sup {
		vertical-align: text-top;
		position: relative;
		top: 0.4em;
		transform: translateX(-0.1rem) scale(.8,.8);
		display: inline-block;
    font-weight: 400;
	}

  /* レイアウト */
	@scope(hgroup) {
		h2 {
			letter-spacing: var(--letter-spacing-heading);
		}

		p {
			font-family: "LouisVuitton";
			font-size: 22px;
			font-weight: 300;
			letter-spacing: 0;
		}
	}

  @scope (#main) {
    :scope {
      width: calc(100% - var(--sidebar-width) - 50px * 2);
      margin-left: calc(var(--sidebar-width) + 50px);
      margin-top: 0;
    }

    h1 + * {
      margin-top: calc(120px / 2 - 9px / 2 + 2px);
    }
  }

  #wrapper {
    max-width: var(--wrapper-max-width);
    margin: 0 auto;
  }
}

@layer component {
  .c-divider {
    width: 100%;
    height: 1px;
    margin: 50px 0;
    background: url("/assets/wp-assets/images/divider_horizon.gif") repeat-x;
  }
}

@layer utility {
  .u-margin-top-l3 {
    margin-top: 165px;
  }
  .u-margin-top-l2 {
    margin-top: 120px;
  }
  .u-margin-top-l1 {
    margin-top: 75px;
  }
  .u-margin-top-default {
    margin-top: 50px;
  }
  .u-margin-top-s1 {
    margin-top: 40px;
  }
  .u-margin-top-s2 {
    margin-top: 30px;
  }
  .u-margin-top-s3 {
    margin-top: 20px;
  }
  .u-margin-top-0 {
    margin-top: 0;
  }

  .u-margin-bottom-l3 {
    margin-bottom: 165px;
  }
  .u-margin-bottom-l2 {
    margin-bottom: 120px;
  }
  .u-margin-bottom-l1 {
    margin-bottom: 75px;
  }
  .u-margin-bottom-default {
    margin-bottom: 50px;
  }
  .u-margin-bottom-0 {
    margin-bottom: 0;
  }

  .u-font-size-l4 {
    font-size: 32px;
  }
  .u-font-size-l3 {
    font-size: 22px;
  }
  .u-font-size-l2 {
    font-size: 14px;
  }
  .u-font-size-l1 {
    font-size: 12px;
  }
  .u-font-size-default {
    font-size: 10.666;
  }
  .u-font-size-s1 {
    font-size: 10px;
  }
  .u-font-size-s2 {
    font-size: 9px;
  }

  .u-font-oblique {
    font-style: oblique;
  }

  .u-text-line-through {
    text-decoration: line-through;
  }

  /* color */
  .u-color-gray {
    color: var(--color-gray);
  }

  /* exhibition colors */
  .u-color-exh-dan {
      color: var(--color-exh-dan);
  }
  .u-color-exh-frank {
      color: var(--color-exh-frank);
  }
  .u-color-exh-tribute {
      color: var(--color-exh-tribute);
  }
  .u-color-exh-rouge {
      color: var(--color-exh-rouge);
  }
  .u-color-exh-insitu {
      color: var(--color-exh-insitu);
  }
  .u-color-exh-steve {
      color: var(--color-exh-steve);
  }
  .u-color-exh-traces {
      color: var(--color-exh-traces);
  }
  .u-color-exh-infinite {
      color: var(--color-exh-infinite);
  }
  .u-color-exh-traffic {
      color: var(--color-exh-traffic);
  }
  .u-color-exh-urban {
      color: var(--color-exh-urban);
  }
  .u-color-exh-madness {
      color: var(--color-exh-madness);
  }
  .u-color-exh-awakening {
      color: var(--color-exh-awakening);
  }
  .u-color-exh-cosmic {
      color: var(--color-exh-cosmic);
  }
  .u-color-exh-geometry {
      color: var(--color-exh-geometry);
  }
  .u-color-exh-freefall {
      color: var(--color-exh-freefall);
  }

  .u-aspect-23 {
    aspect-ratio: 2.3;
    object-fit: cover;
    object-position: center;
  }

  .u-separator {
    position: relative;
    padding: 0 0.5em;
  }
  .u-separator::before {
    position: absolute;
    content: "–";
    top: -0.95em;
    left: 0.2em;
  }

  .os-windows .u-separator::before {
    top: -1.1em;
  }
}

@media (max-width: 960px) {
  @layer base {
    :root {
      /* espace logo size */
      --espace-logo-width: 100px;
      --espace-logo-height: 82px;
    }

    body.ja p {
      overflow-wrap: anywhere;
      word-break: break-all;
    }

    h2 {
      font-size: 24px;
    }

    h3,
    h4,
    h5,
    h6 {
      font-size: 16px;
    }

    hgroup p {
      font-size: 16px;
    }

    #main {
      width: 100%;
      margin-left: 0;
      padding: 0 20px;
    }
  }

  @layer utility {
    .u-margin-top-l3 {
      margin-top: 100px;
    }
    .u-margin-top-l2 {
      margin-top: 75px;
    }
    .u-margin-top-l1 {
      margin-top: 50px;
    }

    .u-margin-bottom-l3 {
      margin-bottom: 100px;
    }
    .u-margin-bottom-l2 {
      margin-bottom: 75px;
    }
    .u-margin-bottom-l1 {
      margin-bottom: 50px;
    }

    .u-font-size-l4 {
      font-size: 24px;
    }
    .u-font-size-l3 {
      font-size: 16px;
    }
  }
}
