/*
Theme Name: moguragama
Author: moguragama
Description: moguragama theme
Version: 1.0
*/
*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
  all: unset;
  display: revert;
}
*,
*:before,
*:after {
  box-sizing: border-box;
  width: 100%;
}
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
a,
button {
  width: max-content;
  cursor: revert;
  appearance: none;
}
a:has(> img) {
  width: 100%;
}
ol,
ul,
menu,
summary {
  list-style: none;
}
ol {
  counter-reset: revert;
}
img {
  max-inline-size: 100%;
  max-block-size: 100%;
  vertical-align: middle;
}
table {
  border-collapse: collapse;
}
input,
textarea {
  -webkit-user-select: auto;
}
textarea {
  white-space: revert;
}
meter {
  -webkit-appearance: revert;
  appearance: revert;
}
:where(pre) {
  all: revert;
  box-sizing: border-box;
}
::placeholder {
  color: unset;
}
:where([hidden]) {
  display: none;
}
:where([contenteditable]:not([contenteditable='false'])) {
  -moz-user-modify: read-write;
  -webkit-user-modify: read-write;
  overflow-wrap: break-word;
  -webkit-line-break: after-white-space;
  -webkit-user-select: auto;
}
:where([draggable='true']) {
  -webkit-user-drag: element;
}
:where(dialog:modal) {
  all: revert;
  box-sizing: border-box;
}
::-webkit-details-marker {
  display: none;
}
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  font-size: 14px;
  overflow-x: hidden;
  background: #f1f1f1;
  letter-spacing: 0.075em;
  line-height: 1.85;
  color: #333;
  font-family: Yu Mincho, 游明朝, Hiragino Mincho ProN, Hiragino Mincho Pro, MS PMincho, serif;
}
@media (min-width: 1000px) {
  body {
    font-size: 15px;
  }
}
.container {
  padding-inline: 1em;
}
.container--sm {
  max-width: 650px;
}
.container--md {
  max-width: 1000px;
}
.container--lg {
  max-width: 1400px;
}
.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-end {
  display: flex;
  justify-content: flex-end;
}
.flex-between {
  display: flex;
  justify-content: space-between;
}
.button {
  cursor: pointer;
  line-height: 1;
  font-weight: bold;
}
.h1 {
  font-weight: 700;
  font-size: 3em;
}
.h2 {
  font-weight: 700;
  font-size: 2em;
}
.h3 {
  font-weight: 700;
  font-size: 1.5em;
}
.h4 {
  font-weight: 700;
  font-size: 1em;
}
.prose {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3em;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-komugi {
  color: #e59f5c;
}
.text-solt {
  color: #818181;
}
.text-water {
  color: #009dff;
}
.text-accent {
  color: #646464;
}
.section {
  padding-block: 6em;
}
.bg-accent {
  background: #fff;
}
.bg-comugi {
  background: #fff8f0;
}
strong {
  font-weight: 700;
}
.header {
  position: relative;
  z-index: 101;
}
.header-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  padding-block: 1em;
  padding-inline: 1em;
  max-width: max-content;
}
.logo {
  max-width: 32px;
}
.toggle-button {
  width: 32px;
  height: 32px;
}
.toggle-button svg line {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transform-origin: center;
}
.toggle-button[aria-expanded='true'] svg line:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.toggle-button[aria-expanded='true'] svg line:nth-child(2) {
  opacity: 0;
}
.toggle-button[aria-expanded='true'] svg line:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  padding-block-start: 150px;
  padding-block-end: 1em;
  padding-inline: 1em;
  width: 100%;
  height: 100vh;
  background: #fffc;
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
  pointer-events: none;
}
.navigation[aria-hidden='false'] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.header-menu > li > a {
  padding-block: 0.5em;
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  transition: opacity 0.4s ease-in-out;
}
.header-menu > li > a:hover {
  opacity: 0.5;
}
@media (min-width: 1000px) {
  .header-menu > li > a {
    font-size: 1em;
  }
}
.kv {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.kv-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
  max-width: 420px;
}
@media (min-width: 1000px) {
  .kv-video {
    max-width: 100%;
  }
}
.about {
  text-align: center;
  background-image: url('https://moguragama.jp/wp-content/uploads/2025/09/logo-white.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}
.section-heading > span {
  display: block;
  font-size: 12px;
}
.about p {
  font-weight: 700;
  color: #646464;
}
@media (min-width: 1000px) {
  .about p {
    font-size: 1.2em;
  }
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 1em 0.5em;
}
@media (min-width: 1000px) {
  .product-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}
.product-card > a {
  display: block;
  padding-inline: 0.5em;
  padding-block: 0.5em;
  transition: background 0.4s ease-in-out;
}
.product-card > a:hover {
  background: #ffecda;
}
.product-card > a > h3 {
  margin-block: 0.5em;
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
}
.product-card__description {
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-block-end: 1em;
}
.product-card__more {
  font-size: 12px;
  text-align: right;
  border-bottom: 1px solid #818181;
}
.news-box {
  background: #fff;
  padding-inline: 0.5em;
  padding-block: 0.5em;
  font-size: 12px;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  border-radius: 0px;
}
.news-box li:not(:last-child) {
  margin-block-end: 0.5em;
}
.news-box a {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  border-bottom: 1px dotted #818181;
  transition: opacity 0.4s ease-in-out;
  padding-block: 0.5em;
}
@media (min-width: 1000px) {
  .news-box a {
    grid-template-columns: 1fr 4fr;
  }
}
.news-box a > p:first-child {
  color: #818181;
}
.news-box a:hover {
  opacity: 0.5;
}
.news-box::-webkit-scrollbar {
  width: 6px;
}
.news-box::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}
.news-box::-webkit-scrollbar-track {
  background-color: #f5f5f5;
}
.footer {
  padding-block-start: 6em;
  background: #333;
  color: #fff;
}
.footer-logo-grid {
  display: grid;
  grid-template-columns: 1fr 6fr;
  grid-template-rows: auto;
  gap: 2em;
  font-size: 12px;
  max-width: 360px;
  margin-block-end: 4em;
}
.footer-logo-grid > a {
  max-width: 100px;
}
.footer-menu {
  display: flex;
  gap: 1em 2em;
  flex-direction: column;
}
@media (min-width: 1000px) {
  .footer-menu {
    flex-direction: row;
  }
}
.footer-menu > li {
  max-width: max-content;
}
.footer-menu > li > a {
  border-bottom: 1px solid #fff;
  transition: opacity 0.4s ease-in-out;
  font-size: 12px;
}
.footer-menu > li > a:hover {
  opacity: 0.5;
}
.copylights {
  font-size: 12px;
  padding-block-start: 5em;
  padding-block-end: 0.5em;
}
.page-top-section {
  padding-block-start: 12em;
}
.post-news-header h1 {
  margin-block: 0.5em;
  line-height: 1.2;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

@media (min-width: 700px) {
  .post-news-header h1 {
    font-size: 1.8rem;
  }
}

.post-news-content section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1em;
  padding-block-end: 3em;
}
.post-news-content section h2 {
  font-weight: 700;
  font-size: 1.5em;
}
.post-news-content section h3 {
  font-weight: 700;
  font-size: 1em;
}
.post-news-content section p > a {
  text-decoration: underline;
}

.post-news-content section p > a:hover {
  text-decoration: none;
}

.buy-button,
.wc-block-components-checkout-place-order-button {
  padding-inline: 1em;
  padding-block: 1em;
  background: #000;
  color: #fff;
  min-width: 250px;
  text-align: center;
  border-radius: 0px;
  margin-block: 1em;
  transition: transform 0.4s ease-in-out;
}

.wc-block-components-checkout-place-order-button .wc-block-components-button__text .wc-block-components-checkout-place-order-button__text {
  display: block !important;
}

.wc-block-components-checkout-return-to-cart-button svg {
display: none;
}

.link-button {
  padding-inline: 1em;
  padding-block: 1em;
  border: 2px solid #333;
  min-width: 250px;
  text-align: center;
  border-radius: 0px;
  margin-block: 1em;
  transition: transform 0.4s ease-in-out;
}

.buy-button:hover,
.link-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  transform: translateY(-2px);
}

