@charset "utf-8";

html { scroll-behavior: smooth; }
#globalMain, #globalContents{ overflow: visible; }
#globalWrapper { box-sizing: border-box; }


/* Variables & Setup -------------------- */
.tomastik-container-wrapper {
  container-type: inline-size;
  container-name: tomastik-container-wrapper;
}

.tomastik-container * { box-sizing: border-box; }

[id] {
  scroll-margin-top: 70px;
}

:root .tomastik-container {
  /* 色定義 */
  --color-white: #fff;
  --color-black: #111;
  --color-base: #F0F0F0;
  --color-base-light: #f5f4f4;
  --color-base-dark: #dbdbdb;
  --color-text: #333;
  --color-accent: #2F6B55;
    --color-instrument-violin: #471696;
    --color-instrument-viola: #C2410C;
    --color-instrument-cello: #7C2D12;
    --color-instrument-contrabass: #14358f;
    --color-instrument-guitar: #134E4A;
    --color-instrument-strings: #252525;

  /* 角丸 */
  --border-radius-small: 3px; 
  --border-radius-medium: 1rem;  
  --border-radius-full: 100vmax;

  /* その他 */
  --hover-opacity: 0.7;
  --box-shadow: .15rem .15rem .25rem rgba(0, 0, 0, 0.15);
  --transition-all: all 0.3s ease;
}


/* common -------------------- */ 
.tomastik-container {
  max-width: 1420px;
  margin-inline: auto;
  background-color: var(--color-base);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  @container tomastik-container-wrapper (max-width: 768px) {
    font-size: 14px;
  }
  @container tomastik-container-wrapper (max-width: 350px) {
    font-size: 12px;
  }
  
  & section {
    padding-block: 4rem 5rem;
  }

  & .inner{
    padding-inline: 2rem;
  }

  & figure{ 
    text-align: center;
    overflow: hidden;
  }

  & img{
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
  }

  & a{
    color: inherit;
    text-decoration: none;
  }

  & span{
    color: inherit;
    font-weight: inherit;
  }
}

