/* ========================================
   Reset & design tokens
   ======================================== */
:root {
  --green: #2f5d3a;
  --green-dark: #173d25;
  --leaf: #8faf7a;
  --cream: #f7f3ea;
  --cream-2: #fbfaf5;
  --brown: #8a6a45;
  --ink: #2b2b2b;
  --muted: #646a61;
  --line: #ded8cb;
  --white: #ffffff;
  --shadow: 0 14px 34px rgba(37, 60, 42, .13);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-2);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  line-height: 1.8;
}

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

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


/* ========================================
   Layout container
   ======================================== */
.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}


/* ========================================
   Header
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(47, 93, 58, .12);
  backdrop-filter: blur(14px);
  transition: transform .35s ease, opacity .35s ease;
  will-change: transform;
}

.site-header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.logo img {
  width: 172px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #243226;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.phone-mini {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--green-dark);
  font-weight: 800;
  line-height: 1.25;
}

.phone-mini--static {
  cursor: default;
  user-select: text;
}

.phone-mini span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}


/* ========================================
   Hamburger + mobile menu
   ======================================== */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  margin: 4px auto;
  transition: transform .3s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(47, 93, 58, .12);
  background: #fff;
  padding: 16px 0 22px;
}

.mobile-menu[data-open="true"] {
  display: block;
  animation: mobile-menu-in .28s ease;
}

@keyframes mobile-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.mobile-menu nav a {
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 700;
  color: #243226;
  border-bottom: 1px solid rgba(47, 93, 58, .1);
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: var(--max);
  margin: 18px auto 0;
  padding: 0 22px;
}

.mobile-menu-actions .phone-mini,
.mobile-menu-actions .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}


/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(23, 61, 37, .18);
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--green);
  border-color: rgba(47, 93, 58, .22);
}


/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 30, 17, .76) 0%, rgba(10, 30, 17, .48) 43%, rgba(10, 30, 17, .10) 100%),
    url("images/hero-japanese-garden.jpg") center / cover no-repeat;
}

.hero .container {
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-content {
  width: min(730px, 100%);
  min-width: 0;
  padding: 46px 0 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: #e4f0db;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--leaf);
}

h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .28);
}

.hero-copy {
  margin: 24px 0 30px;
  max-width: 570px;
  color: rgba(255, 255, 255, .94);
  font-size: 18px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hero-service-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid rgba(198, 224, 134, .42);
  background: rgba(34, 64, 43, .42);
  color: #e8f4b8;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
  overflow-wrap: anywhere;
}

.hero-service-line::before,
.hero-service-line::after {
  content: "";
  width: 16px;
  height: 1px;
  background: rgba(198, 224, 134, .9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}


/* ========================================
   Sections base
   ======================================== */
.section {
  padding: 76px 0;
}

.section-soft {
  background: var(--cream);
}

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

.section-head h2 {
  margin: 0;
  color: var(--green-dark);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 34px;
  line-height: 1.35;
  letter-spacing: 0;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.section-head::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin: 15px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--leaf), var(--green));
}


/* ========================================
   選ばれる理由
   ======================================== */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.reason-card,
.service-card,
.case-card,
.budget-card,
.flow-card,
.contact-panel,
.company-box {
  border: 1px solid rgba(47, 93, 58, .14);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.service-card,
.case-card {
  cursor: pointer;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.service-card:hover,
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 38px rgba(47, 93, 58, .18);
  border-color: rgba(47, 93, 58, .32);
}

.service-card:active,
.case-card:active,
.service-card.is-pressed,
.case-card.is-pressed {
  transform: translateY(-2px) scale(.98);
  box-shadow: 0 8px 18px rgba(47, 93, 58, .18);
  transition: transform .12s ease, box-shadow .12s ease;
}

@keyframes card-flash {
  0% { box-shadow: 0 22px 38px rgba(47, 93, 58, .18), 0 0 0 0 rgba(47, 93, 58, .35); }
  100% { box-shadow: 0 22px 38px rgba(47, 93, 58, .18), 0 0 0 14px rgba(47, 93, 58, 0); }
}

.service-card.is-flashed,
.case-card.is-flashed {
  animation: card-flash .55s ease-out;
}

.service-card img,
.case-card img {
  transition: transform .5s ease;
}

.service-card:hover img,
.case-card:hover img {
  transform: scale(1.06);
}

.service-card h3,
.case-card h3 {
  transition: color .3s ease;
}

.service-card:hover h3,
.case-card:hover h3 {
  color: var(--green-dark, #1e4028);
}

.reason-card {
  padding: 25px 18px 23px;
  text-align: center;
}

.reason-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin: 0 auto 15px;
}

.reason-card h3 {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 16px;
  line-height: 1.55;
}

.reason-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.75;
}


