/* 
Theme Name: My Astra
Author: 自己満DIY
Template: astra
Version: 1.0
*/
img {
  max-width: 100%;
  height: auto;
}
html,
body {
  background-color: #ffffff;
}

/* パンくず */
.breadcrumb {
  margin: 20px;
}
/* header */
.site-title {
  font-size: clamp(1.125rem, 0.882rem + 1.04vw, 2.125rem);
  font-weight: 700;
  margin-left: 5px;
  padding-top: 2px;
  color: #000000;
}
.site-title:hover {
  color: #000000;
}
.my-header {
  position: relative;

  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 5px 10px;
  z-index: 100;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .my-header {
    padding: 20px;
  }
}
.my-header-nav {
  margin-left: 15px;
}
.my-header-nav__list {
  display: flex;
  gap: 15px;
  margin: 0;
  list-style: none;
  padding: 0;
}
.header__logo {
  width: 60px;
  height: 60px;
  line-height: 1;
}
.header__logo a {
  display: block;
  width: 100%;
  height: 100%;
}
.header__logo img {
  vertical-align: inherit;
}
.pc-nav__item {
  text-decoration: none;
  padding: 2px 13px;
  border: 1px solid #000000;
  border-radius: 100vmax;
  background-color: #ffffff;
}
/* .pc-nav__item:hover {
  background-color: #000000;
}*/

.pc-nav__link:hover {
  color: #000000;
}

.pc-nav__link {
  color: #000000;
  font-size: clamp(0.75rem, 0.72rem + 0.13vw, 0.875rem);
  white-space: nowrap;
}

.font-h2 {
  font-size: clamp(1.5rem, 1.348rem + 0.65vw, 2.125rem);
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  line-height: 1.3;
}
.font-h3 {
  font-size: clamp(1.125rem, 0.973rem + 0.65vw, 1.75rem);
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: 0.1em;
}
.lead-text {
  margin: 0;
}

/* トップページメイン */
.custum-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* iOS慣性スクロール対応 */
}

@media (min-width: 1024px) {
  .custum-top {
    flex-direction: row;
    margin-top: 0;
    height: calc(var(--vh, 1vh) * 100);
  }
}
.custum-top__main-wrap,
.custum-top__side {
  flex-shrink: 0;
}
/* メイン */
.custum-top__main-wrap {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .custum-top__main-wrap {
    height: 100%;
    flex: 0 0 75%;
  }
}
.custum-top__main {
  width: 100%;
  height: auto;
  display: grid;
  gap: 30px;
  box-sizing: border-box;
  padding: 20px;
  flex: 1;
  align-items: center;
}
@media screen and (min-width: 768px) {
  .custum-top__main {
    grid-template-columns: repeat(2, 1fr); /* 横2列 */
    grid-template-rows: auto auto;
  }
}

.custum-top__leading {
  display: flex;
  align-items: center;
}
.custum-top__item--shop {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("images/shop-bunner.jpg");
  background-size: cover;
  height: 100%;
}