.product-info {
  background-color: #f9f9f9;
  padding-inline: 2em;
  padding-block: 2em;
  border: 1px solid #ddd;
}
.product-info dt {
  font-weight: 700;
  margin-block-start: 1em;
}

.thumbnail-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
   padding-block-end: 0.75em;
  max-width: 100%;
  width: min(100%, 620px);
  margin-block-start: 0.5em;
  scroll-snap-type: x mandatory;
}

.thumbnail-nav img {
  flex: 0 0 calc((100% - 5 * 8px) / 6);
  max-width: 100px;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  scroll-snap-align: start;
  transition: opacity 0.3s, border-color 0.3s;
}

.thumbnail-nav img.active {
  opacity: 1;
  border-color: #0077cc;
}

.news-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5em;
}

.news-content h1 {
  font-weight: 700;
  font-size: 2em;
}
.news-content h2 {
  font-weight: 700;
  font-size: 1.5em;
}

.news-content h3 {
  font-weight: 700;
  font-size: 1.2em;
}

.news-content h4 {
  font-weight: 700;
  font-size: 1em;
}

.contact p:not(:last-child) {
  margin-block-end: 2em;
}

.contact input:not(.button) {
  border: 1px solid #aaaaaa;
  border-radius: 0px;
  height: 40px;
  padding-inline: 0.25em;
  font-size: 16px;
}

