/* ===================================================================
   基本設定・変数
=================================================================== */

:root {
  --primary-color: #2c3e50; /* メインの濃いネイビー */
  --secondary-color: rgb(74, 163, 227); /* アクセントのブルー */
  --line-color: #06c755;      /* LINEのグリーン */
  --text-color: #333333;      /* 基本のテキストカラー */
  --light-gray: #f8f9fa;      /* 薄い背景色 */
  --border-color: #dddddd;   /* 境界線の色 */
  --white-color: #ffffff;
  --font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN',
    'Hiragino Sans', Meiryo, sans-serif;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--light-gray);
  line-height: 1.8;
}

/* ===================================================================
   コンテナ・セクションの共通スタイル
=================================================================== */

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

section {
  background-color: var(--white-color);
  margin-bottom: 40px;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

h1, h2, h3 {
  color: var(--primary-color);
  margin-top: 0;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}


h3 {
  font-size: 1.5rem;
  border-left: 5px solid var(--secondary-color);
  padding-left: 15px;
  margin-bottom: 20px;
}

p {
  margin-bottom: 1em;
  color: black !important;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-color);
}

/* ===================================================================
   ボタンの共通スタイル
=================================================================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--secondary-color);
  color: var(--white-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  opacity: 0.9;
}

.line-btn {
  background-color: var(--line-color);
}

.insta-btn {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* ===================================================================
   ヒーローセクション (.contact-hero)
=================================================================== */
.contact-hero {
  background: var(--white-color);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1.2;
}

.hero-media {
  flex: 0.8;
  text-align: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* ===================================================================
   お問い合わせ方法セクション (.contact-methods)
=================================================================== */
.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.contact-option {
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.contact-option .btn {
  margin-top: auto; /* ボタンをカード下部に固定 */
}

.meeting-info {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.meeting-info li {
  padding-left: 10px;
  margin-bottom: 10px;
}

.meeting-note, .line-note, .insta-note {
  font-size: 0.9rem;
  color: #777;
}

.line-section, .phone-section {
  text-align: center;
  margin: 20px 0;
}

.line-qr {
  max-width: 150px;
  margin-bottom: 15px;
}

.line-id, .phone {
  font-size: 1.2rem;
  font-weight: bold;
}

/* ===================================================================
   Instagramセクション (.contact-social)
=================================================================== */

.contact-social p {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.insta-gallery {
    text-align: center;
}

.insta-preview {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
}

.insta-preview img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s;
}

.insta-preview img:hover {
    transform: scale(1.05);
}

.insta-note {
    margin-top: 20px;
}

/* ===================================================================
   プロフィールセクション (.contact-profile)
=================================================================== */
.contact-profile {
    background-color: var(--primary-color);
    color: white !important;
}
.contact-profile h3, .contact-profile p {
    color: white !important;
}
.contact-profile h3 {
    border-left: 5px solid var(--secondary-color);
}

.profile-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white-color);
}

.profile-text {
  flex: 1;
}

/* ===================================================================
   CTAセクション (.contact-cta)
=================================================================== */
.contact-cta {
    text-align: center;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ===================================================================
   レスポンシブ対応 (768px以下のスクリーン)
=================================================================== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.3rem; }

  section {
    padding: 30px 20px;
  }

  .hero-content, .profile-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    order: 2; /* テキストを画像の下に */
  }

  .hero-media {
    order: 1;
  }

  .hero-buttons, .cta-buttons {
    justify-content: center;
  }

  .insta-preview {
      flex-direction: column;
      align-items: center;
  }
}