@charset "UTF-8";

/* 森と自然を意識したスタイル */
:root {
  --bg-color: #f6f5f0; 
  --text-main: #2c3e2e; 
  --link-color: #5c7a52; 
  --link-hover: #8b5a2b; 
  --border-color: #b4aa99; 
}

/* --- ベースのフォントをゴシック体に変更 --- */
body {
  background-color: var(--bg-color);
  color: var(--text-main);
  /* 読みやすく少し柔らかいゴシック体 */
  /*font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, sans-serif;*/
  font-family: "RocknRoll One", sans-serif;
  line-height: 1.8;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* --- タイトルと見出しに RocknRoll One を適用 --- */
header h1,
.site-title,
h2,
.portfolio-card h3,
.profile-name {
  font-family: "RocknRoll One", sans-serif;
  font-weight: 400; /* RocknRoll Oneは標準で太いのでnormalに */
}

/* タイトル周りの文字間隔を少し調整して綺麗に見せる */
header h1,
.site-title {
  letter-spacing: 0.05em;
}

/* --- ヘッダー周り --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px; 
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 1px dashed var(--border-color);
}

.header-text {
  text-align: left; 
}

@media (max-width: 500px) {
  .site-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .header-text {
    text-align: center;
  }
}

header h1 {
  font-size: 1.8rem;
  margin-bottom: 5px;
  margin-top: 0;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--border-color);
  margin: 0;
}

.mascot-container {
  margin-bottom: 0;
  flex-shrink: 0; 
}

.momonga-mascot {
  width: 90px; 
  height: auto;
  animation: float 4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(5deg); }
  50% { transform: translateY(-15px) rotate(-5deg); }
  100% { transform: translateY(0px) rotate(5deg); }
}

/* --- メインコンテンツ周り --- */
section {
  margin-bottom: 50px;
}

h2 {
  font-size: 1.3rem;
  border-left: 3px solid var(--link-color);
  padding-left: 15px;
  margin-bottom: 25px;
}

/* --- プロフィール --- */
.profile-card {
  background-color: #fffefb;
  border: 1px solid #eae6df;
  border-radius: 8px;
  padding: 20px 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eae6df;
  padding-bottom: 15px;
}

.profile-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eae6df;
}

.profile-name {
  font-size: 1.15rem;
  margin: 0;
  color: var(--text-main);
}

.profile-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #4a5d4c;
  margin-bottom: 0;
}

.profile-catchphrase {
  font-size: 1.25rem; /* 本文より一回り大きく */
  color: var(--link-color); /* サイトのテーマカラー（緑）で目を引くように */
  margin-top: 0;
  margin-bottom: 15px; /* 下の本文との間に少し余白をとる */
}

/* --- プロジェクト一覧（画像対応版） --- */
ul.project-list {
  list-style: none;
  padding: 0;
}

ul.project-list li {
  margin-bottom: 30px;
  background: #fffefb; 
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03); 
  border: 1px solid #eae6df;
  transition: transform 0.2s ease;
  
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

ul.project-list li:hover {
  transform: translateY(-3px); 
}

.project-thumb {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eae6df;
  flex-shrink: 0;
}

.project-info {
  display: flex;
  flex-direction: column;
}

ul.project-list li a {
  font-size: 1.15rem;
  display: inline-block;
  margin-bottom: 8px;
}

p.project-desc {
  margin: 0;
  font-size: 0.95rem;
  color: #4a5d4c;
  line-height: 1.6;
}

/* --- 修正後 --- */
@media (max-width: 500px) {
  /* 横並びを維持しつつ、狭い画面に合わせて調整 */
  .site-header {
    gap: 15px; /* 隙間を少し狭く */
    align-items: center; /* 上下中央揃え */
    padding-bottom: 20px; /* 下の余白も少し調整 */
  }

  /* モモンガの画像を少し小さく */
  .momonga-mascot {
    width: 70px;
  }

  /* タイトルの文字サイズを少し小さくして収まりを良くする */
  header h1,
  .site-title {
    font-size: 1.4rem; 
    margin-bottom: 2px;
  }

  .subtitle {
    font-size: 0.85rem;
  }
  
  /* プロジェクト一覧の画像表示も調整（もし必要なら） */
  ul.project-list li {
    /* ここは以前のまま、スマホでは縦並びで見やすく */
    flex-direction: column;
  }
  .project-thumb {
    width: 100%;
    height: 160px; 
  }
}

/* --- コンタクト周り --- */
.contact-section {
  background-color: #f0f0e8;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.contact-section h2 {
  border-left: none;
  padding-left: 0;
  text-align: center;
  margin-bottom: 15px;
}

.mail-address {
  margin-top: 15px;
  font-size: 1.1rem;
  font-family: sans-serif; 
}

/* --- リンクとフッター --- */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}

footer {
  text-align: center;
  margin-top: 80px;
  font-size: 0.85rem;
  color: var(--border-color);
}
/* --- ポートフォリオへの独立したリンクボタン --- */
.portfolio-link-container {
  text-align: center;
  margin-top: 40px;
}

.btn-portfolio {
  display: inline-block;
  background-color: var(--bg-color);
  color: var(--text-main);
  border: 2px solid var(--border-color);
  padding: 12px 30px;
  border-radius: 30px;
  font-family: "RocknRoll One", sans-serif; /* ボタンもポップなフォントに */
  font-size: 1.05rem;
  font-weight: normal;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-portfolio:hover {
  background-color: var(--link-color);
  color: #fff;
  border-color: var(--link-color);
  text-decoration: none;
  transform: translateY(-2px);
}