/* 基本のリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif; /* ベースフォント */
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center; /* 中央寄せ */
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 全ての要素に適用するとレイアウトが予測しやすくなります */
}

/* コンテンツの最大幅と中央寄せ */
.container {
    max-width: 1200px; /* デスクトップでの最大幅 */
    margin: 0 auto; /* 中央寄せ */
    padding: 0 20px; /* 左右の余白 */
}

/* ヘッダー */
.header {
    width: 100%;
    max-width: 960px; /* コンテンツの最大幅を制限 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.logo span {
    font-family: 'Caveat', cursive; /* 手書き風フォント */
    font-size: 2.5em;
    color: #888;
    margin-left: 20px; /* 左寄せ */
}

.navigation ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navigation ul li {
    margin: 0 15px;
}

.navigation ul li a {
    text-decoration: none;
    color: #666;
    font-size: 0.9em;
    text-transform: lowercase; /* 小文字 */
    transition: color 0.3s ease;
}

.navigation ul li a:hover {
    color: #333;
}

.social-icons {
    margin-right: 20px; /* 右寄せ */
}

.social-icons a {
    color: #888;
    font-size: 1.2em;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #333;
}

/* メインコンテンツ */
.main-content {
    flex-grow: 1; /* フッターを下に押しやるために成長 */
    width: 100%;
    max-width: 960px; /* ヘッダーと同じ幅 */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 画像を上に寄せる */
    padding-bottom: 50px; /* フッターとの間隔 */
    gap: 20px; /* 子要素間の隙間 */
    padding: 20px;
}

.main-image {
    max-width: 100%;
    height: auto;
    display: block; /* 画像の下にできる余白を削除 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* ほんの少し影を追加 */
}

.column {
    flex: 1; /* 各カラムが均等な幅になるように */
    min-width: 300px; /* カラムの最小幅を設定し、それ以下になったら折り返す */
    background-color: #f4f4f4;
    padding: 20px;
    box-sizing: border-box;
}

/* 画像のレスポンシブ対応 */
img {
    max-width: 100%; /* 親要素の幅に合わせて縮小 */
    height: auto; /* 縦横比を維持 */
    display: block; /* 画像の下の余白を削除 */
}

/* フッター */
.footer {
    width: 100%;
    max-width: 960px; /* コンテンツの最大幅を制限 */
    text-align: center;
    padding: 20px 0;
    color: #aaa;
    font-size: 0.8em;
    position: relative;
    margin-top: auto; /* コンテンツが少ない時にフッターを一番下に配置 */
}

.scroll-to-top {
    position: absolute;
    right: 20px;
    bottom: 20px;
}

.scroll-to-top a {
    display: block;
    width: 40px;
    height: 40px;
    background-color: #eee;
    border-radius: 50%;
    color: #888;
    text-align: center;
    line-height: 40px;
    font-size: 1.2em;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.scroll-to-top a:hover {
    background-color: #ddd;
    color: #666;
}

/* Aboutページ特有のスタイル */
.about-page .about-section {
    width: 100%; /* コンテンツの幅を最大にする */
    max-width: 700px; /* テキストの読みやすさを考慮した最大幅 */
}

.about-page .page-title {
    font-family: 'Caveat', cursive; /* 手書き風フォント */
    font-size: 2.5em;
    color: #888;
    margin-bottom: 40px; /* タイトルの下部に余白 */
    text-transform: lowercase; /* 小文字 */
    font-weight: 400; /* 太さ調整 */
}

.about-page .paragraph {
    margin-bottom: 20px; /* 段落間の余白 */
    line-height: 1.8; /* 行間を広げる */
    font-size: 0.95em;
    color: #555;
}

.about-page .person-name {
    font-family: 'Caveat', cursive; /* 手書き風フォント */
    font-size: 1.8em;
    color: #777;
    margin-top: 50px; /* 上部に大きな余白 */
    margin-bottom: 10px;
    font-weight: 400;
}

.about-page .profile-title {
    font-size: 1.1em;
    color: #666;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* 小さな画面（例: タブレット - 幅768px以下） */
@media screen and (max-width: 768px) {
    .header {
        flex-direction: column; /* ヘッダーの要素を縦に並べる */
        text-align: center;
    }

    .header .logo {
        padding: 0; /* 左右のパディングをリセット */
        margin-bottom: 10px; /* ロゴの下に余白 */
    }

    .nav ul {
        flex-direction: column; /* ナビゲーション項目を縦に並べる */
        width: 100%;
        margin-top: 10px;
    }

    .nav ul li {
        margin: 5px 0; /* 縦並びの余白 */
    }

    .main-content {
        flex-direction: column; /* メインコンテンツのカラムを縦に並べる */
        padding: 10px; /* 小さな画面ではパディングを減らす */
    }

    .column {
        min-width: unset; /* 最小幅の指定を解除 */
        width: 100%; /* 幅を100%にする */
    }
}

/* さらに小さな画面（例: スマートフォン - 幅480px以下） */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px; /* 左右の余白をさらに減らす */
    }

    .header .logo {
        font-size: 1.2rem;
    }

    .nav ul li a {
        font-size: 0.9rem;
    }

    .column {
        padding: 15px; /* パディングを調整 */
    }
}

