/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: 'Inter', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  font-weight: 300;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.85;
  font-size: 15px;
  letter-spacing: 0.02em;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===================== VARIABLES ===================== */
:root {
  --white: #ffffff;
  --bg: #f7f7f5;
  --border: #e8e8e4;
  --text: #1a1a1a;
  --text-sub: #888880;
  --orange: #f07c3a;
  --orange-light: #fff0e6;
  --blue: #5badd4;
  --blue-light: #e8f4fb;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
}

/* ===================== LAYOUT ===================== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }

/* ===================== HEADER ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: none;
  height: 100px;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.header__logo {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
}
.header__logo span { color: var(--orange); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 13.5px; color: var(--text-sub); font-weight: 500; transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav .btn-nav {
  background: var(--orange);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.2s;
}
.nav .btn-nav:hover { opacity: 0.85; }

/* ===================== HAMBURGER ===================== */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 15px 24px; font-size: 15px; border-bottom: 1px solid var(--border); }
.mobile-menu .btn-nav { margin: 16px 24px 20px; text-align: center; border-radius: 20px; background: var(--orange); color: #fff; font-weight: 700; border-bottom: none; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.72);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero__inner {
  display: flex;
  align-items: center;
  gap: 56px;
}
.hero__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--border);
}
.hero__text {}
.hero__tagline {
  font-size: clamp(18px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text);
  line-height: 1.4;
}

.profile-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-sub);
  text-decoration: none;
  padding: 6px 12px;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}
.profile-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #888;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
.profile-link:hover::before { transform: translateX(0); }
.profile-link:hover { color: #fff; }

/* ===================== PROFILE SECTION ===================== */
.profile-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

/* ===================== PROFILE BAR ===================== */
.profile-bar {
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.profile-bar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.profile-bar__photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.profile-bar__text { flex: 1; }
.profile-bar__name {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.profile-bar__name-en {
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.profile-bar__bio {
  font-size: 13.5px;
  color: var(--text-sub);
}
.profile-bar__sns {
  display: flex;
  gap: 14px;
}
.profile-bar__sns a {
  color: var(--text-sub);
  transition: color 0.2s;
}
.profile-bar__sns a:hover { color: var(--text); }
.hero__name {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.hero__name-en {
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.hero__bio {
  font-size: 14.5px;
  color: var(--text-sub);
  line-height: 1.9;
  max-width: 520px;
}
.hero__sns {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.hero__sns a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-sub);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s;
}
.hero__sns a:hover { border-color: var(--orange); color: var(--orange); }

/* ===================== NEWS ===================== */
.news-section {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.news-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 20px 0;
}
.news-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  padding-top: 2px;
  flex-shrink: 0;
  width: 48px;
}
.news-list {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  font-size: 13.5px;
  line-height: 1.7;
}
.news-date {
  color: var(--text-sub);
  font-size: 12px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.news-text {
  color: var(--text);
}

/* ===================== SECTION LABEL ===================== */
.section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-label__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-sub);
}
.section-label__more {
  font-size: 12.5px;
  color: var(--blue);
  font-weight: 600;
}
.section-label__more:hover { text-decoration: underline; }

/* ===================== ARTICLE CARDS ===================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.article-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg);
  overflow: hidden;
}
.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.article-card:hover .article-card__thumb img { transform: scale(1.04); }
.article-card__thumb--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--border);
}
.article-card__body { padding: 18px 20px 22px; }
.article-card__tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.tag--column { background: var(--orange-light); color: var(--orange); }
.tag--essay  { background: var(--blue-light); color: var(--blue); }
.tag--info   { background: #f0f0ed; color: #666; }
.article-card__title {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 8px;
  color: var(--text);
}
.article-card__date {
  font-size: 11.5px;
  color: var(--text-sub);
}

/* ===================== ARTICLE LIST (Blog page) ===================== */
.article-list { display: flex; flex-direction: column; gap: 0; }
.article-list-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: opacity 0.2s;
}
.article-list-item:first-child { border-top: 1px solid var(--border); }
.article-list-item:hover { opacity: 0.75; }
.article-list-item__thumb {
  width: 140px;
  height: 88px;
  border-radius: 6px;
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
}
.article-list-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-list-item__thumb--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--border);
}
.article-list-item__body { flex: 1; }
.article-list-item__title { font-size: 15.5px; font-weight: 700; line-height: 1.55; margin-bottom: 8px; }
.article-list-item__meta { display: flex; align-items: center; gap: 10px; }
.article-list-item__date { font-size: 12px; color: var(--text-sub); }

/* ===================== PAGE HERO ===================== */
.page-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.page-hero__title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.page-hero__sub {
  font-size: 14px;
  color: var(--text-sub);
}

/* ===================== WORK SECTION ===================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.work-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  border: 1px solid var(--border);
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s cubic-bezier(0.22,1,0.36,1), border-color 0.25s;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: var(--orange);
}
.work-card__title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.work-card__text { font-size: 13.5px; color: var(--text-sub); line-height: 1.8; }

/* ===================== ABOUT ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}
.about-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}
.about-name { font-size: 22px; font-weight: 300; letter-spacing: 0.1em; margin-bottom: 4px; }
.about-name-en { font-size: 11px; color: var(--text-sub); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 20px; }
.about-text { font-size: 14.5px; line-height: 2.0; color: #333; margin-bottom: 28px; }
.about-sns { display: flex; gap: 10px; }

/* ===================== FORM ===================== */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
}
.form-label span { color: var(--orange); font-size: 11px; margin-left: 6px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14.5px;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--blue);
}
.form-textarea { resize: vertical; min-height: 140px; }