.custum-top__item--shop h2 {
  color: #ffffff;
  margin: 0;
}
.custum-top__item {
  min-width: 0;
  overflow: hidden;
  min-height: 100px;
}
@media screen and (min-width: 768px) {
  .custum-top__item {
    min-height: 150px;
  }
}
@media screen and (min-width: 768px) {
  .custum-top__item--works {
    grid-column: span 2;
  }
}
.works-title-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media screen and (min-width: 1024px) {
  .works-title-box {
    width: 90%;
  }
}
.works-title-box h2 {
  margin: 0;
}
.works-title-box span {
  display: inline-block;
}
.works-thumb-scroll {
  overflow-x: auto;
  padding: 1rem 0;
}
.works-scroll-inner {
  display: flex;
  gap: 1rem;
  padding-left: 1rem;
}
.work-thumb {
  flex: 0 0 auto;
  min-width: 100px;
  max-width: 200px;
  width: 20vw;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-description {
  font-weight: 400;
}

/* サイド */
.custum-top__side {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 30px;
  background-color: #e2e2e2;
  padding: 20px 20px 50px 20px;
}
@media screen and (min-width: 768px) {
  .custum-top__side {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    column-gap: 30px;
    padding: 20px;
  }
}
@media screen and (min-width: 768px) {
  .custum-top__sns {
    grid-column: span 2;
  }
}
@media (min-width: 1024px) {
  .custum-top__side {
    grid-template-columns: 1fr;
    align-items: start;
    height: 100%;
    flex: 0 0 25%;
  }
  .custum-top__sns {
    grid-column: auto; /* spanをリセット */
  }
}

@media (min-width: 1024px) {
  .custum-top__side-youtube {
    margin-bottom: 30px;
  }
}
.youtube-wapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  width: 80%;
  max-width: 350px;
  margin: 0 auto;
}
@media screen and (min-width: 768px) {
  .youtube-wapper {
    width: 100%;
  }
}

.youtube-wapper iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* 一覧ページへボタン */
.view-more-btn {
  font-size: clamp(0.75rem, 0.72rem + 0.13vw, 0.875rem);
  display: inline-block;
  padding: 5px 20px;
  background-color: #000;
  color: #ffffff;
  white-space: nowrap;
  border-radius: 100vmax;
}
.view-more-btn:hover {
  color: #ffffff;
}

/* ----------------------------- */
/* ---------shop page------------ */
/* ----------------------------- */
.ast-container {
  padding: 0;
}
.custum-shop__parts-title {
  font-size: clamp(1.25rem, 1.098rem + 0.65vw, 1.875rem);
  font-weight: 700;
  color: #000000;
  margin: 20px;
  flex-shrink: 0;
}

.custum-shop {
  width: 100%;
  height: 100vh; /* 画面全体の高さ */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.custum-shop__parts-image {
  position: relative;
  background-image: url("images/rod-parts-sp.png");
  background-size: contain;
  background-position: center;
  width: 100%;

  aspect-ratio: 2 /3;
  background-repeat: no-repeat;
  flex: 1;
  margin: 0 auto;
  margin-top: 10px;
}
/* PC（幅768px以上で切り替え） */
@media screen and (min-width: 768px) {
  .custum-shop__parts-image {
    background-image: url("images/rod-parts-pc.png");
    aspect-ratio: 9 /6;
    width: auto;
  }
}

.parts-name {
  position: absolute;
  display: block;

  color: #ffffff;
  font-size: clamp(0.875rem, 0.814rem + 0.26vw, 1.125rem);

  text-align: center;
  background-color: #303030;
  padding: 4px 15px 3px 15px;

  border-radius: 100vmax;
  white-space: nowrap;
  margin: 0;
  display: flex;
  align-items: center;
  vertical-align: middle;
  cursor: pointer;
}
.parts-name:hover {
  background-color: rgba(48, 48, 48, 0.9);
  color: #ffffff;
}
.parts-name span {
  font-size: clamp(0.625rem, 0.564rem + 0.26vw, 0.875rem);
}
.parts-name--thread {
  top: 20%;
  left: 10%;
}
.parts-name--guide {
  top: 12%;
  left: 65%;
}

.parts-name--real-sheet {
  top: 35%;
  left: 40%;
}

.parts-name--grip {
  top: 65%;
  left: 55%;
}
.parts-name--blanks {
  top: 50%;
  left: 50%;
}
.parts-name--other {
  top: 85%;
  left: 60%;
}
.parts-name--all {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  top: 0%;
  right: 2%;
}
.parts-name--all:hover {
  background-color: #ffffff;
  color: #000000;
  opacity: 0.6;
}
@media screen and (min-width: 768px) {
  .parts-name {
    padding: 6px 20px 5px 20px;
  }
  .parts-name--guide {
    top: 15%;
    left: 35%;
  }
  .parts-name--real-sheet {
    top: 35%;
    left: 50%;
  }
  .parts-name--grip {
    top: 65%;
    left: 65%;
  }
  .parts-name--blanks {
    top: 55%;
    left: 50%;
  }
}
/* --------------------------------------- */
/* -------woocommerce商品ページ------------ */
/* --------------------------------------- */
.woocommerce-products-header__title.page-title {
  font-size: clamp(1.563rem, 1.365rem + 0.84vw, 2.375rem);
  font-weight: 700;
  color: #000000;
}
.woocommerce-products-header__title.page-title {
  margin: 0;
}
.astra-shop-thumbnail-wrap {
  aspect-ratio: 1 / 1; /* 正方形にする */
  overflow: hidden;
}
.astra-shop-thumbnail-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  object-position: center;
  display: block;
}
/* .woocommerce img,
.woocommerce-page img */
/* --------------------------------------- */
/* -------ブログページ　index.php------------ */
/* --------------------------------------- */