/* element -------------------- */
/* 見出し */
.tomastik-container .el-heading-g{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
  & > h2{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 200%;
    font-weight: bold;
    text-transform: uppercase;
    &::after{
      content: "";
      display: block;
      width: 15rem;
      height: 1.5rem;
      margin-bottom: 2px;
      background: url("../img/assets/h-decoration.png") no-repeat center / contain;
    }
  }
  & > p{
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

/* CTAボタン */
.tomastik-container .ui-btn-cta{
	display: block;
  width: fit-content;
  margin-block: .5rem;
  padding-block: .5rem .25rem;
  padding-inline: 1rem;
  border-radius: var(--border-radius-small);
	background-color: var(--color-accent);
  color: var(--color-white);
  text-align: center;
  &:hover{
    opacity: var(--hover-opacity);
  }
}

/* 新規タブで開くアイコン */
.tomastik-container .ui-icon-popup {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .25rem;
  &::after {
    content: "";
    display: block;
    width: 1em;
    aspect-ratio: 1 / 1;
    margin-bottom: auto;
    background: url(../img/assets/open_in_new_48px-w.png) no-repeat center / contain;
  }
}

/* 視覚的に非表示 */
.tomastik-container .el-visually-hidden{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* img：祖先要素ホバーで拡大 */
.tomastik-container .fx-expansion{
  & img {
    transition: var(--transition-all);
  }

  &:hover img {
    transform: scale(1.03);
  }
} 

/* 文章 */
.tomastik-container .paragraph{
  line-height: 1.7;
  & + .paragraph{
    margin-top: .5rem;
  }
}

/* 2行以上で... */
.tomastik-container .textellipsis-2{
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
  line-clamp: 2;
	-webkit-line-clamp: 2;
}

/* 3行以上で... */
.tomastik-container .textellipsis-3{
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
  line-clamp: 3;
	-webkit-line-clamp: 3;
}

/* 折り返しなしテキスト */
.tomastik-container .nowrap{
  display: inline-block;
}

/* 動画ブロック（埋め込み） */
.tomastik-container .ui-movie-block{
  position: relative;
  margin-block: 0;
  margin-inline: auto;
  aspect-ratio: 16/9;
  & > iframe{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

/* 背景：アクセント */
.tomastik-container .bg-accent{
  background-color: var(--color-accent);
  color: var(--color-white);
  & .el-heading-g h2::after{
    background-image: url(../img/assets/h-decoration-w.png);
  }
} 

/* 背景：ロゴ（明） */
.tomastik-container .bg-logo-l{
  background-color: var(--color-base-light);
  background-image: url(../img/assets/logo-6prozent.svg);
  background-position: 40.4% 12.1%;
  background-size: 275%;
}

/* 背景：ロゴ（暗） */
.tomastik-container .bg-logo-d{
  background-color: var(--color-base-dark);
  background-image: url(../img/assets/logo-6prozent.svg);
  background-position: 48.6% 19.6%;
  background-size: 325%;
}

/* swiper -------------------- */
:root .tomastik-container{
  --swiper-theme-color: var(--color-accent);
  --swiper-navigation-color: var(--color-white);
  --swiper-pagination-bullet-size: 1rem;
  --swiper-navigation-size: 3rem;
@container tomastik-container-wrapper (max-width: 600px) {
  --swiper-navigation-size: 2rem;
}
}

.tomastik-container{
  .swiper-button-next,
  .swiper-button-prev {
    top: 30%;
    text-shadow: 0 0 .5rem var(--color-black);
  }
}

/* Section-by-section -------------------- */
/* inner-header --------------------*/
#wrapper .tomastik-container .ui-inner-header{
  display: none;
}

.tomastik-container .ui-inner-header{
  position: sticky;
  top: 63px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1rem;
  padding-inline: 1.5rem;
  background-color: var(--color-black);
  color: var(--color-white);
  box-shadow: var(--box-shadow);
  & > nav{
    display: flex;
    gap: .5rem 1.5rem;
    flex-wrap: wrap;
    width: fit-content;
    text-transform: uppercase;
    font-size: 125%;
    & > a:hover{
      opacity: var(--hover-opacity);
    }
  }
@container tomastik-container-wrapper (max-width: 1024px) {
  & > nav{
    font-size: 100%;
  }  
}
}

.tomastik-container .logo-block{
  display: block;
  width: 80px;
  &:hover{
    opacity: var(--hover-opacity);
  }
}

/* FV --------------------*/
.tomastik-container .sec-fv{
  padding-block: 0;
}

/* PickUp --------------------*/
.sec-pickup .pickup-list{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  & > li{
    width: calc((100% - 1rem * 4)/5);
  }
  & > li > a{
    position: relative;
    display: block;   
  }
  & > li > a:hover img{
    opacity: var(--hover-opacity);
  }
@container tomastik-container-wrapper (max-width: 600px) {
  & > li{
    width: calc((100% - 1rem * 2)/3);
  }
}
}

.sec-pickup .image-block{
  aspect-ratio: 1/1;
  border-radius: var(--border-radius-medium);
  border: 1px solid var(--color-white);
  background-color: var(--color-white);
  & > img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.sec-pickup .tip-list{
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  & > *::after{
    display: block;
    padding-block: .2rem .1rem;
    padding-inline: .5rem;
    color: var(--color-white);
    font-size: 70%;
  }
  & .tip-vn::after{
    content: "バイオリン";
    background-color: var(--color-instrument-violin);
  }
  & .tip-va::after{
    content: "ビオラ";
    background-color: var(--color-instrument-viola);
  }
  & .tip-vc::after{
    content: "チェロ";
    background-color: var(--color-instrument-cello);
  }
  & .tip-cb::after{
    content: "コントラバス";
    background-color: var(--color-instrument-contrabass);
  }
@container tomastik-container-wrapper (max-width: 414px) {
  & > *::after{
    font-size: 60%;
  }
}
}

.sec-pickup .ttl{
  margin-top: .25rem;
}

/* News --------------------*/
.sec-news .news-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin-inline: auto;
  & > li > a{
    display: block;
    width: 100%;
    height: 100%;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-text);
  }
  & > li > a:hover{
    font-weight: bold;
  }
@container tomastik-container-wrapper (max-width: 600px) {
  grid-template-columns: 100%;
  max-width: 450px;
}
}

.sec-news time{
  font-size: 85%;
  font-weight: bold;
}

.sec-news .ttl{
  font-size: 112%;
}

.sec-news figure{
  max-width: 200px;
}

/* Ranking --------------------*/
.tomastik-container .sec-ranking{  
  & .rank-vn{
    color: var(--color-instrument-violin);
    border-color: var(--color-instrument-violin);
    & .sub-heading{
      background-color: var(--color-instrument-violin);
    }
  }

  & .rank-va{
    color: var(--color-instrument-viola);
    border-color: var(--color-instrument-viola);
    & .sub-heading{
      background-color: var(--color-instrument-viola);
    }
  }
  & .rank-vc{
    color: var(--color-instrument-cello);
    border-color: var(--color-instrument-cello);
    & .sub-heading{
      background-color: var(--color-instrument-cello);
    }
  }
  & .rank-cb{
    color: var(--color-instrument-contrabass);
    border-color: var(--color-instrument-contrabass);
    & .sub-heading{
      background-color: var(--color-instrument-contrabass);
    }
  }
  & .rank-gt{
    color: var(--color-instrument-guitar);
    border-color: var(--color-instrument-guitar);
    & .sub-heading{
      background-color: var(--color-instrument-guitar);
    }
  }
  & .rank-st{
    color: var(--color-instrument-strings);
    border-color: var(--color-instrument-strings);
    & .sub-heading{
      background-color: var(--color-instrument-strings);
    }
  }
}

.sec-ranking .ranking-container-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 1.5rem;
  margin-inline: auto;
@container tomastik-container-wrapper (max-width: 768px) {
  grid-template-columns: 100%;
  max-width: 450px;
  gap: 2rem 1.5rem;
}
}

.sec-ranking .sub-heading{
  margin-bottom: 1rem;
  padding-inline: .5rem;
  padding-block: .25rem .15rem;
  border-radius: var(--border-radius-small);
  background-color: var(--color-text);
  color: var(--color-white);
  font-size: 112%;
  font-weight: bold;
}

.sec-ranking .ranking-list{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  & > li{
    display: flex;
    flex-direction: column;
  }
  & > li > a{
    display: block;
    aspect-ratio: 1/1;
    padding: .5rem;
    border-radius: var(--border-radius-medium);
    border: 1px solid;
    background-color: var(--color-white);
    box-shadow: var(--box-shadow);
  }
  & > li > a:hover{
    border-width: 2px;
  }
}

.sec-ranking .image-block{
  aspect-ratio: 1/1;
  overflow: visible;
  & > img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.sec-ranking .text-block{
  flex: 1;
  position: relative;
  padding-bottom: 1.5rem;
}

.sec-ranking .ttl{
  margin-top: .5rem;
  font-size: clamp(10px, 75%, 1rem);
}

.sec-ranking .price{
  position: absolute;
  bottom: 0;
  left: 0;
  font-weight: bold;
}

/* Category -------------------- */
.sec-category .category-list{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
@container tomastik-container-wrapper (max-width: 980px) {
  grid-template-columns: repeat(4, 1fr);
}
@container tomastik-container-wrapper (max-width: 680px) {
  grid-template-columns: repeat(3, 1fr);
}
@container tomastik-container-wrapper (max-width: 414px) {
  grid-template-columns: repeat(2, 1fr);
}
  & > li{
    aspect-ratio: 3/1;
    border-radius: var(--border-radius-medium);
    background-color: var(--color-white);
  }  
  & > li > *{
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 1rem;
    border-radius: var(--border-radius-medium);
    background:  url("../img/assets/bg-craftpaper.jpg")  no-repeat center / cover;
    color: var(--color-text);
    font-weight: bold;
    box-shadow: var(--box-shadow);     
  }
  & > li > *::before{
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 93%;
    height: 90%;
    margin: auto;
    background:  url("../img/assets/logo.png")  no-repeat right / contain;
  }
  & > li > a:hover{
    opacity: var(--hover-opacity);
  }
  & > li.no-link{
    background-color: var(--color-black);
    & > *{
      opacity: var(--hover-opacity);
    }
  }
  & .cate-vn > *::before{ background-image: url(../img/category/violin.png); }
  & .cate-va > *::before{ background-image: url(../img/category/viola.png); }
  & .cate-vc > *::before{ background-image: url(../img/category/cello.png); }
  & .cate-cb > *::before{ background-image: url(../img/category/contrabass.png); }
  & .cate-rs > *::before{ background-image: url(../img/category/rosin.png); }
  & .cate-ag > *::before{ background-image: url(../img/category/acoustic-guitar.png); }
  & .cate-eg > *::before{ background-image: url(../img/category/electric-guitar.png); }
  & .cate-eb > *::before{ background-image: url(../img/category/electric-bass.png); }
  & .cate-md > *::before{ background-image: url(../img/category/mandolin.png); }
  & .cate-ma > *::before{ background-image: url(../img/category/mandola.png); }
  & .cate-od > *::before{ background-image: url(../img/category/oud.png); }
  & .cate-bj > *::before{ background-image: url(../img/category/banjo.png); }
}

.sec-category .ttl{
  position: relative;
  z-index: 2;
  font-size: 112%;
  text-shadow:
    -1px -1px 0 #f2e4c9,
    1px -1px 0 #f2e4c9,
    -1px  1px 0 #f2e4c9,
    1px  1px 0 #f2e4c9;
@container tomastik-container-wrapper (max-width: 600px) {
  font-size: 100%;
}
@container tomastik-container-wrapper (max-width: 450px) {
  font-size: 85%;
}
}

/* MOVIE -------------------- */
.sec-movie .movie-container{
  & + .movie-container{
    margin-top: 3rem;
  }
}

.sec-movie .sub-heading{
  padding-inline: .5rem;
  margin-bottom: 1rem;
  border-left: .5rem solid;
  border-bottom: 1px solid;
  border-color: var(--color-accent);
  color: var(--color-accent);
  font-size: 125%;
  font-weight: bold;
}

.sec-movie .movie-list{
  align-items: stretch;
  padding-bottom: 3.5rem;
  & > li{
    position: relative;
    display: flex;
    flex-direction: column;
    width: 50%;
    max-width: 320px;
    height: auto;
    padding-bottom: 3rem;
  }
}

.sec-movie .image-block{
  aspect-ratio: 16/9;
  & > img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.sec-movie .ttl{
  margin-top: .5rem;
  font-size: 85%;
}

.sec-movie .ui-btn-cta{
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 85%;
}

/* BLOG -------------------- */
.sec-blog .blog-list-wrapper{
  max-width: 1000px;
  max-height: 650px;
  margin-inline: auto;  
  padding-right: 1rem;
  overflow-y: auto;
@container tomastik-container-wrapper (max-width: 600px) {
  max-height: 450px;
}
}

.sec-blog .blog-list{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  & > li{
    border-radius: var(--border-radius-small);
    background-color: var(--color-white);
    box-shadow: var(--box-shadow);
  }
  & > li > a{
    display: flex;
    gap: .5rem 1rem;
    padding: 1rem;
  }
  & > li > a:hover{
    opacity: var(--hover-opacity);
  }
}

.sec-blog .image-block{
  width: 220px;
@container tomastik-container-wrapper (max-width: 768px) {
  width: 180px;
}
@container tomastik-container-wrapper (max-width: 600px) {
  width: 30%;
}
}

.sec-blog .text-block{
  flex: 1; 
}

.sec-blog time{
  font-size: 85%;
}

.sec-blog .ttl{
  margin-bottom: .25rem;
  font-size: 112%;
  font-weight: bold;
@container tomastik-container-wrapper (max-width: 600px) {
  font-size: 100%;
}
}

.sec-blog .desc{
@container tomastik-container-wrapper (max-width: 600px) {
  display: none;
}
}

/* Sale & Campaign -------------------- */
.tomastik-container .sec-campaign{
  padding-block: 2.5rem;
  background-color: var(--color-text);
}

.sec-campaign .banner-list{
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-inline: auto;
  & > li{
    max-width: 550px;
    background-color: var(--color-white);
  }
  & > li > a{
    display: grid;
    place-items: center;
    aspect-ratio: 5/1;
  }
  & > li > a:hover{
    opacity: var(--hover-opacity);
  }
@container tomastik-container-wrapper (max-width: 600px) {
  flex-direction: column;
  max-width: 450px;
}
}

/* History -------------------- */
.sec-history .unit-box{
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  max-width: 1200px;
  margin-inline: auto; 
  border-radius: var(--border-radius-medium);
  background-color: var(--color-white);
  overflow: hidden;
  & + .unit-box{
    flex-direction: row;
    margin-top: 2rem;
  }
@container tomastik-container-wrapper (max-width: 768px) {
  flex-direction: column-reverse!important;
  max-width: 600px;
}
}

.sec-history .text-block{
  flex: 1;
  padding: 1rem;
 & .deco-frame-top,
 & .deco-frame-bottom{
  display: flex;
  flex-direction: row-reverse;
  opacity: var(--hover-opacity);
  padding-left: 1rem;
  &::before{
    content: "";
    display: block;
    width: 3rem;
    aspect-ratio: 1/1;
    background: url("../img/assets/frame-corner.png") no-repeat center / contain;
  }
  &::after{
    flex: 1;
    content: "";
    display: block;
    margin-top: 1rem;
    border-top: 1px dashed var(--color-black);
  }
 }
 & .deco-frame-bottom{ transform: rotate(180deg);}
}

.sec-history .sub-heading{
  margin-bottom: .5rem;
  font-size: 112%;
  font-weight: bold;
}

.sec-history .image-block{
  position: relative;
  width: 300px;
  max-width: 100%;
  height: 100%;
  & > img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  & > figcaption{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-bottom: .5rem;
    text-align: center;
    color: var(--color-white);
    text-shadow: 0 0 .25em var(--color-black);
    font-size: 85%;
  }
@container tomastik-container-wrapper (max-width: 768px) {
  padding-top: 1.5rem;
  padding-inline: 1rem;
}
}

.sec-history .ui-movie-block{
  margin-top: 3rem;
  max-width: 800px;
}

.sec-history .ui-btn-cta{
  min-width: 50%;
  margin-inline: auto;
  margin-top: 5rem;
  font-size: 150%;
@container tomastik-container-wrapper (max-width: 600px) {
  margin-top: 3rem;
  font-size: 125%;
}
}