﻿/* =========================================================
         ROOT
      ========================================================= */

:root {
  --navy: #073477;
  --navy-dark: #062b65;
  --blue: #0b438b;
  --light-blue: #f2f6fc;
  --border: #95a4b8;
  --gray: #f7f7f7;
  --navy-mid: #176188;
  --navy-light: #abc0df;

  --side-pad: 3.8vw;
  --header-height: clamp(64px, 5.6vw, 78px);
}

/* =========================================================
         RESET
      ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-width: 320px;

  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;

  color: #111;
  background: #fff;

  font-size: clamp(12px, 1.17vw, 16px);
  line-height: 1.75;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

/* =========================================================
         HEADER
      ========================================================= */

.header {
  width: 100%;
  min-height: var(--header-height);

  position: relative;
  z-index: 100;

  display: flex;
  align-items: center;

  background: #fff;

  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.025);
}

.header-inner {
  width: 100%;
  min-height: var(--header-height);

  padding-inline: clamp(16px, 2.2vw, 32px);

  display: flex;
  align-items: stretch;
  justify-content: space-between;

  /*gap: clamp(18px, 2.2vw, 32px);*/
}

/* =========================================================
         HEADER LEFT
      ========================================================= */

.header-left {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: clamp(24px, 3vw, 44px);
}

/* =========================================================
         HEADER LOGO
      ========================================================= */

.logo {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: clamp(8px, 0.9vw, 13px);

  flex: 0 0 auto;

  white-space: nowrap;
}

.logo-en {
  width: clamp(125px, 13.5vw, 185px);

  display: flex;
  align-items: center;

  flex: 0 0 auto;
}

.logo-en img {
  display: block;

  width: 100%;
  height: auto;

  object-fit: contain;
}

.logo-jp {
  display: inline-block;

  font-size: clamp(12px, 1.15vw, 16px);
  line-height: 1;

  font-weight: 700;

  color: #111;

  white-space: nowrap;
}

/* =========================================================
         HEADER NAV
      ========================================================= */

.header-nav {
  height: var(--header-height);

  display: flex;
  align-items: center;

  gap: clamp(20px, 2.2vw, 32px);
}

.header-nav a {
  height: 100%;

  position: relative;

  display: flex;
  align-items: center;

  padding-inline: 2px;

  font-size: clamp(11px, 1vw, 14px);
  font-weight: 600;

  white-space: nowrap;

  transition: color 0.2s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--navy);
}

.header-nav a.active::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;

  bottom: clamp(10px, 1vw, 14px);

  height: 2px;

  background: var(--navy);
}

/* =========================================================
         HEADER RIGHT
      ========================================================= */

.header-right {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: clamp(7px, 0.8vw, 12px);

  flex: 0 0 auto;
}

.phone {
  display: flex;
  align-items: center;
  gap: 5px;
}

.phone-icon {
  width: clamp(19px, 1.8vw, 26px);
  height: clamp(19px, 1.8vw, 26px);

  position: relative;

  flex: 0 0 auto;
}

.phone-icon .icon {
  fill: var(--navy);
}

.phone-number {
  font-size: clamp(14px, 1.9vw, 27px);
  line-height: 1;

  font-weight: 700;

  color: var(--navy);

  white-space: nowrap;
}

.header-time {
  margin-left: clamp(4px, 0.5vw, 8px);

  font-size: clamp(10px, 0.72vw, 14px);
  line-height: 1.55;

  color: #333;

  white-space: nowrap;
}


/* =========================================================
         FOOTER MAIN
      ========================================================= */

.footer-main {
  width: 100%;

  padding: clamp(20px, 2vw, 30px) 0;

  background: var(--navy);

  color: #fff;
}

.footer-inner {
  width: 100%;

  padding-inline: clamp(18px, 2.7vw, 40px);
}

.footer-grid {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(0, 0.9fr)
    minmax(0, 0.95fr)
    minmax(0, 1.2fr);

  align-items: stretch;
}

