:root {
  --hero-cream:     #faf8f5;
  --hero-ivory:     #f2ede5;
  --hero-rose:      #b87065;
  --hero-blush:     #e8c4bc;
  --hero-champagne: #c9a882;
  --hero-charcoal:  #1e1a17;
  --hero-muted:     #6b5e56;
  --hero-dim:       #a8998f;
  --hero-border:    rgba(44,37,32,0.09);
}

/* ══ HERO — editorial split ══ */
.hero {
  position: relative;
  height: 100dvh; min-height: 640px;
  overflow: hidden;
  background: #0e0c0a;
}

.hero-slide {
  position: absolute; inset: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.3s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: clip-path;
}
.hero-slide.active    { clip-path: inset(0 0% 0 0); }
.hero-slide.was-active { clip-path: inset(0 0 0 100%); transition: clip-path 1.3s cubic-bezier(0.76, 0, 0.24, 1); }

.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.1);
  transition: transform 12s ease-out;
  filter: brightness(0.72);
}
.hero-slide.active img { transform: scale(1.0); }

.hero-slides-container {
  position: absolute; inset: 0; z-index: 0;
}

.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.hero-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to right,  rgba(8,6,5,0.72) 0%, rgba(8,6,5,0.2) 55%, transparent 100%),
    linear-gradient(to bottom, rgba(8,6,5,0.4)  0%, transparent 40%, rgba(8,6,5,0.65) 100%);
}

.hero-content {
  position: absolute; inset: 0; z-index: 3;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: 1.4fr auto 0.6fr; /* 比率を調整してタイトルの位置を安定させる */
  padding: 60px 40px 0; /* 左右の余白を削って、横長エリアを最大化 */
  gap: 0;
}

.hero-left {
  grid-column: 1; grid-row: 1;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 24px;
  text-align: left;
}

.hero-series {
  position: absolute; top: 110px; left: 64px;
  display: flex; align-items: center; gap: 16px;
  z-index: 5;
}
.hero-series-line { width: 40px; height: 1px; background: var(--hero-champagne); }
.hero-series-text {
  font-size: 9px; letter-spacing: 0.42em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); font-family: 'DM Sans', sans-serif;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; line-height: 1.1;
  color: #fff;
  margin-bottom: 0;
  overflow: hidden;
}
.hero-title-line { display: block; white-space: nowrap; }
.hero-title-line:nth-child(1) { font-size: clamp(34px, 4.2vw, 64px); }
.hero-title-line:nth-child(2) {
  font-size: clamp(38px, 5.2vw, 82px);
  font-style: italic; color: var(--hero-blush);
  margin-left: -2px;
  margin-top: 4px;
}

.hero-sub-line {
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
  justify-content: center;
}
.hero-sub-line::before, .hero-sub-line::after { content:''; width:20px; height:1px; background:rgba(255,255,255,0.25); }
.hero-sub-text {
  font-size: 11px; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.45); font-family: 'Shippori Mincho', serif;
}

/* ══ HERO — corner info block ══ */
.hero-corner-block {
  position: absolute; right: 64px; bottom: 64px;
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 32px; z-index: 5;
}

.hero-slide-info {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  padding: 32px 36px;
  min-width: 300px; max-width: 340px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.hsi-tag {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--hero-champagne); margin-bottom: 12px;
  font-family: 'DM Sans', sans-serif;
}
.hsi-style {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-style: italic; color: #fff;
  margin-bottom: 8px;
}
.hsi-meta {
  font-size: 13px; color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em; font-family: 'DM Sans', sans-serif;
}
.hsi-planner {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 10px; color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em; font-family: 'DM Sans', sans-serif;
}
.hsi-cta {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; margin-top: 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px; padding: 10px 14px;
  color: #fff; font-size: 11px; letter-spacing: 0.08em;
  font-family: 'Shippori Mincho', serif;
  cursor: pointer; transition: background 0.25s, border-color 0.25s;
  text-align: left;
}
.hsi-cta:hover { background: var(--hero-rose); border-color: var(--hero-rose); }
.hsi-cta svg { width: 13px; height: 13px; flex-shrink: 0; transition: transform 0.25s; }
.hsi-cta:hover svg { transform: translateX(3px); }

.hero-counter {
  display: flex; align-items: baseline; gap: 10px;
  margin-right: 12px;
}
.hcounter-cur {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 300; color: #fff; line-height: 1;
}
.hcounter-sep {
  width: 20px; height: 1px; background: rgba(255,255,255,0.3);
  margin-bottom: 5px; flex-shrink: 0;
}
.hcounter-total {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; color: rgba(255,255,255,0.35); line-height: 1;
}

