/* =========================================================
   こだわりパネル設定 [yht_4column] v2.0.1
   Front-end styles — all rules are scoped to .yht-craft-section
========================================================= */

.yht-craft-section,
.yht-craft-section * {
  box-sizing: border-box;
}

.yht-craft-section {
  --yht-craft-green: #4b7d55;
  --yht-craft-deep-green: #3f5d27;
  --yht-craft-paper: #e9f0e9;
  position: relative;
  width: 100%;
  overflow: clip;
  color: #2b2b2b;
  background-color: var(--yht-craft-paper);
  background-image:
    linear-gradient(rgba(233, 240, 233, 0.9), rgba(233, 240, 233, 0.9)),
    url("https://yahatazushi.com/wp-content/uploads/theme-japanese-papar.jpg");
  background-repeat: repeat;
  background-size: auto;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  padding: clamp(80px, 9vw, 150px) clamp(16px, 4vw, 48px);
}

.yht-craft-section .yht-craft-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.yht-craft-section .yht-craft-heading {
  margin: 0 0 clamp(36px, 5vw, 64px);
  text-align: center;
}

.yht-craft-section .yht-craft-main-title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--yht-craft-deep-green);
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.35;
}

.yht-craft-section .yht-craft-main-title::before,
.yht-craft-section .yht-craft-main-title::after {
  display: none;
  content: none;
}

.yht-craft-section .yht-craft-subtitle {
  margin: 14px 0 0;
  color: #5f6f60;
  font-size: clamp(13px, 1.25vw, 17px);
  letter-spacing: 0.18em;
  line-height: 1.8;
}

.yht-craft-section .yht-craft-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(5px, 0.65vw, 10px);
}

.yht-craft-section .yht-craft-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: #dbe5dc;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  isolation: isolate;
}

.yht-craft-section .yht-craft-card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -7px;
  box-shadow: inset 0 0 0 7px var(--yht-craft-deep-green);
}

.yht-craft-section .yht-craft-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #cbd9cc, #e6eee7);
}

.yht-craft-section .yht-craft-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .yht-craft-section .yht-craft-card:hover .yht-craft-image img {
    transform: scale(1.035);
  }
}

.yht-craft-section .yht-craft-placeholder {
  padding: 24px;
  color: #617063;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-align: center;
}

.yht-craft-section .yht-craft-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: clamp(22px, 2.4vw, 36px) clamp(18px, 2vw, 28px);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.18) 52%,
    rgba(0, 0, 0, 0.82) 100%
  );
  pointer-events: none;
}

.yht-craft-section .yht-craft-title {
  display: block;
  margin: 0 0 9px;
  color: #fff;
  font-size: clamp(24px, 2.15vw, 34px);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}

.yht-craft-section .yht-craft-desc {
  display: block;
  max-width: 24em;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(12px, 1.04vw, 15px);
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.85;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.52);
}

.yht-craft-section .yht-craft-closing {
  margin: clamp(42px, 5vw, 72px) auto 0;
  color: #465648;
  font-size: clamp(15px, 1.35vw, 18px);
  letter-spacing: 0.08em;
  line-height: 2.15;
  text-align: center;
}

/* Modal */
.yht-craft-section .yht-craft-modal[hidden] {
  display: none !important;
}

.yht-craft-section .yht-craft-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: clamp(14px, 3vw, 38px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  transition:
    opacity 0.22s ease,
    visibility 0s linear 0.22s;
}

.yht-craft-section .yht-craft-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.yht-craft-section .yht-craft-modal.is-closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    visibility 0s linear 0.18s;
}

.yht-craft-section .yht-craft-modal-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(10, 17, 11, 0.74);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: opacity 0.34s ease;
}

.yht-craft-section .yht-craft-modal.is-open .yht-craft-modal-backdrop {
  opacity: 1;
}

.yht-craft-section .yht-craft-modal.is-closing .yht-craft-modal-backdrop {
  opacity: 0;
  transition-duration: 0.18s;
}

.yht-craft-section .yht-craft-modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  height: min(82dvh, 760px);
  max-height: 900px;
  overflow: hidden;
  opacity: 0;
  background: #f8faf7;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  transform: scale(0.955);
  transform-origin: center center;
  transition:
    width 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease,
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: width, opacity, transform;
}

.yht-craft-section .yht-craft-modal.is-open .yht-craft-modal-panel {
  width: min(1040px, 100%);
  opacity: 1;
  transform: scale(1);
}

.yht-craft-section .yht-craft-modal.is-closing .yht-craft-modal-panel {
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 0.16s ease,
    transform 0.18s ease;
}

.yht-craft-section .yht-craft-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: rgba(248, 250, 247, 0.94);
  color: var(--yht-craft-deep-green);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.yht-craft-section .yht-craft-modal-close:hover,
.yht-craft-section .yht-craft-modal-close:focus-visible {
  background: #fff;
  outline: 2px solid var(--yht-craft-deep-green);
  outline-offset: -4px;
}

.yht-craft-section .yht-craft-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  transition: grid-template-columns 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.yht-craft-section .yht-craft-modal.is-open .yht-craft-modal-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.yht-craft-section .yht-craft-modal-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #dce6dd;
}

.yht-craft-section .yht-craft-modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  opacity: 0.82;
  transform: scale(1.1);
  transition:
    opacity 0.34s ease,
    transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.yht-craft-section .yht-craft-modal.is-open .yht-craft-modal-media img {
  opacity: 1;
  transform: scale(1);
}