.footer-item {
  min-width: 0;

  padding: 0 clamp(15px, 1.5vw, 24px);

  border-right: 1px solid rgba(255, 255, 255, 0.32);
}

.footer-item:first-child {
  padding-left: 0;
}

.footer-item:last-child {
  padding-right: 0;

  border-right: none;
}

.footer-heading {
  display: flex;
  align-items: center;

  gap: clamp(7px, 0.65vw, 10px);

  margin-bottom: clamp(8px, 0.9vw, 13px);

  font-size: clamp(12px, 1.15vw, 16px);
  line-height: 1.35;

  font-weight: 800;

  white-space: nowrap;
}

.footer-icon-space {
  width: clamp(19px, 1.8vw, 26px);
  height: clamp(19px, 1.8vw, 26px);

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;
}

.footer-icon-space img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.footer-text {
  margin-left: clamp(26px, 2.45vw, 36px);

  font-size: clamp(10px, 0.88vw, 12px);
  line-height: 1.7;
}

.footer-text strong {
  font-size: clamp(10px, 0.98vw, 13px);
}

.footer-hours {
  margin-left: clamp(26px, 2.45vw, 36px);

  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.4;

  font-weight: 700;
}

.footer-catalog-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 12px;
}

.footer-btn {
  min-width: max-content;

  padding: clamp(5px, 0.45vw, 7px) clamp(9px, 0.8vw, 13px);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #fff;
  border-radius: 3px;

  font-size: clamp(10px, 0.82vw, 11px);
  line-height: 1.4;

  font-weight: 700;

  white-space: nowrap;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.footer-btn:hover {
  color: var(--navy);
  background: #fff;
}

/* =========================================================
         FOOTER BOTTOM
      ========================================================= */

.footer-bottom {
  width: 100%;

  background: #fff;
}

.footer-bottom-inner {
  width: 100%;

  min-height: clamp(62px, 5.3vw, 76px);

  padding: clamp(10px, 1vw, 14px) clamp(16px, 1.8vw, 28px);

  display: flex;
  align-items: center;

  gap: clamp(26px, 3vw, 44px);
}

.footer-logo {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: clamp(8px, 0.8vw, 12px);

  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.footer-logo-en {
  width: clamp(125px, 13vw, 180px);

  display: flex;
  align-items: center;

  flex: 0 0 auto;
}

.footer-logo-en img {
  width: 100%;
  height: auto;

  object-fit: contain;
}

.footer-logo-jp {
  font-size: clamp(11px, 1.05vw, 15px);
  line-height: 1;

  font-weight: 700;

  color: #111;

  white-space: nowrap;
}

.footer-nav {
  display: flex;
  align-items: center;

  gap: clamp(8px, 0.9vw, 13px);

  font-size: clamp(10px, 0.9vw, 13px);

  white-space: nowrap;
}

.footer-nav a {
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--navy);
}

/* =========================================================
         LARGE TABLET
         1100px
      ========================================================= */

@media (max-width: 1100px) {
  /*.header-inner {
    gap: 16px;
  }*/

  .header-left {
    gap: 24px;
  }

  .logo-en {
    width: clamp(120px, 14vw, 155px);
  }

  .logo-jp {
    font-size: 13px;
  }

  .header-nav {
    gap: 20px;
  }

  .phone-number {
    font-size: clamp(14px, 2.1vw, 23px);
  }

  .hero-product {
    width: 76%;
  }

  /* Footer 4列 → 2列 */

  .footer-grid {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);
  }

  .footer-item {
    padding: 18px 24px;

    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .footer-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.25);
  }

  .footer-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .footer-item:first-child {
    padding-left: 24px;
  }

  .footer-item:last-child {
    padding-right: 24px;
  }

  .footer-text,
  .footer-hours {
    margin-left: 0;
  }
}

/* =========================================================
         TABLET
         860px
      ========================================================= */

