/*
Theme Name: DES Corporate Theme
Description: A modern corporate WordPress theme based on custom design wireframe
Author: DES Team
Version: 1.0.0
Text Domain: des-theme
*/

/* Non-logged-in user specific styles */
body:not(.logged-in) .main-content {
  margin-top: 80px !important;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles - 修正版 */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid #e5e7eb;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  min-height: 70px;
}

.site-branding {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.logo-image {
  height: 44px;
  width: auto;
  transition: transform 0.3s ease;
  object-fit: contain;
}

.logo-image:hover {
  transform: scale(1.05);
}

.company-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.main-navigation {
  display: flex;
  align-items: center;
}

.primary-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.primary-menu li {
  margin: 0;
}

.primary-menu a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.primary-menu a:hover {
  color: #2563eb;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .header-content {
    padding: 0.5rem 0;
    min-height: 60px;
  }

  .logo-image {
    height: 35px;
  }

  .company-name {
    font-size: 1rem;
  }

  .primary-menu {
    gap: 1rem;
  }

  .primary-menu a {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    min-height: 55px;
  }

  .logo-image {
    height: 30px;
  }

  .company-name {
    font-size: 0.9rem;
  }

  .brand-link {
    gap: 8px;
  }

  .primary-menu {
    gap: 0.5rem;
  }

  .primary-menu a {
    font-size: 0.8rem;
  }
}

/* Main Content */
.main-content {
  margin-top: 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Simple Landing Page Styles */
.simple-landing-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #ffffff;
}

.simple-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.simple-content {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.simple-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 3rem;
  line-height: 1.4;
  text-align: center;
}

.simple-title .title-line-1,
.simple-title .title-line-2 {
  display: block;
  margin-bottom: 1rem;
}

.simple-title .title-line-2 {
  margin-bottom: 0;
}

