@charset "UTF-8";

/* =========================================
   猪野組 工事情報ページ（近隣住民向け）
   配色はロゴ画像 assets/inogumi_logo.png から抽出
   赤:      #EB072A （ビル群アイコン）
   濃グレー: #4F4F4F （INOGUMI 文字）
   薄グレー: #CACACA （スウッシュ曲線）
   ＋工事現場の安全色（セーフティイエロー×黒）
   ========================================= */

:root {
  --red: #EB072A;
  --dark: #4F4F4F;
  --gray: #CACACA;
  --safety-yellow: #F5C400;
  --stripe-dark: #2B2B2B;
  --bg-soft: #F7F6F2;
  --text: #4A4A4A;
  --white: #FFFFFF;
  --done: #2E7D32;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 語句単位の改行制御（文字の途中で折り返さない） */
.nb {
  display: inline-block;
}

/* ---------- 確認用ドラフトリボン ----------
   TODO: 正式公開時にこのブロックを削除する */
.draft-ribbon {
  background: #FFF3CD;
  color: #7A5C00;
  border-bottom: 1px solid #E6D9A8;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 16px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  text-decoration: none;
}

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

.brand-label {
  color: var(--white);
  background: var(--dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 5px 10px;
  border-radius: 3px;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.global-nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.global-nav a:hover {
  color: var(--red);
}

.global-nav .nav-contact {
  background: var(--red);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 4px;
}

.global-nav .nav-contact:hover {
  background: #C90624;
  color: var(--white);
}

/* ---------- ヒーロー（工事看板風） ---------- */
.hero {
  background: var(--bg-soft);
  padding: 56px 0 64px;
}

.signboard {
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

/* 工事バリケードの黄×黒ストライプ（縞は::beforeに持たせ、transformで軽く流す） */
.stripe {
  height: 14px;
  position: relative;
  overflow: hidden;
  background: var(--stripe-dark);
}

.stripe::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45.25px;
  right: 0;
  background: repeating-linear-gradient(
    -45deg,
    var(--safety-yellow) 0 16px,
    var(--stripe-dark) 16px 32px
  );
}

.signboard-body {
  padding: 40px 32px;
  text-align: center;
}

.signboard-eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.signboard-title {
  color: var(--dark);
  font-size: 44px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.signboard-text {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: left;
}

.sign-table {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-collapse: collapse;
  text-align: left;
}

.sign-table th,
.sign-table td {
  border: 1px solid var(--dark);
  padding: 12px 16px;
  font-size: 15px;
  vertical-align: top;
}

.sign-table th {
  background: var(--dark);
  color: var(--white);
  width: 110px;
  white-space: nowrap;
  font-weight: 700;
}

.hero-note {
  text-align: center;
  margin-top: 24px;
  font-size: 15px;
}

/* ---------- セクション共通 ---------- */
.section {
  padding: 72px 0;
}

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

.section-eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3em;
  margin-bottom: 4px;
}

.section-title {
  color: var(--dark);
  font-size: 30px;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  padding-left: 16px;
  border-left: 6px solid var(--safety-yellow);
  line-height: 1.4;
}

.sub-title {
  color: var(--dark);
  font-size: 19px;
  line-height: 1.5;
  margin: 36px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gray);
}

.sub-title:first-of-type {
  margin-top: 0;
}

.small-note {
  font-size: 13px;
  color: #777777;
  margin-top: 8px;
}

/* ---------- 表 ---------- */
.info-table,
.schedule-table,
.plain-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 15px;
}

.info-table th,
.info-table td,
.schedule-table th,
.schedule-table td,
.plain-table th,
.plain-table td {
  border: 1px solid var(--gray);
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
}

.info-table th,
.plain-table th {
  background: var(--bg-soft);
  color: var(--dark);
  width: 140px;
  white-space: nowrap;
  font-weight: 700;
}

.schedule-table thead th {
  background: var(--dark);
  color: var(--white);
  font-weight: 700;
}

/* ステータスバッジ */
.status {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.status.done {
  background: #E6F2E7;
  color: var(--done);
}

.status.now {
  background: var(--red);
  color: var(--white);
}

.status.yet {
  background: #EEEEEE;
  color: #666666;
}

/* ---------- 2カラム・カード ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 6px;
  padding: 20px 22px;
}

.plan-card h4 {
  color: var(--red);
  font-size: 16px;
  margin-bottom: 6px;
}

.check-list {
  list-style: none;
}

.check-list li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 8px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
}

/* ---------- お知らせボックス ---------- */
.notice-box {
  border-radius: 6px;
  padding: 22px 24px;
  margin-top: 32px;
}

.notice-title {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* 作業時間帯（落ち着いた案内） */
.time-box {
  background: var(--bg-soft);
  border: 1px solid var(--gray);
}

.time-box .notice-title {
  color: var(--dark);
}

.time-main {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
}

/* 騒音・振動（注意喚起の黄） */
.warn-box {
  background: #FFF9E0;
  border: 2px solid var(--safety-yellow);
}

.warn-box .notice-title {
  color: #7A5C00;
}

.warn-box ul {
  list-style: none;
  margin-bottom: 8px;
}

.warn-box li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

.warn-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 9px;
  height: 9px;
  background: var(--safety-yellow);
  border-radius: 2px;
}

/* 交通規制（赤で強調） */
.alert-box {
  background: #FDF0F2;
  border: 2px solid var(--red);
  margin-top: 0;
}

.alert-box .notice-title {
  color: var(--red);
}

.alert-box .plain-table {
  margin-top: 10px;
}

/* ---------- ポイント3カード ---------- */
.point-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.point-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-top: 4px solid var(--safety-yellow);
  border-radius: 6px;
  padding: 20px 20px;
}

.point-card h4 {
  color: var(--dark);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.point-card p {
  font-size: 14px;
}

/* ---------- 進捗バー ---------- */
.progress-wrap {
  max-width: 640px;
  margin-top: 12px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.progress-label strong {
  color: var(--red);
  font-size: 24px;
}

.progress-bar {
  height: 22px;
  background: #E9E7E1;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--gray);
}

.progress-fill {
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--red);
  border-radius: 999px 0 0 999px;
}

/* 縞のオーバーレイ（transformで軽く流す） */
.progress-fill::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -33.94px;
  right: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0) 0 12px,
    rgba(255, 255, 255, 0.28) 12px 24px
  );
}

