/* ベースリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  background: #fbfbfb;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  display: flex;
  min-height: 100vh;
}

/* サイドバー */
.sidebar {
  width: 220px;
  background-color: #fff;
  padding: 40px 20px;
  position: fixed;
  height: 100vh;
  border-right: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.logo {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 60px;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
}

nav ul li {
  margin-bottom: 15px;
}

nav ul li a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  opacity: 0.6;
  position: relative;
  display: block;
  padding: 5px 0;
}

nav ul li a:hover, 
nav ul li a.active {
  opacity: 1;
}

nav ul li a.active::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333;
  left: -8px; /* ← 被らないように少し左に寄せる */
  top: 50%;
  transform: translateY(-50%);
}

/* メインコンテンツ */
main {
  flex: 1;
  margin-left: 220px;
  padding: 60px;
  max-width: 800px;
}

.section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.section.active {
  display: block;
}

h1 {
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

h2 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 1px;
}

h3 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 15px;
}

.subtitle {
  font-size: 18px;
  opacity: 0.6;
  margin-bottom: 20px;
}

.divider {
  width: 30px;
  height: 1px;
  background: #333;
  margin: 20px 0;
}

p {
  margin-bottom: 20px;
  font-weight: 300;
}

/* カード関連 */
.card-container {
  display: flex;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 4px;
  padding: 20px;
  width: calc(33.333% - 10px);
  min-width: 180px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.card.active {
  border-color: #333;
}

.card-title {
  font-weight: 400;
  text-align: center;
}

.card-content-container {
  margin-top: 30px;
}

.card-content {
  background: #fff;
  padding: 30px;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  display: none;
  animation: fadeIn 0.3s ease;
}

.card-content.active {
  display: block;
}

/* タイムライン */
.timeline {
  position: relative;
  margin: 40px 0;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 1px;
  background: rgba(0,0,0,0.1);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #333;
  box-shadow: 0 0 0 4px rgba(251,251,251,0.9);
}

.timeline-date {
  display: inline-block;
  padding: 3px 12px;
  background: #f0f0f0;
  border-radius: 15px;
  font-size: 14px;
  margin-bottom: 10px;
}

.timeline-content {
  background: #fff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.timeline-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.timeline-content p {
  margin-bottom: 0;
}

/* お問い合わせ */
.contact-info {
  margin: 30px 0;
}

.contact-item {
  margin-bottom: 15px;
}

.contact-label {
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 5px;
}

.contact-value a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  transition: border-color 0.3s ease;
}

.contact-value a:hover {
  border-color: #333;
}

.note {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 30px;
}

/* バイオ情報 */
.bio-item {
  margin-bottom: 15px;
}

.bio-label {
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 5px;
}

.favicon-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 50%; /* ロゴが丸くない場合も円に見えるように */
  box-shadow: 0 0 3px rgba(0,0,0,0.2); /* 軽く立体感 */
}

.profile-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
}

/* アニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* レスポンシブ */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  
  .logo {
    margin-bottom: 20px;
  }
  
  nav ul {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  nav ul li {
    margin-bottom: 0;
  }
  
  main {
    margin-left: 0;
    padding: 30px 20px;
  }
  
  .card {
    width: calc(50% - 8px);
  }
}

@media (max-width: 480px) {
  .card {
    width: 100%;
  }  
}

/* ▼ スマホ最適化（画面幅768px以下） */
@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }

  p {
    font-size: 14px;
    line-height: 1.7;
  }

  .subtitle {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 18px;
  }

  /* 既存のスマホ向けスタイル（維持） */
  .section {
    padding: 40px 16px;
  }

  .card-content {
    padding: 20px;
  }

  .profile-line {
    font-size: 14px;
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
  }

  .bio-photo {
    width: 80%;
  }
}

/* カードタイトルの中央揃え調整（全体に反映） */
.card-title {
  font-weight: 400;
  text-align: center;
  word-break: break-word;
}

.bio-photo-wrapper {
  text-align: center;
  margin-bottom: 20px;
}

.bio-photo {
  width: 240px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.quiet-link {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease;
}

.quiet-link:hover {
  border-color: #333;
}

.year-details {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-left: 15px;
  border-left: 2px solid #eee;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.year-details.active {
  max-height: 1000px;
  opacity: 1;
}

.timeline-date.toggle-year {
  cursor: pointer;
  transition: all 0.2s ease;
}

.timeline-date.toggle-year:hover {
  background-color: #eaeaea;
}

.toggle-icon {
  font-size: 0.8em;
  margin-left: 6px;
  color: #666;
}

/* パートナーセクション専用スタイル */
.partner-intro {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #333;
}

.partner-intro p {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

.partner-profile {
  background: #fff;
  padding: 30px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.partner-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.partner-name {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 5px;
}

.partner-role {
  font-size: 14px;
  opacity: 0.6;
  background: #666;
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
}

/* SERVICES SECTION */
.free-consultation {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 4px;
  border-left: 3px solid #333;
  margin-bottom: 30px;
  text-align: center;
}

.free-consultation h3 {
  margin: 0 0 15px 0;
  font-size: 20px;
  font-weight: 400;
}

.free-consultation p {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

.service-item {
  background: #fff;
  padding: 25px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 25px;
  border-left: 3px solid #333;
}

.service-item h4 {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 400;
}

.service-price {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.service-description ul {
  list-style: none;
  padding-left: 0;
}

.service-description li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.service-description li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #333;
  font-size: 12px;
}

.service-flow {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.service-flow h3 {
  margin-bottom: 30px;
}

.service-flow .timeline-content h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
}

.service-flow .timeline-content p {
  margin-bottom: 0;
  font-size: 14px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .service-item {
    padding: 20px;
  }
  
  .service-price {
    font-size: 13px;
    padding: 3px 10px;
  }
}

/* BLOG SECTION */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.blog-article {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 4px;
  padding: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
  display: block;
}

.blog-article:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.blog-date {
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.5;
}

.blog-excerpt {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.blog-link {
  text-align: center;
  margin-top: 40px;
}

.loading-text {
  text-align: center;
  opacity: 0.6;
  font-size: 14px;
}

@media (max-width: 768px) {
  .blog-container {
    grid-template-columns: 1fr;
  }
}