.main-nav {
  display: flex;
  justify-content: space-between; /* または flex-end, center */
  align-items: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; /* デスクトップ表示では横並び */
}

.nav-list li {
  margin-left: 30px; /* デスクトップ表示時のメニュー間隔 */
}

.nav-list a {
  font-family: 'Caveat', cursive;
  text-decoration: none;
  color: #c0c0c0;
  font-weight: bold;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #808080;
}

/* ハンバーガーメニューアイコンのスタイル */
.hamburger-menu {
  display: none; /* デスクトップでは非表示 */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1000; /* メニューの上に表示 */
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
}

/* ハンバーガーメニューがアクティブになった時のスタイル */
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* レスポンシブデザイン（モバイルファーストまたは特定のブレイクポイントから適用） */
@media (max-width: 768px) { /* 768px以下の画面幅でハンバーガーメニューを有効化 */
  .hamburger-menu {
    display: flex; /* モバイルで表示 */
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%; /* 初期状態では画面外に隠す */
    width: 70%; /* メニューの幅 */
    height: 100%;
    background-color: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav-list.active {
    right: 0; /* アクティブ時に画面内に表示 */
    font-weight: 700;
        color: #000;
  }

  .nav-list li {
    margin: 20px 0;
  }

  .nav-list a {
    font-size: 1em;
  }

  /* Accordion Container */
.accordion-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden; /* Ensures content is hidden properly */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow for depth */
}

/* Accordion Header (the clickable question) */
.accordion-header {
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 8px 8px 0 0; /* Rounded top corners */
}

.accordion-header:hover {
    background-color: #e0e0e0;
}

/* Arrow icon for the accordion header */
.accordion-header::after {
    content: '\002B'; /* Plus sign */
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

/* Rotate arrow when accordion is active (open) */
.accordion-header.active::after {
    transform: rotate(45deg); /* Rotates to an 'X' or diamond shape */
}

/* Accordion Content (the answer) */
.accordion-content {
    background-color: #ffffff;
    padding: 0 20px;
    max-height: 0; /* Initially hidden */
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out; /* Smooth transition for height and padding */
    border-radius: 0 0 8px 8px; /* Rounded bottom corners */
}

/* When accordion content is active (open) */
.accordion-content.active {
    max-height: 200px; /* Adjust as needed, a large enough value to show content */
    padding: 15px 20px;
}

/* Paragraphs within accordion content */
.accordion-content .paragraph {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}
}

.nav-list-footer a {
    font-family: 'Caveat', cursive;
    text-decoration: none;
    color: #c0c0c0;
}

.nav-list-footer a:hover {
  color: #808080;
}

ul {
  list-style-type: none; /* リストマーカーを非表示にする */
}