@media (max-width: 860px) {
  .header-inner {
    padding-inline: 18px;
  }

  .logo-en {
    width: 130px;
  }

  .logo-jp {
    font-size: 12px;
  }

  .header-left {
    gap: 18px;
  }

  .header-nav {
    gap: 15px;
  }

  .header-nav a {
    font-size: 11px;
  }

  .phone-number {
    font-size: 14px;
  }

  .hero-product {
    width: 82%;
  }

  .scene-title {
    white-space: normal;
  }

  /* 施工写真 3列 → 2列 */

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

  /*
          2列では施工前・施工中・施工後の矢印配置が
          不自然になるため非表示
        */

  .work-card.process-arrow::after {
    display: none;
  }
}

/* =========================================================
         MOBILE
         680px
      ========================================================= */

@media (max-width: 680px) {
  :root {
    --side-pad: 20px;
  }

  /* =====================================================
           MOBILE HEADER
           1段目：Logo + Phone
           2段目：Navigation
        ===================================================== */

  .header {
    min-height: auto;
  }

  .header-inner {
    min-height: auto;

    padding: 0 16px;

    display: grid;

    grid-template-columns:
      minmax(0, 1fr)
      auto;

    grid-template-rows:
      auto
      auto;

    column-gap: 12px;
  }

  .header-left {
    min-width: 0;

    display: contents;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;

    min-width: 0;

    padding: 12px 0 9px;

    gap: 7px;
  }

  .logo-en {
    width: clamp(105px, 30vw, 130px);
  }

  .logo-jp {
    font-size: clamp(10px, 2.9vw, 12px);
  }

  .header-right {
    grid-column: 2;
    grid-row: 1;

    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0 9px;

    gap: 5px;
  }

  .phone-icon {
    width: 14px;
    height: 14px;
  }

  .phone-number {
    font-size: 14px;
  }

  .header-time {
    margin-left: 0;
  }  

  .header-nav {
    grid-column: 1 / -1;
    grid-row: 2;

    width: 100%;
    height: 39px;

    display: flex;
    align-items: stretch;

    gap: 0;

    border-top: 1px solid #edf0f4;
  }

  .header-nav a {
    height: 39px;

    flex: 0 0 auto;

    padding: 0 18px;

    display: flex;
    align-items: center;

    font-size: 12px;
  }


  .header-nav a.active::after {
    bottom: 0;

    height: 2px;
  }

  /* =====================================================
           FOOTER
        ===================================================== */

  .footer-main {
    padding: 10px 0;
  }

  .footer-inner {
    padding-inline: 20px;
  }

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

  .footer-item,
  .footer-item:first-child,
  .footer-item:nth-last-child(-n + 2),
  .footer-item:last-child {
    min-height: auto;

    padding: 20px 0;

    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  }

  .footer-item:nth-child(odd) {
    border-right: none;
  }

  .footer-item:last-child {
    border-bottom: none;
  }

  .footer-heading {
    margin-bottom: 10px;

    font-size: 14px;
  }

  .footer-icon-space {
    width: 23px;
    height: 23px;
  }

  .footer-text {
    margin-left: 31px;

    font-size: 11px;
    line-height: 1.8;
  }

  .footer-hours {
    margin-left: 31px;

    font-size: 18px;
  }

  .footer-catalog-content {
    align-items: center;
  }

  .footer-btn {
    font-size: 10px;

    padding: 7px 12px;
  }

  /* =====================================================
           FOOTER BOTTOM
        ===================================================== */

  .footer-bottom-inner {
    min-height: auto;

    padding: 15px 16px;

    flex-wrap: wrap;

    gap: 12px 24px;
  }

  .footer-logo {
    gap: 7px;
  }

  .footer-logo-en {
    width: clamp(105px, 30vw, 130px);
  }

  .footer-logo-jp {
    font-size: clamp(10px, 2.9vw, 12px);
  }

  .footer-nav {
    flex-basis: 100%;

    padding-top: 2px;

    font-size: 11px;
  }
}

/* =========================================================
         SMALL MOBILE
         440px
      ========================================================= */

