
:root{
  --max: 1280px;
  --pad: 24px;
  --pad-sp: 16px;

  --bg: #ffffff;
  --bg-soft: #f6fbff;

  --text: #0f172a;
  --muted: #64748b;
  --line: #e6eef6;

  --primary: #5cc3ea;
  --primary-deep: #2aa7d7;

  --radius: 18px;
  --shadow: 0 12px 34px rgba(2, 6, 23, .08);

  --h1: clamp(28px, 3.2vw, 44px);
  --h2: clamp(20px, 2.2vw, 28px);
  --body: 16px;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: var(--body);
}
img{max-width:100%; display:block;}
a{color: inherit;}

/* iOS: フォーム入力時のズーム抑制（16px未満だと拡大される） */
input, select, textarea{ font-size:16px; }

/* 横スクロールが出やすい要素の安全策 */
.tableWrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.tableWrap table{ min-width: 640px; }

/* モバイルでボタンが折り返しづらいケースの対策 */
@media (max-width: 480px){
  .btn{ width: 100%; }
}

/* モバイル下部のフローティングCTA（費用シミュレーション） */
.floating-estimate{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom: calc(18px + env(safe-area-inset-bottom));
  background:#0b2a3d;
  color:#fff;
  padding:14px 22px;
  border-radius:999px;
  font-weight:800;
  letter-spacing:.02em;
  box-shadow:0 10px 24px rgba(0,0,0,.22);
  z-index:99999;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease, transform .25s ease;
  text-decoration:none;
}
.floating-estimate.is-visible{ opacity:1; pointer-events:auto; }
.floating-estimate:active{ transform:translateX(-50%) scale(.98); }
.container{
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}
@media (max-width:640px){
  .container{ width: min(100% - (var(--pad-sp) * 2), var(--max)); }
}

