body{
    width: min(700px, 100%);
    margin: 0 auto;
    font-family: "Helvetica Neue",
    Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-family: Outfit,"Noto Sans JP","游ゴシック",YuGothic,"ヒラギノ角ゴ Pro","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,Osaka,"ＭＳ Ｐゴシック","MS PGothic",sans-serif;

  }
img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
  vertical-align: bottom;
  margin: auto;
}


/*ヘッダー*/
header{
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
  text-align: center;
}
header h1 {
  /*width: min(370vw / 7, 370px);*/
  margin: auto;
  padding: 0;
}

.header-flex {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem 1rem;
}
.header-flex.has-breadcrumb {
  padding-bottom: 20px;
}
.search-icon {
  font-size: min(8vw, 24px);
  color: #757575;
  text-decoration: none;
}



/**プリモアトップ**/
.brand-nav {
    display: flex;
    gap: 1rem;
    justify-content: space-evenly;
    width: 100%;
  }
  .brand-nav a {
    text-decoration: none;
    color: #444;
    font-size: min(5vw, 16px);
    font-weight: bold;
    padding-bottom: 4px;
    margin-bottom: -4px;
  }
  .brand-nav a.active {
    position: relative;
    border-bottom: 2px solid #f377b2;
  }

.wearing_period{
  display: flex;
  gap: 1.5%;
  justify-content: center;
  padding: 1rem 0 .5rem;
}
.wearing_period .block {
  width: calc(100% / 2.1);
}
.wearing_period .block a:last-of-type{
  width: 90%;
  display: block;
  margin: auto;
  padding-top: .6rem;
}

  .filter-buttons {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem;
  }
  .filter-btn {
    white-space: nowrap;
    color: #333;
    background: #ddd;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
  }


/*ワンデー・マンスリーページ*/
.lens-count{
  padding: 1rem 1rem 0;
  font-weight: bold;
  color: #444;
}
.goods_area{
  display: grid;
  grid-template-columns: repeat(auto-fit, 25%);
  gap: 2rem 0;
  justify-content: center;
}
.goods_area .box{
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 0;
  transition: opacity 0.3s ease;
}
.goods_area .box.new::before{
  position: absolute;
  content: "";
  background: url(http://theodor.co.jp/sweet-repo-test/wp-content/uploads/2025/04/icon_new.webp) no-repeat;
  width: 30%;
  aspect-ratio: 33 / 34;
  background-size: contain;
  left: 13%;
  top: -9%;
}
/**/

.goods_area .box a.lens_unit{
  width: min(109vw / 7, 109px);
  width: min(109px, 67%);
}
.goods_area .box a.paint_unit{
  width: min(150vw / 7, 150px);
  width: min(150px, 91%);
}
.goods_area .box a.btn_unit{
  width: min(121vw / 7, 121px);
  width: min(121px, 74%);
}
.goods_area .box a.btn_unit_t{
  background: #fff;
  border: 1.5px solid;
  padding: 2%;
  width: min(121px, 74%);
  text-align: center;
  border-radius: 4px;
  filter: drop-shadow(1px 1px 0px #ccc);
  font-size: min(21px, 3.2vw);
  letter-spacing: .05rem;
}
.goods_area a{
  text-decoration: none;
  margin-bottom: 5%;
  color: #333;
}
.goods_area a p{
  text-align: center;
  text-decoration: none;
  line-height: normal;
  letter-spacing: -0.4px;
  font-size: min(15vw / 7, 15px);
  margin-top: 5%;
}

/* 開閉アニメーション */
.lens-scroll {
  overflow: hidden;
  max-height: 400px;
  transition: max-height 0.3s ease-in-out;
  padding-top: 2rem;
}
.lens-scroll.closed {
  max-height: 500px; /* 初期高さ：4個分想定 */
  transition: 0.3s ease-in-out;
}
.lens-scroll.open {
  max-height: 9999px; /* 十分な高さを確保 */
}
/*もっと見るボタン*/
.btn-wrapper {
  width: 100%;
  text-align: center;
  margin: 1rem 0 2rem;
}
.btn-more {
  position: relative;
  padding: 0.6rem 1.9rem 0.6rem 1.5rem;
  background: #fff;
  color: #f78da7;
  border: 1px solid #f78da7;
  border-radius: 5px;
  cursor: pointer;
  width: 140px;
  transition: all 0.3s ease;
}
.btn-more::before,
.btn-more::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.75rem;
  width: 6px;
  height: 1.6px;
  background: #f78da7;
  transition: transform 0.3s ease;
}
.btn-more::before {
  transform: translateY(-50%) rotate(45deg);
}
.btn-more::after {
  transform: translateY(-50%) rotate(-45deg);
  right: .5rem;
}
.btn-more[aria-expanded="true"]::before {
  transform: translateY(-50%) rotate(-45deg);
}
.btn-more[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(45deg);
}
/* 隠し要素のアニメーション用のスタイル */
.goods_area .box.hidden {
  opacity: 0; /* 初期状態は透明 */
  transition: opacity 0.3s ease;
}


/*スペック開閉*/
.lens-spec {
  margin-top: 1rem;
}
.spec-toggle-btn {
  position: relative;
  padding: 1rem;
  font-weight: bold;
  background: none;
  border: 1px solid #f6f6f6;
  border-left: none;
  border-right: none;
  width: 100%;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  color: #444;
}
.spec-toggle-btn::before,
.spec-toggle-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 10px;
  height: 2px;
  background: #666;
  transition: transform 0.3s ease;
}
/* 三角矢印（2本線）のスタイル (＼／形状) */
.spec-toggle-btn::before {
  transform: translateY(-50%) rotate(45deg);
}
.spec-toggle-btn::after {
  transform: translateY(-50%) rotate(-45deg);
  right: .6rem;
}
.spec-toggle-btn[aria-expanded="true"]::before {
  transform: translateY(-50%) rotate(-45deg);
}
.spec-toggle-btn[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(45deg);
}