.ast-separate-container #primary {
  margin: 0;
  padding: 0;
}
#primary {
  margin: 0;
}
.page-title {
  font-size: clamp(1.563rem, 1.365rem + 0.84vw, 2.375rem);
  font-weight: 700;
  color: #000000;
  margin: 20px;
}

h1.entry-title {
  font-size: clamp(1.875rem, 1.723rem + 0.65vw, 2.5rem);
  font-weight: 700;
}
.ast-separate-container #content .ast-container {
  padding: 0;
}
.no-post {
  margin: 20px;
}
.site-content {
  min-height: 100vh;
  display: block;
  overflow: hidden; /* 高さを補完する */
}
/* --------------------------------------- */
/* -------SNSウィジェット----------- */
/* --------------------------------------- */
.custom-sns-widget {
  display: flex;
  align-items: center;

  margin: 30px auto;
}
.custom-sns-widget ul {
  margin: 0 auto;
}
:root :where(.is-layout-flex) {
  gap: 15px;
}
.wp-block-social-links .wp-social-link {
  background-color: rgb(0, 0, 0);
  color: #fff;
}

/* --------------------------------------- */
/* -------制作品ページ----------- */
/* --------------------------------------- */
/* 作品一覧ページ */
.site-content .ast-container {
  display: block;
}
.ast-left-sidebar #content > .ast-container {
  flex-direction: column;
}
.works-archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.archive-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}
/* 最低3列ぶん幅がないと崩れるなら ↓ のように */
@media (min-width: 768px) {
  .works-grid:has(> *:only-child),
  .works-grid:has(> *:nth-child(2)) {
    grid-template-columns: repeat(4, 1fr);
  }
}
.work-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.work-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.works-grid .work-title {
  font-size: clamp(0.875rem, 0.829rem + 0.19vw, 1.063rem);
  margin-top: 0.5rem;
}

.no-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #999;
  font-size: 0.9rem;
  border-radius: 8px;
}

.pagination {
  margin-top: 2rem;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  background: #eee;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

.pagination .current {
  background: #333;
  color: #fff;
}

/* 制作品詳細ページ */
.work-detail {
  width: 90%;
  max-width: 800px;
  margin: 0 auto 100px auto;
  padding: 20px;
}
.work-detail .works-title {
  font-size: clamp(1.875rem, 1.723rem + 0.65vw, 2.5rem);
  font-weight: 700;
}
.main-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.sub-thumbnails {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.sub-thumbnails img {
  width: 80px;
  height: auto;
  cursor: pointer;
  border: 2px solid transparent;
}

.sub-thumbnails img:hover {
  border-color: #333;
}

/* 投稿の商品をタグで表示させるとき */
.post .product-list {
  display: flex;
  flex-wrap: wrap;
}
.post .product-list .product-item h3 {
  margin-top: 7px;
  font-size: 14px;
}