@media (max-width: 440px) {
  .header-inner {
    padding-inline: 13px;

    column-gap: 7px;
  }

  .logo {
    gap: 5px;
  }

  .logo-en {
    width: clamp(92px, 27vw, 112px);
  }

  .logo-jp {
    font-size: 10px;
  }

  .header-right {
    gap: 3px;
  }

  .phone-number {
    font-size: 12px;
  }

  .header-nav {
    height: 37px;
  }

  .header-nav a {
    height: 37px;

    padding-inline: 14px;

    font-size: 11px;
  }


  .hero-product {
    width: min(88%, 330px);
  }

  .feature {
    grid-template-columns:
      58px
      minmax(0, 1fr);
  }

  .feature-icon {
    width: 58px;
  }

  .scene-item {
    grid-template-columns:
      minmax(0, 1fr)
      92px;
  }

  .scene-title {
    font-size: 13px;
  }

  .scene-text p {
    font-size: 11px;
  }

  .spec-warning {
    align-items: flex-start;

    font-size: 12px;
  }

  .footer-catalog-content {
    align-items: flex-start;

    flex-direction: column;
  }

  .footer-text,
  .footer-hours {
    margin-left: 30px;
  }

  .footer-btn {
    margin-left: 30px;
  }

  .footer-bottom-inner {
    padding: 14px 13px;
  }

  .footer-logo {
    gap: 5px;
  }

  .footer-logo-en {
    width: clamp(92px, 27vw, 112px);
  }

  .footer-logo-jp {
    font-size: 10px;
  }

  .footer-nav {
    gap: 9px;

    font-size: 10px;
  }
}

/* =========================================================
         VERY SMALL MOBILE
         360px
      ========================================================= */

@media (max-width: 360px) {
  .logo-en {
    width: 88px;
  }

  .logo-jp {
    font-size: 10px;
  }

  .phone-number {
    font-size: 12px;
  }

  .scene-item {
    grid-template-columns:
      minmax(0, 1fr)
      80px;
  }

  .footer-logo-en {
    width: 88px;
  }

  .footer-logo-jp {
    font-size: 10px;
  }
}
/* =========================================================
         PRODUCT (aligned with hydraulic-demolition)
      ========================================================= */

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ===================== Breadcrumb ===================== */
.breadcrumb {
  padding: 14px 20px 0;
  font-size: 12px;
  color: #556;
  max-width: 1230px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: none;
}

.breadcrumb .wrap {
  padding: 0;
  max-width: 1200px;
}

.breadcrumb a {
  color: #556;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .sep {
  margin: 0 6px;
  color: #99a;
}

/* ===================== Product Section ===================== */
.product-section {
  padding: 30px 0 40px;
}

.hero {
  position: relative;
  height: 380px;
  box-sizing: border-box;
  background: linear-gradient(
    to left,
    #f9f6f7 0%,
    #f9f6f7 42%,
    rgba(249, 246, 247, 0.55) 72%,
    rgba(249, 246, 247, 0.15) 100%
  );
  padding: 28px 20px 34px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1 1 50%;
  min-width: 0;
  text-align: left;
  position: relative;
  z-index: 1;
}

.hero-watermark {
  position: absolute;
  top: 12px;
  left: 20px;
  margin: 0;
  font-size: clamp(48px, 9vw, 110px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: rgba(7, 52, 119, 0.06);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.product-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 0;
  font-size: clamp(25px, 5vw, 65px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: clamp(1px, 0.25vw, 4px);
  color: var(--navy);
}

.product-sub {
  position: relative;
  z-index: 1;
  margin-top: clamp(8px, 0.85vw, 12px);
  margin-bottom: 0;
  font-size: clamp(17px, 2.4vw, 28px);
  line-height: 1.35;
  font-weight: 800;
  color: var(--navy);
}

.icon-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: clamp(14px, 1.5vw, 22px);
}

.icon-row img {
  width: clamp(64px, 7vw, 88px);
  height: clamp(64px, 7vw, 88px);
  object-fit: contain;
}

.hero-image {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  display: block;
}

#simple-bucket-visual .hero-image img {
  max-height: 280px;
  max-width: 48%;
}

#ankyo-bucket-visual .hero-image img {
  max-height: 260px;
  max-width: 32%;
}