.spec-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.spec-content.open {
  max-height: 500px; /* 想定される最大の高さ（適当でOK） */
}
.spec-content img {
  width: 100%;
  height: auto;
  display: block;
}



/*メディア*/
  .media-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    /*margin-bottom: 47px;　検索ボタンが復活したらこっち*/
  margin-bottom: 0;
  }
  .media-item video,
  .media-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 5;
    object-fit: cover;
    display: block;
  }
/*スワイプアイコン*/
#swipe-tip {
  position: fixed;
  bottom: calc(10px + constant(safe-area-inset-bottom));
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  width: min(225vw / 7, 225px);
}
#swipe-tip.show {
  opacity: 1;
}



  /* style-gallery */
.media-archive {
    padding: 2rem;
  }
  .media-list {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .media-item {
    text-align: center;
  }
  .media-item .thumb img {
    width: 100%;
    height: auto;
    display: block;
  }
  /*パンくずリスト*/
  .breadcrumb {
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding-top: 0.4rem;
    font-size: 10px;
    color: #888;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
  }
  .breadcrumb-arrow {
    font-size: 80%;
  }
  
  
  
  /**Swiper**/
  .swiper {
      width: 100%;
      height: 100vh;
      height: 100dvh;
    }
    .swiper-slide {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }
  
  

/**/
.gallery-swiper-fullscreen {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #000;
    color: #fff;
    position: relative;
  }
  
  .gallery-swiper {
    width: 100%;
    height: 100vh;
    height: 100dvh;
  }
  
  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
  
  .swiper-slide video,
  .swiper-slide img {
    width: min(700px, 100%);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    object-fit: cover;
  }
  /* 正方形や小さい画像に対応：全体が見えるように */
.fit-contain {
  object-fit: contain !important;
  min-height: 100vh;
}
  
  .slide-title {
    margin-top: 1rem;
    font-size: 1.2rem;
    text-align: center;
    color: #fff;
  }
  
  .close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 999;
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
  }
  
  /*スライダー用テキスト*/
  .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0) 100%);
    color: #fff;
    padding: 1.5rem 0 1rem;
    font-size: 1.0rem;
    line-height:1.6;
    width: 100%;
    max-width: 100%;
    text-align: left;
    z-index: 10;
    /*white-space: pre-wrap;*/
  }
  .slide-caption .line1 {
    filter: drop-shadow(1.5px 1.5px 1.5px #000);
    padding: 0 1rem;
  }
  .slide-caption .line2 {
    filter: drop-shadow(1.5px 1.5px 1.5px #000);
    padding: 0 1rem;
    font-size: 1.4rem;
    font-weight: 500;
  }
  

  /*音声ボタン*/
    .sound-button {
      position: fixed;
      bottom: 100px;
      right: 15px;
      width: 35px;
      height: 35px;
      background-color: rgba(0, 0, 0, 0.3);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      cursor: pointer;
      transition: background-color 0.3s;
    }
    .sound-button:hover {
      background-color: rgba(0, 0, 0, 0.7);
    }
    .sound-button svg {
      width: 20px;
      height: 20px;
      fill: white;
    }
    .sound-button.sound-on .sound-off {
      display: none;
    }
    .sound-button.sound-off .sound-on {
      display: none;
    }

    /*ブランド戻るボタン*/
    .brand-float-btn {
      position: fixed;
      bottom: 15px; /* サウンドボタンとの間隔調整 */
      right: 15px;
      width: 70px;
      height: 70px;
      border-radius: 50%;
      overflow: hidden;
      z-index: 999;
      background-color: rgba(255, 255, 255, 0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
      transition: background-color 0.3s ease;
    }
    .brand-float-btn:hover {
      background-color: rgba(255, 255, 255, 1);
    }
    .brand-float-btn img {
      width: 100%;
      height: auto;
      display: block;
    }


/**検索ページ**/
.search-page {
  padding: 0;
  margin: 0 auto 3rem;
}
.brand-search-form {
  position: relative;
  margin-bottom: 2.0rem;
  padding: 0 1rem;
}
.brand-search-form input[type="search"] {
  max-width: 90%;
  width: 630px;
  padding: 0.7rem 0.5rem;
  font-size: 14px;
  background: #eee;
  border-radius: 6px;
}
.brand-search-form button {
  margin-left: 0.5rem;
  font-size: 22px;
  cursor: pointer;
  color: #757575;
  position: absolute;
  top: 0;
  bottom: 0;
}
.toggle-block {
  border-top: 1px solid #ddd;
}
.toggle-header {
  position: relative;
  padding-right: 2rem;
  width: 100%;
  padding: 1rem;
  background: #fff;
  border: none;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.toggle-header::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 8px;
  height: 8px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform-origin: center;
  transition: transform 0.3s ease;
  display: inline-block;
  transform: translateY(-50%) rotate(45deg); /* ▼風（右下向き） */
}

.toggle-block.active .toggle-header::after {
  transform: translateY(-50%) rotate(-135deg); /* ▲風（上向き） */
}
.toggle-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.toggle-block.active .toggle-content {
  /*max-height: 500px;*/
  opacity: 1;
}
.brand-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 1rem 1rem 2.5rem;
  margin: 0;
  justify-content: flex-start;
  background: #fef6fa;
}
.brand-icons li {
  width: calc(25% - 8px); /* 4列 */
  text-align: center;
}
.brand-icons a {
  width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 1px solid #eee;
    padding: 5px;
    aspect-ratio: 1 / 1;
    background: #fff;
}
.brand-icons img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/*検索結果ページ*/
.search .search-page {
  padding: 0 1rem;
}
.search-page h1{
  font-weight: 600;
  margin: 10px auto 20px;
}
li.search-result-item {
  padding-top: 10px;
}
li.search-result-item a{
  display: flex;
  align-items: center;
}
li.search-result-item a img{
  width: 50px;
  margin: 0;
}




    

/******footer*******/
.site-footer {
  position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}
.footer-search-link a {
  display: block;
  text-align: center;
  color: #fff;
  background: #f377b2;
  text-decoration: none;
  padding: .8rem 0;
}


/*icomoon フォント*/
/*
@font-face {
  font-family: 'icomoon';
  src:  url('../fonts/icomoon.eot?jiplgb');
  src:  url('../fonts/icomoon.eot?jiplgb#iefix') format('embedded-opentype'),
    url('../fonts/icomoon.ttf?jiplgb') format('truetype'),
    url('../fonts/icomoon.woff?jiplgb') format('woff'),
    url('../fonts/icomoon.svg?jiplgb#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
[class^="icon-"], [class*=" icon-"] {

  font-family: 'icomoon' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.icon-icon_search:before {
  content: "\e900";
}
.icon-home3:before {
  content: "\e902";
  padding-right: 4px;
    font-size: larger;
    bottom: -1px;
    position: relative;
}
*/

@font-face {
  font-family: 'icomoon';
  src:  url('../fonts/icomoon.eot?kzglvw');
  src:  url('../fonts/icomoon.eot?kzglvw#iefix') format('embedded-opentype'),
    url('../fonts/icomoon.ttf?kzglvw') format('truetype'),
    url('../fonts/icomoon.woff?kzglvw') format('woff'),
    url('../fonts/icomoon.svg?kzglvw#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
[class^="icon-"], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.icon-icn_search:before {
  content: "\e901";
  color: #444;
}
.icon-icn_home:before {
  content: "\e900";
  color: #fff;
  padding-right: 4px;
  font-size: larger;
  bottom: -1px;
  position: relative;
}

/* 簡単修正：brand-navがない場合は検索アイコンを非表示 */
header:not(:has(.brand-nav)) .search-icon,
header:not(:has(.brand-nav)) .icon-icn_search {
  display: none !important;
}
header:not(:has(.brand-nav)) .icon-icn_search:before {
  content: none !important;
}
