/* ---------- Variables / Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&display=swap');

:root {
  /* 既存レイアウト */
  --color-bg: #F6F1ED;
  --color-fg: #1a1a1a;
  --color-muted: #6b7280;
  --color-primary: #4f46e5;
  --color-accent: #f59e0b;
  --color-surface: #f6f7fb;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --font-display: 'Playfair Display', var(--font-sans);
  --container: 1100px;
  --radius: 14px;

  /* 新規参照（Advanced Search） */
  --bg: #f6f1ed;
  --text: #111;
  --muted: #666;
  --ui: #ddd;
  --ui-border: #cfcfcf;
  --focus: #19b9c8;
  --btn-bg: #c88c1a;
  --btn-text: #fff;
}

/* ---------- Resets / Base ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-fg);
  background: var(--color-bg);
  font-family: var(--font-sans);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

section {
  margin: 0;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--color-bg);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 24px;
}

.section__lead {
  margin: 0 0 24px;
  color: #222;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--color-bg);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #eee;
  z-index: 50;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

.site-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 8px;
}

.site-nav a:hover {
  background: #f2f2f7;
}

.nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
  }

  .site-nav {
    position: absolute;
    inset: 56px 0 auto auto;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 200px 0;
  background-image: url(../../image/main/toppage.webp);
  background-size: cover;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  color: var(--color-bg)
}

.hero__title {
  padding-top: 100px;
  font-family: var(--font-display);
  font-size: 50px;
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero__lead {
  color: var(--color-muted);
  margin: 0 0 24px;
  font-size: 15px;
}

.hero__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.circle-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12px;
  display: flex;
  display: inline-flex;
  text-decoration: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.circle-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(2px);
}


@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Introduction
   ========================================================= */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 30px;
}

.intro-media {
  max-width: 800px;
  width: 120%;
}

.intro-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.intro-text-1 {
  color: #727a8a;
  font-size: 18.5px;
  margin: inherit;
  margin-bottom: 50px;
}

.intro-text-2 {
  font-size: 16.5px;
}

/* =========================================================
   Scene
   ========================================================= */
.scene-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 140px 80px;
}

.scene-text {
  flex: 1;
  min-width: 280px;
}

.scene-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: #222;
}

.scene-text p {
  font-size: .95rem;
  line-height: 1.8;
  color: #555;
}

.scene-gallery {
  flex: 2;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.scene-item {
  flex: 1;
  text-align: center;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .35s ease;
}

.scene-item img {
  width: 100%;
  display: block;
  border-radius: 6px;
  margin-bottom: 10px;
  transition: transform .35s ease, filter .35s ease;
}

.scene-item:hover {
  transform: translateY(-6px);
}

.scene-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.scene-item h3 {
  font-size: 1.05rem;
  margin: 8px 0 4px;
  font-weight: 600;
}

.scene-item p {
  font-size: .9rem;
  color: var(--color-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .scene-section {
    flex-direction: column;
    gap: 28px;
  }

  .scene-gallery {
    flex-direction: column;
  }
}

/* =========================================================
   Strength
   ========================================================= */


.strength-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 140px 80px;
}

.strength-text {
  flex: 1;
  min-width: 280px;
}

.strength-gallery {
  flex: 2;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.strength-item {
  flex: 1;
  text-align: center;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .35s ease;
}

.strength-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: transform .35s ease, filter .35s ease;
}

.strength-item:hover {
  transform: translateY(-6px);
}

.strength-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.strength-item h3 {
  font-size: 1.05rem;
  margin: 8px 0 4px;
  font-weight: 600;
}

.strength-item p {
  font-size: .9rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.strength-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: #222;
}

.strength-text p {
  font-size: .95rem;
  line-height: 1.8;
  color: #555;
}

@media (max-width: 900px) {
  .strength-section {
    flex-direction: column;
    gap: 28px;
  }

  .strength-text,
  .strength-gallery {
    order: initial;
  }

  .strength-gallery {
    flex-direction: column;
  }
}

/* =========================================================
   Base
   ========================================================= */
.base-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 140px 80px;
  --section-bg: #f6efe7;
}

.base-text {
  flex: 1;
  min-width: 280px;
}

.base-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: #222;
}

