@charset "utf-8";

/* =====================
   CSS変数
===================== */
:root {
  --base-white: #ffffff;
  --text-main: #222222;
  --accent-blue: #5f7f95;
  --gray-light: #f5f5f5;
}

/* =====================
   reset & base
===================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text-main);
  background-color: var(--base-white);
  line-height: 1.8;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

/* =====================
   Header
===================== */
.header {
  padding: 20px 0;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-title {
  font-size: 1.2rem;
  font-weight: 500;
}

/* =====================
   Hero
===================== */
.hero {
  padding: 120px 20px 140px;
  text-align: center;
}

.hero-catch {
  font-family: "Zen Old Mincho", serif;
  font-size: 2.6rem;
  line-height: 1.4;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1rem;
  margin-bottom: 16px;
}

.hero-menu {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 40px;
}

/* =====================
   Button
===================== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  font-size: 0.95rem;
  transition: 0.3s;
}

.btn:hover {
  background-color: var(--accent-blue);
  color: #ffffff;
}

/* =====================
   Section common
===================== */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 20px;
}

.section-title {
  font-family: "Zen Old Mincho", serif;
  font-size: 2rem;
  margin-bottom: 40px;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 1px;
  background-color: var(--accent-blue);
  display: block;
  margin-top: 12px;
}

/* =====================
   About
===================== */
.about p {
  max-width: 720px;
  margin-bottom: 24px;
}

.about-inner {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-image img {
  width: 220px;
  height: auto;
  border-radius: 8px;
}

.about-text {
  flex: 1;
}

.about-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--accent-blue);
  padding-bottom: 4px;
}

/* =========================
   Detail page（About / Works）
========================= */

.detail {
  padding-bottom: 120px;
}

.detail-about {
  max-width: 800px;
  margin: 0 auto;
}

.detail-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}

.detail-image {
  width: 200px;
  display: block;
  margin: 0 auto 40px;
  border-radius: 8px;
}

.detail h2 {
  margin-top: 40px;
  font-size: 1.3rem;
}

.detail p,
.detail ul {
  line-height: 1.9;
}

.detail ul {
  padding-left: 20px;
  list-style: disc;
}

/* =========================
   Timeline（About 年表）
========================= */

.timeline {
  margin-top: 32px;
  padding-left: 0;
}

.timeline li {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
}

.timeline-year {
  font-weight: 500;
  color: var(--accent-blue);
  min-width: 70px;
}

.timeline p {
  margin: 0;
  line-height: 1.8;
}



/* =====================
   Works
===================== */
.works {
  background-color: var(--gray-light);
}

.works .section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.works-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.work-card {
  background-color: #ffffff;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.work-title {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.work-desc {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.work-skill {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 24px;
}

.work-link {
  margin-top: auto;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--accent-blue);
  padding-bottom: 4px;
  align-self: flex-start;
}
.work-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 16px;
}

.detail-image {
  max-width: 500px; /* 画像が大きすぎない */
  margin: 0 auto 32px;
}

.tree {
  background-color: #f8f8f8;
  padding: 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.8;
  overflow-x: auto;
}

.detail-title {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
}

.detail-image {
  width: 100%;
  max-width: 700px;
  display: block;
  margin: 0 auto 40px;
  border-radius: 8px;
}

.detail h2 {
  margin-top: 40px;
  font-size: 1.3rem;
}

.detail ul {
  margin-left: 20px;
  list-style: disc;
}

/* =====================
   Footer
===================== */
.footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.8rem;
  color: #666;
}


/* =====================
   Contact
===================== */
.contact {
  background-color: var(--gray-light);
  text-align: center;
}

.contact-text {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.contact-mail {
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--accent-blue);
  padding-bottom: 4px;
}

/* =====================
   Responsive
===================== */
@media screen and (max-width: 768px) {

  .hero {
    padding: 100px 20px;
  }

  .hero-catch {
    font-size: 2rem;
  }

  .section {
    padding: 80px 20px;
  }

  .works-list {
    grid-template-columns: 1fr;
  }
  /* about */
  .timeline li {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-year {
    min-width: auto;
  }
}

