@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;900&display=swap');

/* ============================================
   配食のふれ愛 公式サイト - style.css
   Primary: #ee7711 (orange)
   Accent: #06C755 (LINE green)
   ============================================ */

:root {
  --primary: #ee7711;
  --primary-dark: #cc6200;
  --primary-light: #fff3e6;
  --accent: #06C755;
  --accent-dark: #059b42;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --bg: #ffffff;
  --bg-warm: #fffaf5;
  --bg-gray: #f7f5f2;
  --border: #e8e0d8;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --header-height: 80px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* ============================================
   Utility
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section--gray { background: var(--bg-gray); }
.section--warm { background: var(--bg-warm); }
.section--primary { background: var(--primary); color: #fff; }
.section--primary a { color: #fff; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 48px;
  font-size: 1.05rem;
}
.section--primary .section-subtitle { color: rgba(255,255,255,0.85); }

.text-primary { color: var(--primary); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.header-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
}
.header-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.header-logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav a:hover { background: var(--primary-light); color: var(--primary); }
.nav a.active { color: var(--primary); font-weight: 600; }

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-line:hover { background: var(--accent-dark); color: #fff !important; transform: translateY(-1px); }
.btn-line svg { width: 18px; height: 18px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1.05rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff !important; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary) !important;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1rem;
  border: 2px solid var(--primary);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--primary); color: #fff !important; }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary) !important;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1.05rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   Hero
   ============================================ */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--bg-warm) 0%, #fff 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(238,119,17,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  color: var(--primary);
  position: relative;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 2;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-light) 0%, #fde8d0 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
}
.hero-image-placeholder span {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ============================================
   Feature Cards
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.8; }

/* ============================================
   Medical/FHIR Section
   ============================================ */
.medical-section {
  background: linear-gradient(135deg, #1a365d 0%, #2d4a7a 100%);
  color: #fff;
  padding: 80px 0;
}
.medical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.medical-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}
.medical-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.medical-section p { color: rgba(255,255,255,0.85); line-height: 1.9; margin-bottom: 20px; }
.medical-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}
.medical-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}
.medical-features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  background: rgba(6,199,85,0.2);
  color: #06C755;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}
.medical-visual {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.1);
}
.fhir-diagram {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fhir-node {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}
.fhir-node-icon {
  width: 40px;
  height: 40px;
  background: rgba(238,119,17,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.fhir-arrow {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 1.2rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #f08a30 100%);
  color: #fff;
  text-align: center;
}
.cta-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.9); margin-bottom: 32px; font-size: 1.1rem; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #2d2d2d;
  color: #ccc;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #444;
}
.footer-brand h3 { color: #fff; font-size: 1.2rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; color: #aaa; }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #aaa; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
}

/* ============================================
   Page Header (subpages)
   ============================================ */
.page-header {
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 48px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; }
.page-header p { color: var(--text-light); font-size: 1rem; }
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ============================================
   Content Blocks
   ============================================ */
.content-block { max-width: 800px; margin: 0 auto; }
.content-block h2 { font-size: 1.6rem; font-weight: 700; margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.content-block h3 { font-size: 1.2rem; font-weight: 600; margin: 28px 0 12px; }
.content-block p { margin-bottom: 16px; color: var(--text-light); }
.content-block ul, .content-block ol { margin: 0 0 16px 24px; color: var(--text-light); }
.content-block li { margin-bottom: 8px; }

/* ============================================
   Cards Grid
   ============================================ */
.cards-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-light); font-size: 0.9rem; }
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

/* ============================================
   Menu Table
   ============================================ */
.menu-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
}
.menu-table th, .menu-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.menu-table th {
  background: var(--bg-gray);
  font-weight: 600;
  color: var(--text);
}
.menu-table tr:hover td { background: var(--primary-light); }
.menu-price { font-weight: 700; color: var(--primary); white-space: nowrap; }

/* ============================================
   Flow / Steps
   ============================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 80px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.step-number {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  z-index: 1;
}
.step-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.step-content p { color: var(--text-light); }

/* ============================================
   Area Map
   ============================================ */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.area-card:hover { transform: translateY(-2px); }
.area-card-icon { font-size: 2rem; margin-bottom: 8px; }
.area-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.area-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--primary-light); }
.faq-question .arrow {
  transition: transform 0.3s;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ============================================
   Stakeholder Pages (for-xxx)
   ============================================ */
.stakeholder-hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--bg-warm) 0%, #fff 100%);
}
.stakeholder-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.stakeholder-hero h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 16px; }
.stakeholder-hero p { color: var(--text-light); font-size: 1.05rem; line-height: 1.9; }
.stakeholder-visual {
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  font-size: 4rem;
}

/* ============================================
   Company Info
   ============================================ */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
}
.company-table th, .company-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.95rem;
}
.company-table th {
  width: 160px;
  font-weight: 600;
  background: var(--bg-gray);
  color: var(--text);
  white-space: nowrap;
}

/* ============================================
   Contact
   ============================================ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}
.contact-card-icon { font-size: 3rem; margin-bottom: 16px; }
.contact-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.contact-card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; }
.contact-phone {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}

/* ============================================
   Trusted By / Numbers
   ============================================ */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.number-item .num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.section--primary .number-item .num { color: #fff; }
.number-item .label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 8px;
}
.section--primary .number-item .label { color: rgba(255,255,255,0.8); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
  .medical-grid { grid-template-columns: 1fr; }
  .medical-visual { max-width: 500px; margin: 0 auto; }
  .stakeholder-hero-inner { grid-template-columns: 1fr; }
  .stakeholder-visual { max-width: 300px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.6rem; }
  .hero { padding-top: calc(var(--header-height) + 32px); padding-bottom: 48px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .cards-grid-2, .cards-grid-3, .cards-grid-4 { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    z-index: 999;
  }
  .nav.open a { padding: 12px 16px; font-size: 1rem; }
  .hamburger { display: flex; }
  .page-header h1 { font-size: 1.6rem; }
  .step { gap: 16px; }
  .step-number { width: 44px; height: 44px; min-width: 44px; font-size: 1.1rem; }
  .step:not(:last-child)::after { left: 21px; top: 64px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-line, .hero-actions .btn-outline { width: 100%; justify-content: center; }
  .area-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
