@charset "UTF-8";

/* =========================================
   変数の定義（色やフォントの一元管理）
   ========================================= */
:root {
  --primary-color: #2b4f80;   /* メインの濃い青 */
  --accent-color: #3ea0b5;    /* リンクなどのアクセント */
  --bg-color: #f5fafe;        /* 全体の背景色 */
  --text-main: #333333;       /* メイン文字色 */
  --text-sub: #555555;        /* サブ文字色 */
  --font-base: "Yu Gothic", "YuGothic", "Hiragino Sans", "Meiryo", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--bg-color);
  color: var(--text-main);
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

/* フォーム入力時のズーム防止（スマホ対策） */
input, textarea, select, button {
  font-family: inherit;
  font-size: 16px; 
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: #eef6fa; /* 画像読み込み前の背景色 */
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* 左白グラデーション */
.hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0.75) 35%,
    rgba(255,255,255,0.4) 55%,
    rgba(255,255,255,0.0) 75%
  );
}

/* 文字レイヤー */
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  max-width: 520px;
}

.hero-overlay h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.hero-overlay p {
  color: var(--text-sub);
  margin-bottom: 24px;
}

/* CTA Buttons */
.btn-primary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #5fc8ff, #6fd9b8);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow:
    0 8px 20px rgba(0,0,0,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.4);
  transition: opacity 0.3s, transform 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-primary span {
  font-size: 0.9rem;
  opacity: 0.95;
  font-weight: normal;
}

/* MAIN */
main {
  padding: 40px 16px;
}

/* CARD */
.card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  margin: 80px auto;
  max-width: 1000px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.card.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.card-image {
  width: 100%;
  height: auto; /* HTMLのwidth/heightを維持しつつレスポンシブに */
  border-radius: 14px;
  object-fit: cover;
  background: #eef6fa;
}

.card-body h2 {
  margin-top: 0;
  color: var(--primary-color);
}

/* ================= 更新情報エリア ================= */
.news-section {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 16px;
}

.news-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  border: 1px solid #f0f4f8;
}

.news-container h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  color: #888;
  font-weight: bold;
  font-family: monospace, serif;
  margin-right: 16px;
  min-width: 90px;
}

.news-content {
  color: var(--text-main);
  flex: 1;
}

.news-content a {
  color: var(--accent-color);
  text-decoration: underline;
  transition: opacity 0.2s;
}
.news-content a:hover {
  opacity: 0.7;
}

/* バッジ調整：少し大きく見やすく */
.badge-new {
  display: inline-block;
  background: #ff7f50;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
  transform: translateY(-1px);
}

/* APP SECTION */
.app-section {
  background: #fbfaf6;
  border-radius: 24px;
  padding: 64px 32px;
  max-width: 1000px;
  margin: 120px auto;
}

.app-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.app-intro h2 {
  margin-bottom: 16px;
  color: var(--primary-color);
}

.app-intro p {
  color: var(--text-sub);
}

/* FEATURES (Grid 2x2) */
.features {
  display: grid;
  max-width: 860px;
  margin: 0 auto;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.feature-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 16px;
  background: #f0f0f0;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: var(--text-main);
}

.feature-card p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

/* BELIEF SECTION */
.belief-section {
  width: 100vw;
  margin: 120px calc(50% - 50vw);
  padding: 96px 16px;
  background: #ffffff;
  position: relative;
}

.belief-section::before,
.belief-section::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, #e5eef5, transparent);
  position: absolute;
  left: 0;
  right: 0;
}
.belief-section::before { top: 0; }
.belief-section::after { bottom: 0; }

.belief-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.belief-main {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 32px;
  color: var(--text-main);
}

.belief-bridge {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 0.04em;
}

/* APP CTA (A/B) */
.app-cta {
  margin-top: 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.app-cta-sub {
  font-size: 1rem;
  color: var(--accent-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-thickness 0.2s;
}

.app-cta-sub:hover {
  text-decoration-thickness: 2px;
  color: #2c8cb3;
}

/* BACKGROUND LINK */
.background-link {
  text-align: center;
  margin: 80px auto 0;
  font-size: 1rem;
  color: #666;
}

.background-link a {
  color: var(--accent-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s;
}

.background-link a:hover {
  color: #2c8cb3;
}

/* FINAL CTA */
.final-cta {
  text-align: center;
  margin: 120px 0 80px;
}

.final-cta p {
  margin-bottom: 24px;
}

.final-cta span {
  font-size: 1rem;
  color: #666;
  display: block;
  margin-top: 8px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px 16px;
  color: #777;
}

/* MODAL */
.grade-modal {
  position: fixed;
  inset: 0;
  background: rgba(30, 40, 60, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.grade-modal-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 26px 30px 30px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  text-align: left;
}

/* =========================================
   右下固定フィードバックボタン
   ========================================= */
.floating-feedback-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid #e7f0ff;
  border-radius: 16px;
  padding: 10px 14px;
  
  box-shadow: 0 4px 12px rgba(43, 79, 128, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.feedback-icon {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 4px;
}

.feedback-text {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.floating-feedback-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(43, 79, 128, 0.25);
  background: #fdfdfd;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 980px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-overlay {
    left: 5%;
    right: 5%;
  }

  .card,
  .card.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* スマホでの画像高さ制限（必要に応じて） */
  .card-image {
    max-height: 300px; 
    object-fit: cover;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* スマホ最適化 */
@media (max-width: 480px) {
  .hero {
    aspect-ratio: 4 / 3;
    margin-bottom: 24px;
  }
  
  .hero-overlay {
    top: auto;
    bottom: 20px;
    transform: none;
    left: 16px;
    right: 16px;
    width: auto;
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .hero-overlay h1 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .hero-overlay p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .belief-section {
    padding: 72px 16px;
  }
  .belief-main, .belief-bridge {
    font-size: 1.1rem;
  }

  .app-section {
    padding: 48px 20px;
    margin: 80px auto;
  }

  .news-container {
    padding: 20px;
  }
  .news-item {
    flex-direction: column;
    gap: 4px;
  }
  .news-date {
    font-size: 0.85rem;
  }

  .floating-feedback-btn {
    bottom: 16px;
    right: 16px;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
  }
  .feedback-icon {
    font-size: 20px;
  }
  .feedback-text {
    font-size: 9px;
  }
}