/* =========================================================
   橋本有限会社 / HASHIMOTO BODY WORKS
   テイスト：世田谷ベース風ガレージスタイル（白多め・清潔感）
   ========================================================= */

:root {
  --white: #fbfaf7;        /* 地の白（清潔感） */
  --stencil: #eae6df;      /* ステンシルホワイト */
  --blue: #7a99ac;         /* 世田谷ベースブルー */
  --blue-dark: #4e6b7d;    /* ブルーの濃い版（小さい文字用） */
  --yellow: #ebb428;       /* エアフォースイエロー */
  --ink: #1e2a33;          /* 文字色（青みのある墨色） */
  --ink-soft: #4d5a63;
  --line: rgba(30, 42, 51, .18);

  --font-en: "Staatliches", sans-serif;
  --font-stencil: "Black Ops One", "Alfa Slab One", sans-serif;
  --font-slab: "Alfa Slab One", serif;
  --font-head: "Dela Gothic One", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;

  --container: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: .8em 1.6em;
  font-family: var(--font-head);
  font-size: .95rem;
  letter-spacing: .05em;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 2px;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }

.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-ghost   { background: var(--white); color: var(--ink); }
.btn-yellow  { background: var(--yellow); color: var(--ink); }
.btn-tel     { background: var(--yellow); color: var(--ink); padding: .45em 1em; font-family: var(--font-en); font-size: 1.05rem; }
.btn-large   { font-size: 1.1rem; padding: 1em 2em; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--white);
  border-bottom: 4px solid var(--yellow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-badge { width: auto; height: 52px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-en { font-family: var(--font-en); font-size: 1.15rem; letter-spacing: .08em; }
.brand-ja { font-size: .75rem; color: var(--ink-soft); }   /* 最小 12px */

.global-nav { display: flex; align-items: center; gap: 22px; }
.global-nav a:not(.btn) {
  font-family: var(--font-en);
  letter-spacing: .1em;
  text-decoration: none;
}
.global-nav a:not(.btn):hover { color: var(--blue-dark); }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;   /* タップ領域 44px 以上 */
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--ink); }
  .global-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white);
    border-bottom: 4px solid var(--yellow);
    display: none;
  }
  .global-nav.is-open { display: flex; }
  .global-nav a { width: 100%; padding: 14px 20px; text-align: center; border-top: 1px solid var(--line); }
  .global-nav .btn-tel { border: 0; border-radius: 0; }
}

/* ---------- メイン ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background-color: var(--blue);
  padding: 96px 0 110px;
  border-bottom: 3px solid var(--ink);
}

/* --- スライド写真（5秒ごとにクロスフェード＋ゆっくりズーム） --- */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
/* 表示中と、フェードアウト中の写真にズームをかける（途中で止まらないように両方に指定） */
.hero-slide.is-active,
.hero-slide.is-leaving { animation: hero-zoom 7s ease-out forwards; }
@keyframes hero-zoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

/* --- 写真の上に重ねるブルーのフィルター＋機体のパネルライン --- */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(30,42,51,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,42,51,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,153,172,.80) 0%, rgba(122,153,172,.50) 45%, rgba(122,153,172,.05) 100%);
  background-size: 100% 180px, 320px 100%, 100% 100%;
}
/* フィルターを薄くした分、文字の周りに白いにじみを付けて読みやすくする */
.hero-title-ja,
.hero-lead { text-shadow: 0 0 12px rgba(251,250,247,.85), 0 0 3px rgba(251,250,247,.9); }
@media (max-width: 760px) {
  .hero-overlay {
    background-image:
      linear-gradient(rgba(30,42,51,.10) 1px, transparent 1px),
      linear-gradient(rgba(122,153,172,.62), rgba(122,153,172,.62));
    background-size: 100% 180px, 100% 100%;
  }
}

/* 動きを減らす設定の人にはズームなし（切り替えのフェードだけ） */
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active,
  .hero-slide.is-leaving { animation: none; }
}

