* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.8;
  letter-spacing: .01em;
}

/* ===== 共通 ===== */
.container {
  width: min(1080px, 92vw);
  margin-inline: auto;
}

.section {
  padding: 72px 0;
  position: relative;
}

.sand {
  top: 58.92px;
  background: #F0E0CD;
  position: relative;
  overflow: hidden;
}

/* ===== Header（右寄せの小さめナビ） ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 58.92px;
  z-index: 10;
  background: #FFFDF6;
  border-bottom: 1px solid #e7d8cc;
  backdrop-filter: blur(6px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 10px 0;
}

.logo {
  font-weight: 800;
  text-decoration: none;
  color: #2e2420;
}

.top-nav {
  display: flex;
  gap: 18px;
  font-size: .9rem;
}

.top-nav a {
  color: #6a5b54;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 999px;
}

.top-nav a:hover {
  background: #efe3d7;
}

@media (max-width: 640px) {
  .top-nav {
    display: none;
  }
}


/* ===== Hero ===== */
.hero {
  position: relative;
  top: 58.92px;
  height: 90vh;
  min-height: 460px;
  overflow: hidden;
}

.hero-inner {
  position: absolute;
  inset: 0;
  /* ヒーロー全面に広げる */
  z-index: 2;
  /* スライドより上に */
  display: flex;
  align-items: center;
  justify-content: center;
  /* 好みで位置調整 */
}

.hero-type {
  margin: 3vw;
}

.type-css .catchcopy {
  color: white;
  font-size: 24pt;
}

@keyframes typing {
  to {
    width: calc(var(--n) * 1ch);
  }
}

.slideshow {
  position: relative;
  width: 100vw;
  height: 100%;
  overflow: hidden;
}

/* まず全スライドのベース */
.slide {
  z-index: 1;
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  /* 初期は透明 */
  animation: fade 12s infinite both;
  /* 共通タイムライン */
}

/* 順番にずらす（0s, 4s, 8s）*/
.slide:nth-child(1) {
  animation-delay: 0s;
}

.slide:nth-child(2) {
  animation-delay: 4s;
}

.slide:nth-child(3) {
  animation-delay: 8s;
}

/* 1枚あたりのフェード/表示/フェード */
@keyframes fade {
  0% {
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  /* フェードイン（約1秒） */
  33% {
    opacity: 1;
  }

  /* 表示（約3秒） */
  41% {
    opacity: 0;
  }

  /* フェードアウト（約1秒） */
  100% {
    opacity: 0;
  }
}

.test1 {
  background-image: url('images/hero.png');
}

.test2 {
  background-image: url('images/hero2.png');
}

.test3 {
  background-image: url('images/hero3.png');
}

.hero-catch {
  font-size: clamp(28px, 4vw, 48px);
  text-shadow: 0 2px 0 rgba(255, 255, 255, .65);
  margin: 0 0 12px 0;
}

.hero-sub {
  margin: 0;
  font-size: clamp(16px, 2vw, 22px);
  color: #5f5049;
  font-weight: 700;
}

.hero-bg {
  position: absolute;
  inset: 0;
}


/* ===== セクションタイトル（斜めの見出しラベル） ===== */
.ribbon-title {
  position: relative;
  top: -30px;
  left: -55vw;
  width: 100%;
  display: inline-block;
  text-align: right;
  margin: 0;
  /* 見出しのデフォルト余白を消す */
  font: 700 22px/1.2 "Noto Sans JP", system-ui, sans-serif;
  color: #4a352d;
}

/* 下の細い帯（背景のベージュライン） */
.ribbon-title::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 本体と同じ大きさを基準にする */
  background: #474747;
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  z-index: 0;
  transform: translate(4px, 4px);
  /* 少し右下にずらす */
  filter: blur(3px);
}

/* 白いラベル本体（右端を斜めに切る） */
.ribbon-title span {
  position: relative;
  width: 100%;
  display: inline-block;
  padding: 10px 34px 10px 16px;
  /* 右側は少し広めに */
  background: #fff;
  /* 右端だけ斜めにカット（台形） */
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  z-index: 1;
}

/* ===== 斜め帯 ===== */
.band {
  position: absolute;
  left: 50%;
  top: calc(var(--i) * 130px);
  /* 本数ごとに縦ずらし */
  width: 170%;
  height: 80px;
  background: #E8C9A5;
  transform-origin: 50% 50%;
  transform: translateX(-50%) rotate(var(--angle));
}


/* ===== Service カード ===== */
.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.card {
  background: #fff;
  border: 1px solid #e6d7c9;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  min-height: 140px;
}

.card h3 {
  margin: 0 0 6px 0;
  font-size: 1.02rem;
  color: #473a33;
}

.card p {
  margin: 0;
  color: #6a5b54;
}

/* ===== Company（濃茶の角丸パネル） ===== */
.company-section {
  padding-bottom: 88px;
}

.company-panel {
  background: #5a4a43;
  color: #f3eee9;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.company-table {
  margin: 0;
}

.company-table>div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px dashed rgba(255, 255, 255, .25);
}

.company-table>div:last-child {
  border-bottom: none;
}

.company-table dt {
  color: #e7d5c7;
}

.company-table dd {
  margin: 0;
}



/* 背景の斜め帯 */
.bg-diagonals {
  position: absolute;
  height: 100%;
  width: 100%;
}

.bg-diagonals span {
  position: absolute;
  display: block;
  width: 100px;
  bottom: 0;
  inset: auto -20% -10% -20%;
  height: 160px;
  /* transform: skewY(-12deg) translateY(calc(var(--i) * -36px)); */
  background: #E8C9A5;
  border-top: 1px solid #E8C9A5;
  border-bottom: 1px solid #E8C9A5;
}

/* ===== Contact（柔らかい光の背景＋白フォーム） ===== */
.contact-section {
  position: relative;
  top: 58.92px;
  padding-bottom: 100px;
  background:
    radial-gradient(80% 50% at 50% 10%, #fff5eb 0%, transparent 60%),
    linear-gradient(180deg, #efe5db 0%, #f7efe7 60%, #efe5db 100%);
}

.contact-form {
  background: #fff;
  border: 1px solid #ead9cc;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid #e2d2c4;
  outline: none;
  background: #fff;
  font: inherit;
  color: #2e2420;
}

input:focus,
textarea:focus {
  border-color: #d0b9a6;
  box-shadow: 0 0 0 3px rgba(224, 195, 169, .35);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  background: #6b5a52;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.note {
  color: #806f67;
}

.contact-bg {
  position: absolute;
  inset: auto 0 -40px 0;
  height: 180px;
  pointer-events: none;
  background:
    radial-gradient(80% 120% at 50% -10%, rgba(255, 255, 255, .8), transparent 60%),
    radial-gradient(40% 60% at 30% 50%, rgba(255, 220, 190, .45), transparent 70%),
    radial-gradient(40% 60% at 70% 60%, rgba(255, 220, 190, .45), transparent 70%);
  filter: blur(6px);
}

/* ===== Footer（濃いバー＋小さめ文字） ===== */
.site-footer {
  position: relative;
  top: 58.92px;
  background: #4b403a;
  color: #e8dbd1;
  border-top: 1px solid #3d332e;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: .9rem;
}

.footer-nav {
  display: flex;
  gap: 18px;
}

.footer-nav a {
  color: #e8dbd1;
  text-decoration: none;
  opacity: .9;
}

.footer-nav a:hover {
  opacity: 1;
}