/* ---------- 写真プレースホルダー ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.photo-placeholder {
  background: #EFEDE8;
  border: 2px dashed #B5B2AA;
  border-radius: 6px;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: #86837C;
  font-size: 14px;
}

.map-placeholder {
  min-height: 220px;
  margin-top: 10px;
}

/* ---------- 工程ステップリスト ---------- */
.step-list {
  list-style: none;
}

.step-list li {
  padding: 10px 12px 10px 38px;
  position: relative;
  border-bottom: 1px solid var(--gray);
}

.step-list li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.step-done {
  color: #777777;
}

.step-done::before {
  background: var(--done);
}

.step-now {
  font-weight: 700;
  color: var(--dark);
}

.step-now::before {
  background: var(--red);
}

.step-yet::before {
  background: var(--gray);
}

/* ---------- 新着情報 ---------- */
.news-list {
  border-top: 1px solid var(--gray);
  margin-top: 8px;
}

.news-item {
  display: flex;
  gap: 24px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--gray);
}

.news-item dt {
  flex: 0 0 110px;
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 6px;
  padding: 18px 22px;
  margin-bottom: 14px;
}

.faq-item dt {
  color: var(--dark);
  font-weight: 700;
  padding-left: 30px;
  position: relative;
  margin-bottom: 6px;
}

.faq-item dt::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  font-weight: 700;
  font-size: 18px;
}

.faq-item dd {
  padding-left: 30px;
  font-size: 15px;
}

/* ---------- お問い合わせ ---------- */
.contact {
  background: var(--dark);
}

.contact .section-eyebrow {
  color: var(--safety-yellow);
}

.contact .section-title {
  color: var(--white);
  border-left-color: var(--safety-yellow);
}

.contact-lead {
  color: var(--white);
  margin-bottom: 28px;
}

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

.contact-card {
  background: var(--white);
  border-radius: 6px;
  padding: 24px 24px;
}

.contact-card h3 {
  color: var(--dark);
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--safety-yellow);
}

.contact-card p {
  font-size: 14px;
  margin-bottom: 4px;
}

.contact-card-note {
  color: #777777;
  font-size: 13px;
}