/* 下端のリベット列 */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 8px; z-index: 2;
  background: radial-gradient(circle, rgba(30,42,51,.45) 2px, transparent 2.6px) 0 50% / 22px 8px repeat-x;
}
.hero-inner { position: relative; z-index: 3; }   /* 文字・ボタンはワッペンより前に */
.hero-place {
  display: inline-block;
  margin: 0 0 18px;
  padding: 2px 12px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-en);
  letter-spacing: .2em;
}
.hero-title { margin: 0; }
.hero-title-en {
  display: block;
  font-family: var(--font-stencil);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 1.02;
  color: var(--white);
  text-shadow: 4px 4px 0 var(--ink);
}
.hero-title-ja {
  display: block;
  margin-top: 22px;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 400;
  line-height: 1.4;
}
.hero-lead { margin: 18px 0 32px; font-size: 1.02rem; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-patch {
  position: absolute; right: 7%; top: 50%; z-index: 2;
  width: 260px; height: auto;
  transform: translateY(-50%) rotate(-6deg);
  filter: drop-shadow(5px 6px 0 rgba(30,42,51,.35));
  pointer-events: none;   /* 飾りなので、重なってもボタンのタップを邪魔しない */
}

@media (max-width: 900px) {
  .hero-patch { width: 180px; right: 3%; }
}
@media (max-width: 760px) {
  .hero { padding: 64px 0 90px; }
  .hero-patch { width: 120px; top: auto; bottom: 24px; right: -10px; transform: rotate(-6deg); opacity: .6; }
}

/* ---------- セクション共通 ---------- */
.section { padding: 88px 0; }
.section-paper   { background: var(--white); }
.section-stencil { background: var(--stencil); }
.section-blue    { background: var(--blue); }

.section-title {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--ink);
}
.section-title .en { font-family: var(--font-stencil); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; }
/* 見出しの頭に星マーク */
.section-title .en::before {
  content: "★";
  content: "★" / "";   /* 装飾なので読み上げない（未対応ブラウザは上の行が使われる） */
  display: inline-grid; place-items: center;
  width: 1.1em; height: 1.1em; margin-right: .35em;
  vertical-align: .08em;
  font-size: .55em;
  background: var(--blue-dark);
  color: var(--white);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.section-title .ja {
  font-family: var(--font-head); font-weight: 400; font-size: .95rem;
  padding: 0 10px;
  background: var(--yellow);
}
.section-lead { margin: 0 0 36px; }

/* ---------- 事業内容 ---------- */
.service-list {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px;
}
.service-card {
  position: relative;
  padding: 28px 22px 24px;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--blue);
}
/* 四隅のリベット */
.service-card::before,
.shop-info::before {
  content: ""; position: absolute; inset: 7px;
  pointer-events: none;
  background:
    radial-gradient(circle, var(--ink-soft) 2.5px, transparent 3px) left top / 8px 8px no-repeat,
    radial-gradient(circle, var(--ink-soft) 2.5px, transparent 3px) right top / 8px 8px no-repeat,
    radial-gradient(circle, var(--ink-soft) 2.5px, transparent 3px) left bottom / 8px 8px no-repeat,
    radial-gradient(circle, var(--ink-soft) 2.5px, transparent 3px) right bottom / 8px 8px no-repeat;
}
/* 機体番号風のプレート */
.service-no {
  display: inline-block;
  padding: 2px 10px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-stencil);
  font-size: 1rem;
  letter-spacing: .12em;
  line-height: 1.4;
}
.service-no::before { content: "NO."; margin-right: .2em; }
.service-card h3 { margin: 10px 0 8px; font-family: var(--font-head); font-weight: 400; font-size: 1.2rem; }
.service-card p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* ---------- 施工事例（Instagram） ---------- */
.instagram-feed { min-height: 120px; }
.ig-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.ig-tile {
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(122,153,172,.12) 0 8px, transparent 8px 16px),
    var(--white);
  border: 2px solid var(--ink);
  font-family: var(--font-stencil);
  letter-spacing: .15em;
  color: var(--blue);
}
/* 自社写真のギャラリー（リンク付きの正方形タイル） */
.ig-photo {
  position: relative;
  display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border: 2px solid var(--ink); background: var(--white);
}
.ig-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.ig-photo:hover img { transform: scale(1.04); }
/* 動画（リール）の目印 */
.ig-badge {
  position: absolute; top: 8px; right: 8px;
  padding: 2px 8px;
  background: var(--ink); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
}
@media (prefers-reduced-motion: reduce) { .ig-photo img { transition: none; } .ig-photo:hover img { transform: none; } }
/* 公式埋め込みを並べるとき用（公式の埋め込みは最小幅326px） */
.ig-embeds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(326px, 1fr));
  gap: 20px;
  align-items: start;
}
.ig-embeds .instagram-media {
  margin: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  border: 2px solid var(--ink) !important;
  border-radius: 0 !important;
}
.ig-more { margin: 32px 0 0; text-align: center; }