.hero-bottom {
  grid-column: 1 / 3; grid-row: 2;
  display: flex; flex-direction: column; gap: 18px;
  padding-top: 32px; /* 元のパディングに戻す */
  transform: translateY(113px); /* 3cm(約113px)ほど下へ配置 */
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 100%; max-width: 1450px; /* 大画面を最大限活かしたワイド設計 */
  margin: 0 auto;
  align-items: center;
}

.hero-map-link {
    margin-top: 10px;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; letter-spacing: 0.18em;
    color: rgba(255,255,255,0.7); /* 文字色を明るくして見やすく */
    font-family: 'Shippori Mincho', serif;
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
}
.hero-map-link:hover {
    color: var(--hero-champagne);
    transform: translateY(-2px);
}
.hero-map-link svg {
    width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5;
}

.hero-search {
  display: flex; align-items: stretch;
  background: rgba(255,255,255,0.11);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}
.hero-search:hover {
  transform: translateY(-4px);
  box-shadow: 0 45px 100px rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.35);
}
.hs-field {
  flex: 1.2; /* 全体的に広めに確保 */
  display: flex; flex-direction: column;
  padding: 14px 25px; /* 上質なゆとりを持たせつつ確保 */
  border-right: 1px solid rgba(255,255,255,0.1);
  cursor: text; transition: background 0.2s;
  min-width: 220px; /* どのフィールドも最低220pxは保証して「エリア」切れを防ぐ */
}
/* 最も長い文字が入る「業種」はさらに広く（1.25倍） */
.hs-field:nth-child(2) {
  flex: 1.5;
  min-width: 320px; 
}
.hs-field:hover { background: rgba(255,255,255,0.05); }
.hs-label {
  font-size: 8px; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 5px;
  font-family: 'DM Sans', sans-serif;
}
.hs-input {
  background: none; border: none; outline: none;
  font-size: 14px; color: rgba(255,255,255,0.9);
  font-family: 'Shippori Mincho', serif;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path fill="rgba(255,255,255,0.3)" d="M0 0l5 6 5-6z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0px center; /* 右端に配置 */
  padding-right: 25px; /* 文字と矢印が重ならないように余白を確保！ これで切れを防ぎます */
}
.hs-input option {
  background: #1e1a17;
  color: #fff;
}
.hs-input::placeholder { color: rgba(255,255,255,0.25); }
.hs-btn {
  background: var(--hero-rose); border: none; cursor: pointer;
  padding: 0 44px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #fff; font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; gap: 10px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  flex-shrink: 0;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}
.hs-btn:hover { 
  background: var(--hero-champagne); color: var(--hero-charcoal);
  box-shadow: 0 0 30px rgba(201, 168, 130, 0.4);
}
.hs-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; }

.hero-progress {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  height: 1px; background: rgba(255,255,255,0.08);
}
.hero-progress-bar {
  height: 100%; background: var(--hero-champagne);
  width: 0%; transition: width 0.1s linear;
}

.scroll-cue {
  position: absolute; left: 64px; bottom: 64px; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); font-family: 'DM Sans', sans-serif;
}
.scroll-line {
  width: 40px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.4));
  animation: sline 2.4s ease-in-out infinite;
}
@keyframes sline { 0%,100%{opacity:.3;transform:scaleX(1)} 50%{opacity:1;transform:scaleX(1.3)} }

@media(max-width:900px){
  .hero { height: auto; min-height: 100dvh; }
  .hero-slides-container, .hero-grain, .hero-vignette { height: 100%; min-height: 100dvh; }
  .hero-content { position: relative; height: auto; min-height: 100dvh; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; padding:100px 20px 100px; width: 100%; box-sizing: border-box; } /* 下の余白を100pxに増やして被りを防ぐ */
  .hero-left { text-align: center; }
  .hero-title-line { white-space: normal !important; font-size: clamp(16px, 5.2vw, 24px) !important; line-height: 1.4; text-align: center; word-break: keep-all; }
  .hero-title-line:nth-child(2) { font-size: clamp(18px, 6vw, 26px) !important; margin-left: 0; text-align: center; }
  .hero-sub-text { white-space: nowrap !important; text-align: center; font-size: 11px; }
  .hero-series { display: none; }
  .hero-corner-block { display:none; }
  .hero-bottom { grid-column:1; grid-row: 2; border-top: none; transform: translateY(-30px); padding-top: 0; margin-top: 0; width: 100%; box-sizing: border-box; }
  .hero-search { flex-direction:column; width: 100%; }
  .hs-field { border-right:none; border-bottom:1px solid rgba(255,255,255,0.1); min-width: 0; width: 100%; }
  .hs-field:nth-child(2) { min-width: 0; }
  .hs-btn { padding:16px; justify-content:center; width: 100%; }
  .scroll-cue { left:28px; bottom: 20px; }
}
