/* ===== ヘッダーセクション ===== */
.page-header {
  background: linear-gradient(135deg, rgba(0,136,199,0.1), rgba(50,184,223,0.3));
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
}

/* ヘッダー背景の装飾要素 */
.header-bg-decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(50px);
  z-index: 0;
}

.header-decoration-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(45deg, #0088C7, #32B8DF);
  top: -200px;
  right: -100px;
}

.header-decoration-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, #FFB000, #FFCB47);
  bottom: -150px;
  left: -150px;
}

/* ヘッダーコンテンツ */
.header-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 10%;
  width: 80%;
  height: 6px;
  background: var(--accent-gradient);
  border-radius: 3px;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 700px;
  margin: 30px auto 0;
}

@media (max-width: 480px) {
  .page-header {
    padding: 100px 0 50px;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .page-subtitle {
    font-size: 0.9rem;
    margin: 20px auto 0;
  }
  
  .company-info-section {
    padding: 50px 0;
  }
  
  .info-card {
    padding: 25px 15px;
    margin-bottom: 40px;
  }
  
  .info-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
  
  .company-table th {
    width: 100px;
    padding: 10px;
  }
  
  .company-table td {
    padding: 10px;
    font-size: 0.9rem;
  }
  
  .message-box {
    padding: 25px 15px;
    margin-top: 30px;
  }
  
  .message-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .timeline-date {
    flex: 0 0 80px;
    font-size: 0.9rem;
  }
  
  .timeline-text {
    padding: 15px;
    margin-left: 20px;
    font-size: 0.9rem;
  }
  
  .access-info {
    padding: 25px 15px;
  }
  
  .access-list li {
    margin-bottom: 15px;
  }
}

@media (max-width: 375px) {
  /* iPhone SE などの小型デバイス向け調整 */
  .container {
    padding: 0 10px;
  }
  
  .section-title h2 {
    font-size: 1.6rem;
  }
  
  .hero-cta {
    padding: 10px 20px;
    font-size: 1rem;
    min-width: 180px;
  }
  
  .fee-card, .service-card {
    padding: 15px 10px;
  }
  
  .fee-title, .service-title {
    font-size: 1rem;
  }
  
  .fee-amount {
    font-size: 2.2rem;
  }
  
  .staff-card {
    flex: 0 0 220px;
  }
  
  .testimonial-content p {
    font-size: 0.9rem;
    padding: 20px 0;
  }
  
  .line-banner {
    max-width: 200px;
    bottom: 5px;
    right: 5px;
  }
}

@media (max-width: 768px) {
  /* タップ領域の拡大 */
  .nav-links a, .footer-links a, .service-card, .fee-card,
  .faq-question, .testimonial-card, .more-info-btn, .close-btn,
  .contact-btn, .cta-button, .line-banner-close {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent; /* タップ時のハイライト無効化 */
  }
  
  .nav-links a, .footer-links a {
    padding: 10px 0; /* タップ領域を広げる */
  }
  
  /* ホバーエフェクトをタップに変更 */
  .service-card:active, .fee-card:active, .staff-card:active .card-inner {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
  }
}

/* アニメーション軽量化 */
@media (max-width: 768px) {
  .fee-amount, .staff-badge, .decoration-1, .decoration-2, .decoration-3 {
    animation-duration: 3s; /* アニメーション時間短縮 */
  }
  
  .pulse {
    animation: pulse 3s infinite; /* パルスアニメーション軽量化 */
  }
  
  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
  }
  
  /* 装飾要素の軽量化 */
  .bg-decorative, .flow-bg-decoration, .staff-bg-decoration,
  .testimonial-bg-decoration {
    opacity: 0.03; /* 透明度を上げる */
  }
}

/* パンくずナビゲーション */
.breadcrumbs {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumbs a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 10px;
  color: var(--gray);
}

/* ===== 会社情報セクション ===== */
.company-info-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* 背景パターン */
.company-info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
  z-index: 0;
}