@media (max-width: 560px) {
  .ig-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 会社情報 ---------- */
.shop-info {
  position: relative;
  margin: 36px 0 0;
  padding: 8px 6px;
  background: var(--white);
  border: 2px solid var(--ink);
}
.shop-info > div {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.shop-info > div:last-child { border-bottom: 0; }
.shop-info dt { font-family: var(--font-head); color: var(--blue-dark); }
.shop-info dd { margin: 0; }
.shop-info a { font-weight: 700; }
.tag {
  display: inline-block; margin: 0 6px 6px 0; padding: 0 10px;
  background: var(--stencil);
  border: 1px solid var(--ink); font-size: .85rem;
}
@media (max-width: 560px) {
  .shop-info > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- アクセス ---------- */
.map {
  margin-top: 36px;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--yellow);
}
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- お問い合わせ ---------- */
.contact { text-align: center; }
.contact .section-title { justify-content: center; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; }
.contact-tel {
  display: flex; flex-direction: column;
  padding: 14px 28px;
  border: 2px solid var(--ink);
  text-decoration: none;
  background: var(--stencil);
}
.contact-tel .label { font-size: .85rem; }
.contact-tel .num { font-family: var(--font-stencil); font-size: 1.9rem; line-height: 1.2; }

/* ---------- フッター ---------- */
.site-footer {
  padding: 40px 0;
  background: var(--ink);
  color: rgba(234, 230, 223, .8);
  border-top: 4px solid var(--yellow);
  font-size: .85rem;
  text-align: center;
}
.site-footer p { margin: 4px 0; }
.footer-brand { font-family: var(--font-stencil); font-size: 1.4rem; letter-spacing: .1em; color: var(--stencil); }
.copy { margin-top: 14px !important; color: rgba(234, 230, 223, .65); }   /* 背景とのコントラスト 4.5:1 以上 */

/* ---------- フッターのリンク ---------- */
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px;
  margin: 14px 0 0; padding: 0; list-style: none;
}
.footer-links a { display: inline-block; padding: 10px 4px; color: var(--stencil); }   /* タップ領域 44px */
.footer-links a:hover { color: var(--yellow); }

/* ---------- 下層ページ（お問い合わせ・個人情報の取り扱い） ---------- */
.page-head {
  padding: 56px 0 0;
  background: var(--white);
}
.page-head .section-title { margin: 0; }
.page-body { padding-top: 40px; }

/* 鉄板風のプレート（四隅にリベット） */
.plate {
  position: relative;
  padding: 28px 26px;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--blue);
}
.plate::before {
  content: ""; position: absolute; inset: 7px;
  pointer-events: none;
  background:
    radial-gradient(circle, var(--ink-soft) 2.5px, transparent 3px) left top / 8px 8px no-repeat,
    radial-gradient(circle, var(--ink-soft) 2.5px, transparent 3px) right top / 8px 8px no-repeat,
    radial-gradient(circle, var(--ink-soft) 2.5px, transparent 3px) left bottom / 8px 8px no-repeat,
    radial-gradient(circle, var(--ink-soft) 2.5px, transparent 3px) right bottom / 8px 8px no-repeat;
}