.yht-craft-section .yht-craft-modal-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 30px;
  color: #68776a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

.yht-craft-section .yht-craft-modal-content {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  padding: clamp(58px, 6vw, 86px) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(22px);
  transition:
    padding-left 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    padding-right 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease 0.32s,
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.28s,
    visibility 0s linear 0.32s;
}

.yht-craft-section .yht-craft-modal.is-open .yht-craft-modal-content {
  padding-right: clamp(34px, 4.6vw, 68px);
  padding-left: clamp(34px, 4.6vw, 68px);
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.yht-craft-section .yht-craft-modal.is-closing .yht-craft-modal-content {
  opacity: 0;
  transform: translateX(8px);
  transition:
    opacity 0.12s ease,
    transform 0.16s ease;
}

.yht-craft-section .yht-craft-modal-content::-webkit-scrollbar {
  width: 7px;
}

.yht-craft-section .yht-craft-modal-content::-webkit-scrollbar-thumb {
  background: rgba(63, 93, 39, 0.34);
  border-radius: 999px;
}

.yht-craft-section .yht-craft-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.yht-craft-section .yht-craft-modal-title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--yht-craft-deep-green);
  font-size: clamp(30px, 3vw, 45px);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.yht-craft-section .yht-craft-modal-title::before,
.yht-craft-section .yht-craft-modal-title::after {
  display: none;
  content: none;
}

.yht-craft-section .yht-craft-modal-subtitle {
  margin: 16px 0 0;
  color: #6b766c;
  font-size: clamp(14px, 1.25vw, 17px);
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.yht-craft-section .yht-craft-modal-detail {
  margin-top: clamp(28px, 3vw, 40px);
  color: #323a33;
  font-size: clamp(14px, 1.2vw, 17px);
  letter-spacing: 0.045em;
  line-height: 2.05;
  white-space: pre-line;
}

.yht-craft-section .yht-craft-modal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 34px;
  padding: 11px 26px;
  border: 1px solid var(--yht-craft-green);
  color: var(--yht-craft-deep-green);
  background: transparent;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.yht-craft-section .yht-craft-modal-link:hover,
.yht-craft-section .yht-craft-modal-link:focus-visible {
  color: #fff;
  background: var(--yht-craft-green);
  outline: none;
}

@media (max-width: 1024px) {
  .yht-craft-section .yht-craft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .yht-craft-section .yht-craft-title {
    font-size: clamp(28px, 4vw, 38px);
  }

  .yht-craft-section .yht-craft-desc {
    font-size: clamp(13px, 1.8vw, 16px);
  }
}

@media (max-width: 720px) {
  .yht-craft-section {
    padding: 80px 14px;
  }

  .yht-craft-section .yht-craft-heading {
    margin-bottom: 34px;
  }

  .yht-craft-section .yht-craft-main-title {
    font-size: clamp(27px, 8vw, 36px);
    letter-spacing: 0.09em;
  }

  .yht-craft-section .yht-craft-subtitle {
    margin-top: 10px;
    font-size: 13px;
    letter-spacing: 0.13em;
  }

  .yht-craft-section .yht-craft-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .yht-craft-section .yht-craft-card {
    aspect-ratio: 16 / 10;
  }

  .yht-craft-section .yht-craft-overlay {
    padding: 26px 22px 22px;
  }

  .yht-craft-section .yht-craft-title {
    margin-bottom: 7px;
    font-size: clamp(26px, 8vw, 34px);
  }

  .yht-craft-section .yht-craft-desc {
    font-size: clamp(13px, 3.8vw, 16px);
    line-height: 1.72;
  }

  .yht-craft-section .yht-craft-closing {
    margin-top: 44px;
    padding: 0 8px;
    font-size: 14px;
    letter-spacing: 0.045em;
    line-height: 2;
  }

  .yht-craft-section .yht-craft-modal {
    align-items: center;
    padding: 10px;
  }

  .yht-craft-section .yht-craft-modal-panel,
  .yht-craft-section .yht-craft-modal.is-open .yht-craft-modal-panel {
    width: 100%;
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .yht-craft-section .yht-craft-modal-layout,
  .yht-craft-section .yht-craft-modal.is-open .yht-craft-modal-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(220px, 42%) minmax(0, 1fr);
  }

  .yht-craft-section .yht-craft-modal-media,
  .yht-craft-section .yht-craft-modal-media img,
  .yht-craft-section .yht-craft-modal-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }

  .yht-craft-section .yht-craft-modal-media img {
    object-fit: cover;
  }

  .yht-craft-section .yht-craft-modal-content,
  .yht-craft-section .yht-craft-modal.is-open .yht-craft-modal-content {
    padding: 34px 24px 42px;
  }

  .yht-craft-section .yht-craft-modal-title {
    padding-right: 38px;
    font-size: 31px;
  }

  .yht-craft-section .yht-craft-modal-detail {
    font-size: 14px;
    line-height: 1.95;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yht-craft-section .yht-craft-image img,
  .yht-craft-section .yht-craft-modal,
  .yht-craft-section .yht-craft-modal-backdrop,
  .yht-craft-section .yht-craft-modal-panel,
  .yht-craft-section .yht-craft-modal-layout,
  .yht-craft-section .yht-craft-modal-media img,
  .yht-craft-section .yht-craft-modal-content,
  .yht-craft-section .yht-craft-modal-link {
    transition: none !important;
  }
}