#extension-arm-visual .product-title {
  font-size: clamp(22px, 4vw, 48px);
}

/* ===================== Table ===================== */
.table-wrap {
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.spec-table,
.bucket-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: center;
  font-size: clamp(10px, 1.03vw, 14px);
}

.spec-table th,
.spec-table td,
.bucket-table th,
.bucket-table td {
  border: 1px solid var(--navy);
  height: clamp(22px, 2.65vw, 36px);
  padding: clamp(3px, 0.36vw, 5px) clamp(5px, 0.58vw, 8px);
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.spec-table thead tr.head-row th,
.bucket-table thead tr.head-row th,
.bucket-table .main-header th {
  background: var(--navy-light);
  color: #222;
  font-weight: 700;
}

.spec-table thead tr.head-row th:first-child,
.bucket-table thead tr.head-row th:first-child,
.bucket-table .title-cell {
  background: var(--navy);
  color: #fff;
}

.spec-table thead tr.unit-row td,
.spec-table thead tr.unit-row th,
.bucket-table thead tr.unit-row th,
.bucket-table .sub-header th {
  background: var(--gray);
  color: #444;
  font-weight: 400;
}

.spec-table tbody th.row-head,
.bucket-table tbody th.row-head,
.bucket-table .model-cell {
  background: var(--navy-mid);
  color: #fff;
  font-weight: 700;
}

.spec-table tbody td,
.bucket-table tbody td {
  background: #fff;
  color: #222;
}

.warning {
  margin: 10px 0 0;
  text-align: right;
  font-size: clamp(11px, 1vw, 13px);
  color: #444;
  white-space: normal;
}

.warning-mark {
  color: #d80e18;
}

.bucket-table .title-cell {
  white-space: nowrap;
  line-height: 1.3;
}

/* SP用の改行はPCでは無効 */
.bucket-table .title-cell br {
  display: none;
}

/* ===================== MOBILE ===================== */
@media (max-width: 680px) {
  .hero {
    height: 350px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
  }

  .product-title {
    font-size: clamp(28px, 8vw, 42px);
  }

  .product-sub {
    font-size: clamp(15px, 4vw, 22px);
  }

  .hero-watermark {
    top: 8px;
    left: 14px;
    font-size: clamp(40px, 14vw, 72px);
  }

  .hero-image {
    width: 100%;
    min-height: 0;
  }

  .hero-image img {
    max-width: 100%;
    max-height: 180px;
  }

  #simple-bucket-visual .hero-image img,
  #ankyo-bucket-visual .hero-image img {
    max-width: 46%;
    max-height: 140px;
  }

  .icon-row img {
    width: 56px;
    height: 56px;
  }

  .table-wrap {
    padding: 0 12px;
  }

  .spec-table,
  .bucket-table {
    min-width: 0;
    width: 100%;
  }

  .bucket-table .title-cell {
    width: 4.8em;
    max-width: 5.2em;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.25;
    font-size: 11px;
    height: auto;
    padding: 6px 4px;
  }

  .bucket-table .title-cell br {
    display: inline;
  }

  .bucket-table .model-cell {
    white-space: normal;
    word-break: break-all;
    font-size: 11px;
    height: auto;
  }

  /* 2列表（シングルリッパー）: 左列を他表と同じくらいに */
  .bucket-table.table-2col {
    min-width: 0;
    table-layout: fixed;
  }

  .bucket-table.table-2col .title-cell,
  .bucket-table.table-2col th:first-child {
    width: 4.8em;
    max-width: 5.2em;
  }

  .bucket-table.table-2col td {
    width: auto;
  }
}

@media (max-width: 440px) {
  .breadcrumb {
    padding: 10px 13px 0;
    font-size: 11px;
  }

  .hero {
    height: 350px;
    padding: 20px 14px 24px;
  }

  .hero-watermark {
    top: 6px;
    left: 14px;
  }

  #extension-arm-visual .product-title {
    font-size: clamp(20px, 6.5vw, 28px);
  }
}