/* ========================================
   業務内容
   ======================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  overflow: hidden;
}

.service-card img,
.case-card img,
.budget-card img {
  width: 100%;
  height: 142px;
  object-fit: cover;
}

.service-body,
.case-body,
.budget-body {
  padding: 18px 18px 20px;
}

.service-card h3,
.case-card h3 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 20px;
  line-height: 1.35;
  text-align: center;
}

.service-card p,
.case-card p,
.budget-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin: 14px 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}


/* ========================================
   施工事例
   ======================================== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.case-card {
  overflow: hidden;
}

.case-card img {
  height: 124px;
}

.case-body {
  text-align: center;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.case-archive {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed rgba(47, 93, 58, .22);
}

.case-archive-label {
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--muted);
}

.case-archive a {
  color: var(--green);
  font-weight: 600;
  font-size: 15px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 93, 58, .28);
  transition: background .2s ease, color .2s ease;
}

.case-archive a:hover {
  background: var(--green);
  color: #fff;
}


/* ========================================
   料金目安
   ======================================== */
.budget-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.budget-card {
  overflow: hidden;
}

.budget-body {
  min-height: 176px;
}

.price {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.price span {
  font-size: 17px;
  margin-left: 2px;
}

.note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}


/* ========================================
   施工の流れ
   ======================================== */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 34px;
  position: relative;
}

.flow-card {
  position: relative;
  padding: 24px 18px;
  text-align: center;
}

.flow-card:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: -24px;
  transform: translateY(-50%);
  color: var(--green);
  font-size: 30px;
  font-weight: 300;
}

.flow-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 13px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.flow-card h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 17px;
  line-height: 1.4;
}

.flow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.75;
}


/* ========================================
   会社案内 + Google Map
   ======================================== */
.company-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: stretch;
}

.company-box {
  padding: 34px;
}

.company-box h2 {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 32px;
  line-height: 1.35;
}

.company-box p {
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 600;
}

.info-table {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-top: 1px solid var(--line);
}

.info-table dt,
.info-table dd {
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.info-table dt {
  color: var(--green-dark);
  font-weight: 900;
}

.info-table dd {
  color: var(--muted);
  font-weight: 700;
}

.company-photo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.company-photo .map-frame {
  flex: 1;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-open {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(47, 93, 58, .22);
  transition: background .2s ease, transform .2s ease;
}

.map-open:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.map-open span {
  font-size: 11px;
}

.company-photo img,
.company-photo iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border: 0;
  display: block;
}


/* ========================================
   お問い合わせフォーム
   ======================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: stretch;
}

.contact-panel {
  padding: 30px;
}

.form-grid {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.form-grid .btn {
  width: min(380px, 100%);
  margin-left: 142px;
}

.phone-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.phone-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 800;
}

.phone-number {
  margin: 0;
  color: var(--green-dark);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.25;
}

.phone-detail {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}


/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: linear-gradient(135deg, var(--green-dark), #0f2d1b);
  color: #fff;
  padding: 34px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr .9fr;
  gap: 32px;
  align-items: start;
}

.footer-brand h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: .08em;
}

.footer-brand h2 a {
  color: inherit;
  transition: opacity .2s ease;
}

.footer-brand h2 a:hover {
  opacity: .78;
}

.footer-brand p,
.footer-contact p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
  font-weight: 700;
}

.footer-contact {
  text-align: right;
}

.footer-contact strong {
  display: block;
  font-size: 25px;
  line-height: 1.2;
}

.footer-bottom {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.footer-legal a {
  color: rgba(255, 255, 255, .82);
}

.footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ========================================
   Sample toast (テストページ通知)
   ======================================== */
#sample-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 20px);
  background: rgba(30, 30, 30, .92);
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 200;
  max-width: calc(100% - 32px);
  text-align: center;
}

#sample-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}


/* ========================================
   ページトップボタン
   ======================================== */
.page-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .25);
  z-index: 12;
}


/* ========================================
   Responsive: tablet
   ======================================== */
@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .reason-grid,
  .budget-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .flow-card:not(:last-child)::after {
    display: none;
  }
}


/* ========================================
   Responsive: mobile
   ======================================== */
@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 28px, var(--max));
  }

  .header-inner {
    height: auto;
    padding: 12px 0;
    align-items: center;
    gap: 10px;
  }

  .logo img {
    width: 142px;
  }

  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero .container {
    min-height: 560px;
  }

  h1 {
    font-size: 36px;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    font-size: 16px;
    max-width: 19em;
    line-height: 1.8;
  }

  .hero-service-line {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .section-head h2 {
    font-size: 29px;
  }

  .reason-grid,
  .service-grid,
  .case-grid,
  .budget-grid,
  .flow-grid,
  .company-layout,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .company-photo img,
  .company-photo iframe {
    min-height: 260px;
  }

  label {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .form-grid .btn {
    margin-left: 0;
    width: 100%;
  }

  .footer-contact {
    text-align: left;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


/* ========================================
   Sample notice banner
   ======================================== */
.sample-notice {
  background: #fff4d6;
  border-bottom: 1px solid #d8a63a;
  color: #5c3d1b;
  padding: 10px 0;
  font-size: 13px;
  line-height: 1.7;
}
.sample-notice .container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sample-notice .badge {
  flex: none;
  background: #b6721a;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 3px;
  margin-top: 2px;
}
.sample-notice p {
  margin: 0;
}
@media (max-width: 640px) {
  .sample-notice {
    font-size: 12px;
  }
  .sample-notice .container {
    flex-direction: column;
    gap: 6px;
  }
}
