/* 株式会社イガラシ コーポレートサイト
   動き・スクリプトなし。色と大きさは下の変数で変える。 */
:root {
  --navy: #1d3557;
  --navy-dark: #14263f;
  --accent: #b5651d;
  --text: #222;
  --sub: #555;
  --line: #d9dee5;
  --bg-soft: #f4f6f9;
  --white: #fff;
  --width: 1000px;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.8;
}

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

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

/* ヘッダー */
.site-header {
  border-bottom: 3px solid var(--navy);
  background: var(--white);
}
.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.logo small {
  display: block;
  font-size: 0.72rem;
  font-weight: normal;
  color: var(--sub);
  letter-spacing: 0;
  line-height: 1.4;
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: 6px 2px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--navy);
  color: var(--navy);
}
.nav .nav-contact a {
  padding: 6px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 3px;
  border-bottom: 0;
}
.nav .nav-contact a:hover { background: var(--navy-dark); color: var(--white); }

/* トップの大見出し */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: 2rem;
  line-height: 1.5;
}
.hero p { margin: 0; max-width: 40em; }

/* 下層ページの見出し帯 */
.page-title {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}
.page-title h1 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--navy);
}
.page-title p { margin: 6px 0 0; color: var(--sub); font-size: 0.95rem; }

/* 本文 */
.section { padding: 48px 0; }
.section.soft { background: var(--bg-soft); }
.section h2 {
  margin: 0 0 20px;
  padding-left: 12px;
  border-left: 5px solid var(--navy);
  font-size: 1.35rem;
  line-height: 1.4;
}
.section h3 {
  margin: 28px 0 8px;
  font-size: 1.1rem;
  color: var(--navy);
}
.section p { margin: 0 0 14px; }
.lead { font-size: 1.05rem; }
.note { color: var(--sub); font-size: 0.9rem; }
.section p.mt { margin-top: 24px; }
.form label.plain { font-weight: normal; }
/* 迷惑な自動送信への備えの欄。人には見せない */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* カードの並び */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cards.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (max-width: 400px) {
  .cards.two { grid-template-columns: 1fr; }
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  padding: 20px;
}
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; font-size: 0.95rem; }
.card ul { margin: 8px 0 0; padding-left: 1.2em; font-size: 0.95rem; }

/* 表 */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.95rem;
}
th, td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { background: var(--bg-soft); font-weight: bold; }
table.profile th { width: 11em; white-space: nowrap; }
table.works th { white-space: nowrap; }
table.works td:first-child { white-space: nowrap; }

/* 流れ */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  margin-bottom: 12px;
  padding: 14px 16px 14px 60px;
  background: var(--white);
  border: 1px solid var(--line);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: bold;
  line-height: 32px;
  text-align: center;
}
.steps strong { display: block; }

/* ボタン */
.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: var(--white);
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: #96521a; }
.btn-line {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-line:hover { background: var(--bg-soft); }

.cta {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}
.cta h2 { margin: 0 0 8px; font-size: 1.3rem; }
.cta p { margin: 0 0 20px; }

/* 問い合わせフォーム */
.form { max-width: 720px; }
.form .field { margin-bottom: 22px; }
.form label,
.form legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-weight: bold;
}
.form fieldset { margin: 0; padding: 0; border: 0; }
.form .req {
  margin-left: 8px;
  padding: 1px 8px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: normal;
  border-radius: 2px;
}
.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #9aa3af;
  border-radius: 3px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
}
.form textarea { min-height: 180px; }
.form .checks label {
  display: inline-block;
  margin: 0 18px 6px 0;
  font-weight: normal;
}
.form .hint { margin: 4px 0 0; color: var(--sub); font-size: 0.88rem; }
.notice {
  margin: 0 0 24px;
  padding: 12px 16px;
  background: #fff8e6;
  border: 1px solid #e6c97a;
  font-size: 0.92rem;
}

/* フッター */
.site-footer {
  background: var(--navy-dark);
  color: #d5dbe5;
  padding: 32px 0 20px;
  font-size: 0.9rem;
}
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.site-footer strong { color: var(--white); font-size: 1rem; }
.site-footer p { margin: 0 0 4px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #d5dbe5; }
.copyright {
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #33455f;
  text-align: center;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 1.5rem; }
  .section { padding: 36px 0; }
  .nav ul { gap: 2px 14px; }
  table.profile th { width: 7.5em; white-space: normal; }
  table.works { min-width: 560px; }
  table.works th, table.works td:first-child { white-space: normal; }
  table.works td:first-child { min-width: 7em; }
}
