/* ============================================
   森山建吾 — 個人ホームページ
   コンセプト：「白の多様性」
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 白の多様性 */
  --white-cream: #FAFAF7;
  --white-snow-shadow: #F0F4F8;
  --white-blizzard: #F5F5F5;
  --white-thaw: #FAF8F5;

  /* アクセント */
  --charcoal: #1A1A1A;
  --alps-blue: #2C4A6E;
  --alps-blue-light: #3D6490;
  --gray-subtle: #888;
  --gray-light: #D0D0D0;
  --gray-border: #E8E8E8;

  /* フォント */
  --font-ja: 'Noto Sans JP', '游ゴシック', 'Yu Gothic', sans-serif;
  --font-en: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* スペーシング */
  --section-padding: 120px 24px;
  --section-padding-mobile: 80px 20px;
  --container-max: 1080px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-ja);
  color: var(--charcoal);
  background-color: var(--white-cream);
  line-height: 1.9;
  font-weight: 400;
  font-size: 15px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* --- Section Label --- */
.section-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-subtle);
  margin-bottom: 48px;
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--charcoal);
  /* 仮背景 — 写真で差し替え */
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    /* 左右のビネット：端を暗く、中央を明るく */
    radial-gradient(
      ellipse 70% 80% at 45% 45%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.45) 100%
    ),
    /* 右端をさらに暗く（人物側） */
    linear-gradient(
      to left,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0) 30%
    ),
    /* 下部を少し暗く（テキスト視認性） */
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0) 50%
    );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero__title {
  font-family: var(--font-ja);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.15em;
  line-height: 1.6;
  margin-bottom: 16px;
}

.hero__name {
  font-family: var(--font-ja);
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.3em;
  margin-bottom: 12px;
}

.hero__subtitle {
  font-family: var(--font-ja);
  font-size: clamp(13px, 2vw, 16px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.2em;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.5);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}


/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: var(--section-padding);
  background-color: var(--white-cream);
}

.about__container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.about__image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(10%);
}

.about__body p {
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 2;
  color: var(--charcoal);
}

.about__body p:last-child {
  margin-bottom: 40px;
}

.about__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--alps-blue);
  letter-spacing: 0.05em;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--alps-blue);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.about__cta:hover {
  color: var(--alps-blue-light);
  border-color: var(--alps-blue-light);
}

.about__cta svg {
  transition: transform 0.3s ease;
}

.about__cta:hover svg {
  transform: translateX(4px);
}


/* ============================================
   CAREER
   ============================================ */
.career {
  padding: var(--section-padding);
  background-color: var(--white-snow-shadow);
}

.career__container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.career__info {
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--gray-border);
}

.career__info-row {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  align-items: baseline;
}

.career__info-row:last-child {
  margin-bottom: 0;
}

.career__info-row dt {
  flex-shrink: 0;
  width: 56px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gray-subtle);
}

.career__info-row dd {
  font-size: 15px;
  line-height: 1.8;
}

.career__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.career__item {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-border);
  align-items: baseline;
}

.career__item:first-child {
  border-top: 1px solid var(--gray-border);
}

.career__year {
  flex-shrink: 0;
  width: 72px;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--gray-subtle);
}

.career__desc {
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .career__info-row {
    flex-direction: column;
    gap: 4px;
  }

  .career__info-row dt {
    width: auto;
  }

  .career__item {
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
  }

  .career__year {
    width: auto;
  }
}


/* ============================================
   LINKS
   ============================================ */
.links {
  padding: var(--section-padding);
  background-color: var(--white-snow-shadow);
}

.links__container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.links__grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: var(--gray-border);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}

.link-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 16px;
  background-color: var(--white-snow-shadow);
  transition: background-color 0.3s ease;
}

.link-card:hover {
  background-color: #E8EDF3;
}

.link-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  opacity: 0.7;
}

.link-card__name {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  color: var(--charcoal);
}

.link-card__desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-subtle);
}


/* ============================================
   BLOG
   ============================================ */
.blog {
  padding: var(--section-padding);
  background-color: var(--white-cream);
}

.blog__container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--gray-border);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  margin-bottom: 40px;
}

.blog-post {
  display: flex;
  gap: 24px;
  padding: 24px 16px;
  background-color: var(--white-cream);
  transition: background-color 0.3s ease;
  align-items: flex-start;
}

.blog-post:hover {
  background-color: var(--white-thaw);
}

.blog-post__thumbnail {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  overflow: hidden;
  background: var(--white-blizzard);
}

