/* ========= 基本 ========= */

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll; /* ヘッダー横ズレ防止 */
}

body {
  margin: 0;
  background: #ffffff;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Noto Sans JP",
    sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}


/* ========= ヘッダー ========= */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #5b3a1e;
}

.logo-sub {
  font-size: 12px;
  text-align: center;
  color: #6b7280;
}

.global-nav {
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: #374151;
}

.global-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.global-nav a:hover {
  background: #f3f4f6;
}


/* ========= ヒーロー ========= */

.hero {
  padding: 70px 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.hero-text-area {
  flex: 1.1;
  min-width: 0;
}

.hero-image {
  flex: 1;
  min-width: 0;
}

.hero-lead {
  margin: 0 0 10px;
  font-size: 14px;
  color: #6b7280;
}

.hero-title {
  margin: 10px 0 16px;
  font-size: 38px;
  line-height: 1.2;
  color: #0f172a;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-text {
  margin: 0 0 20px;
  color: #374151;
  line-height: 1.8;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 38px;
  line-height: 1.3;
  color: #0f172a;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.btn.primary {
  background: #1e40af;
  color: #ffffff;
  border: none;
}


/* ========= セクション ========= */

.section {
  padding: 60px 0;
}

.section.light {
  background: #fafaf9;
}

.section h2 {
  font-size: 24px;
  margin: 0 0 20px;
  color: #111827;
}

.lead {
  margin: 0 0 24px;
  color: #4b5563;
  line-height: 1.8;
}

.cards {
  display: grid;
  gap: 20px;
  align-items: start;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
}

.card h3 {
  margin: 8px 0;
  color: #111827;
}

.card p {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.8;
}

.meta {
  font-size: 12px;
  color: #6b7280;
}

.card-img {
  width: 100%;
  max-width: 140px;
  margin: 0 auto 12px;
  display: block;
}

.card-img-bottom {
  width: 100%;
  max-width: 90px;
  height: auto;
  margin: 10px auto 0;
  display: block;
}


/* ========= フッター ========= */

.site-footer {
  background: linear-gradient(to top, #6b4423, #8b5a2b);
  color: #ffffff;
  padding: 18px 0;
  text-align: center;
  border-top: none;
}

.small {
  font-size: 13px;
  color: #ffffff;
  margin: 4px 0;
}


/* ========= ヒーロー挿絵：横スクロールカード ========= */

.hero-carousel-wrap {
  position: relative;
}

.hero-fade-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  z-index: 2;
}

.hero-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 16px 10px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-carousel::-webkit-scrollbar {
  display: none;
}

.hero-card {
  flex: 0 0 82%;
  max-width: 380px;
  min-width: 0;
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  margin: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) {
  .hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  }
}

.hero-card img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  color: #ffffff;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0));
}

.hero-cap-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-cap-text {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.95;
}

.hero-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.hero-dot.is-active {
  background: #111827;
  border-color: #111827;
  transform: scale(1.05);
}


/* ========= 参加者の声 ========= */

.voice-carousel-wrap {
  position: relative;
}

.voice-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  padding: 6px 4px 12px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.voice-cards::-webkit-scrollbar {
  display: none;
}

.voice-card {
  flex: 0 0 340px;
  max-width: 340px;
  min-width: 0;
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.voice-text {
  margin: 0 0 28px;
  color: #4b5563;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.03em;
}

.voice-person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.voice-person img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 999px;
  background: #f3f4f6;
  flex-shrink: 0;
}

.voice-meta p {
  margin: 0;
}

.voice-role {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.voice-name {
  font-size: 16px;
  font-weight: 700;
  color: #374151;
}

.voice-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.voice-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.4;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.voice-dot.is-active {
  opacity: 1;
  transform: scale(1.2);
}

@media (hover: hover) {
  .voice-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  }
}


/* ========= 参加者の声：虹カラーの影 ========= */