.section{ padding: 72px 0; }
.section--soft{ background: var(--bg-soft); }
.section__head{ margin-bottom: 28px; }
.section__head h2{ font-size: var(--h2); letter-spacing:.01em; }
.section__head p{ color: var(--muted); margin-top: 8px; max-width: 880px; }

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.muted{ color: var(--muted); }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 18px;
  border-radius: 999px;
  border:1px solid transparent;
  text-decoration:none;
  font-weight: 700;
  cursor:pointer;
  white-space:nowrap;
}
/* ===== 費用シミュレーション ボタン（ネイビー×ブルー）===== */
.btn--primary{
  background: #0f172a;
  color:#ffffff;
  border:2px solid #38bdf8;
  transition: all 0.3s ease;
}
.btn--primary:hover{
  background:#1e293b;
  box-shadow:0 0 15px rgba(56,189,248,0.6);
  transform: translateY(-2px);
}
.btn--primary:active{
  transform: scale(0.98);
}
.btn--ghost{
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover{ border-color: #cfe3f3; }

.grid{ display:grid; gap: 18px; }
.grid--2{ grid-template-columns: repeat(2, 1fr); }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px){
  .grid--3{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .grid--2, .grid--3{ grid-template-columns: 1fr; }
}

.maxText{ max-width: 880px; }
.pageHero{
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.pageHero h1{ font-size: clamp(22px, 2.4vw, 34px); }
.pageHero p{ margin-top: 10px; color: var(--muted); max-width: 880px; }

/* Header */
.header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230,238,246,.9);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
  font-weight: 900;
}
.brand__icon{ width: 160px; height: auto; max-height: 34px; object-fit: contain; }
@media (max-width: 420px){
  .brand__icon{ width: 140px; }
}
.brand__mark{
  width:34px; height:34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #b4ecff);
  display:grid; place-items:center;
  color:#fff; font-weight:900;
}
.nav{ display:flex; align-items:center; gap: 16px; }
.nav a{ text-decoration:none; color: var(--text); font-weight:700; font-size: 14px; opacity:.9; }
.nav a:hover{ opacity:1; }
.nav .nav__cta{ margin-left: 6px; }

.hamburger{ display:none; width:44px; height:44px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.hamburger span{ display:block; height:2px; background:#334155; margin: 8px 10px; border-radius:99px; }
@media (max-width: 900px){
  .hamburger{ display:block; }
  .nav{
    position: fixed; top: 64px; right: 16px; left: 16px;
    background:#fff;
    border:1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    display:none;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow);
  }
  .nav.is-open{ display:flex; }
  .nav a{ width: 100%; padding: 10px 12px; border-radius: 12px; }
  .nav a:hover{ background:#f6fbff; }
}

/* Footer */
.footer{
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background:#fff;
}
.footer__inner{
  display:flex; gap: 18px; align-items:flex-start; justify-content:space-between;
}
.footer__links{ display:flex; gap: 14px; flex-wrap:wrap; }
.footer__links a{ color: var(--muted); text-decoration:none; font-weight:700; font-size:14px; }
.footer__links a:hover{ color: var(--text); }
@media (max-width:640px){
  .footer__inner{ flex-direction: column; }
}

/* TOP: Hero Slider */
.hero{
  padding: 22px 0 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}
.hero__wrap{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:#fff;
}
.slider{
  position: relative;
  height: min(560px, 68vh);
}
.slide{
  position: absolute; inset: 0;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  padding: 34px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.slide.is-active{ opacity: 1; pointer-events: auto; }
@media (max-width: 900px){
  .slide{ grid-template-columns: 1fr; padding: 22px; }
  .slider{ height: auto; }
}
.slide__copy h1{ font-size: var(--h1); line-height: 1.22; }
.slide__copy p{ margin-top: 12px; color: var(--muted); max-width: 38em; }
.slide__actions{ margin-top: 18px; display:flex; gap: 10px; flex-wrap:wrap; }
.tags{ margin-top: 14px; display:flex; gap: 8px; flex-wrap:wrap; }
.tag{
  font-size: 12px; font-weight:800;
  color: #0b5b78;
  background: #e8f7ff;
  border: 1px solid #d4f0ff;
  padding: 6px 10px;
  border-radius: 999px;
}
.slide__media{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.slide__media img{
  width:100%; height:100%;
  object-fit: cover;
  aspect-ratio: 16/10;
}

.slider__controls{
  position:absolute;
  left: 16px; right: 16px; bottom: 14px;
  display:flex; align-items:center; justify-content:space-between;
  gap: 12px;
}
.dots{ display:flex; gap: 8px; }
.dot{
  width:10px; height:10px; border-radius: 999px;
  border: 1px solid #b8dff2;
  background: #fff;
  cursor:pointer;
}
.dot.is-active{ background: var(--primary); border-color: var(--primary); }
.arrows{ display:flex; gap: 8px; }
.iconBtn{
  width:40px; height:40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:#fff;
  cursor:pointer;
}
.iconBtn:hover{ border-color:#cfe3f3; }

.solutions .card{ display:flex; flex-direction: column; gap: 10px; }
.solutions .card img{
  border-radius: 14px;
  border: 1px solid var(--line);
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Contact hero compact (half height) */
.contact-hero-half{
  padding:28px 0 14px !important;
}


/* FAQ hero banner: keep same layout as other pageHero but center the banner image */
.faq-hero{
  background-image:url('assets/img/common/faq.png') !important;
  background-position:center center !important;
  background-size:cover !important;
}


/* Column thumbnail (top image): responsive but not overly tall */
.thumbimg{
  width:100%;
  height:160px;
  object-fit:cover;
  object-position:center;
  border-radius:16px;
  display:block;
  margin-bottom:10px;
}
@media (max-width: 860px){
  .thumbimg{ height:140px; }
}

/* Column hero thumbnail */
.thumbimg--hero{
  height:clamp(180px, 22vw, 420px);
}
@media (max-width: 860px){
  .thumbimg--hero{ height:clamp(160px, 46vw, 280px); }
}


/* ===== Brand Logo (JP CREATE) ===== */
.brand__icon{
  width:34px; height:34px;
  border-radius:10px;
  display:block;
}
.brand__text{
  display:flex;
  flex-direction:row;
  align-items:baseline;
  gap:8px;
  line-height:1.05;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.brand__main{
  font-weight: 900;
  letter-spacing: .08em;
}
.brand__sub{
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: .04em;
}
/* legacy mark hidden when icon is used */
.brand__mark{ display:none !important; }


/* Accent button (bright blue) */
.btn--accent{background: var(--primary); color:#0b1220; border:1px solid rgba(255,255,255,.25);}
.btn--accent:hover{filter: brightness(.95);}



/* ===== Rental Hero ===== */
.rental-hero{
  position: relative;
  background: url("../assets/img/hero/rental-hero.jpg") center/cover no-repeat;
  padding: 110px 0 90px;
  overflow:hidden;
}
.rental-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(9,24,53,.78) 0%, rgba(9,24,53,.62) 48%, rgba(9,24,53,.30) 72%, rgba(9,24,53,.08) 100%);
}
.rental-hero__inner{
  position:relative;
  display:flex;
  align-items:center;
  gap:28px;
}
.rental-hero__text{flex: 1 1 58%; color:#fff;}
.rental-hero__text h1{
  font-size: 44px;
  line-height:1.25;
  letter-spacing:.02em;
  margin:0 0 18px;
}
.rental-hero__lead{
  max-width: 720px;
  font-size: 16px;
  line-height:1.9;
  margin:0 0 18px;
  color: rgba(255,255,255,.92);
}
.rental-price-box{
  background: rgba(255,255,255,.92);
  color: var(--text);
  border:1px solid rgba(255,255,255,.35);
  border-radius: 14px;
  padding: 18px 22px;
  max-width: 520px;
}
.rental-price-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding: 6px 0;
}
.rental-price-row span{color:#334155;}
.rental-price-total{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding-top: 10px;
  margin-top: 10px;
  border-top:1px solid var(--line);
}
.rental-price-total strong{font-size: 26px; color: var(--primary-deep);}
.rental-price-note{
  margin: 10px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height:1.6;
}
.rental-estimate{
  flex: 0 0 360px;
  padding: 22px 22px;
  border-radius: 16px;
}
.rental-estimate__title{
  font-size: 20px;
  margin: 0 0 14px;
}
.rental-estimate .form-row{margin-top: 12px;}
.rental-estimate label{display:block; margin-bottom:8px;}
.rental-period{
  display:flex;
  align-items:center;
  gap:10px;
}
.rental-period input[type="date"],
.rental-estimate input[type="number"]{
  width: 100%;
  padding: 12px 12px;
  border:1px solid var(--line);
  border-radius: 12px;
}
.rental-period input[type="date"]{max-width: 170px;}
.rental-period__sep{color:#334155; font-weight:700;}
.rental-days-note{margin: 8px 0 0; font-size: 12px;}
.rental-days{
  display:flex;
  align-items:center;
  gap:10px;
}
.rental-days input{
  width: 140px;
  padding: 12px 12px;
  border:1px solid var(--line);
  border-radius: 12px;
}

#rentalQty{
  width: 140px;
  padding: 12px 12px;
  border:1px solid var(--line);
  border-radius: 12px;
  background:#fff;
}
.rental-days__unit{color:#334155; font-weight:700;}
.rental-estimate .radio-group{
  display:flex;
  gap:18px;
  margin-top: 8px;
}
.rental-estimate__calc{width:100%; margin-top: 14px;}
.rental-estimate__consult{width:100%; margin-top: 10px;}
.rental-estimate__small{
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 900px){
  .rental-hero{padding: 78px 0 64px;}
  .rental-hero__inner{flex-direction:column; align-items:stretch;}
  .rental-estimate{flex: 1 1 auto; max-width: 520px; margin-left: 0;}
  .rental-hero__text h1{font-size: 34px;}
  .rental-price-box{max-width: 100%;}
}


/* ===== Link Hover Unified ===== */
a {
  transition: color .25s ease, opacity .25s ease;
}
/* text links */
a:hover {
  color: #1f4fa3;
}

/* Only images that are inside links */
a img {
  transition: transform .35s ease, filter .35s ease, opacity .35s ease;
}
a:hover img {
  filter: brightness(85%);
  transform: scale(1.02);
}

/* linked cards feel */
a:hover .card, .card a:hover {
  text-decoration: none;
}


/* ===== Brand One-line ===== */
.brand__text {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}
.brand__sub {
  font-size: 0.78em;
  opacity: 0.85;
}


/* ===== Mobile Columns Fix (Rebuild) ===== */
@media (max-width: 768px) {
  #columns-home { grid-template-columns: 1fr !important; }
  #columns-home .column-card { min-width: 0; }
  #columns-home img { width: 100%; height: auto; aspect-ratio: 1200/630; object-fit: cover; }
  #columns-home h3, #columns-home p { word-break: break-word; }
}


/* =====================================
   Full-bleed Hero Upgrade (画像を背景全面にしてテキストを重ねる)
   - HTMLはそのまま、CSSだけで「右側だけ画像」→「全面ヒーロー」へ
   ===================================== */

/* ヒーローだけコンテナ制約を外して全幅に */
.hero .container{
  max-width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}

/* 余計なラップ余白があれば無効化 */
.hero__wrap{
  padding: 0;
}

/* スライダーの高さ（PC） */
.hero .slider{
  position: relative;
  height: min(560px, 68vh);
}

/* 1枚のスライドを「背景画像＋オーバーレイ」に */
.hero .slide{
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 18px;
}

/* 背景画像を全面に */
.hero .slide__media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero .slide__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 文字が読めるように暗めグラデーション */
.hero .slide::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.45) 42%,
    rgba(0,0,0,0.15) 68%,
    rgba(0,0,0,0.00) 100%);
}

/* テキストを前面に */
.hero .slide__copy{
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 44px 44px 40px;
  color: #fff;
}

/* 見出し・本文の可読性 */
.hero .slide__copy h2{
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
}
.hero .slide__copy p{
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}

/* タグを暗背景でも見えるように */
.hero .tag{
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
}

/* ボタンが背景に負けないように */
.hero .btn--ghost{
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}

/* スマホ最適化（スクロール不能・高さ0対策込み） */
@media (max-width: 900px){
  .hero .slider{
    height: auto;
    min-height: 0;
  }
  .hero .slide{
    position: relative;
    inset: auto;
    border-radius: 16px;
  }
  /* アクティブ以外は非表示（被さり防止） */
  .hero .slide:not(.is-active){
    display: none;
  }
  .hero .slide__copy{
    max-width: 100%;
    padding: 22px 20px 20px;
  }
  /* 縦方向のグラデーションで文字を守る */
  .hero .slide::before{
    background: linear-gradient(180deg,
      rgba(0,0,0,0.70) 0%,
      rgba(0,0,0,0.45) 45%,
      rgba(0,0,0,0.15) 75%,
      rgba(0,0,0,0.00) 100%);
  }
  .hero .slide__media{
    aspect-ratio: 16/10;
  }
}