/* お問い合わせ */
.contact-page {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px; align-items: start;
}
.contact-page .section-lead { margin-bottom: 24px; }
.form-card { background: #fff; border: 2px solid var(--ink); padding: 16px 8px 0; }
.form-card iframe {
  display: block; width: 100%; border: 0;
  height: 1500px;   /* フォーム4項目。実測の高さ＋未入力エラー表示の伸び分 */
}
.form-note { margin: 14px 0 0; font-size: .875rem; line-height: 1.9; color: var(--ink-soft); }
.form-note a { color: var(--blue-dark); font-weight: 700; }

.contact-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.contact-side .contact-tel { text-align: center; }
.contact-mail { margin: 20px 0 0; text-align: center; }
.contact-mail a { display: inline-block; padding: 10px 0; color: var(--blue-dark); font-weight: 700; }   /* タップ領域 44px */
.contact-side .contact-mail { margin: -18px 0 4px; }
.contact-hours { margin: 0 0 12px; text-align: center; font-size: .875rem; color: var(--ink-soft); }
.plate-title { margin: 0 0 14px; font-family: var(--font-head); }
.flow { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.flow li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; font-size: .9rem; line-height: 1.8; }
.flow-no {
  align-self: start; text-align: center;
  background: var(--ink); color: var(--yellow);
  font-family: var(--font-stencil); letter-spacing: .08em; line-height: 1.6;
}
.flow strong { font-family: var(--font-head); font-weight: 400; }

@media (max-width: 900px) {
  .contact-page { grid-template-columns: 1fr; }
  .contact-side { position: static; }
}
@media (max-width: 560px) {
  .form-card { margin: 0 -20px; border-left: 0; border-right: 0; padding: 12px 0 0; }
  .form-card iframe { height: 1700px; }   /* 幅が狭いと説明文が折り返して長くなる */
}

/* 送信完了 */
.thanks { max-width: 720px; text-align: center; }
.thanks-lead { margin: 0 0 32px; font-size: 1.1rem; font-weight: 700; line-height: 2; }
.thanks .plate { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: left; }
.thanks .plate p { margin: 0; }
.thanks-actions { margin: 40px 0 0; }

/* 個人情報の取り扱い */
.policy { max-width: 820px; display: flex; flex-direction: column; gap: 40px; }
.policy-block { padding: 40px 36px; }
.policy-title {
  margin: 0 0 20px; padding-bottom: 10px;
  font-family: var(--font-head); font-weight: 400; font-size: 1.4rem; line-height: 1.4;
  border-bottom: 2px solid var(--ink);
}
.policy-item { padding: 24px 0; border-top: 1px solid var(--line); }
.policy-title + .policy-item { border-top: 0; padding-top: 4px; }
.policy-item h3 { margin: 0 0 8px; font-family: var(--font-head); font-weight: 400; font-size: 1.1rem; line-height: 1.5; }
.policy p, .policy li { line-height: 2; }
.policy p { margin: 0 0 10px; }
.policy ol, .policy ul { margin: 0 0 10px; padding-left: 1.5em; }
.policy li::marker { color: var(--blue-dark); font-weight: 700; }
.policy a { color: var(--blue-dark); font-weight: 700; }
.policy-desk { padding: 18px 20px; background: var(--stencil); border: 1px solid var(--ink); }
.policy-sign { margin-top: 24px !important; text-align: right; }
@media (max-width: 560px) {
  .policy-block { padding: 28px 20px; }
}

/* ---------- アクセシビリティ ---------- */
/* キーボード操作時のフォーカス表示（マウス操作では出ない） */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.site-footer a:focus-visible { outline-color: var(--yellow); }

/* 本文へスキップ（Tabキーを押したときだけ現れる） */
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 10px 18px;
  background: var(--yellow); color: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 動きを減らす設定の人には、スライドの切り替え・ボタンの浮き・スムーススクロールを止める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; box-shadow: none; }
}