.voice-card.c1  { box-shadow: 0 10px 24px rgba(239, 68, 68, 0.18); }
.voice-card.c2  { box-shadow: 0 10px 24px rgba(249, 115, 22, 0.18); }
.voice-card.c3  { box-shadow: 0 10px 24px rgba(234, 179, 8, 0.18); }
.voice-card.c4  { box-shadow: 0 10px 24px rgba(132, 204, 22, 0.18); }
.voice-card.c5  { box-shadow: 0 10px 24px rgba(34, 197, 94, 0.18); }
.voice-card.c6  { box-shadow: 0 10px 24px rgba(20, 184, 166, 0.18); }
.voice-card.c7  { box-shadow: 0 10px 24px rgba(59, 130, 246, 0.18); }
.voice-card.c8  { box-shadow: 0 10px 24px rgba(99, 102, 241, 0.18); }
.voice-card.c9  { box-shadow: 0 10px 24px rgba(168, 85, 247, 0.18); }
.voice-card.c10 { box-shadow: 0 10px 24px rgba(236, 72, 153, 0.18); }

@media (hover: hover) {
  .voice-card.c1:hover  { box-shadow: 0 14px 30px rgba(239, 68, 68, 0.28); }
  .voice-card.c2:hover  { box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28); }
  .voice-card.c3:hover  { box-shadow: 0 14px 30px rgba(234, 179, 8, 0.28); }
  .voice-card.c4:hover  { box-shadow: 0 14px 30px rgba(132, 204, 22, 0.28); }
  .voice-card.c5:hover  { box-shadow: 0 14px 30px rgba(34, 197, 94, 0.28); }
  .voice-card.c6:hover  { box-shadow: 0 14px 30px rgba(20, 184, 166, 0.28); }
  .voice-card.c7:hover  { box-shadow: 0 14px 30px rgba(59, 130, 246, 0.28); }
  .voice-card.c8:hover  { box-shadow: 0 14px 30px rgba(99, 102, 241, 0.28); }
  .voice-card.c9:hover  { box-shadow: 0 14px 30px rgba(168, 85, 247, 0.28); }
  .voice-card.c10:hover { box-shadow: 0 14px 30px rgba(236, 72, 153, 0.28); }
}


/* ========= ドット：虹カラー ========= */