/* インフォカード */
.info-card {
  background: white;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 40px;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--primary-gradient);
  border-radius: 20px 20px 0 0;
}

.info-title {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
  font-size: 2rem;
  color: var(--dark);
  padding-bottom: 10px;
}

.info-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100px;
  height: 4px;
  background: var(--secondary-gradient);
  border-radius: 2px;
}

/* 会社概要テーブル */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.company-table tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.company-table tr:hover {
  background-color: rgba(0, 136, 199, 0.03);
}

.company-table th {
  width: 200px;
  padding: 15px 20px;
  text-align: left;
  font-weight: 700;
  color: var(--primary-dark);
  vertical-align: top;
}

.company-table td {
  padding: 15px 20px;
  color: var(--dark);
}

/* 代表メッセージ */
.message-box {
  background: linear-gradient(to right, rgba(54, 234, 102, 0.05), rgba(1, 181, 4, 0.05));
  border-radius: 20px;
  padding: 40px;
  margin-top: 50px;
  position: relative;
}

.message-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 100%;
  background: var(--pop1-gradient);
  border-radius: 20px 0 0 20px;
}

.message-title {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.message-content {
  line-height: 1.8;
  color: var(--dark);
}

.ceo-sign {
  text-align: right;
  margin-top: 30px;
  font-weight: 700;
}

/* 企業理念セクション */
.philosophy-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f9fbff, #eef4ff);
  position: relative;
  overflow: hidden;
}

/* 背景装飾 */
.philosophy-bg-decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
  filter: blur(40px);
  z-index: 0;
}

.philosophy-decoration-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(45deg, #0088C7, #32B8DF);
  top: -100px;
  right: -200px;
}

.philosophy-decoration-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, #FFB000, #FFCB47);
  bottom: -150px;
  left: -150px;
}

/* セクションタイトル */
.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.title-badge {
  display: inline-block;
  background: var(--secondary-gradient);
  color: var(--dark);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(255, 176, 0, 0.3);
  position: relative;
}

.section-title h2 {
  font-size: 2.8rem;
  color: var(--dark);
  display: inline-block;
  position: relative;
  z-index: 1;
  padding: 0 15px;
  margin-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 15px;
  background-color: rgba(0, 136, 199, 0.1);
  z-index: -1;
  border-radius: 10px;
}

.section-subtitle {
  max-width: 800px;
  margin: 0 auto;
  color: var(--gray);
  font-size: 1.1rem;
}

/* 理念カード */
.philosophy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.philosophy-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 30px;
  height: 100%;
}

.philosophy-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.philosophy-icon {
  width: 80px;
  height: 80px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--white);
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
  transform: rotate(5deg);
  transition: var(--transition);
}

.philosophy-card:hover .philosophy-icon {
  transform: rotate(0deg) scale(1.1);
}

.philosophy-icon::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  background: var(--primary-gradient);
  border-radius: 50%;
  z-index: -1;
}

.philosophy-card:nth-child(2) .philosophy-icon::before {
  background: var(--secondary-gradient);
}

.philosophy-card:nth-child(3) .philosophy-icon::before {
  background: var(--pop1-gradient);
}

.philosophy-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.philosophy-text {
  color: var(--gray);
  line-height: 1.7;
}

/* 沿革セクション */
.history-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* 背景パターン */
.history-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
  z-index: 0;
}

/* タイムライン */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 50px auto 0;
  padding: 0 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(50% - 2px);
  width: 4px;
  height: 100%;
  background: var(--light-gray);
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 100%;
  z-index: 2;
}

.timeline-content {
  display: flex;
  align-items: flex-start;
}

.timeline-date {
  flex: 0 0 120px;
  text-align: right;
  padding-right: 30px;
  font-weight: 700;
  color: var(--primary);
  position: relative;
}

