/* ===== ベース ===== */
:root {
  --blue: #1a3bcf;
  --blue-dark: #142a94;
  --ink: #2b2b2b;
  --gray: #6b6b6b;
  --bg: #ffffff;
  --bg-alt: #f4f5f8;
  --line: #e3e5ea;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }

.container {
  width: 90%;
  max-width: 1080px;
  margin: 0 auto;
}

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

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

.logo img { height: 34px; }

.nav a {
  color: var(--ink);
  font-size: 0.9rem;
  margin-left: 1.8rem;
  position: relative;
  transition: color 0.2s;
}

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

/* ===== ヒーロー ===== */
.hero {
  background: url("image/main.jpeg") center/cover no-repeat;
  color: #fff;
}

.hero-overlay {
  background: linear-gradient(to right, rgba(20, 30, 60, 0.75), rgba(20, 30, 60, 0.35));
  padding: 8rem 0;
}

.hero-content { max-width: 640px; }

.hero-sub {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
  line-height: 2;
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 0.9rem 2.4rem;
  border-radius: 4px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* ===== セクション共通 ===== */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 1.9rem;
  text-align: center;
  letter-spacing: 0.06em;
}

.section-note {
  text-align: center;
  color: var(--blue);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  margin-bottom: 3rem;
}

/* ===== 工房について ===== */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p { margin-bottom: 1.2rem; }

.about-img img {
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ===== サービスカード ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.card-img { height: 240px; overflow: hidden; }

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.card:hover .card-img img { transform: scale(1.05); }

.card-body { padding: 1.6rem 1.8rem 2rem; }

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
  color: var(--blue-dark);
}

/* ===== ギャラリー ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery figure {
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 1 / 1;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery figure:hover img { transform: scale(1.08); }

/* ===== 会社概要 ===== */
.company-box {
  max-width: 680px;
  margin: 0 auto;
}

.company-photo {
  margin-bottom: 2rem;
  text-align: center;
}

.company-photo img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.company-photo figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--gray);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.company-table th,
.company-table td {
  text-align: left;
  padding: 1.1rem 1.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.company-table th {
  width: 30%;
  background: var(--bg-alt);
  color: var(--blue-dark);
  font-weight: 700;
  white-space: nowrap;
}

/* ===== 沿革 ===== */
.history-box {
  max-width: 680px;
  margin: 0 auto;
}

.history-list {
  list-style: none;
  border-left: 2px solid var(--blue);
  margin-bottom: 3.5rem;
}

.history-list li {
  position: relative;
  padding: 0 0 1.6rem 1.8rem;
}

.history-list li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--blue);
  border-radius: 50%;
}

.history-year {
  display: block;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.2rem;
}

.works-title {
  font-size: 1.15rem;
  color: var(--blue-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

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

.works-list li {
  padding: 0.7rem 0 0.7rem 1.4rem;
  border-bottom: 1px dashed var(--line);
  position: relative;
}

.works-list li::before {
  content: "▪";
  color: var(--blue);
  position: absolute;
  left: 0;
}

/* ===== お問い合わせ ===== */
.contact-lead {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-box {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem 2.4rem;
}

.contact-box dl {
  display: grid;
  grid-template-columns: 6rem 1fr;
  row-gap: 1rem;
}

.contact-box dt {
  font-weight: 700;
  color: var(--blue-dark);
}

/* ===== フッター ===== */
.site-footer {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 2.5rem 0;
}

.footer-logo {
  height: 30px;
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1);
}

.copyright {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .nav { display: none; }

  .hero-overlay { padding: 5rem 0; }
  .hero-title { font-size: 2.4rem; }

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

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 0.8rem 1.2rem;
  }
  .company-table th { border-bottom: none; padding-bottom: 0; }
}