.base-text p {
  font-size: .95rem;
  line-height: 1.8;
  color: #555;
}

.base-gallery {
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: repeat(4, 180px);
  width: fit-content;
  margin-inline: auto;
  justify-items: center;
  align-content: start;
}

.base-item {
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform .35s ease;
}

.base-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: block;
  transition: transform .35s ease, filter .35s ease;
}

.base-item h3 {
  margin: 10px 0 0;
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
  color: #333;
}

.base-item:hover {
  transform: translateY(-4px);
}

.base-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

@media (max-width: 1100px) {
  .base-gallery {
    grid-template-columns: repeat(3, 180px);
  }
}

@media (max-width: 700px) {
  .base-section {
    flex-direction: column;
    gap: 28px;
    padding: 72px 24px;
  }

  .base-gallery {
    grid-template-columns: repeat(2, 160px);
  }

  .base-item {
    width: 160px;
  }
}

/* =========================================================
   Color
   ========================================================= */
.color-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 140px 80px;
  --section-bg: #f6efe7;
}

.color-text {
  flex: 1;
  min-width: 280px;
}

.color-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: #222;
}

.color-text p {
  font-size: .95rem;
  line-height: 1.8;
  color: #555;
}

.color-gallery {
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: repeat(4, 180px);
  width: fit-content;
  margin-inline: auto;
  justify-items: center;
  align-content: start;
}

.color-item {
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform .35s ease;
}

.color-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: block;
  transition: transform .35s ease, filter .35s ease;
}

.color-item h3 {
  margin: 10px 0 0;
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
  color: #333;
}

.color-item:hover {
  transform: translateY(-4px);
}

.color-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

@media (max-width: 1100px) {
  .color-gallery {
    grid-template-columns: repeat(3, 180px);
  }
}

@media (max-width: 700px) {
  .color-section {
    flex-direction: column;
    gap: 28px;
    padding: 72px 24px;
  }

  .color-gallery {
    grid-template-columns: repeat(2, 160px);
  }

  .color-item {
    width: 160px;
  }
}

/* =========================================================
   Adv_search
   ========================================================= */

.adv-search {
  display: grid;
  grid-template-columns: minmax(280px, 36vw) 1fr;
  /* 左=約1/3 */
  min-height: 100dvh;
  padding-top: 160px;
  padding-bottom: 160px;
}

/* 左の写真（3:4固定トリミング） */
.search-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

/* 右エリア */
.search-body {
  padding: clamp(24px, 6vw, 72px);
}

/* 見出し */
.title--right {
  margin-left: auto;
  text-align: right;
}

/* サブタイトル：右側の“細いレール”に寄せる */
.subtitle {
  margin: 0 0 2.4rem;
  font-size: clamp(16px, 2.2vw, 22px);
  max-width: min(46ch, 48%);
  margin-left: auto;
  text-align: right;
}

.subtitle .sub {
  color: var(--muted);
  font-size: .9em;
}

/* ラベル */
.label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 .4rem;
}

/* 入力（共通） */
.input-icon input,
.ui-select {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--ui-border);
  background: #fff;
  font-size: 16px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.input-icon input:focus,
.ui-select:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--focus) 30%, transparent);
}

/* セレクト（矢印） */
.ui-select {
  appearance: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 2.4rem;
  background-color: #e6e6e6;
  border-color: #e0e0e0;
}

/* 検索欄の虫眼鏡 */
.input-icon {
  position: relative;
}

.input-icon::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  translate: 0 -50%;
  width: 18px;
  height: 18px;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'><circle cx='11' cy='11' r='7' fill='none' stroke='%23666' stroke-width='2'/><path d='M20 20l-3.2-3.2' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-size: 18px 18px;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* 入力2列 */
.field-block {
  margin-bottom: 1.4rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 28px) 36px;
  align-items: start;
}

.field-grid .col {
  min-width: 0;
}

/* 右下にボタン */
.field-grid .actions {
  grid-column: 2 / 3;
  display: flex;
  justify-content: flex-end;
  align-self: end;
  margin-top: .5rem;
}

.btn-primary {
  display: inline-block;
  padding: .9rem 2.2rem;
  border-radius: 999px;
  border: none;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: .95;
}

