/*
 Theme Name:   Your Theme Child
 Template:     cocoon-master
*/

/* ベーススタイル */
:root {
    --primary-color: #C5B47F;
    --text-color: #333;
    --bg-color: #f4f4f4;
    --border-color: #eee;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* メインコンテンツの幅を広げる設定 */
.main,
.main-content,
.content,
.container,
.wrap,
#main,
#content,
.main-container,
.content-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
}

/* より広い画面での設定 */
@media (min-width: 1200px) {
    .main,
    .main-content,
    .content,
    .container,
    .wrap,
    #main,
    #content,
    .main-container,
    .content-container {
        max-width: 100% !important;
        padding: 0 40px !important;
    }
}

/* 特大画面での設定 */
@media (min-width: 1600px) {
    .main,
    .main-content,
    .content,
    .container,
    .wrap,
    #main,
    #content,
    .main-container,
    .content-container {
        max-width: 100% !important;
        padding: 0 60px !important;
    }
}

body {
    font-family: 'Zen Maru Gothic', 'ヒラギノ丸ゴ ProN', 'Hiragino Maru Gothic ProN', 'Arial', sans-serif;
    font-size: clamp(14px, 2.5vw, 18px);
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    overflow-x: hidden;
    color: var(--text-color);
}

/* ヘッダー */
header {
    position: relative;
    z-index: 1000;
}

/* フッター */
footer {
    background: #f7f7f7;
    border-top: 1px solid #e0e0e0;
    padding: 40px 0;
    margin-top: 60px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s, background 0.2s;
}

footer a:hover,
footer a:focus {
    color: #222;
    text-decoration: underline;
}

/* フッター内のコンテンツも画面いっぱいに */
footer .container,
footer .wrap,
footer .main,
footer .content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

@media (min-width: 1200px) {
    footer .container,
    footer .wrap,
    footer .main,
    footer .content {
        padding: 0 40px !important;
    }
}

@media (min-width: 1600px) {
    footer .container,
    footer .wrap,
    footer .main,
    footer .content {
        padding: 0 60px !important;
    }
}

/* ドロップダウンメニューが他の要素より前面に出るように */
.sub-menu,
.dropdown-menu {
    position: absolute;
    z-index: 2000;
    background: #fff; /* 必要に応じて */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* 任意で影をつける */
}

.menu-item-has-children,
.has-dropdown {
    position: relative;
    z-index: 1100; /* 必要に応じて */
}

.copyright {
    text-align: center;
    color: #999;
    font-size: 0.85em;
    margin-top: 40px;
}

/* 記事カード */
.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.article-card {
    width: 100%;
    border: 1px solid var(--border-color);
    padding: 0;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.article-card .thumbnail-link {
    display: block;
    overflow: hidden;
}

.article-card .thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0;
    transition: var(--transition);
}

.article-card .thumbnail-link:hover .thumbnail {
    transform: scale(1.05);
}

.article-card .article-content {
    flex: 1;
    padding: 15px;
    text-align: left;
}

.article-card h2 {
    margin: 8px 0;
    font-size: 1.1em;
    line-height: 1.4;
}

.article-card h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.article-card h2 a:hover {
    color: var(--primary-color);
}

.article-card .category {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f0f0f0;
    color: #666;
    font-size: 0.8em;
    border-radius: 4px;
    margin-bottom: 8px;
}

.article-card .date {
    color: #888;
    font-size: 0.85em;
    margin-top: 8px;
}

.article-card .meta {
    color: #666;
    font-size: 0.9em;
}

.section-title {
    font-size: clamp(1.5em, 5vw, 2.5em);
    font-weight: bold;
    margin: 20px 0 30px;
    padding: 0 20px;
    letter-spacing: 0.05em;
    display: flex;
    align-items: baseline;
    gap: 15px;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.section-subtitle {
    font-size: 0.5em;
    color: #666;
    font-weight: normal;
}

.site-intro {
    text-align: center;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.catch-copy {
    font-size: clamp(1.2em, 4vw, 2em);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
}

.site-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: clamp(0.95em, 2vw, 1.1em);
}

.keyword-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.keyword {
    background-color: #333;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
}

.hero-wrapper {
    display: flex;
    width: 100vw;
    min-height: 60vh;
}

.hero-sidebar {
    width: 240px;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 10;
}

/* 画像が読み込めない場合のスタイル */
.pickup-item img[style*="display: none"] {
    display: none !important;
}

.pickup-item:has(img[style*="display: none"]) {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8em;
    text-align: center;
}

.pickup-item:has(img[style*="display: none"])::after {
    content: "画像なし";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 0.8em;
}

.follow-sns {
    text-align: center;
    padding: 40px 0;
    background-color: #fff;
}

.follow-sns h2 {
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: normal;
    letter-spacing: 0.1em;
}

.sns-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.sns-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
}

