/* ===== Base ===== */
:root {
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-text: #333;
  --color-text-light: #666;
  --color-white: #fff;
  --color-accent: #e85d04;
  --color-accent-hover: #d45303;
  --color-line: #06c755;
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: min(92%, 1200px);
  --header-height: 72px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  padding: 12px 14px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-list > li > a:hover {
  color: var(--color-accent);
}

.nav-list .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 8px 0;
  background: var(--color-surface);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav-list .has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-list .dropdown a {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  transition: background var(--transition), color var(--transition);
}

.nav-list .dropdown a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--color-white);
}

.btn-contact-header {
  margin-left: 16px;
  padding: 10px 20px;
  background: var(--color-accent);
  color: var(--color-white) !important;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background var(--transition);
}

.btn-contact-header:hover {
  background: var(--color-accent-hover);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-white);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 40px) 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

#hero-bg canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

#hero-bg #controls {
  margin: 20px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 20px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 100px;
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.hero-desc {
  margin: 0 0 32px;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background var(--transition), transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

/* ヒーロー（TOP）のメインボタン - イエロー→オレンジアニメーション */
.hero .btn.btn-primary {
  min-width: 120px;
  min-height: 56px;
  line-height: 1.4;
  padding: 18px 36px;
  background: #F7DD33;
  color: #000000;
  font-size: 1.05rem;
  font-weight: 700;
  border: 4px solid #F7DD33;
  border-radius: 10px;
  box-shadow: 1px 1px 6px 0 #ffffff inset;
  text-shadow: 0 1px 1px #ADADAD;
  transition: all 0.5s ease;
}

.hero .btn.btn-primary:hover {
  background: #FFAA00;
  color: #ffffff;
  border-color: #FFAA00;
  box-shadow: none;
  text-shadow: none;
}

/* TOPと同じボタンスタイル（他ページでも使用） */
.btn-hero-style {
  display: inline-block;
  min-width: 120px;
  padding: 18px 36px;
  background: #F7DD33 !important;
  color: #000000 !important;
  font-size: 1.05rem;
  font-weight: 700;
  border: 4px solid #F7DD33;
  border-radius: 10px;
  box-shadow: 1px 1px 6px 0 #ffffff inset;
  text-shadow: 0 1px 1px #ADADAD;
  transition: all 0.5s ease;
  text-decoration: none;
}

.btn-hero-style:hover {
  background: #FFAA00 !important;
  color: #ffffff !important;
  border-color: #FFAA00;
  box-shadow: none;
  text-shadow: none;
}

.btn-line {
  background: var(--color-line);
  color: var(--color-white);
}

.btn-line:hover {
  background: #05b04c;
}

/* ===== Section common ===== */
.section {
  padding: 80px 0;
}

.section-title {
  margin: 0 0 16px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-text-light);
  text-align: center;
}

.section-lead {
  max-width: 640px;
  margin: 0 auto 56px;
  font-size: 1rem;
  color: var(--color-text);
  text-align: center;
  line-height: 1.8;
}

.section-more {
  text-align: center;
  margin: 32px 0 0;
}

.section-more a {
  color: var(--color-accent);
  font-weight: 600;
}

.section-more a:hover {
  text-decoration: underline;
}

/* ===== Service ===== */
.service {
  background: #f8f8f8;
}

.service-block {
  margin-bottom: 64px;
}

.service-block:last-of-type {
  margin-bottom: 48px;
}

.service-block-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
}