.simple-qr-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.simple-qr-code {
  width: 250px;
  height: 250px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Design for Simple Landing */
@media (max-width: 768px) {
  .simple-title {
    font-size: 2rem;
  }

  .simple-qr-code {
    width: 200px;
    height: 200px;
  }

  .simple-hero {
    padding: 1rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .logo-image {
    height: 35px;
  }
}

@media (max-width: 480px) {
  .simple-title {
    font-size: 1.5rem;
  }

  .simple-qr-code {
    width: 180px;
    height: 180px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .logo-image {
    height: 30px;
  }
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: #f8f9fa;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: #2563eb;
  margin: 0 auto 1.5rem;
}

/* Story Sections (used for both reasons and company page) */
.story-sections {
  max-width: 1000px;
  margin: 0 auto;
}

.story-section {
  margin-bottom: 4rem;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.story-title {
  color: #2563eb;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.story-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.story-text p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.story-text p:last-child {
  margin-bottom: 0;
}

.story-image {
  display: flex;
  justify-content: center;
}

.placeholder-image {
  width: 200px;
  height: 150px;
  background: #e5e7eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 1rem;
}

/* Reasons Section - New Layout */
.reasons-sections {
  max-width: 1200px;
  margin: 0 auto;
}

.reason-section {
  margin-bottom: 4rem;
}

.reason-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 300px;
}

.reason-left {
  /* Text on left, image on right */
}

.reason-right {
  /* Image on left, text on right */
}

.reason-text {
  padding: 2rem;
}

.reason-title {
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.reason-subtitle {
  color: #2563eb;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.reason-text p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.reason-text p:last-child {
  margin-bottom: 0;
}

.reason-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.reason-image .placeholder-image {
  width: 100%;
  max-width: 400px;
  height: 250px;
  background: #e5e7eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 1.2rem;
}

/* Responsive Design for Reasons */
@media (max-width: 768px) {
  .reason-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .reason-text {
    padding: 1rem;
  }

  .reason-title {
    font-size: 1.3rem;
  }

  .reason-subtitle {
    font-size: 1.1rem;
  }

  .reason-image .placeholder-image {
    max-width: 300px;
    height: 200px;
  }
}

/* Schools Preview Section */
.schools-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.school-preview-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.school-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.school-preview-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.school-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.school-preview-card:hover .school-preview-image img {
  transform: scale(1.05);
}

.school-placeholder {
  width: 100%;
  height: 100%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 1.1rem;
}

.school-preview-content {
  padding: 1.5rem;
}

.school-preview-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.school-preview-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.school-preview-name a:hover {
  color: #2563eb;
}

.school-preview-details {
  margin-bottom: 1rem;
}

.school-detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.detail-icon {
  font-size: 1rem;
}

.school-preview-excerpt {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.school-preview-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.school-preview-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.school-preview-btn-primary {
  background: #2563eb;
  color: #fff;
  border: 2px solid #2563eb;
}

.school-preview-btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.school-preview-btn-secondary {
  background: #fff;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.school-preview-btn-secondary:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* Schools View All Button - 会社概要ボタンと同じスタイル */
.schools-view-all {
  text-align: center;
  margin-top: 2rem;
}

/* 既存の.schools-view-all-btnスタイルは削除し、.company-link-btnを使用 */

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  background: #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: #9ca3af;
  font-size: 0.8rem;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-stars {
  color: #fbbf24;
  margin-top: 0.25rem;
}

.testimonial-content {
  color: #666;
  font-style: italic;
}

/* Company Section */
.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.company-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.company-details {
  color: #666;
}

.company-details div {
  margin-bottom: 0.75rem;
}

.company-details strong {
  color: #333;
}

/* Contact Section - LINE QR Code Style */
.line-contact-section {
  max-width: 600px;
  margin: 0 auto;
}

.line-qr-card {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.line-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.line-qr-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.line-qr-card > p {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.qr-code-wrapper {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

.line-qr-code {
  width: 200px;
  height: 200px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}

.line-instructions {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.instruction-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #555;
}

.step-number {
  background: #00c300;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.contact-info-alternative {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.contact-info-alternative p {
  margin-bottom: 0.5rem;
  color: #666;
}

.phone-number {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2563eb !important;
  margin: 1rem 0 !important;
}

.business-hours {
  font-size: 0.9rem;
  color: #888 !important;
}

/* Footer */
.site-footer {
  background: #1f2937;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
}

.footer-logo {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-copyright {
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }

  .story-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .story-section {
    padding: 1.5rem;
  }

  .placeholder-image {
    width: 100%;
    max-width: 300px;
    height: 200px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 2rem;
  }
}

/* School Listing Styles */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.school-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.school-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.school-image {
  width: 100%;
  height: 200px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 1.1rem;
  overflow: hidden;
}

.school-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-content {
  padding: 1.5rem;
}

.school-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.school-name a {
  color: inherit;
  text-decoration: none;
}

.school-name a:hover {
  color: #2563eb;
}

.school-details {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.school-details div {
  margin-bottom: 0.25rem;
}

.school-excerpt {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.school-actions {
  display: flex;
  gap: 0.5rem;
}

.school-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #2563eb;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.school-btn-primary {
  background: #2563eb;
  color: #fff;
}

.school-btn-primary:hover {
  background: #1d4ed8;
  color: #fff;
}

.school-btn-secondary {
  background: #fff;
  color: #2563eb;
}

.school-btn-secondary:hover {
  background: #2563eb;
  color: #fff;
}

.page-header {
  background: #f8f9fa;
  padding: 3rem 0;
  margin-bottom: 3rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
}

.page-description {
  text-align: center;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive adjustments for schools */
@media (max-width: 768px) {
  .schools-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 2rem;
  }
}

/* Company Overview Page Styles */
.company-link-btn {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.company-link-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  color: #fff;
}

.company-header {
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wave-background {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 120px;
  transform: rotateY(180deg);
}

.company-header-content {
  text-align: center;
  z-index: 2;
  position: relative;
}

.company-header-en {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.company-header-jp {
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.company-info-section {
  padding: 4rem 0;
  background: #fff;
}

.company-table-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.company-info-table {
  width: 100%;
  border-collapse: collapse;
}

.company-info-table th {
  background: #f8f9fa;
  color: #2563eb;
  font-weight: 600;
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  width: 200px;
  vertical-align: top;
}

.company-info-table td {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  line-height: 1.6;
  color: #333;
}

.company-info-table tr:last-child th,
.company-info-table tr:last-child td {
  border-bottom: none;
}

.address-section {
  line-height: 1.8;
}

.address-note {
  color: #666;
  font-size: 0.9rem;
}

.info-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.info-link:hover {
  text-decoration: underline;
}

.representative-message-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.message-header {
  text-align: center;
  margin-bottom: 3rem;
}

.message-label {
  background: #2563eb;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.message-content {
  text-align: center;
  margin-bottom: 4rem;
}

.message-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.representative-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.representative-title {
  color: #666;
  font-size: 0.9rem;
}

.representative-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

/* New Company Page Styles */
.company-header-new {
  background: linear-gradient(135deg, #87ceeb 0%, #5fb3d4 100%);
  position: relative;
  padding: 4rem 0;
  text-align: center;
  overflow: hidden;
}

.company-header-new::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23ffffff'/%3E%3C/svg%3E")
    no-repeat;
  background-size: cover;
}

.company-title-new {
  color: #333;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
  position: relative;
  z-index: 2;
}

.company-info-section-new {
  padding: 3rem 0;
  background: #fff;
}

.company-table-wrapper-new {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.company-info-table-new {
  width: 100%;
  border-collapse: collapse;
}

.company-info-table-new th {
  background: #f8f9fa;
  color: #333;
  font-weight: 600;
  padding: 1.2rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  width: 180px;
  vertical-align: top;
  font-size: 0.95rem;
}

.company-info-table-new td {
  padding: 1.2rem;
  border-bottom: 1px solid #e5e7eb;
  line-height: 1.7;
  color: #333;
  font-size: 0.95rem;
}

.company-info-table-new tr:last-child th,
.company-info-table-new tr:last-child td {
  border-bottom: none;
}

.address-details {
  line-height: 1.8;
}

.office-section {
  margin-bottom: 1rem;
}

.office-section:last-child {
  margin-bottom: 0;
}

.office-note {
  color: #666;
  font-size: 0.85rem;
  margin-left: 1rem;
}

.info-link-new {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.info-link-new:hover {
  text-decoration: underline;
}

.representative-message-section-new {
  padding: 4rem 0;
  background: #f8f9fa;
}

.message-header-new {
  margin-bottom: 3rem;
}

.message-label-new {
  background: #2563eb;
  color: #fff;
  padding: 0.7rem 2rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-block;
}

.message-content-new {
  margin-bottom: 4rem;
}

.message-title-new {
  font-size: 1.6rem;
  font-weight: 600;
  color: #333;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.representative-info-new {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.representative-title-new {
  color: #666;
  font-size: 0.9rem;
}

.representative-name-new {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
}

.story-sections-new {
  max-width: 1000px;
  margin: 0 auto;
}

.story-section-new {
  margin-bottom: 3rem;
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.story-title-new {
  color: #2563eb;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.story-content-new {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.story-text-new p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.story-text-new p:last-child {
  margin-bottom: 0;
}

.story-image-new {
  display: flex;
  justify-content: center;
}

.placeholder-image-new {
  width: 200px;
  height: 150px;
  background: #e5e7eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 1rem;
}

/* Responsive Design for Company Page */
@media (max-width: 768px) {
  .company-header {
    height: 200px;
  }

  .company-header-jp {
    font-size: 2.5rem;
  }

  .company-info-table th {
    width: 120px;
    padding: 1rem;
    font-size: 0.9rem;
  }

  .company-info-table td {
    padding: 1rem;
    font-size: 0.9rem;
  }

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

  .company-title-new {
    font-size: 2rem;
  }

  .company-info-table-new th {
    width: 120px;
    padding: 1rem;
    font-size: 0.85rem;
  }

  .company-info-table-new td {
    padding: 1rem;
    font-size: 0.85rem;
  }

  .story-content-new {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .placeholder-image-new {
    width: 100%;
    max-width: 300px;
    height: 200px;
  }

  .message-title-new {
    font-size: 1.4rem;
  }
}

/* Contact Hero Section - 統一されたスタイル */
.contact-hero-section {
  background: #fff;
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  color: #333;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.contact-hero-section::before {
  display: none;
}

.contact-hero-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  line-height: 1.4;
  color: #333;
}

.contact-hero-description p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #666;
}

.contact-option-card {
  background: #f8f9fa;
  border-radius: 25px;
  padding: 2rem;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  max-width: 400px;
  width: 100%;
}

.line-option {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 253, 244, 0.95) 100%);
}

.option-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.option-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #333;
}

.qr-code-section {
  text-align: center;
}

.contact-qr-code {
  width: 180px;
  height: 180px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-instruction {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
  .contact-hero-section {
    padding: 3rem 1.5rem;
    border-radius: 15px;
  }

  .contact-hero-title {
    font-size: 1.8rem;
  }

  .contact-hero-description p {
    font-size: 1rem;
  }

  .contact-option-card {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .contact-qr-code {
    width: 150px;
    height: 150px;
  }

  .option-content h3 {
    font-size: 1.1rem;
  }

  .contact-phone-number {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 480px) {
  .contact-hero-title {
    font-size: 1.5rem;
  }

  .contact-qr-code {
    width: 130px;
    height: 130px;
  }

  .contact-option-card {
    padding: 1.2rem;
  }
}

/* Simple Company Page Styles */
.company-header-simple {
  background: linear-gradient(135deg, #87ceeb 0%, #5fb3d4 100%);
  position: relative;
  padding: 3rem 0;
  text-align: center;
  overflow: hidden;
}

.company-header-simple::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23ffffff'/%3E%3C/svg%3E")
    no-repeat;
  background-size: cover;
}

.company-title-simple {
  color: #333;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
  position: relative;
  z-index: 2;
}

.company-info-section-simple {
  padding: 2rem 0 4rem;
  background: #fff;
}

.company-table-wrapper-simple {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.company-info-table-simple {
  width: 100%;
  border-collapse: collapse;
}

.company-info-table-simple th {
  background: #f8f9fa;
  color: #2563eb;
  font-weight: 600;
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  width: 150px;
  vertical-align: top;
  font-size: 1rem;
}

.company-info-table-simple td {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  line-height: 1.7;
  color: #333;
  font-size: 1rem;
}

.company-info-table-simple tr:last-child th,
.company-info-table-simple tr:last-child td {
  border-bottom: none;
}

.company-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.5rem;
}

.company-link:hover {
  text-decoration: underline;
}

.address-list {
  line-height: 1.8;
}

.office-item {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.office-item:last-child {
  margin-bottom: 0;
}

.office-marker {
  color: #2563eb;
  font-weight: bold;
  margin-right: 0.5rem;
}

.map-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

.map-link:hover {
  text-decoration: underline;
}

.office-status {
  color: #666;
  font-size: 0.9rem;
  margin-left: 1rem;
}

.business-content {
  line-height: 1.8;
}

.business-marker {
  color: #2563eb;
  font-weight: bold;
  margin-right: 0.5rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.policy-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.policy-link:hover {
  text-decoration: underline;
}

/* Responsive Design for Simple Company Page */
@media (max-width: 768px) {
  .company-title-simple {
    font-size: 2rem;
  }

  .company-info-table-simple th {
    width: 120px;
    padding: 1rem;
    font-size: 0.9rem;
  }

  .company-info-table-simple td {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .office-item {
    margin-bottom: 1rem;
  }

  .business-marker {
    display: block;
    margin-bottom: 0.3rem;
  }
}

@media (max-width: 480px) {
  .company-title-simple {
    font-size: 1.8rem;
  }

  .company-info-table-simple th {
    width: 100px;
    padding: 0.8rem;
    font-size: 0.85rem;
  }

  .company-info-table-simple td {
    padding: 0.8rem;
    font-size: 0.85rem;
  }
}

/* About Section Styles - 枠付きバージョン */
.about-content-boxed {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.about-box {
  background: #f8f9fa;
  border: none;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: none;
  text-align: center;
}

.about-title-boxed {
  font-size: 2.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 2.5rem;
  text-align: center;
}

.about-text-boxed {
  text-align: center;
}

.about-text-boxed p {
  color: #333;
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.about-text-boxed p:last-child {
  margin-bottom: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .about-content-boxed {
    padding: 0 1.5rem;
  }

  .about-box {
    padding: 2.5rem 2rem;
    border-radius: 12px;
  }

  .about-title-boxed {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .about-text-boxed p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .about-content-boxed {
    padding: 0 1rem;
  }

  .about-box {
    padding: 2rem 1.5rem;
    border-radius: 10px;
  }

  .about-title-boxed {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .about-text-boxed p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }
}

/* Representative Story Section */
.representative-story-section {
  padding: 4rem 0;
  background: #ffffff;
}

.story-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.story-image-container {
  position: relative;
}

.representative-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.story-bubble-container {
  position: relative;
}

/* 吹き出しスタイルを復活 */
.speech-bubble {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 2px solid #e5e7eb;
}

.speech-bubble::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 20px 15px 0;
  border-color: transparent #e5e7eb transparent transparent;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: -17px;
  top: 52px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 13px 17px 13px 0;
  border-color: transparent #fff transparent transparent;
}

.story-content {
  line-height: 1.7;
}

/* セクションごとに明確に区切り */
/* シンプルなストーリータイトル */
.story-title-simple {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  line-height: 1.4;
}

.story-title-simple:first-child {
  margin-top: 0;
}

/* 既存の複雑なセクションスタイルを削除 */
.story-section,
.story-subtitle {
  display: none;
}

/* 吹き出し内のテキストスタイル調整 */
.story-content p {
  color: #555;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

.story-content p:last-child {
  margin-bottom: 0;
}

/* Responsive Design for Story Section */
@media (max-width: 768px) {
  .story-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .story-image-container {
    max-width: 250px;
    margin: 0 auto;
  }

  .speech-bubble {
    padding: 2rem 1.5rem;
    border-radius: 15px;
  }

  .speech-bubble::before,
  .speech-bubble::after {
    display: none;
  }

  .story-subtitle {
    font-size: 1.1rem;
    text-align: left;
  }

  .story-content p {
    font-size: 0.95rem;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .representative-story-section {
    padding: 3rem 0;
  }

  .speech-bubble {
    padding: 1.5rem 1rem;
  }

  .story-subtitle {
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
  }

  .story-content p {
    font-size: 0.9rem;
  }
}

/* Representative Story Section - Fixed Layout */
.representative-story-section {
  padding: 4rem 0;
  background: #ffffff;
}

.story-layout-fixed {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 4rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.story-image-container-fixed {
  position: sticky;
  top: 2rem;
}

.representative-image-fixed {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.story-bubble-container-fixed {
  position: relative;
}

.speech-bubble-fixed {
  background: #fff;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  position: relative;
  border: 2px solid #f1f5f9;
}

.speech-bubble-fixed::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 60px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 18px 24px 18px 0;
  border-color: transparent #f1f5f9 transparent transparent;
}

.speech-bubble-fixed::after {
  content: "";
  position: absolute;
  left: -20px;
  top: 63px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 20px 15px 0;
  border-color: transparent #fff transparent transparent;
}

.story-content-fixed {
  line-height: 1.7;
}

.story-section-fixed {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f1f5f9;
}

.story-section-fixed:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.story-title-fixed {
  color: #1e40af;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.4;
  position: relative;
  padding-left: 1rem;
}

.story-title-fixed::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 4px;
  height: 1.2rem;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  border-radius: 2px;
}

.story-content-fixed p {
  color: #374151;
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
}

.story-content-fixed p:last-child {
  margin-bottom: 0;
}

/* Responsive Design for Fixed Story Section */
@media (max-width: 1024px) {
  .story-layout-fixed {
    grid-template-columns: 300px 1fr;
    gap: 3rem;
  }

  .speech-bubble-fixed {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .story-layout-fixed {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-image-container-fixed {
    position: static;
    max-width: 280px;
    margin: 0 auto;
  }

  .speech-bubble-fixed {
    padding: 2rem;
    border-radius: 20px;
  }

  .speech-bubble-fixed::before,
  .speech-bubble-fixed::after {
    display: none;
  }

  .story-section-fixed {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .story-title-fixed {
    font-size: 1.1rem;
    text-align: center;
    padding-left: 0;
  }

  .story-title-fixed::before {
    display: none;
  }

  .story-content-fixed p {
    text-align: left;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .representative-story-section {
    padding: 3rem 0;
  }

  .speech-bubble-fixed {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .story-section-fixed {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .story-title-fixed {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .story-content-fixed p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

/* Reason Photo Styles */
.reason-photo {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-photo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Update existing reason-image styles */
.reason-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hide placeholder images when real photos are used */
.reason-image .placeholder-image {
  display: none;
}

/* Responsive adjustments for reason photos */
@media (max-width: 768px) {
  .reason-photo {
    max-width: 300px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .reason-photo {
    max-width: 280px;
    height: 180px;
  }
}