.blog-post__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post__body {
  flex: 1;
  min-width: 0;
}

.blog-post__date {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--gray-subtle);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.blog-post__title {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--charcoal);
}

.blog__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--alps-blue);
  letter-spacing: 0.05em;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--alps-blue);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.blog__more:hover {
  color: var(--alps-blue-light);
  border-color: var(--alps-blue-light);
}

.blog__more svg {
  transition: transform 0.3s ease;
}

.blog__more:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .blog-post__thumbnail {
    width: 88px;
    height: 60px;
  }

  .blog-post__title {
    font-size: 14px;
  }
}


/* ============================================
   MEDIA
   ============================================ */
.media {
  padding: var(--section-padding);
  background-color: var(--white-thaw);
}

.media__container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.media__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.media-card {
  display: block;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.media-card:hover {
  transform: translateY(-2px);
}

.media-card--featured .media-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--white-blizzard);
}

.media-card--featured .media-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.media-card--featured:hover .media-card__image img {
  transform: scale(1.02);
}

.media-card__body {
  padding: 24px 0;
}

.media-card__source {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-subtle);
}

.media-card__source-logo {
  height: 20px;
  width: auto;
  opacity: 0.6;
}

.media-card__title {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin: 8px 0 12px;
  color: var(--charcoal);
}

.media-card__desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-subtle);
}


/* ============================================
   SUPPORTERS
   ============================================ */
.supporters {
  padding: var(--section-padding);
  background-color: var(--white-blizzard);
}

.supporters__container {
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}

.supporters__container .section-label {
  text-align: left;
}

.supporters__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.supporters__logo-img--armada,
.supporters__logo-img--matsuoka {
  height: 48px;
}

.supporters__logo-link {
  display: flex;
  align-items: center;
}

.supporters__logo-img {
  height: 40px;
  width: auto;
}

.supporters__note {
  font-size: 13px;
  color: var(--gray-subtle);
  letter-spacing: 0.05em;
}


/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: var(--section-padding);
  background-color: var(--white-cream);
}

.contact__container {
  max-width: 640px;
  margin: 0 auto;
}

.contact__intro {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 16px;
}

.contact__emphasis {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 56px;
}

/* Form */
.contact__form {
  margin-bottom: 56px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gray-subtle);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-ja);
  font-size: 15px;
  color: var(--charcoal);
  background: transparent;
  border: 1px solid var(--gray-border);
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--charcoal);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  display: inline-block;
  padding: 14px 48px;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--charcoal);
  border: 1px solid var(--charcoal);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.form-submit:hover {
  background: transparent;
  color: var(--charcoal);
}

/* Thank you message */
.contact__thanks {
  text-align: center;
  padding: 48px 0;
}

.contact__thanks p {
  font-size: 15px;
  line-height: 2;
  color: var(--charcoal);
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 48px 24px;
  background-color: var(--charcoal);
  color: rgba(255, 255, 255, 0.5);
}

.footer__container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: #fff;
}

.footer__copy {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.footer__privacy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.footer__privacy:hover {
  color: rgba(255, 255, 255, 0.6);
}


/* ============================================
   RESPONSIVE — Mobile First
   ============================================ */

/* Mobile (default) */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px 20px;
  }

  /* Hero: スマホで人物が見えるよう右寄せ */
  .hero {
    background-size: cover;
    background-position: 70% center;
  }

  .section-label {
    margin-bottom: 32px;
  }

  /* Supporters */
  .supporters__logo-img {
    height: 32px;
  }

  .supporters__logo-img--armada,
  .supporters__logo-img--matsuoka {
    height: 40px;
  }

  /* About */
  .about__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__image {
    max-width: 85%;
  }

  .about__image img {
    aspect-ratio: 4 / 5;
  }

  /* Links */
  .link-card {
    padding: 24px 8px;
  }

  .link-card__icon {
    width: 32px;
    height: 32px;
  }

  /* Media */
  .media-card__title {
    font-size: 20px;
  }

  /* Supporters */
  .supporters__logos {
    gap: 40px;
  }

  .supporters__logo img {
    height: 28px;
  }
}

/* Tablet and up */
@media (min-width: 769px) {
  body {
    font-size: 16px;
  }

  .about__container {
    grid-template-columns: 2fr 3fr;
    gap: 80px;
  }

  .media__grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }
}

/* Desktop */
@media (min-width: 1080px) {
  :root {
    --section-padding: 140px 40px;
  }
}