.service-block-desc {
  margin: 0 auto 24px;
  max-width: 720px;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.card {
  display: block;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.card-img {
  aspect-ratio: 400 / 250;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 縦長のIP画像を枠内に収める */
.card-img-ip img {
  object-fit: contain;
  max-height: 100%;
  width: auto;
  margin: 0 auto;
}

.card-wide {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.card-wide .card-img {
  aspect-ratio: 800 / 300;
  background: #f0f0f0;
}

.card-wide .card-img.card-img-sugoroku {
  background: #FFF9EF;
}

.card-wide .card-img img {
  object-fit: contain;
}

.card-label {
  margin: 0;
  padding: 18px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.card-wide .card-label {
  padding: 24px;
  font-size: 1rem;
}

.cta-box {
  padding: 48px;
  background: var(--color-bg);
  border-radius: 16px;
  text-align: center;
  color: var(--color-white);
}

.cta-box-title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
}

.cta-box-desc {
  margin: 0 0 28px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ===== About ===== */
.about {
  background: var(--color-white);
}

.about-catch {
  margin: 0 0 40px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.about-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.about-img img {
  width: 100%;
  height: auto;
}

.about-text p {
  margin: 0 0 1.2em;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.9;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ===== Blog ===== */
.blog {
  background: #f8f8f8;
}

/* ===== 運営情報 ===== */
.overview {
  background: var(--color-white);
}

.overview-table-wrap {
  max-width: 800px;
  margin: 0 auto;
  overflow-x: auto;
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.overview-table th,
.overview-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e8e8e8;
}

.overview-table th {
  width: 120px;
  font-weight: 600;
  color: var(--color-text);
  background: #f8f8f8;
}

.overview-table td {
  color: var(--color-text-light);
  line-height: 1.7;
}

.overview-table a {
  color: var(--color-accent);
}

.overview-table a:hover {
  text-decoration: underline;
}

.overview-table tr:last-child th,
.overview-table tr:last-child td {
  border-bottom: none;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-item {
  display: block;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.blog-thumb {
  aspect-ratio: 400 / 250;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-title {
  margin: 0;
  padding: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== News ===== */
.news-list {
  max-width: 640px;
  margin: 0 auto;
  border-top: 1px solid #e0e0e0;
}

.news-list li {
  border-bottom: 1px solid #e0e0e0;
}

.news-list a {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  transition: background var(--transition);
}

.news-list a:hover {
  background: rgba(0,0,0,0.02);
}

.news-list time {
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.news-list span {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* ===== ニュース一覧・詳細ページ ===== */
.page-header {
  padding: calc(var(--header-height) + 48px) 0 32px;
  background: #f8f8f8;
}

.page-back {
  margin: 0 0 16px;
  font-size: 0.9rem;
}

.page-back a {
  color: var(--color-accent);
}

.page-back a:hover {
  text-decoration: underline;
}

.page-back-bottom {
  margin-top: 32px;
  margin-bottom: 0;
  text-align: center;
}

.page-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
}

.page-lead {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.news-page .news-list {
  border-top: none;
}

.news-list-page a {
  padding: 20px 0;
}

.news-detail-back {
  margin: 0 0 16px;
  font-size: 0.9rem;
}

.news-detail-back a {
  color: var(--color-accent);
}

.news-detail-back a:hover {
  text-decoration: underline;
}

.news-detail-date {
  display: block;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.news-detail-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
}

.news-detail {
  padding-top: 24px;
}

.news-detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.news-detail-main {
  min-width: 0;
}

.news-detail-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 24px;
  background: #f5f5f5;
  border-radius: 12px;
}

.news-sidebar-title {
  margin: 0 0 16px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
}

.news-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e0e0e0;
}

.news-sidebar-list li {
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
}

.news-sidebar-list li a {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 4px;
}

.news-sidebar-list li a:hover {
  color: var(--color-accent);
}

.news-sidebar-list li a.current {
  font-weight: 600;
  color: var(--color-accent);
}

.news-sidebar-list li time {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.news-sidebar-more {
  margin: 16px 0 0;
  font-size: 0.875rem;
}

.news-sidebar-more a {
  color: var(--color-accent);
  font-weight: 500;
}

.news-sidebar-more a:hover {
  text-decoration: underline;
}

.news-detail-body {
  max-width: none;
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text);
}

.news-detail-body p {
  margin: 0 0 1.5em;
}

.news-detail-body p:last-child {
  margin-bottom: 0;
}

.news-detail-body h2 {
  margin: 1.5em 0 0.5em;
  padding: 0.5em 0.75em;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  background: #f0f0f0;
  border-left: 4px solid var(--color-accent);
}

.news-detail-body h2:first-child {
  margin-top: 0;
}

.news-detail-body h3 {
  margin: 1.25em 0 0.5em;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.news-detail-body ul {
  margin: 0 0 1em 1.5em;
  padding: 0;
  list-style: disc;
}

.news-detail-body li {
  margin-bottom: 0.25em;
}

.blog-toc {
  margin-bottom: 2em;
  padding: 1.25em 1.5em;
  background: #f5f5f5;
  border-radius: 8px;
}

.blog-toc-title {
  margin: 0 0 0.75em;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.blog-toc-list {
  margin: 0;
  padding-left: 1.5em;
  list-style: decimal;
}

.blog-toc-list li {
  margin-bottom: 0.35em;
}

.blog-toc-list a {
  color: var(--color-accent);
}

.blog-toc-list a:hover {
  text-decoration: underline;
}

.news-detail-body .link-external {
  color: var(--color-accent);
  font-weight: 500;
}

.news-detail-body .link-external:hover {
  text-decoration: underline;
}

.news-detail-body .news-detail-img {
  margin: 1em 0;
}

.news-detail-body .news-detail-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  vertical-align: top;
}

.news-detail-body .news-detail-img-row {
  display: flex;
  gap: 20px;
  margin: 1.5em 0;
}

.news-detail-body .news-detail-img-row .news-detail-img-wrap {
  flex: 1;
  margin: 0;
  min-width: 0;
}

.news-detail-body .news-detail-img-row .news-detail-img {
  margin: 0;
}

.news-detail-body .news-detail-img-caption {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-align: center;
  line-height: 1.5;
}

.news-detail-btn-wrap {
  margin: 2em 0 0;
  text-align: center;
}

.news-detail-btn-wrap .news-detail-back-bottom {
  margin: 1.5em 0 0;
  font-size: 0.9rem;
}

.news-detail-btn-wrap .news-detail-back-bottom a {
  color: var(--color-accent);
}

.news-detail-btn-wrap .news-detail-back-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .news-detail-body .news-detail-img-row {
    flex-direction: column;
  }
}

/* ===== プライバシーポリシー・規約ページ ===== */
.legal-page {
  padding-top: 0;
}

.legal-page .container {
  margin-top: 16px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text);
}

.legal-content .legal-intro {
  margin-bottom: 2em;
}

.legal-content h2 {
  margin: 2em 0 0.75em;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin: 0 0 1em;
}

.legal-content ul {
  margin: 0 0 1em 1.5em;
  padding: 0;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 0.25em;
}

.legal-content a {
  color: var(--color-accent);
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-content .legal-date {
  margin-top: 2em;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.legal-content .page-back-bottom {
  margin-top: 2.5em;
  text-align: center;
}

/* ===== サービス詳細ページ ===== */
.service-detail {
  padding-top: 0;
}

.service-detail .container {
  margin-top: 24px;
}

.service-detail-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text);
}

.service-detail-content p {
  margin: 0 0 1em;
}

.service-detail-content h2 {
  margin: 1.75em 0 0.5em;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.service-detail-content ul {
  margin: 0 0 1em 1.5em;
  padding: 0;
  list-style: disc;
}

.service-detail-content li {
  margin-bottom: 0.25em;
}

.service-detail-content .service-detail-cta {
  margin-top: 2em;
  margin-bottom: 2em;
  text-align: center;
}

.service-detail-content .page-back-bottom {
  margin-top: 0;
  text-align: center;
}

.service-detail-content a {
  color: var(--color-accent);
}

.service-detail-content a:hover {
  text-decoration: underline;
}

/* ===== Footer CTA ===== */
.footer-cta {
  padding: 40px 0;
  background: var(--color-surface);
}

.footer-cta .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-cta-link {
  padding: 14px 28px;
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background var(--transition);
}

.footer-cta-link:hover {
  background: rgba(255,255,255,0.14);
}

.footer-cta-link-line {
  background: #06c755;
  color: var(--color-white);
}

.footer-cta-link-line:hover {
  background: #05b04c;
}

/* ===== お問い合わせフォーム ===== */
.contact-form {
  background: #f8f8f8;
}

.contact-form .form {
  max-width: 640px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-label .required {
  margin-left: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input::placeholder {
  color: #999;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

.form-submit {
  margin: 32px 0 0;
  text-align: center;
}

.btn-lg {
  padding: 16px 48px;
  font-size: 1.05rem;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0 24px;
  background: var(--color-bg);
  color: rgba(255,255,255,0.8);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.05em;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-copy {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-img {
    order: -1;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list > li > a {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-list .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255,255,255,0.04);
    border-radius: 0;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease;
  }

  .nav-list .has-dropdown.is-open .dropdown {
    max-height: 400px;
    padding: 8px 0;
  }

  .nav-list .dropdown a {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .btn-contact-header {
    margin: 24px 0 0;
    display: block;
    text-align: center;
  }

  .hero {
    min-height: 70vh;
    padding: calc(var(--header-height) + 24px) 20px 40px;
  }

  .section {
    padding: 56px 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .blog-list {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 32px 24px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .footer-cta .container {
    flex-direction: column;
  }

  .footer-cta-link {
    display: block;
    text-align: center;
  }

  .news-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .news-detail-sidebar {
    position: static;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .section-lead {
    margin-bottom: 40px;
  }
}

/* ===== ライトボックス（画像拡大） ===== */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: pointer;
}

#lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

#lightbox .lightbox-inner {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

#lightbox .lightbox-inner img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

#lightbox .lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 28px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 1;
}

#lightbox .lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.news-detail-body img,
.service-detail-content img,
.legal-content img {
  cursor: pointer;
}
