/* ① フォント読み込み ★この1行だけは 02_layout.css の「一番上」に置いてください */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500&family=Shippori+Mincho:wght@500;600&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

/* =========================================
   ヘッダー & メニュー
   ========================================= */
.header-container {
    padding: 40px 0;
    text-align: center;
}

.site-title {
    margin-bottom: 30px;
}

.site-title a {
    font-size: 2.8rem;
    color: #1a3c40;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 3px;
}

.main-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
}

.main-nav a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #263238;
    font-weight: bold;
}

.main-nav li { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    list-style: none;
}
.dropdown:hover .dropdown-content { display: block; }

/* ② ヘッダーをトップの雰囲気に合わせる（ファイルの「一番下」に貼ればOK） */
.header-container{
    background:#fefbf4;                 /* トップと同じ紙色。白のままが良ければこの行は削除 */
    border-bottom:1px solid #efe7da;
}
.header-container .site-title a{
    font-family:'Shippori Mincho', serif !important;
    color:#1a3c40 !important;
    letter-spacing:.06em !important;
}
.header-container .main-nav a{
    font-family:'Zen Kaku Gothic New', sans-serif;
    color:#3a4a4d;
    font-weight:500;
    letter-spacing:.04em;
    transition:color .2s ease;
}
.header-container .main-nav a:hover{ color:#00838f; }

/* --- ハンバーガーボタン本体 --- */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1100;
    background-color: rgba(255, 255, 255, 0.95); 
    border: 1px solid #1a3c40;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0; /* 余白を一度リセット */
}

/* 3本の線の共通設定 */
.hamburger-btn span {
    display: block;
    position: absolute;
    left: 10px;
    width: 30px;
    height: 2px;
    background-color: #1a3c40;
    transition: all 0.3s;
    transform-origin: center; /* 回転軸を中央に固定 */
}

/* 通常時の線の位置（24pxをセンターにする） */
.hamburger-btn span:nth-child(1) { top: 12px; }
.hamburger-btn span:nth-child(2) { top: 20px; }
.hamburger-btn span:nth-child(3) { top: 28px; }

/* ★×印の形：重複していた命令を一つにまとめました */
.hamburger-btn.is-active span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}
.hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.is-active span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
}

/* 三本線の下の文字設定 */
.menu-text {
    position: absolute;
    bottom: 4px;       /* 下からの位置 */
    left: 0;
    width: 100%;       /* ★横幅いっぱいにしてから中央寄せにする */
    text-align: center; /* ★これで中央にきます */
    font-size: 10px;
    font-weight: bold;
    color: #1a3c40;
    line-height: 1;
}

/* =========================================
   フッター
   ========================================= */
footer {
    background-color: #1a3c40;
    padding: 30px 0;
    color: #ffffff;         /* 全体の文字色を白にする */
    text-align: center;
}

   .footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.copyright {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* リンクを横並びにする設定 */
.footer-links {
    list-style: none;       /* 点を消す */
    padding: 0;
    display: flex;          /* 横並びにする */
    justify-content: center; /* 中央に寄せる */
    gap: 20px;              /* リンク同士の隙間 */
    flex-wrap: wrap;        /* スマホで溢れたら改行する */
}

.footer-links a {
    color: #ffffff;         /* リンクの文字色を白にする */
    text-decoration: none;  /* 下線を消す */
    font-size: 0.85rem;
}

.footer-links a:hover {
    text-decoration: underline; /* マウスを乗せた時だけ下線を出す */
    opacity: 0.8;
}

/* =========================================
    プロフィール欄
   ========================================= */
/* プロフィール欄全体のデザイン */
.author-profile {
    background-color: #fff5f7;
    padding: 15px;            /* 余白を少し広げました */
    margin-top: 50px;
    border-radius: 8px;       /* 角丸を少し大きく */
    border: 1px solid #eee;
    text-align: center;       /* ★全体を中央寄せにする */
}

/* 「この記事を書いた人」の見出し */
.author-title {
    font-size: 0.9em;         /* 少し小さく */
    margin: 0 0 10px 0;
    color: #666;
}

/* アイコンとテキストの並び（PCでの横並び設定） */
.author-info {
    display: flex;
    flex-direction: column;   
    align-items: center;  
    gap: 10px;
}

/* アイコン画像の設定 */
.author-icon img {
    display: block; 
    width: 100px;             /* ★60pxから100pxに大きくしました */
    height: 100px;            /* ★縦横同じにして丸を維持します */
    object-fit: cover;
    border-radius: 50%;       /* ★完全な丸 */
    border: 3px solid #fff;   /* 白枠を少し太くしておしゃれに */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* 影を少し強めて立体感を */
}

/* テキストエリアの調整 */
.author-text {
    line-height: 0.6;         /* 行間を狭く */
}

/* 名前 */
.author-name {
    font-weight: bold;
    font-size: 1.0em;
    margin-bottom: 5px;
    color: #333;
}

/* 説明文 */
.author-description {
    font-size: 0.88em;
    margin: 0;
    color: #555;
    word-break: break-all;
}

/* 記事下のプロフィール（この記事を書いた人）の行間設定 */
.author-description p {
    line-height: 1.0;   
    margin-bottom: 2px; 
}

/* 1. カード全体の定義：中のリンクを横並びの土台にします */
.post-card a {
    display: flex !important; /* 横並びにする */
    align-items: flex-start;  /* 上揃えにする */
    gap: 15px;                /* 画像とテキストの間の余白 */
    margin-bottom: 20px;      /* 次のカードとの間隔 */
    text-decoration: none;    /* リンクの下線を消す */
    color: inherit;           /* 文字色を継承する */
    border-bottom: 1px solid #eee; /* 下に線を引く */
    padding-bottom: 15px;
}

/* 2. 画像部分の固定サイズ */
.post-image {
    flex-shrink: 0;           /* 画像が潰れないようにする */
}

.post-image img {
    width: 120px;             /* 80pxだと少し小さいかもしれないので120px程度がおすすめ */
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* 3. テキスト部分の調整 */
.post-info {
    flex-grow: 1;             /* 残りの横幅をいっぱいに使う */
}

.post-info h3 {
    margin: 0 0 5px 0;        /* タイトルの上下余白を調整 */
    font-size: 1.1rem;
    line-height: 1.4;
    color: #333;
}

.post-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}