.voice-dot:nth-child(1)  { background: #ef4444; }
.voice-dot:nth-child(2)  { background: #f97316; }
.voice-dot:nth-child(3)  { background: #eab308; }
.voice-dot:nth-child(4)  { background: #84cc16; }
.voice-dot:nth-child(5)  { background: #22c55e; }
.voice-dot:nth-child(6)  { background: #14b8a6; }
.voice-dot:nth-child(7)  { background: #3b82f6; }
.voice-dot:nth-child(8)  { background: #6366f1; }
.voice-dot:nth-child(9)  { background: #a855f7; }
.voice-dot:nth-child(10) { background: #ec4899; }


/* =========================
   実績セクション
========================= */

.achievements-section {
  background: #f7f4ec;
}

.achievements-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

.achievements-intro h2 {
  font-size: 32px;
  line-height: 1.5;
  margin: 0 0 18px;
  color: #40392f;
}

.achievements-en {
  margin: 0 0 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #40392f;
}

.achievement-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.achievement-card {
  width: 100%;
  min-height: 360px;
  background: #fff;
  border-radius: 18px;
  padding: 28px 20px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.achievement-label {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.7;
  margin: 0 0 16px;
  color: #5a5348;
}

.achievement-number {
  font-size: 50px;
  font-weight: bold;
  line-height: 1.1;
  margin: 0 0 12px;
  color: #6a6657;
}

.achievement-number span {
  font-size: 18px;
  margin-left: 6px;
  font-weight: 600;
}

.achievement-illust {
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 8px 0 12px;
}

.achievement-illust img {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
  display: block;
}

.achievement-note {
  font-size: 12px;
  color: #7d766a;
  margin: 0;
  line-height: 1.6;
}


/* ===== 参加ページ専用 ===== */

.join-intro {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 18px;
  color: #444;
}

.join-note {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 28px;
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

.join-actions .action-btn {
  min-width: 220px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  transition: all 0.3s ease;
  min-width: 220px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.action-btn-main {
  background: linear-gradient(135deg, #7dbb7d, #5e9d71);
  color: #fff;
}

.action-btn-main::before {
  content: "📄 ";
}

.action-btn-main:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.action-btn-sub {
  background: #7fb59a;
  color: #fff;
}

.action-btn-sub::before {
  content: "📘 ";
}

.action-btn-outline {
  background: #fff;
  color: #5e7f62;
  border: 2px solid #b9d3bb;
}

.action-btn-outline:hover {
  background: #f5fbf5;
  transform: translateY(-2px);
}

.join-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  padding: 20px;
  height: auto;
  min-height: 0;
}

.join-card h3 {
  margin-bottom: 10px;
}

.join-card p {
  margin-bottom: 8px;
}


/* ===== joinページだけの調整 ===== */

.join-page .join-intro {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 18px;
  color: #444;
}

.join-page .join-note {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 28px;
}

.join-page .join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

.join-page .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
}

.join-page .action-btn-main {
  background: #5e9d71;
  color: #fff;
}

.join-page .action-btn-main::before {
  content: "📄 ";
}

.join-page .action-btn-sub {
  background: #7fb59a;
  color: #fff;
}

.join-page .action-btn-sub::before {
  content: "📘 ";
}

.join-page .action-btn-outline {
  background: #fff;
  color: #5e7f62;
  border: 2px solid #7fb59a;
}

.join-page .join-cards {
  align-items: flex-start;
}

.join-page .join-card {
  text-align: center;
  padding: 20px;
}

.join-page .join-card p {
  margin-bottom: 8px;
}

.join-page .card-img-bottom {
  width: 100%;
  max-width: 90px;
  height: auto;
  display: block;
  margin: 10px auto 0;
}


/* =========================
   join.html 専用
   参加の流れ
========================= */

body.join-page .join-flow-list {
  display: grid;
  grid-template-columns: repeat(3, 180px);
  justify-content: center;
  gap: 18px;
  align-items: stretch;
  margin-top: 24px;
}

body.join-page .join-flow-item {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 180px;
  padding: 14px 12px;
  box-sizing: border-box;
  text-align: center;
}

body.join-page .join-flow-step {
  font-size: 12px;
  margin-bottom: 8px;
}

body.join-page .join-flow-item h3 {
  font-size: 16px;
  margin: 0 0 10px;
  line-height: 1.4;
}

body.join-page .join-flow-item p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

body.join-page .join-flow-image {
  display: block;
  width: 55px;
  max-width: 100%;
  height: auto;
  margin: auto auto 0;
}


/* ========= レスポンシブ ========= */

@media (min-width: 900px) {
  .hero-card {
    flex: 0 0 320px;
    max-width: 320px;
  }

  .hero-fade-right {
    width: 64px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* タブレット */
@media (max-width: 1000px) {
  .achievements-layout {
    grid-template-columns: 1fr;
  }

  .achievement-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-line {
    white-space: normal;
  }

  .hero-title,
  .hero h1 {
    font-size: 30px;
  }

  .voice-cards {
    gap: 16px;
    padding: 6px 16px 10px;
  }

  .voice-card {
    flex: 0 0 80%;
    max-width: none;
  }

  .voice-text {
    font-size: 15px;
  }

  .voice-person img {
    width: 72px;
    height: 72px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  body.join-page .join-flow-list {
    grid-template-columns: repeat(3, 170px);
  }

  body.join-page .join-flow-item {
    width: 170px;
    min-height: 240px;
  }

  body.join-page .join-flow-image {
    width: 50px;
  }
}

/* スマホ */
@media (max-width: 768px) {
  .achievements-intro h2 {
    font-size: 30px;
  }

  .achievement-cards {
    grid-template-columns: 1fr;
  }

  .achievement-card {
    min-height: auto;
  }

  .achievement-number {
    font-size: 46px;
  }

  body.join-page .join-flow-list {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  body.join-page .join-flow-item {
    width: 84%;
    max-width: 260px;
    min-height: 220px;
  }

  body.join-page .join-flow-image {
    width: 48px;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .global-nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero {
    padding: 48px 0;
  }

  .hero-title,
  .hero h1 {
    font-size: 27px;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-card {
    flex: 0 0 86%;
  }

  .actions {
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 48px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card,
  .hero-dot,
  .voice-card,
  .voice-dot,
  .btn,
  .global-nav a {
    transition: none;
  }

  .hero-carousel,
  .voice-cards {
    scroll-behavior: auto;
  }
}

/* ===== 理念ページ ===== */

.narrow {
  max-width: 860px;
  margin: 0 auto;
}

.philosophy-lead {
  padding: 90px 0 60px;
  background: #fffdf9;
}

.page-title {
  font-size: 2.4rem;
  margin-bottom: 32px;
  text-align: center;
  color: #2f3b2f;
  letter-spacing: 0.08em;
}

.lead-text {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 2;
  color: #3d4a3d;
  margin-bottom: 28px;
  text-align: left;
}

.philosophy-lead p {
  font-size: 1.05rem;
  line-height: 2.2;
  color: #444;
  text-align: left;
  margin-bottom: 20px;
}

.back-home {
  margin-top: 36px;
}

.back-home a {
  color: #6b7a55;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}

.back-home a:hover {
  border-bottom: 1px solid #6b7a55;
}

.section-divider {
  width: 88%;
  max-width: 1000px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid #ddd8cf;
}

.philosophy-section {
  padding: 80px 0;
  background: #ffffff;
}

.philosophy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.philosophy-text {
  flex: 1 1 520px;
}

.section-title {
  font-size: 1.9rem;
  margin-bottom: 28px;
  color: #2f3b2f;
  position: relative;
  padding-left: 18px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 6px;
  height: 1.4em;
  background: #a8b891;
  border-radius: 3px;
}

.philosophy-text p {
  font-size: 1.03rem;
  line-height: 2.2;
  color: #444;
  margin-bottom: 18px;
  text-align: left;
}

.philosophy-image {
  flex: 1 1 300px;
  text-align: center;
}

.philosophy-image img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.philosophy-declaration {
  padding: 90px 0;
  background: linear-gradient(to bottom, #f7f3eb, #fdfaf5);
  text-align: center;
}

.declaration-title {
  font-size: 2rem;
  line-height: 1.8;
  color: #2f3b2f;
  margin-bottom: 28px;
}

.declaration-text {
  max-width: 760px;
  margin: 0 auto 20px;
  font-size: 1.05rem;
  line-height: 2.2;
  color: #444;
}

.declaration-image {
  margin-top: 38px;
}

.declaration-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .philosophy-lead {
    padding: 70px 0 45px;
  }

  .page-title {
    font-size: 2rem;
    margin-bottom: 24px;
  }

  .lead-text {
    font-size: 1.15rem;
    line-height: 1.9;
  }

  .philosophy-lead p,
  .philosophy-text p,
  .declaration-text {
    font-size: 1rem;
    line-height: 2;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .declaration-title {
    font-size: 1.5rem;
    line-height: 1.7;
  }

  .philosophy-card {
    flex-direction: column;
    gap: 30px;
  }

  .philosophy-image img,
  .declaration-image img {
    max-width: 100%;
  }
}

/* ===== 理念ページ全体 ===== */
/* ===== 理念ページ：トップページ寄せ ===== */

.philosophy-page,
.philosophy-origin,
.philosophy-message {
  background: transparent;
}

.philosophy-page {
  padding-top: 80px;
  padding-bottom: 40px;
}

.philosophy-page p {
  text-align: left;
  margin-bottom: 20px;
}

.philosophy-origin {
  padding-top: 30px;
  padding-bottom: 30px;
}

.philosophy-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.philosophy-text {
  flex: 1 1 540px;
}

.philosophy-text p {
  text-align: left;
  margin-bottom: 18px;
}

.philosophy-image {
  flex: 1 1 280px;
  text-align: center;
}

.philosophy-image img {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 12px;
}

.philosophy-message {
  padding-top: 40px;
  padding-bottom: 90px;
}

.center-title {
  text-align: center;
  padding-left: 0;
}

.center-title::before {
  display: none;
}

.message-text {
  max-width: 680px;
  margin: 0 auto 20px;
  text-align: center;
}

.declaration-image {
  margin-top: 36px;
}

.declaration-image img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 14px;
}

.back-home {
  margin-top: 36px;
  text-align: center;
}

.back-home a {
  color: #6b7a55;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}

.back-home a:hover {
  border-bottom: 1px solid #6b7a55;
}

/* スマホ */
@media (max-width: 768px) {
  .philosophy-page {
    padding-top: 64px;
    padding-bottom: 28px;
  }

  .philosophy-origin,
  .philosophy-message {
    padding-top: 24px;
    padding-bottom: 64px;
  }

  .philosophy-block {
    flex-direction: column;
    gap: 28px;
  }

  .message-text {
    text-align: left;
  }

  .center-title {
    text-align: left;
  }
}