/* ==========================================================
   共通スタイルシート — シンプル・ミニマル
   色や余白を変えたい場合は :root の変数を編集してください
   ========================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f7;
  --color-text: #222222;
  --color-text-muted: #666666;
  --color-accent: #e2001b;
  --color-accent-soft: #ffe4e6;
  --color-border: #e6e6e6;
  --font-base: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

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

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-logo {
  display: block;
}

.site-logo img {
  height: 46px;
  display: block;
}

.site-logo:hover {
  text-decoration: none;
  opacity: 0.75;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
}

.site-nav a.is-active {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 4px;
}

.site-tagline {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Hero (photo) ---------- */

.hero-photo {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
}

.hero-photo img {
  width: 100%;
  height: clamp(320px, 46vw, 560px);
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.92;
}

.hero-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgba(20, 20, 20, 0.62);
  color: #fff;
  padding: 22px 28px;
  max-width: 92%;
}

.hero-caption p {
  margin: 0 0 6px;
  font-size: 1.3rem;
  line-height: 1.5;
  font-weight: 700;
}

.hero-caption .hero-company {
  color: #ffb3ba;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ---------- Simple page hero (no photo) ---------- */

.hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.hero h1 {
  font-size: 1.9rem;
  line-height: 1.5;
  margin: 0 0 12px;
  font-weight: 700;
}

.hero p {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0;
}

/* ---------- Section header bar (mockup style) ---------- */

.bar-title {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  margin: 0 0 4px;
  font-size: 1.05rem;
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

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

section + section {
  border-top: 1px solid var(--color-border);
}

.section-title {
  font-size: 1.6rem;
  margin: 0 0 12px;
  font-weight: 700;
}

.section-lead {
  color: var(--color-text-muted);
  margin: 0 0 48px;
  max-width: 620px;
}

/* 画面が広い時（PCのフル画面など）は1行で表示し、狭い時は通常どおり折り返す */
@media (min-width: 860px) {
  .section-lead--nowrap {
    max-width: none;
    white-space: nowrap;
  }
}

/* ---------- Cards / grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  border: 1px solid var(--color-border);
  padding: 28px;
  background: var(--color-bg);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 30px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 2px;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.btn:hover {
  opacity: 0.88;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

/* ---------- Forms ---------- */

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}

.form-row textarea {
  min-height: 160px;
  resize: vertical;
}

/* ---------- Two column (news style) ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 720px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ---------- Blog ---------- */

.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}

.post-item .post-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.post-item h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.post-item p {
  margin: 0;
  color: var(--color-text-muted);
}

.post-article header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.post-article h1 {
  font-size: 1.9rem;
  margin: 10px 0 0;
}

.post-article .post-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.post-article .post-body p {
  margin: 0 0 22px;
}

.post-article .post-body h2 {
  font-size: 1.3rem;
  margin: 40px 0 16px;
}

.back-link {
  display: inline-block;
  margin-top: 40px;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-accent-soft);
  padding: 40px 0;
  margin-top: 40px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.site-footer .site-nav ul {
  gap: 20px;
}

.site-footer .site-nav a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-nav ul {
    gap: 18px;
    flex-wrap: wrap;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 52px 0;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