.contact textarea {
  border: 1px solid #aaaaaa;
  border-radius: 0px;
  padding-inline: 0.25em;
  font-size: 16px;
}

.contact input:not(.button):focus,
.contact textarea:focus {
  border: 1px solid #333;
}

.pagenation {
  max-width: max-content;
}

.wc-block-cart__submit-button,
.ajax_add_to_cart,
.add_to_cart_button,
.single_add_to_cart_button {
  background: #000 !important;
  color: #fff !important;
}

.wc-block-product {
  padding-block: 0.25em;
}

.wc-block-product .wp-block-button__link {
  font-size: 12px !important;
}

.wc-block-product h2 > a {
  font-size: 12px !important;
  display: block !important;
}

.wc-block-product h2 {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-block-components-product-price {
  text-align: left !important;
}

.cart-link {
  position: fixed;
  top: 8px;
  right: 8px;
  padding: 8px;
  font-size: 12px;
  display: block;
  max-width: max-content;
  background: #000;
  border-radius: 4px;
  font-weight: bold;
  color: #fff;
}

@media (min-width: 700px) {
  .cart-link {
    font-size: 14px;
  }
}

.wp-block-button__link,
.ajax_add_to_cart,
.single_add_to_cart_button,
.add_to_cart_button{
  border-radius: 0px !important;
}

.ajax_add_to_cart,
.single_add_to_cart_button,
.product_type_variable.add_to_cart_button {
  font-size: 12px !important;
  padding: calc(.667em + 2px) calc(1.333em + 2px) !important;
  font-weight: normal;
}

.related.products {
  display: none !important;
}

.summary.entry-summary {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.product_meta {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.woocommerce .quantity input {
  background: #f3f3f3;
}

.woocommerce .variations tr select {
  background-color: #f3f3f3 !important;
}

.woocommerce .quantity {
  margin-bottom: 1em !important;
}

.woocommerce .stock.in-stock,
.woocommerce .product_meta,
.woocommerce .woocommerce-Tabs-panel h2,
.woocommerce #tab-title-additional_information{
  display: none !important;
}

.woocommerce .woocommerce-Tabs-panel {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.woocommerce .woocommerce-Tabs-panel ul,
.woocommerce .variations tr {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.woocommerce-message {
  font-size: 12px !important;
  padding-top: 140px !important;
}

.woocommerce-message a {
 display: none !important;
}

.woocommerce-message::before {
  top: 140px;
}

.reset_variations {
  text-decoration: underline;
}