.sns-link:hover {
    transform: translateY(-3px);
    background-color: #333;
    color: #fff;
}

.sns-icon {
    width: 20px;
    height: 20px;
}

.sns-link.x .sns-icon {
    width: 18px;
    height: 18px;
}

.sns-link.note .sns-icon {
    width: 20px;
    height: 20px;
}

.sns-link.note:hover {
    background-color: #000000;
}

.sns-link.facebook:hover {
    background-color: #1877F2;
    color: #fff;
}

.sns-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.sns-link.x:hover {
    background-color: #000;
}

.sns-link.linkedin:hover {
    background-color: #0e76a8;
}

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.scroll-arrow {
  display: block;
  width: 32px;
  height: 32px;
  border-left: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: rotate(-45deg);
  margin-bottom: 0;
  animation: scrollDownAnim 1.5s infinite;
  opacity: 0.85;
}
@keyframes scrollDownAnim {
  0% { transform: translateY(0) rotate(-45deg); opacity: 0.7; }
  50% { transform: translateY(16px) rotate(-45deg); opacity: 1; }
  100% { transform: translateY(0) rotate(-45deg); opacity: 0.7; }
}

.hero-section {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    text-align: center;
    padding: 40px 0 0 0;
    background: #fff;
}

.hero-main-image {
  width: 100vw;
  height: auto;
  display: block;
  margin: 0 auto;
  max-width: 100vw;
  object-fit: unset;
  background: #fff;
  z-index: 1;
  position: relative;
}

.hero-pinned-wall {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 5;
  pointer-events: none;
}

.pin {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  background: #e74c3c;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  z-index: 2;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 0 2vw 60px 2vw;
    margin-bottom: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.category-card {
    background: #fff;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18), 0 1.5px 4px rgba(0,0,0,0.12);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    aspect-ratio: 1/1;
    position: relative;
    max-width: 200px;
    min-width: 200px;
    min-height: 200px;
    margin: 0 auto;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 12px 32px rgba(0,0,0,0.22), 0 3px 8px rgba(0,0,0,0.15);
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.category-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.22);
    z-index: 1;
}

.category-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 200px;
    min-height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    color: #666;
}

.category-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 20px;
    text-align: center;
    z-index: 2;
}

.category-info h3 {
    margin: 0;
    font-size: clamp(1em, 3vw, 1.5em);
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.1em;
    max-width: 90%;
    margin: 0 auto;
    display: block;
    white-space: nowrap;
}

.article-count {
    display: block;
    color: rgba(255,255,255,0.9);
    font-size: 1em;
    margin-top: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* タグ風カテゴリデザイン */
.category {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f0f0f0;
    color: #666;
    font-size: 0.8em;
    border-radius: 4px;
    margin-bottom: 8px;
}

.hero-pinned-wall {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pinned-photo-frame {
    position: absolute;
    background: #fff;
    border: 4px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    margin: 18px 8px;
    padding: 8px;
    transition: box-shadow 0.2s;
    display: inline-block;
    pointer-events: auto;
}

.pinned-photo-frame img {
    display: block;
    max-width: 400px;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    background: #f7f7f7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid #fff;
    padding: 2px;
}

.pin {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    z-index: 2;
}

.pickup-image-link img {
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pickup-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.pickup-category {
    width: 260px;
    min-width: 200px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 16px;
    margin-bottom: 24px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.pickup-image-link img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.category-placeholder {
    width: 100px;
    height: 100px;
    background: #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #888;
}

/* ヒーローセクションのタイトルオーバーレイ */
.hero-title-overlay {
    position: absolute;
    top: 5%;
    left: 15%;
    transform: translateX(-50%) rotate(-8deg);
    z-index: 10;
    color: #fff;
    font-size: clamp(1.2em, 6vw, 2.5em);
    font-weight: bold;
    line-height: 1.2;
    text-shadow:
        0 8px 32px rgba(0,0,0,0.95),
        0 2px 0 #222,
        2px 2px 8px rgba(0,0,0,0.7),
        0 0 2px #000;
    letter-spacing: 0.05em;
    padding: 0.5em 1em;
    border-radius: 18px;
    pointer-events: none;
    text-align: left;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    max-width: 100vw;
    width: auto;
    font-family: 'Zen Maru Gothic', 'ヒラギノ丸ゴ ProN', 'Hiragino Maru Gothic ProN', 'Arial', sans-serif;
}

@media (max-width: 900px) {
  .hero-title-overlay {
    top: 3%;
    left: 30%;
    transform: translateX(-50%) rotate(-8deg);
    font-size: clamp(1em, 8vw, 2em);
  }
}

@media (max-width: 600px) {
  .hero-title-overlay {
    top: 2%;
    left: 50%;
    transform: translateX(-50%) rotate(-6deg);
    font-size: clamp(0.9em, 10vw, 1.5em);
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .hero-pinned-wall {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    pointer-events: none;
  }
  .hero-pinned-wall .pinned-photo-frame {
    position: relative;
    width: 40vw;
    max-width: 120px;
    min-width: 80px;
    margin: 0;
    padding: 2px;
    transform: none;
    top: auto;
    left: auto;
    pointer-events: auto;
  }
  .hero-pinned-wall .pinned-photo-frame img {
    max-width: 100%;
    height: auto;
  }
  .hero-pinned-wall .pin {
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
  }
}

h1, .section-title {
    font-size: clamp(1.5em, 5vw, 2.5em);
}
h2, .catch-copy {
    font-size: clamp(1.2em, 4vw, 2em);
}
h3, .category-info h3 {
    font-size: clamp(1em, 3vw, 1.5em);
}
.site-description, .article-content, .keyword, .article-card h2, .article-card .category {
    font-size: clamp(0.95em, 2vw, 1.1em);
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 0 1vw 40px 1vw;
  }
  .category-card {
    max-width: 100%;
    min-width: 0;
    min-height: 120px;
  }
}

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 0 2vw 20px 2vw;
  }
  .category-card {
    max-width: 140px;
    min-width: 100px;
    min-height: 140px;
    margin: 0 auto;
  }
  .articles-container {
    max-width: 100%;
    margin: 0;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
  }
  .article-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 18px;
    padding: 0;
  }
  .article-card > * {
    box-sizing: border-box;
    max-width: 100%;
  }
  .article-card img,
  .article-card .thumbnail,
  .article-card .thumbnail-link {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
  }
}

/* 運営者についてページのスタイル */
.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.8;
}