.tel-line a {
  color: var(--dark);
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.tel-line a:hover {
  color: var(--red);
}

.emergency-card {
  border: 3px solid var(--red);
}

.emergency-card h3 {
  color: var(--red);
  border-bottom-color: var(--red);
}

.contact-extra {
  margin-top: 28px;
  color: var(--white);
  font-size: 14px;
  text-align: center;
}

.form-button {
  display: inline-block;
  margin-top: 16px;
  background: var(--safety-yellow);
  color: var(--stripe-dark);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 4px;
}

.form-button:hover {
  background: #E0B400;
}

/* ---------- フッター ---------- */
.site-footer {
  background: #3A3A3A;
  color: var(--gray);
  text-align: center;
  padding: 28px 0;
  font-size: 13px;
}

.footer-company {
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
}

.site-footer a {
  color: var(--safety-yellow);
}

.footer-copy {
  margin-top: 12px;
}

/* =========================================
   動き（スクロール表示・アニメーション）
   ========================================= */

/* 出現アニメ（.reveal はJSが自動付与。JS無効時は何も付かず普通に表示される） */
.reveal {
  opacity: 0;
}

.reveal.visible {
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 見出しは左からシュッと入る */
.section-eyebrow.reveal.visible,
.section-title.reveal.visible {
  animation-name: slide-in-left;
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-42px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* カード群は1枚ずつ時差で跳ねて登場（.stagger はJSが自動付与） */
.stagger {
  opacity: 1;
}

.stagger > * {
  opacity: 0;
}

.stagger.visible > * {
  animation: pop-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stagger.visible > *:nth-child(2) {
  animation-delay: 0.13s;
}

.stagger.visible > *:nth-child(3) {
  animation-delay: 0.26s;
}

.stagger.visible > *:nth-child(4) {
  animation-delay: 0.39s;
}

@keyframes pop-rise {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: translateY(-5px) scale(1.01);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ヒーロー看板はページを開いた瞬間に上から落ちて着地する */
.signboard {
  animation: sign-drop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes sign-drop {
  0% {
    opacity: 0;
    transform: translateY(-70px);
  }
  55% {
    opacity: 1;
    transform: translateY(10px);
  }
  75% {
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* 看板の黄×黒ストライプがきびきび流れる（誘導灯のイメージ）
   transformアニメはGPU処理のため、低性能なスマホでも重くならない */
@keyframes stripe-slide {
  to {
    transform: translateX(45.25px);
  }
}

.stripe::before {
  animation: stripe-slide 1.4s linear infinite;
}

/* 「進行中」の札の明滅（強め） */
@keyframes soft-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.status.now,
.step-now::before {
  animation: soft-blink 1.2s ease-in-out infinite;
}

/* 進捗バー: 画面に入ると伸びる＋縞が流れ続ける（床屋のポール風） */
.progress-fill {
  transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes barber-slide {
  to {
    transform: translateX(33.94px);
  }
}

.progress-fill::before {
  animation: barber-slide 0.9s linear infinite;
}

/* カード類はマウスを乗せると浮き上がる */
.plan-card,
.point-card,
.faq-item,
.contact-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover,
.point-card:hover,
.faq-item:hover,
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.13);
}

/* 緊急連絡カードは登場後に鼓動して目を引く */
.stagger.visible > .emergency-card {
  animation: pop-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.39s both,
             pulse-ring 2.2s ease-out 1.6s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(235, 7, 42, 0.35);
  }
  70%, 100% {
    box-shadow: 0 0 0 14px rgba(235, 7, 42, 0);
  }
}

/* ナビは赤い下線がシュッと伸びる */
.global-nav a:not(.nav-contact) {
  position: relative;
}

.global-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.global-nav a:not(.nav-contact):hover::after {
  transform: scaleX(1);
}

/* ボタンはぽんと浮く */
.nav-contact,
.form-button {
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-contact:hover,
.form-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* OSで「視覚効果を減らす」を設定している方には動きを止める */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .stagger > * {
    opacity: 1;
    animation: none;
  }

  .signboard,
  .stripe::before,
  .status.now,
  .step-now::before,
  .progress-fill::before,
  .stagger.visible > .emergency-card {
    animation: none;
  }

  .progress-fill {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =========================================
   レスポンシブ（タブレット以下）
   ========================================= */
@media (max-width: 820px) {
  .two-col,
  .point-grid,
  .photo-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .signboard-title {
    font-size: 34px;
  }
}

/* スマホ */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 8px;
  }

  .brand img {
    height: 28px;
  }

  .brand-label {
    font-size: 11px;
    padding: 4px 7px;
  }

  .global-nav {
    gap: 8px 14px;
    width: 100%;
    padding-bottom: 4px;
    /* スマホは横スクロールでなく折り返して全項目を見せる（高齢の方にも分かりやすく） */
    overflow-x: visible;
    white-space: normal;
    flex-wrap: wrap;
  }

  .global-nav a {
    font-size: 13px;
  }

  .global-nav .nav-contact {
    padding: 6px 12px;
  }

  .hero {
    padding: 32px 0 40px;
  }

  .signboard-body {
    padding: 28px 18px;
  }

  .signboard-title {
    font-size: 27px;
  }

  .sign-table th {
    width: 74px;
    padding: 10px 10px;
  }

  .sign-table td {
    padding: 10px 12px;
    font-size: 14px;
  }

  .section {
    padding: 52px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .sub-title {
    font-size: 17px;
  }

  .info-table th,
  .plain-table th {
    width: 96px;
    white-space: normal;
    padding: 11px 10px;
  }

  .info-table td,
  .plain-table td,
  .schedule-table th,
  .schedule-table td {
    padding: 11px 12px;
    font-size: 14px;
  }

  .news-item {
    flex-direction: column;
    gap: 2px;
  }

  .tel-line a {
    font-size: 20px;
  }
}
