/* /css/common.css — サイト共通スタイル */

/* ===== Design tokens ===== */
:root {
  --primary-dark:   #0A1A2F;
  --primary-navy:   #003366;
  --accent-gold:    #C5A047;
  --accent-blue:    #0279a0;
  --bg-light:       #F5F7FA;
  --bg-section:     #EEF2F7;
  --text-primary:   #1a1a2e;
  --text-secondary: #444;
  --text-muted:     #666;
  --border:         #dde3ec;
  --white:          #ffffff;
  --radius:         12px;
  --radius-sm:      8px;
  --shadow:         0 4px 16px rgba(0,0,0,0.08);
  --shadow-hover:   0 8px 28px rgba(0,0,0,0.14);
  --max-width:      1200px;
  --section-pad:    5rem 1.5rem;
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== Typography ===== */
h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; line-height: 1.3; }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.35; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.4; }
p  { font-size: clamp(.9rem, 1.5vw, 1.05rem); color: var(--text-secondary); }

/* ===== Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Section ===== */
.section {
  padding: var(--section-pad);
  width: 100%;
}
.section--gray { background: var(--bg-light); }
.section--dark { background: var(--primary-dark); color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 { color: var(--primary-navy); }
.section-header p  { max-width: 640px; margin: .75rem auto 0; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: .6rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .03em;
  transition: all .28s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #a8842e 100%);
  color: var(--white);
  border-color: transparent;
}
.btn--primary:hover {
  background: linear-gradient(135deg, #d4ae56 0%, var(--accent-gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197,160,71,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--primary-navy);
  border-color: var(--primary-navy);
}
.btn--outline:hover {
  background: var(--primary-navy);
  color: var(--white);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn--lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn--sm { padding: .5rem 1.25rem; font-size: .85rem; min-height: 36px; }

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}
.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: .6rem;
}
.card__body { font-size: .95rem; color: var(--text-secondary); }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(197,160,71,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,0.78); max-width: 560px; margin: 0 auto; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  font-size: .82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
  padding: 0;
}
.breadcrumb a { color: rgba(255,255,255,0.65); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent-gold); }
.breadcrumb__sep { opacity: .4; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(197,160,71,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; position: relative; }
.cta-banner p  { color: rgba(255,255,255,0.75); margin-bottom: 2rem; position: relative; }
.cta-banner__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ===== Forms ===== */
.form-group {
  margin-bottom: 1.4rem;
}
.form-label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: .45rem;
}
.form-label .required {
  color: #e0433a;
  font-size: .8rem;
  margin-left: .35rem;
}
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  min-height: 48px;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(2,121,160,.12);
}
.form-control--error { border-color: #e0433a; }
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.form-error {
  display: none;
  font-size: .82rem;
  color: #e0433a;
  margin-top: .3rem;
}
.form-group.has-error .form-error { display: block; }
.form-group.has-error .form-control { border-color: #e0433a; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text-secondary);
}
.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: .1rem;
  accent-color: var(--primary-navy);
  cursor: pointer;
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-gold   { color: var(--accent-gold); }
.text-navy   { color: var(--primary-navy); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root { --section-pad: 3.5rem 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .cta-banner__actions { flex-direction: column; align-items: center; }
  .cta-banner__actions .btn { width: 100%; max-width: 340px; }
}

@media (max-width: 480px) {
  :root { --section-pad: 3rem .875rem; }
}
