/* 合同会社快活時間 企業HP 共通スタイル */
:root {
  --blue: #1a6fb5;
  --blue-dark: #124f83;
  --blue-pale: #eaf3fa;
  --accent: #2ba8e0;
  --text: #2b3440;
  --text-light: #5f6b78;
  --border: #dde5ec;
  --bg: #ffffff;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(18, 79, 131, 0.08);
  --max-width: 1040px;
}

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

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
}

a { color: var(--blue); }

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

/* ヘッダー */
header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 rgba(18, 79, 131, 0.08);
}

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

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-decoration: none;
  letter-spacing: 0.04em;
}

nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover { background: var(--blue-pale); color: var(--blue); }
nav a.current { background: var(--blue-pale); color: var(--blue); font-weight: 700; }

/* ヒーロー */
.hero {
  background:
    radial-gradient(ellipse 800px 500px at 85% 20%, rgba(43, 168, 224, 0.14), transparent),
    radial-gradient(ellipse 600px 400px at 10% 90%, rgba(26, 111, 181, 0.10), transparent),
    linear-gradient(165deg, #f2f9fe 0%, #eaf3fa 60%, #f7fbfe 100%);
  text-align: center;
  padding: 96px 24px;
}

.hero h1 {
  font-size: 2.4rem;
  color: var(--blue-dark);
  letter-spacing: 0.05em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero p {
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: left;
}

.hero-flex .hero-text { flex: 1; max-width: 500px; }
.hero-flex p { margin: 0 0 36px; }

.hero-img {
  width: 360px;
  max-width: 82vw;
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(18, 79, 131, 0.18);
}

@media (max-width: 760px) {
  .hero-flex { flex-direction: column; text-align: center; gap: 36px; }
  .hero h1 { font-size: 1.6rem; }
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 15px 44px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn:hover { transform: translateY(-2px); opacity: 0.92; }

.btn-primary {
  background: #bf0000; /* 楽天レッド */
  color: #fff;
  box-shadow: 0 6px 20px rgba(191, 0, 0, 0.25);
}

.btn-outline {
  border: 2px solid var(--blue);
  color: var(--blue);
  background: #fff;
}

/* セクション */
section { padding: 80px 0; }

section h2 {
  font-size: 1.7rem;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: 0.08em;
}

.section-alt { background: var(--blue-pale); }

/* カード */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(18, 79, 131, 0.14);
}

.card h3 {
  color: var(--blue);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

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

.card-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 12px;
}

/* 写真+テキストの2カラムセクション */
.photo-section {
  display: flex;
  align-items: center;
  gap: 56px;
}

.photo-section img {
  width: 46%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.photo-section .photo-text { flex: 1; }

.photo-section h2 { text-align: left; margin-bottom: 24px; }

.photo-section p { color: var(--text-light); margin-bottom: 16px; }

@media (max-width: 760px) {
  .photo-section { flex-direction: column; }
  .photo-section img { width: 100%; }
  .photo-section h2 { text-align: center; }
}

/* テーブル(会社概要) */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.info-table th, .info-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

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

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

/* 本文ページ共通 */
.page-body h2 {
  text-align: left;
  font-size: 1.2rem;
  margin: 40px 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--blue);
}

.page-body p, .page-body ul { margin-bottom: 16px; }
.page-body ul { padding-left: 24px; }

/* フッター */
footer {
  background: var(--blue-dark);
  color: #cfe2f1;
  padding: 48px 0 28px;
  margin-top: 80px;
  font-size: 0.9rem;
}

footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin-bottom: 28px;
}

.copyright { text-align: center; font-size: 0.8rem; color: #9dbdd8; }

/* スマホ対応 */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; height: auto; padding: 12px 0; gap: 8px; }
  nav ul { gap: 4px; flex-wrap: wrap; justify-content: center; }
  .hero { padding: 64px 24px; }
  section { padding: 56px 0; }
  .info-table th { width: 36%; padding: 16px 14px; }
  .info-table td { padding: 16px 14px; }
}
