@charset "UTF-8";

/* =========================
   base
========================= */
*,
*::before,year-block h2
*::after{
  box-sizing:border-box;
}

html{
  -webkit-text-size-adjust:100%;
}

body.works-year,
body.works-month{
  margin:0;
  color:#222;
  background:#ffffff;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Noto Sans JP",
    Meiryo,
    sans-serif;
  line-height:1.6;
}

img{
  max-width:100%;
  height:auto;
  vertical-align:bottom;
  border:0;
}

a{
  color:#7a5d3b;
  text-decoration:underline;
  text-underline-offset:2px;
}

a:hover{
  opacity:0.85;
}

/* =========================
   variables
========================= */
:root{
  --bg-image:url("/img/bg_ice_orange_blue.png");
  --maxw:760px;
  --line:#e7b15d;
  --thumb-border:#cfcfcf;
  --text-sub:#5c5c5c;
  --footer:#7b6a56;
}

/* =========================
   header / footer
========================= */
.site-header{
  background-image:var(--bg-image);
  background-size:300px 300px;
  background-repeat:repeat-x;
  background-position:left -10px;
  height:140px;
  padding:0;
}

.site-header .site-title{
  max-width:var(--maxw);
  height:100%;
  margin:0 auto;
  padding:0 18px 10px;

  display:flex;
  justify-content:flex-end;
  align-items:flex-end;

  font-size:44px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:0.01em;
  color:#111;

  text-decoration:none;
}

.site-header .site-title:visited{
  color:#111;
}

.site-header .site-title:hover{
  opacity:0.8;
}

.footer{
  margin:12px 0 0;
  padding:8px 16px 16px;
  text-align:center;
  color:var(--footer);
  font-size:14px;
}

/* =========================
   common layout
========================= */
main{
  background:#fff;
  max-width:760px;
  margin:0 auto;
  padding:28px 18px 16px;
}

section{
  margin:0;
  padding:0;
}

h1{
  margin:0 0 18px;
  font-size:24px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:0.01em;
  color:#111;
}

h2,
h3{
  margin:0;
  color:#111;
  line-height:1.4;
}

p{
  margin:0 0 14px;
  font-size:14px;
}

p span{
  color:#8c7a66;
  font-size:0.95em;
}

.line_sep_orange{
  height:1px;
  margin:18px 0 16px;
  background:var(--line);
}

nav{
  margin-top:24px;
  font-size:15px;
}

/* =========================
   year page
========================= */
body.works-year .year-block > h2{
  position:relative;
  left:0;
  top:-2px;

  font-size:36px;
  font-weight:700;
  color:#ddd;
}


body.works-year .year-platforms{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}

body.works-year .year-platform{
  display:grid;
  grid-template-columns:120px 1fr;
  column-gap:8px;
  align-items:start;
  margin:0;
  padding:0;
}

body.works-year .year-platform h3{
  margin:0;
  font-size:14px;
  font-weight:400;
  line-height:1.45;
  letter-spacing:0;
}

body.works-year .year-thumbs{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

body.works-year .year-thumbs a{
  display:block;
  width:50px;
  height:50px;
  flex:0 0 50px;
}

body.works-year .year-thumbs img{
  display:block;
  width:50px;
  height:50px;
  object-fit:cover;
  border:1px solid var(--thumb-border);
  border-radius:6px;
  background:#fff;
}

/* =========================
   month page
========================= */
body.works-month .works-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px 20px;
  align-items:start;
}

figure{
  margin:0;
  width:100%;
  min-width:0;
}

figure > a,
figure > img{
  display:block;
}

figure > a img,
figure > img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1 / 1;
  object-fit:cover;
  border:1px solid var(--thumb-border);
  border-radius:10px;
  background:#fff;
}

figcaption{
  margin-top:8px;
  font-size:12px;
  color:#333;
  line-height:1.5;
}

figcaption img{
  display:inline-block;
  vertical-align:middle;
  margin:0 6px 2px 0;
}

figcaption div{
  margin-top:4px;
}

time{
  color:var(--text-sub);
}

/* unavailable */
figure.item_soldout{
  position:relative;
}

figure.item_soldout > div{
  position:absolute;
  top:8px;
  left:8px;
  padding:3px 8px;
  background:rgba(0,0,0,0.72);
  color:#fff;
  font-size:11px;
  line-height:1.2;
  border-radius:999px;
}

/* =========================
   responsive
========================= */
@media (max-width:900px){
  body.works-year .year-platform{
    grid-template-columns:100px 1fr;
    column-gap:8px;
  }

  body.works-year .year-thumbs{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(36px, 1fr));
    gap:4px;
  }

  body.works-year .year-thumbs a{
    width:100%;
    height:auto;
    flex:none;
  }

  body.works-year .year-thumbs img{
    width:100%;
    height:auto;
    aspect-ratio:1 / 1;
  }
}

@media (max-width:640px){
  body.works-year .year-thumbs{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    row-gap:6px
    column-gap:6px
  }

  body.works-year .year-thumbs a{
    width:100%;
  }

  body.works-year .year-thumbs img{
    width:100%;
    height:auto;
  }

  body.works-month .works-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px 12px;
  }

}