/* --- ベーススタイル --- */
:root {
  --color-primary: #8EB486;   /* 優しいライトグリーン */
  --color-secondary: #D4E0B0; /* 生成りグリーン */
  --color-accent: #E2AD64;    /* 差し色のライトブラウン・オレンジ系 */
  --color-text: #5A504B;      /* 濃い赤茶系のグレー */
  --color-bg: #FDF9F1;        /* オフホワイト・アイボリー系の背景 */
  --color-white: #FFFFFF;
}

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

body {
  font-family: 'Kiwi Maru', 'M PLUS Rounded 1c', "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/* --- ヘッダー --- */
.header {
  background-color: var(--color-white);
  padding: 20px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.8rem;
  color: var(--color-primary);
  font-weight: 700;
  text-align: center;
}

/* --- セクション共通 --- */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--color-primary);
  border-bottom: 2px dashed var(--color-secondary);
  padding-bottom: 10px;
  display: inline-block;
}

.section-title.center {
  display: block;
  text-align: center;
  border-bottom: none;
}

/* --- プロフィール --- */
.profile-section {
  background-color: var(--color-bg);
}

.profile-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  background-color: var(--color-white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.profile-image-wrap {
  flex: 1 1 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--color-secondary);
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-bg);
}

.profile-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-content {
  flex: 2 1 400px;
}

.profile-list {
  list-style: none;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.profile-list li {
  margin-bottom: 10px;
  padding-left: 1.5em;
  position: relative;
}

.profile-list li::before {
  content: "🐾";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.9em;
  color: var(--color-accent);
}

.profile-text {
  font-size: 1.05rem;
}

/* --- ギャラリー (スライドショー) --- */
.gallery-section {
  background-color: var(--color-secondary);
  border-radius: 30px 30px 0 0;
}

.gallery-desc {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* Swiper のカスタマイズ */
.swiper {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 50px; /* ページネーション用 */
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 300px; /* ここが重要。レスポンシブにも配慮 */
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-white);
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-pagination-bullet {
  background: var(--color-primary) !important;
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--color-accent) !important;
  background-color: rgba(255,255,255,0.7);
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
  font-weight: bold;
}

/* --- フッター --- */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
  .logo {
    font-size: 1.4rem;
  }
  
  .profile-container {
    padding: 20px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .swiper-slide {
    width: 250px;
    height: 350px;
  }
}

/* --- モーダルウィンドウ --- */
.modal {
  display: none; /* デフォルトは非表示 */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px); /* 背景を少しぼかす */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 1;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  transform: scale(0.8);
  transition: transform 0.3s ease;
  object-fit: contain;
}

.modal.show .modal-content {
  transform: scale(1);
}

#modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 15px 0;
  font-size: 1.1rem;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 1001;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--color-accent);
  text-decoration: none;
}

.swiper-slide img {
  cursor: pointer; /* クリック可能なことを示す */
}
