
:root {
--primary-color: #007BFF;
--secondary-color: #6c757d;
}
body {
font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
line-height: 1.7;
margin: 0;
color: #333;
background-color: #f4f7f6;
}
.container {
width: 90%;
max-width: 1100px;
margin: auto;
}
section {
padding: 4.5rem 0;
}
.section-title {
text-align: center;
font-size: 2.2rem;
margin-bottom: 3.5rem;
color: #0056b3;
border-bottom: 3px solid #007bff;
display: inline-block;
padding-bottom: 10px;
}
/ 中央寄せにするためのラッパー */
.section-title-wrapper {
text-align: center;
margin-bottom: 3.5rem;
}

/* =================================== /
/ ===== ヘッダーナビゲーション ===== /
/ =================================== */
header {
background: #fff;
padding: 1rem 0;
border-bottom: 1px solid #ddd;
position: sticky;
top: 0;
z-index: 1000;
}
header .container {
display: flex;
justify-content: space-between;
align-items: center;
}
header .logo {
font-size: 1.6rem;
margin: 0;
color: var(--primary-color);
}
header nav ul {
margin: 0;
padding: 0;
list-style: none;
}
header nav ul li {
display: inline;
margin-left: 25px;
}
header nav a {
color: #333;
text-decoration: none;
font-weight: bold;
transition: color 0.3s;
}
header nav a:hover {
color: var(--primary-color);
}


#hero {

background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)) no-repeat center center/cover;
color: #fff;
text-align: center;
padding: 6rem 0;
}
#hero h2 {
font-size: 2.8rem;
margin-bottom: 1rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
#hero p {
font-size: 1.2rem;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* =================================== /
/ ===== はじめに＆学びセクション ===== /
/ =================================== */
#about, #learnings {
background: #fff;
}
#about .about-content, #learnings .container p {
max-width: 800px;
margin: 0 auto;
text-align: center;
font-size: 1.1rem;
}

/* =================================== /
/ ===== 成果物ギャラリー ===== /
/ =================================== */
#gallery {
background: #f4f7f6;
}
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 2.5rem;
}
.gallery-item {
background: #fff;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.08);
overflow: hidden;
transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item:hover {
transform: translateY(-10px);
box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}
.gallery-img {
width: 100%;
display: block;
}
.gallery-content {
padding: 1.5rem;
}
.gallery-title {
font-size: 1.5rem;
margin-top: 0;
margin-bottom: 0.5rem;
color: var(--primary-color);
}
.gallery-links {
margin-top: 1.5rem;
}
.btn {
display: inline-block;
padding: 0.6rem 1.2rem;
background: var(--primary-color);
color: #fff;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
transition: background-color 0.3s;
}

/* =================================== /
/ ===== メンバー紹介 ===== /
/ =================================== */
#members {
background: #fff;
}
.member-grid {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 2rem;
}
.member-card {
text-align: center;
padding: 1rem;
min-width: 180px;
}
.member-img {
width: 120px;
height: 120px;
border-radius: 50%;
object-fit: cover;
margin-bottom: 1rem;
border: 4px solid #fff;
box-shadow: 0 0 15px rgba(0,0,0,0.15);
transition: transform 0.3s;
}
.member-card:hover .member-img {
transform: scale(1.05);
}
.member-name {
margin-bottom: 0.2rem;
}
.member-info {
font-size: 0.9rem;
color: #666;
margin: 0;
}


#diary {
background: #f4f7f6;
}
.timeline-container {
position: relative;
border-left: 3px solid var(--primary-color);
margin: 0 auto;
max-width: 800px;
padding: 2rem 0 0 2rem;
}
.timeline-item {
position: relative;
margin-bottom: 4rem;
}
.timeline-dot {
position: absolute;
left: -33px; / 微調整 */
top: 5px;
width: 15px;
height: 15px;
background: #fff;
border: 3px solid var(--primary-color);
border-radius: 50%;
z-index: 10;
}
.timeline-content {
background: #fff;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.08);
overflow: hidden;
}
.timeline-img {
width: 100%;
height: auto;
display: block;
}
.timeline-text {
padding: 1.5rem 2rem 2rem;
}
.timeline-text h3 {
margin: 0 0 0.75rem 0;
font-size: 1.4rem;
}
.timeline-text p {
margin: 0;
line-height: 1.8;
}
.day-label {
background: var(--primary-color);
color: #fff;
padding: 5px 12px;
border-radius: 20px;
font-size: 0.9rem;
margin-right: 10px;
font-weight: bold;
}

/* =================================== /
/ ===== フッター ===== /
/ =================================== */
footer {
background: #333;
color: #fff;
text-align: center;
padding: 2rem 0;
}


@media (max-width: 768px) {
.section-title {
font-size: 1.8rem;
}
/ ヘッダーのナビゲーションを調整 */
header .container {
flex-direction: column;
}
header .logo {
margin-bottom: 1rem;
}
header nav ul li {
margin: 0 10px;
}



#hero h2 {
    font-size: 2rem;
}

.timeline-container {
    padding-left: 20px;
    border-left: none; /* 縦線はスマホでは消す */
}
.timeline-dot {
    left: -10px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 15px;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}
.timeline-item:last-child::before {
    display: none;
}

}