.about-container h1 {
    font-size: clamp(1.5em, 5vw, 2.5em);
    font-weight: bold;
    margin: 20px 0 30px;
    padding: 0 20px;
    letter-spacing: 0.05em;
    display: flex;
    align-items: baseline;
    gap: 15px;
    justify-content: center;
    text-align: center;
    width: 100%;
    color: var(--text-color);
}

.about-container h2 {
    font-size: clamp(1.2em, 4vw, 2em);
    color: var(--text-color);
    margin: 40px 0 20px 0;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.about-container h3 {
    font-size: clamp(1em, 3vw, 1.5em);
    color: var(--text-color);
    margin: 25px 0 15px 0;
    padding: 10px 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.about-container p {
    margin-bottom: 20px;
    color: var(--text-color);
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.about-container ul {
    margin: 20px 0;
    padding-left: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.about-container li {
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.6;
}

.profile-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin: 20px 0;
    align-items: center;
}

.profile-image {
    width: 100%;
    max-width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-name {
    font-size: clamp(1.2em, 4vw, 2em);
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.profile-title {
    color: #666;
    font-size: clamp(0.95em, 2vw, 1.1em);
    margin-bottom: 20px;
    padding: 8px 12px;
    background: #f8f8f8;
    border-radius: 6px;
    display: inline-block;
}


.values-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.value-item {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.value-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: clamp(1em, 3vw, 1.3em);
    font-weight: bold;
}

.contact-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-link:hover {
    background: #b3a06f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.back-link {
    display: inline-block;
    margin: 30px 0;
    padding: 12px 24px;
    background-color: #f5f5f5;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.back-link:hover {
    background-color: var(--text-color);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .profile-image {
        max-width: 200px;
        height: 200px;
    }
    
    .timeline-item {
        flex-direction: column;
        padding: 15px;
    }
    
    .timeline-date {
        min-width: auto;
        padding-right: 0;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .timeline-content {
        padding-left: 0;
        border-left: none;
        border-top: 2px solid var(--primary-color);
        padding-top: 15px;
    }
    
    .timeline-content::before {
        left: 50%;
        top: -6px;
        transform: translateX(-50%);
    }
    
    .about-container {
        margin: 20px auto;
        padding: 15px;
    }
    
    .about-container h1 {
        padding: 0 10px;
    }
    
    .about-container h2,
    .about-container h3,
    .about-container p,
    .about-container ul {
        padding: 15px;
    }
    
    .profile-section,
    .timeline,
    .values-section,
    .contact-section {
        padding: 20px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-link {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .about-container {
        padding: 10px;
    }
    
    .about-container h1 {
        font-size: clamp(1.2em, 6vw, 2em);
        padding: 0 5px;
    }
    
    .about-container h2 {
        font-size: clamp(1em, 5vw, 1.5em);
        padding: 12px 15px;
    }
    
    .about-container h3 {
        font-size: clamp(0.9em, 4vw, 1.2em);
        padding: 8px 12px;
    }
    
    .profile-section,
    .timeline,
    .values-section,
    .contact-section {
        padding: 15px;
        margin: 20px 0;
    }
    
    .profile-image {
        max-width: 150px;
        height: 150px;
    }
    
    .timeline-item {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .value-item {
        padding: 20px;
    }
    
    .contact-link,
    .back-link {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}