.btn-primary:active {
  transform: translateY(1px);
}

/* モバイル挙動（縦並び） */
@media (max-width: 960px) {
  .adv-search {
    grid-template-columns: 1fr;
  }

  .search-media img {
    aspect-ratio: 4 / 3;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-grid .actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    align-self: auto;
  }
}

/* =========================================================
   Contact
   ========================================================= */
.contact-section {
  padding-top: 150px;
  color: #ffffff;
  background-image: url(../../image/F4EF50B4-7937-4522-A290-7FB3CAD3D5D2.webp);
}

.contact-section p {
  color: #ffffff;

}


.container-cta{
  padding-bottom: 80px;
  padding-left: 30px;
}

h1 {
  letter-spacing: 0.2rem;
}

h2 {
  letter-spacing: 1px;
}

/* =========================================================
   JS用
   ========================================================= */


/* 初期状態：少し下＆透明 */
.reveal-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: calc(var(--stagger, 0) * 60ms);
  will-change: opacity, transform;
}

/* 可視になったらふわっと表示 */
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 動きを苦手な人向けの配慮 */
@media (prefers-reduced-motion: reduce) {

  img.reveal-up,
  img.reveal-up.is-visible {
    transition: none;
    transform: none;
    opacity: 1;
  }
}



/* =========================================================
   results.php
   ========================================================= */

/* ==== Results page layout ==== */
.results-page {
  --wrap-max: 1040px;
  --gap-x: 36px;
  --gap-y: 48px;
  --fg-muted: #666;
}

.results-page h1 {
  max-width: var(--wrap-max);
  margin: 40px auto 18px;
  padding: 0 20px;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: .04em;
}

/* 条件バー（任意） */
.results-page .toolbar {
  max-width: var(--wrap-max);
  margin: 0 auto 40px;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 14px;
  color: var(--fg-muted);
}

/* 右端に寄せる。幅はコンパクトに */
.results-page .sort-compact {
  margin-left: auto;
  /* これで右端 */
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.results-page .toolbar .sort-compact .ul-select {
  width: 160px;
  /* 好みで調整 150–180pxくらい */
  min-width: 0;
  /* 既存のmin-widthを打ち消す */
  max-width: 100%;
  flex: 0 0 auto;
}


/* 3カラムのカードグリッド */
.cards {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 20px 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-y) var(--gap-x);
}

/* 2→1カラムの崩し */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* カード
.card {} */

/* 画像を常に正方形で見せる */
.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  /* 正方形枠を作る */
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .25);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* 画像リンクのクリック領域をブロック化 */
.card__media>a {
  display: block;
  width: 100%;
  height: 100%;
}

/* 画像を中でトリミング */
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 中央でトリミング */
  display: block;
}

/* ホバー/フォーカスのフィードバック */
.card__media:has(a:hover),
.card__media:has(a:focus-visible) {
  /* transform: translateY(-4px); */
  box-shadow: 0 6px 24px rgba(0, 0, 0, .32);
  transition: transform .35s ease, filter .35s ease;
  transform: scale(1.05);
  filter: brightness(1.08);

}

.card__media a:focus-visible {
  outline: none;
}

.card__media a:focus-visible::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .6) inset;
  border-radius: 8px;
}

/* テキスト部 */
.card__body {
  text-align: center;
  padding-top: 12px;
}

.card__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.5;
}

.card__body p {
  margin: 2px 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg-muted);
  white-space: nowrap;
  /* 1行で見せたいなら */
}


.card__media .caption {
  font-size: 130%;
  text-align: center;
  padding-top: 135px;
  color: #fff;
}

.card__media .mask {
  width: 100%;
  height: 100%;
  position: absolute;
  /* 絶対位置指定 */
  top: 0;
  left: 0;
  opacity: 0;
  /* マスクを表示しない */
  background-color: rgba(0, 0, 0, 0.4);
  /* マスクは半透明 */
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.card__media:hover .mask {
  opacity: 1;
  /* マスクを表示する */
}

/* ページャ（簡易） */
.pager {
  max-width: var(--wrap-max);
  margin: 24px auto 80px;
  padding: 0 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
}

.pager a,
.pager span {
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
}

.pager a:hover {
  background: rgba(0, 0, 0, .06);
}

