/* =========================================
   Reset & Base Styles
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #0056b3;
  --accent-color: #00a8cc;
  --text-main: #333333;
  --bg-body: #f4f7f6;
  --white: #ffffff;
  --footer-bg: #222222;
  --footer-text: #cccccc;
}

body {
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease, color 0.3s ease;
}

ul {
  list-style: none;
}

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

/* =========================================
   Header & Navigation
   ========================================= */
header {
  background-color: var(--white);
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

nav .nav-list a {
  font-weight: bold;
  color: var(--text-main);
  font-size: 0.95rem;
}

nav .nav-list a:hover {
  color: var(--primary-color);
}

/* =========================================
   Hero Section
   ========================================= */
#hero {
  position: relative;
  /* Distinct but gentle gradient */
  background: linear-gradient(135deg, #d0e9fb 0%, #f0f8ff 50%, #d0e9fb 100%);
  background-size: 400% 400%;
  /* Move larger background */
  animation: heroGradientBg 20s ease infinite alternate;
  /* 20s for gentle visibility */

  text-align: center;
  padding: 8rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Pattern Overlay: Geometric Grid */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Soft blue grid */
  background-image:
    linear-gradient(rgba(0, 86, 179, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 86, 179, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

@keyframes heroGradientBg {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

#hero h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2.5rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

#hero h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 1.2rem auto 0;
  border-radius: 2px;
}

#hero p {
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 680px;
  color: #444;
  line-height: 1.9;
  letter-spacing: 0.03em;
  z-index: 1;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  max-width: 320px;
  z-index: 1;
}

.btn-primary,
.btn-secondary {
  display: block;
  text-align: center;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  position: relative;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 86, 179, 0.25);
  filter: brightness(1.05);
  /* Slight brightness boost */
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 86, 179, 0.15);
}

/* =========================================
   Content Sections (Vision / Mission / Values)
   ========================================= */
section {
  padding: 100px 1.5rem;
}

section h2 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

section p {
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
}

/* Lists styling (Cards) */
#mission ul,
#values ul,
#services ul {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

#mission ul li,
#values ul li,
#services ul li {
  margin-bottom: 1.5rem;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--accent-color);
  transition: transform 0.2s ease;
}

#mission ul li:hover,
#values ul li:hover,
#services ul li:hover {
  transform: translateY(-2px);
}

/* =========================================
   Community Section
   ========================================= */
#community {
  background-color: #eef2f5;
  text-align: center;
}

#community p {
  margin-bottom: 1.5rem;
}

#community em {
  font-style: normal;
  color: #777;
  font-size: 0.95rem;
}

/* =========================================
   Footer
   ========================================= */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

footer p {
  margin-bottom: 2rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.footer-nav a {
  color: var(--footer-text);
}

.footer-nav a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* =========================================
   Responsive Breakpoints
   ========================================= */

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {

  /* Header */
  header {
    padding: 1.5rem 2rem;
  }

  nav .nav-list {
    flex-direction: row;
    justify-content: flex-end;
    max-width: 1100px;
    margin: 0 auto;
    gap: 2.5rem;
  }

  /* Hero */
  #hero {
    padding: 8rem 2rem;
  }

  #hero h1 {
    font-size: 2.4rem;
  }

  #hero p {
    font-size: 1.15rem;
  }

  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    max-width: none;
    gap: 1.5rem;
  }

  /* Grids for Values / Services */
  #values ul,
  #services ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  #values ul li,
  #services ul li {
    margin-bottom: 0;
    height: 100%;
  }

  /* Footer */
  .footer-nav {
    flex-direction: row;
    gap: 2rem;
  }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
  body {
    font-size: 16px;
  }

  header {
    padding: 1.5rem 3rem;
  }

  #hero {
    padding: 10rem 2rem;
  }

  #hero h1 {
    font-size: 3rem;
  }

  #hero p {
    font-size: 1.25rem;
    max-width: 750px;
  }

  /* 3-column Grid for Values */
  #values ul {
    grid-template-columns: repeat(3, 1fr);
  }

  section {
    padding: 100px 3rem;
  }
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

/* ===== タイル共通 ===== */
.tile {
  position: relative;
  padding: 2rem;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 有効タイル（ラボ） */
.tile-active:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* =========================================================
   Mission / Values : フラットな白カード（最終整理版）
   415行以降 差替え用
   ========================================================= */

/* Mission / Values の ul 全体 */
#mission ul,
#values ul {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem; /* ← ここで左右の余白を確保 */
}

/* Mission / Values の li */
#mission ul li,
#values ul li {
  /* 見た目 */
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;

  /* 余白（← 詰まり解消の本体） */
  padding: 1.2em 1.5em;

  /* 間隔 */
  margin-bottom: 1.2em;

  /* タイル・クリック感を完全無効化 */
  box-shadow: none;
  transform: none;
  transition: none;
  cursor: default;
}

/* hover 時も完全に変化させない */
#mission ul li:hover,
#values ul li:hover {
  background-color: #ffffff;
  box-shadow: none;
  transform: none;
}

/* ---------------------------------------------------------
   Values をグリッド表示している場合の調整
   --------------------------------------------------------- */

@media (min-width: 768px) {
  #values ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  #values ul li {
    margin-bottom: 0;
  }
}

@media (min-width: 1024px) {
  #values ul {
    grid-template-columns: repeat(3, 1fr);
  }
}