/* ===================== BUTTON ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: 24px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
  font-family: inherit;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn--full { width: 100%; }

/* ===================== FOOTER ===================== */
.footer {
  background: #f0f0ee;
  color: #666;
  padding: 48px 0 28px;
  margin-top: 80px;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__logo { font-size: 16px; font-weight: 900; color: #333; margin-bottom: 8px; }
.footer__logo span { color: var(--orange); }
.footer__desc { font-size: 12.5px; line-height: 1.9; color: #999; max-width: 280px; }
.footer__sns { display: flex; gap: 10px; margin-top: 16px; }
.footer__sns a { color: #999; transition: color 0.2s; }
.footer__sns a:hover { color: #333; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 13px; color: #888; transition: color 0.2s; }
.footer__links a:hover { color: #333; }
.footer__col-title { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #aaa; margin-bottom: 14px; }
.footer__bottom { border-top: 1px solid #ddd; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.footer__copyright { font-size: 11.5px; color: #aaa; }

/* ===================== SINGLE POST ===================== */
.post-header { padding: 48px 0 36px; border-bottom: 1px solid var(--border); margin-bottom: 48px; }
.post-header__tag { margin-bottom: 16px; }
.post-header__title { font-size: clamp(22px, 4vw, 32px); font-weight: 900; line-height: 1.5; margin-bottom: 16px; }
.post-header__meta { display: flex; align-items: center; gap: 16px; }
.post-header__date { font-size: 12.5px; color: var(--text-sub); }
.post-header__author { font-size: 12.5px; color: var(--text-sub); }
.post-body { font-size: 15.5px; line-height: 2.1; color: #222; }
.post-body p { margin-bottom: 1.8em; }
.post-body h2 { font-size: 20px; font-weight: 700; margin: 2.4em 0 0.8em; padding-bottom: 10px; border-bottom: 2px solid var(--orange); }
.post-body h3 { font-size: 17px; font-weight: 700; margin: 2em 0 0.6em; color: var(--blue); }
.post-footer { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); }
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.author-box__photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box__name { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.author-box__bio { font-size: 13px; color: var(--text-sub); line-height: 1.8; }

/* ===================== STORY ===================== */
.story-section {
  border-bottom: 1px solid var(--border);
}
.story-subcopy {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 32px;
}
.story-body {
  font-size: clamp(13.5px, 1.8vw, 15.5px);
  font-weight: 300;
  line-height: 2.2;
  letter-spacing: 0.05em;
  color: #555;
}

/* ===================== HERO FADE (page load) ===================== */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-fade {
  animation: heroFadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* ===================== CAROUSEL ===================== */
.latest-section { overflow: hidden; max-width: 100%; }
.carousel-outer {
  overflow: hidden;
  margin-top: 8px;
}
.carousel-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: carouselScroll 28s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }
.carousel-card {
  width: 280px;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: 24px; /* gap の代わり。各カードが自分の右余白を持つことでループ幅が正確になる */
}
.carousel-card .article-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--border);
  overflow: hidden;
}
/* 5枚 × (280 + 24) = 1520px ぴったり -50% でループ */
@keyframes carouselScroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ===================== FADE IN ===================== */
.js-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .container--narrow { padding: 0 20px; }
  .nav { display: none; }
  .hamburger { display: flex; }
  .article-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero__inner { flex-direction: column; gap: 24px; text-align: center; }
  .hero__photo { width: 110px; height: 110px; }
  .hero__name { font-size: 20px; }
  .hero__text { width: 100%; min-width: 0; }
  .hero__bio { font-size: 13px; width: 100%; max-width: 100%; overflow-wrap: break-word; word-break: auto-phrase; line-height: 1.9; }
  .hero__sns { justify-content: center; flex-wrap: wrap; gap: 8px; }
  .hero__sns a { font-size: 12px; padding: 5px 12px; }
  .work-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { margin: 0 auto; width: 160px; height: 160px; }
  .about-text { font-size: 13.5px; line-height: 1.9; margin-bottom: 20px; word-break: auto-phrase; overflow-wrap: break-word; }
  .about-sns { flex-wrap: wrap; gap: 8px; }
  .footer__inner { flex-direction: column; gap: 32px; }
  .article-list-item__thumb { width: 100px; height: 70px; }
  .hero { min-height: 280px; }
  .news-inner { flex-direction: column; gap: 8px; padding: 16px 0; }
  .news-item { flex-direction: column; gap: 2px; }
  .hero__tagline { letter-spacing: 0.15em; font-size: clamp(28px, 8vw, 48px); line-height: 2.0; }
  .page-hero { padding: 40px 0 36px; }
  .page-hero__title { font-size: clamp(20px, 5vw, 28px); }
  .page-hero__sub { font-size: 13px; word-break: auto-phrase; overflow-wrap: break-word; }
  .section { padding: 48px 0; }
  .work-card { padding: 20px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .container--narrow { padding: 0 16px; }
  .article-grid { grid-template-columns: 1fr; }
  .about-photo { width: 140px; height: 140px; }
  .about-text { font-size: 13px; }
}
