/* ===============================
   ダイトウサービス 网站样式
   注释为中文，方便初学者维护
   =============================== */

/* 全局变量：集中管理品牌色 */
:root {
  --orange: #f46a1b;
  --deep-orange: #df4e12;
  --green: #009b63;
  --teal: #00a99d;
  --red: #e7191b;
  --yellow: #ffe33d;
  --cream: #fff7e5;
  --ink: #222;
  --muted: #666;
  --line: #e9e2d2;
  --white: #fff;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  --radius: 18px;
}

/* 基础重置 */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, Arial, sans-serif;
  line-height: 1.7;
  background: #fffdf7;
}

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

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* 顶部红条 */
.top-bar {
  background: var(--red);
  color: var(--white);
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 12px;
}

.top-bar p {
  margin: 0;
}

/* 头部 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 4px solid var(--orange);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  color: var(--muted);
  font-size: 13px;
}

.brand img {
  width: 260px;
  height: auto;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tel-image img {
  width: 320px;
}

.line-mini {
  background: var(--green);
  color: var(--white);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

/* 导航栏 */
.global-nav {
  background: #111;
  color: var(--white);
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 2px;
}

.nav-list a {
  padding: 12px 22px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-list a:hover,
.nav-list a.is-current {
  background: var(--yellow);
  color: #111;
}

/* 汉堡按钮，桌面端隐藏 */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--white);
  margin: 5px auto;
}

/* Hero */
.hero {
  padding: 46px 0 42px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 227, 61, 0.35), transparent 26%),
    linear-gradient(135deg, #fff7e5 0%, #fff 48%, #fff0db 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 34px;
}

.badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.badge::before,
.section-kicker::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--yellow);
  border: 3px solid var(--red);
  border-radius: 50%;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-shadow: 4px 4px 0 var(--yellow);
}

.hero h1 span {
  color: var(--red);
}

.lead {
  font-size: 18px;
  font-weight: 700;
  margin: 22px 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

.btn-red {
  background: var(--red);
}

.btn-green {
  background: var(--green);
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.trust-list li,
.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 800;
}

.trust-list li::before,
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 900;
}

/* 图片轮播 */
.hero-visual {
  position: relative;
}

.slider {
  position: relative;
  overflow: hidden;
  border: 6px solid var(--orange);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.slides {
  position: relative;
  min-height: 430px;
  background: #fff;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.45s ease;
  background: var(--white);
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.slider-btn.prev {
  left: 12px;
}

.slider-btn.next {
  right: 12px;
}

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dots button {
  width: 12px;
  height: 12px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.dots button.is-active {
  background: var(--red);
}

/* 快速联系 */
.quick-contact {
  padding: 34px 0;
  background: #111;
  color: var(--white);
}

.quick-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}

.phone-card,
.line-card {
  border-radius: var(--radius);
  padding: 26px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.phone-card h2 {
  color: var(--red);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  margin: 4px 0 8px;
}

.line-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 22px;
}

.line-card img {
  width: 180px;
  border-radius: 12px;
}

.line-card strong {
  color: var(--red);
  font-size: 22px;
}

/* 通用区块 */
.section {
  padding: 76px 0;
}

.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 38px;
}

.section-title h2,
.facility h2,
.estate h2,
.license-card h2,
.contact h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.22;
}

.section-title p,
.section-text {
  color: var(--muted);
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 26px 22px;
  border: 3px solid #111;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 8px 8px 0 #111;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -32px;
  width: 86px;
  height: 86px;
  background: var(--yellow);
  border-radius: 50%;
}

.icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 32px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

/* 设施退去区块 */
.facility {
  background: #eef4f1;
}

.facility-grid,
.estate-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 42px;
}

.circle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.circle-list span {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.poster-frame {
  border: 6px solid var(--green);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.poster-frame img {
  width: 100%;
  height: 560px;
  object-fit: contain;
  background: #fff;
}

.poster-frame.wide {
  border-color: var(--orange);
}

.poster-frame.wide img {
  height: 360px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}

/* 资质横幅 */
.license-section {
  padding: 46px 0;
  background: linear-gradient(135deg, #111, #333);
  color: var(--white);
}

.license-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 28px;
}

.license-card img {
  width: 100%;
  border: 5px solid var(--red);
  border-radius: 10px;
  background: var(--white);
}

/* 流程 */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.flow-step {
  padding: 26px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}

.flow-step span {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
}

.flow-step h3 {
  margin: 16px 0 8px;
  font-size: 22px;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

/* 联系区域：无后端表单，只保留电话和LINE入口 */
.contact {
  background: var(--cream);
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-method {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-method h3 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
}

.contact-method p {
  margin: 12px 0;
  color: var(--muted);
  font-weight: 800;
}

.contact-label {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--yellow);
  color: #111 !important;
  font-weight: 900 !important;
}

.contact-phone {
  border: 4px solid var(--red);
}

.contact-line {
  border: 4px solid var(--green);
}

.contact-phone img {
  width: 420px;
  max-width: 100%;
  margin-bottom: 12px;
}

.contact-line img {
  width: 230px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* 页脚 */
.site-footer {
  padding: 42px 0 86px;
  background: #171717;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 24px;
}

.footer-grid img {
  width: 240px;
  filter: brightness(1.08);
}

.footer-grid a {
  color: var(--yellow);
  font-weight: 900;
}

.copyright {
  margin: 30px 0 0;
  text-align: center;
  color: #bbb;
  font-size: 13px;
}

/* 移动端固定按钮 */
.floating-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 120;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.floating-cta a {
  flex: 1;
  text-align: center;
  padding: 14px 10px;
  color: var(--white);
  font-weight: 900;
}

.floating-cta a:first-child {
  background: var(--red);
}

.floating-cta a:last-child {
  background: var(--green);
}

/* 响应式：平板 */
@media (max-width: 960px) {
  .header-contact {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .global-nav {
    display: none;
  }

  .global-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-list a {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero-grid,
  .quick-grid,
  .facility-grid,
  .estate-grid,
  .contact-grid,
  .license-card {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slides {
    min-height: 360px;
  }
}

/* 响应式：手机 */
@media (max-width: 620px) {
  .top-bar {
    font-size: 12px;
  }

  .brand img {
    width: 220px;
  }

  .header-inner {
    min-height: 74px;
  }

  .hero {
    padding-top: 30px;
  }

  .hero h1 {
    text-shadow: 3px 3px 0 var(--yellow);
  }

  .lead {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }

  .slides {
    min-height: 290px;
  }

  .quick-grid,
  .service-grid,
  .flow-grid,
  .contact-methods {
    grid-template-columns: 1fr;
  }

  .line-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .line-card img {
    margin: 0 auto;
  }

  .section {
    padding: 54px 0;
  }

  .circle-list span {
    width: calc(50% - 8px);
    height: 108px;
  }

  .poster-frame img,
  .poster-frame.wide img {
    height: auto;
  }

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

  .floating-cta {
    display: flex;
  }
}