.timeline-date::after {
  content: '';
  position: absolute;
  top: 8px;
  right: -8px;
  width: 16px;
  height: 16px;
  background: white;
  border: 3px solid var(--primary);
  border-radius: 50%;
  z-index: 3;
}

.timeline-item:nth-child(2n) .timeline-date::after {
  border-color: var(--secondary);
}

.timeline-item:nth-child(3n) .timeline-date::after {
  border-color: var(--pop1);
}

.timeline-item:nth-child(4n) .timeline-date::after {
  border-color: var(--pop2);
}

.timeline-text {
  flex: 1;
  background: white;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-left: 30px;
  position: relative;
  transition: var(--transition);
}

.timeline-text::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid white;
}

.timeline-text h3 {
  margin-bottom: 10px;
  color: var(--dark);
}

.timeline-text p {
  color: var(--gray);
  margin: 0;
}

.timeline-item:hover .timeline-text {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* アクセス情報セクション */
.access-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f9fbff, #eef4ff);
  position: relative;
  overflow: hidden;
}

/* アクセス情報コンテナ */
.access-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 50px;
  align-items: center;
}

/* アクセス情報 */
.access-info {
  padding: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  position: relative;
  z-index: 1;
}

.access-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 20px 0 0 20px;
}

.access-info h3 {
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.access-info h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary-gradient);
  border-radius: 2px;
}

.access-list {
  list-style: none;
}

.access-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  color: var(--dark);
}

.access-list li:last-child {
  margin-bottom: 0;
}

.access-icon {
  flex: 0 0 40px;
  height: 40px;
  background: rgba(0, 136, 199, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--primary);
  font-size: 1.2rem;
}

.access-text {
  flex: 1;
}

.access-text strong {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
}

/* 地図 */
.map-container {
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  position: relative;
  z-index: 1;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* CTAセクション */
.cta-section {
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px;
  background: linear-gradient(135deg, rgba(0, 136, 199, 0.05), rgba(50, 184, 223, 0.1));
  border-radius: 30px;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.cta-text {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.cta-btn-primary {
  background: var(--pop1-gradient);
  color: white;
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.3);
}

.cta-btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(6, 199, 85, 0.4);
}

.cta-btn-secondary {
  background: white;
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 136, 199, 0.2);
}

.cta-btn-secondary:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 136, 199, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 991px) {
  .page-title {
    font-size: 3rem;
  }
  .philosophy-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .access-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .map-container {
    order: 2;
  }
  .access-info {
    order: 1;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }
  .section-title h2 {
    font-size: 2.2rem;
  }
  .info-title {
    font-size: 1.8rem;
  }
  .company-table th {
    width: 150px;
    padding: 12px 15px;
  }
  .company-table td {
    padding: 12px 15px;
  }
  .philosophy-cards {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 40px;
  }
  .timeline-content {
    flex-direction: column;
  }
  .timeline-date {
    flex: none;
    text-align: left;
    padding-right: 0;
    padding-left: 60px;
    margin-bottom: 10px;
  }
  .timeline-date::after {
    top: 8px;
    right: auto;
    left: 40px;
  }
  .timeline-text {
    margin-left: 60px;
  }
  .timeline-text::before {
    left: -10px;
  }
  .cta-title {
    font-size: 2rem;
  }
  .cta-content {
    padding: 30px;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .page-title {
    font-size: 2.2rem;
  }
  .page-subtitle {
    font-size: 1rem;
  }
  .info-card {
    padding: 30px 20px;
  }
  .info-title {
    font-size: 1.6rem;
  }
  .company-table th {
    width: 120px;
    padding: 10px;
  }
  .company-table td {
    padding: 10px;
  }
  .message-box {
    padding: 30px 20px;
  }
  .section-title h2 {
    font-size: 1.8rem;
  }
  .access-info {
    padding: 30px 20px;
  }
  .access-info h3 {
    font-size: 1.6rem;
  }
  .cta-title {
    font-size: 1.8rem;
  }
  .cta-text {
    font-size: 1rem;
  }
}