/* NIIGATA STIMULATE - 静的サイト共通スタイル */
:root {
  --accent: #03a9f4;
  --accent-dark: #0288d1;
  --text: #505050;
  --heading: #1e1e1e;
  --white: #fff;
}

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

body {
  font-family: "Open Sans", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, Helvetica, Arial, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }

h1, h2, h3, h4 { color: var(--heading); font-weight: 600; line-height: 1.4; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ヘッダー */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img { height: 56px; width: auto; display: block; }
.global-nav ul { list-style: none; display: flex; gap: 32px; }
.global-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  transition: color .2s;
}
.global-nav a:hover, .global-nav a.current { color: var(--accent); }

/* モバイルナビ */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--white); margin: 5px 0; }

/* ヒーロー(トップ) */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url("../images/hero-bg.jpg") center/cover no-repeat #333;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .6);
}
.hero .container { position: relative; }
.hero h1 {
  color: var(--white);
  font-size: 64px;
  margin-bottom: 24px;
}
.hero p {
  color: rgba(255, 255, 255, .9);
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto 40px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 40px;
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  background: var(--accent);
  border: 2px solid var(--accent);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn.btn-outline { background: transparent; border-color: var(--white); }
.btn.btn-outline:hover { background: var(--white); color: var(--heading); }

/* 下層ページヘッダー */
.page-hero {
  position: relative;
  padding: 180px 0 100px;
  background: url("../images/page-header.jpg") center/cover no-repeat #333;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .5);
}
.page-hero h1 { position: relative; color: var(--white); font-size: 48px; }

/* セクション */
.section { padding: 90px 0; }
.section-alt { background: #f7f9fb; }
.section-title { font-size: 42px; text-align: center; margin-bottom: 24px; }
.section-lead { max-width: 820px; margin: 0 auto; text-align: center; }

/* 3カラム特徴 */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.feature h3 { font-size: 20px; margin-bottom: 14px; }
.feature h3::after {
  content: "";
  display: block;
  width: 40px; height: 3px;
  background: var(--accent);
  margin-top: 12px;
}

/* 代表メッセージ(写真なし・引用スタイル) */
.message-card {
  max-width: 780px;
  margin: 50px auto 0;
  background: #f7f9fb;
  border-left: 4px solid var(--accent);
  padding: 44px 48px;
}
.message-quote {
  position: relative;
  font-size: 17px;
  color: var(--heading);
}
.message-quote::before {
  content: "“";
  display: block;
  font-size: 60px;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, serif;
  margin-bottom: 8px;
}
.message-sign {
  margin-top: 28px;
  text-align: right;
  font-size: 14px;
}
.message-sign-name {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--heading);
  margin-top: 4px;
}

/* サービス(工程) */
.steps { max-width: 820px; margin: 0 auto; counter-reset: step; }
.step {
  position: relative;
  padding: 0 0 40px 80px;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute; left: 25px; top: 60px; bottom: 8px;
  width: 2px;
  background: #dce6ee;
}
.step h3 { font-size: 22px; margin-bottom: 10px; }

/* プロダクト */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.product-card {
  background: var(--white);
  border: 1px solid #e5ecf2;
  padding: 40px 34px;
}
.product-card h3 { font-size: 22px; margin-bottom: 16px; }
.product-card h3::after {
  content: "";
  display: block;
  width: 40px; height: 3px;
  background: var(--accent);
  margin-top: 14px;
}

/* お問い合わせ */
.contact-meta {
  max-width: 780px;
  margin: 44px auto 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  background: var(--white);
  border: 1px solid #e5ecf2;
  border-radius: 8px;
  padding: 30px 38px;
  align-items: center;
  box-shadow: 0 2px 12px rgba(30, 60, 90, .05);
}
.contact-meta h3 { font-size: 18px; margin-bottom: 8px; }
.contact-meta p { margin-bottom: 4px; font-size: 15px; }

.contact-form-box {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid #e5ecf2;
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  padding: 52px 56px 44px;
  box-shadow: 0 6px 28px rgba(30, 60, 90, .08);
}
.contact-form { text-align: left; }
.form-row { margin-bottom: 26px; }
.form-row label {
  display: block;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: .02em;
}
.required { color: #e53935; margin-left: 2px; }
.optional {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #78909c;
  background: #eceff1;
  padding: 2px 10px;
  border-radius: 20px;
  vertical-align: 1px;
  margin-left: 6px;
  letter-spacing: .05em;
}
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #d4dde5;
  border-radius: 6px;
  background: #fbfcfe;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form textarea { resize: vertical; min-height: 160px; line-height: 1.7; }
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2378909c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}
.contact-form ::placeholder { color: #b6c2cc; }
.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover { border-color: #b3c3d0; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(3, 169, 244, .14);
}

.form-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.7;
  color: #607d8b;
  background: #f4f8fb;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 30px 0 0;
}
.form-note::before {
  content: "";
  flex: 0 0 16px;
  height: 16px;
  margin-top: 3px;
  background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a4 4 0 0 0-4 4v2H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-1V5a4 4 0 0 0-4-4zm-2.5 6V5a2.5 2.5 0 0 1 5 0v2z' fill='%2303a9f4'/%3E%3C/svg%3E") no-repeat center / contain;
}

.form-submit { text-align: center; margin-top: 30px; }
.contact-form .btn {
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  min-width: 280px;
  padding: 16px 40px;
  box-shadow: 0 4px 14px rgba(3, 169, 244, .35);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.contact-form .btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(3, 169, 244, .4);
}
.contact-form .btn:active { transform: translateY(0); }

/* フッター */
.site-footer {
  background: #1e1e1e;
  color: rgba(255, 255, 255, .75);
  text-align: center;
  padding: 32px 0;
  font-size: 14px;
}

/* CTA */
.cta { text-align: center; margin-top: 50px; }

/* レスポンシブ */
@media (max-width: 900px) {
  .hero h1 { font-size: 40px; }
  .page-hero h1 { font-size: 34px; }
  .section-title { font-size: 30px; }
  .features, .products-grid, .contact-meta, .form-cols { grid-template-columns: 1fr; }
  .message-card { padding: 32px 24px; }
  .contact-meta { padding: 24px 22px; }
  .contact-form-box { padding: 36px 22px 32px; }
  .contact-form .btn { width: 100%; min-width: 0; }

  .nav-toggle { display: block; }
  .global-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(20, 20, 20, .97);
    padding: 10px 0 20px;
  }
  .global-nav.open { display: block; }
  .global-nav ul { flex-direction: column; gap: 0; text-align: center; }
  .global-nav a { display: block; padding: 12px 0; }
}
