/* =========================================================
   まちかど愛媛 Instagram Profile (Basic & Clean)
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

:root {
  --text-main: #111827;
  --text-muted: #4b5563;
  --bg-color: #FAFAFA;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.profile-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 4rem; /* topのpaddingを消し、ヘッダーを一番上につける */
  background-color: #ffffff;
  min-height: 100vh;
}

/* --- 1. ヘッダー (Sticky) --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-link {
  display: block;
  text-decoration: none;
  transition: transform 0.2s;
}
.avatar-link:hover {
  transform: scale(1.05); /* 押したくなるように少しホバーアニメーション */
}

.avatar-container {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 2.5px; /* リングの太さを少しだけ太くして可愛く */
  background: linear-gradient(135deg, #fed7aa 0%, #fb923c 50%, #ea580c 100%); /* 愛媛みかん風グラデーション */
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain; /* 横長ロゴを綺麗に収める */
  object-position: center 55%; /* ほんの少し下 */
  border: 2px solid #ffffff; 
  background-color: #ffffff;
  padding: 3px; 
}
.profile-bio {
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--text-muted);
  text-align: left;
}
.hamburger-menu {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9CA3AF; /* 濃い黒から、他のアイコンになじむ薄いグレーに変更 */
  cursor: pointer;
  padding: 0.5rem;
  margin-right: -0.5rem;
}

/* 中身の余白 */
.content-wrapper {
  padding: 0 1.5rem;
}

/* --- 2. 写真 --- */
.story-image-container {
  margin-bottom: 2rem;
  border-radius: 8px; /* 装飾少なめ */
  overflow: hidden; /* はみ出た部分をカット */
}
.story-image {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.03); /* 元画像に含まれる左右のウザい黒帯を枠外に削り落とす */
}

/* --- 3. メッセージ --- */
.story-message {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 3rem;
  padding: 0 0.5rem;
}

/* --- 4. リンク集 --- */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.05em;
}
.link-item {
  display: flex;
  align-items: center;
  background: #f9fafb;
  color: var(--text-main);
  text-decoration: none;
  padding: 1rem 1.2rem;
  border-radius: 8px; /* 角丸を小さくし普通にする */
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid #e5e7eb; /* 普通のグレー線枠 */
  transition: background 0.2s;
}
.link-item:hover {
  background: #f3f4f6;
}
.brand-icon {
  width: 24px;
  text-align: center;
  font-size: 1.1rem;
  margin-right: 0.8rem;
  color: var(--text-muted);
}
.link-item span {
  flex-grow: 1;
}
.arrow-icon {
  color: #9CA3AF;
  font-size: 0.8rem;
}

/* メインボタンは枠線を少し太くし、白背景でシンプルに目立たせる */
.link-item.primary {
  background: #ffffff;
  border: 1px solid #d1d5db; /* 太い黒枠を細い薄いグレー枠に変更 */
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted); /* 文字も少し薄く */
}
.link-item.primary .brand-icon {
  color: var(--text-muted); /* アイコンも少し薄く */
}

/* --- 掲載・運用後の変化（体験談） --- */
.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* 間隔をゆったりとる */
  margin-bottom: 3rem;
  padding: 0 0.5rem; /* コンテナに対して少し内側に */
}
.testimonial-category {
  font-size: 0.9rem;
  color: #ea580c; /* 愛媛オレンジのテキストでカテゴリを示す */
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.testimonial-title {
  font-size: 0.9rem; /* 本文と同じ大きさに */
  font-weight: normal; 
  color: var(--text-muted); /* 本文と同じ色（少し薄いグレー）に */
  margin-bottom: 0.5rem;
  line-height: 1.8; /* 本文と同じ行間に */
}
.testimonial-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}
.testimonial-author {
  font-size: 0.85rem;
  color: #9CA3AF;
  text-align: right;
  font-weight: 500;
}

/* --- 5. お問い合わせフォーム --- */
.contact-section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #f9fafb;
  color: var(--text-main);
  transition: border-color 0.2s, background-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-main);
  background: #ffffff;
}
.submit-btn {
  background: var(--text-main);
  color: #ffffff;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity 0.2s;
  text-align: center;
}
.submit-btn:hover {
  opacity: 0.8;
}

/* --- 6. フッター --- */
.site-footer {
  margin-top: 4rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.social-icon {
  color: #9CA3AF;
  font-size: 1.5rem;
  transition: color 0.2s;
}
.social-icon:hover {
  color: var(--text-main);
}
.footer-links {
  text-align: center;
}
.privacy-link {
  font-size: 0.8rem;
  color: #9CA3AF;
  text-decoration: none;
  font-weight: 500;
}
.privacy-link:hover {
  text-decoration: underline;
}

/* --- 7. ハンバーガーメニュー（オーバーレイ） --- */
.hamburger-menu {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
}
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
.menu-content {
  position: absolute;
  top: 0;
  right: -300px;
  width: 280px;
  max-width: 80vw;
  height: 100%;
  background: #ffffff;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}
.menu-overlay.active .menu-content {
  right: 0;
}
.menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 1.5rem;
}
.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.menu-group-title {
  font-size: 0.8rem;
  color: #9CA3AF;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.25rem;
}
.menu-group-title:first-child {
  margin-top: 0;
}
.menu-item-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.menu-item-link i {
  color: var(--text-muted);
  width: 1.25rem;
  text-align: center;
}
.menu-item-link:hover {
  color: #ea580c;
}
