/* ============================================
   MINOVA - 一般社団法人MINOVA 公式サイト
   style.css - メインスタイルシート
   ============================================ */

/* --- リセット・ベース --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- ユーティリティ --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--gray {
  background-color: #f7f7f7;
}

.section-label {
  writing-mode: vertical-rl;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: #666;
  font-weight: 400;
  line-height: 1;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 48px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #888;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

/* --- ヘッダー --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #222;
}

.header__logo img {
  height: 55px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__nav a {
  font-size: 0.85rem;
  color: #555;
  letter-spacing: 0.04em;
  transition: color 0.3s;
  position: relative;
}

.header__nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #333;
  transition: width 0.3s;
}

.header__nav a:hover {
  color: #222;
}

.header__nav a:hover::after {
  width: 100%;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 90px;
  background: #000;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: center center / cover no-repeat;
  opacity: 0.3;
}

/* 仮画像がない場合のフォールバック */
.hero__bg--placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  filter: brightness(0.7);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.hero__copy {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__copy span {
  display: block;
}

/* --- Visionセクション --- */
.vision {
  padding: 120px 0;
}

.vision__inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.vision__heading {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.vision__text {
  font-size: 0.95rem;
  line-height: 2;
  color: #555;
}

.vision__text p {
  margin-bottom: 24px;
}

.vision__text p:last-child {
  margin-bottom: 0;
}

.vision__image {
  margin-top: 60px;
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
}

.vision__image--placeholder {
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
}

/* --- 私たちの仕事セクション --- */
.work {
  padding: 120px 0;
  background: #fafafa;
}

.work__inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.work__content {
  flex: 1;
}

.work__item {
  margin-bottom: 60px;
}

.work__item:last-child {
  margin-bottom: 0;
}

.work__number {
  font-size: 0.85rem;
  color: #999;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.work__item-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.work__item-text {
  font-size: 0.95rem;
  line-height: 2;
  color: #555;
  margin-bottom: 24px;
}

.work__images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.work__images img,
.work__images .placeholder-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.placeholder-img {
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.8rem;
}

/* --- カードセクション共通 --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8e8e8;
}

.card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.8rem;
}

.card__body {
  padding: 20px;
}

.card__category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #333;
  padding: 2px 10px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.card__date {
  font-size: 0.78rem;
  color: #999;
  margin-left: 8px;
}

.card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}

.card__summary {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.7;
}

/* --- お知らせ（リスト形式） --- */
.news-list {
  border-top: 1px solid #eee;
}

.news-list__item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.news-list__item:hover {
  background: #fafafa;
}

.news-list__image {
  width: 160px;
  min-width: 160px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8e8e8;
  border-radius: 4px;
}

.news-list__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.75rem;
}

.news-list__content {
  flex: 1;
}

.news-list__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.news-list__category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #333;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.06em;
}

.news-list__date {
  font-size: 0.8rem;
  color: #999;
}

.news-list__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.news-list__summary {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.6;
}

/* --- メンバー横スクロール --- */
.members-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.members-scroll .member-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

.members-scroll::-webkit-scrollbar {
  height: 6px;
}

.members-scroll::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 3px;
}

.members-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.members-scroll::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* --- メンバーカード --- */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.member-card {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s;
}

.member-card:hover {
  transform: translateY(-4px);
}

.member-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  background: #e8e8e8;
}

.member-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.75rem;
}

.member-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.member-card__affiliation {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 4px;
}

.member-card__role {
  font-size: 0.8rem;
  color: #666;
  font-weight: 600;
  margin-bottom: 12px;
}

.member-card__comment {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
  font-style: italic;
}

/* --- 法人情報テーブル --- */
.info-table {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid #eee;
}

.info-table th {
  text-align: left;
  font-weight: 400;
  font-size: 0.9rem;
  color: #888;
  padding: 16px 24px 16px 0;
  white-space: nowrap;
  vertical-align: top;
  width: 120px;
}

.info-table td {
  font-size: 0.95rem;
  padding: 16px 0;
}

/* --- お問い合わせフォーム --- */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.contact-form__intro {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 40px;
  line-height: 1.8;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-group .required {
  display: inline-block;
  font-size: 0.7rem;
  color: #fff;
  background: #e74c3c;
  padding: 1px 8px;
  border-radius: 2px;
  margin-left: 8px;
  font-weight: 400;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: border-color 0.3s;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #333;
}

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

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #333;
}

.form-checkbox label {
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 0;
}

.form-checkbox .required {
  display: inline-block;
  font-size: 0.7rem;
  color: #fff;
  background: #e74c3c;
  padding: 1px 8px;
  border-radius: 2px;
  margin-left: 8px;
  font-weight: 400;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 24px;
  line-height: 1.7;
}

.form-submit {
  display: block;
  width: 200px;
  margin: 0 auto;
  padding: 16px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s;
}

.form-submit:hover {
  background: #555;
}

.form-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* --- ボタン共通 --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid #333;
  color: #333;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  transition: background 0.3s, color 0.3s;
  border-radius: 0;
}

.btn:hover {
  background: #333;
  color: #fff;
}

.btn--primary {
  background: #333;
  color: #fff;
}

.btn--primary:hover {
  background: #555;
}

.btn--center {
  display: block;
  text-align: center;
  width: fit-content;
  margin: 40px auto 0;
}

/* --- CTA セクション --- */
.cta {
  text-align: center;
  padding: 80px 0;
  background: #f5f5f5;
}

.cta__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta__text {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 32px;
}

/* --- TOM JAPAN 導線 --- */
.tom-japan-banner {
  position: relative;
  padding: 80px 0;
  background: #f0f0f0;
  overflow: hidden;
}

.tom-japan-banner__inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.tom-japan-banner__image {
  width: 400px;
  min-width: 300px;
  aspect-ratio: 4 / 3;
  background: #ddd;
  border-radius: 8px;
  object-fit: cover;
}

.tom-japan-banner__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.85rem;
}

.tom-japan-banner__content {
  flex: 1;
}

.tom-japan-banner__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.tom-japan-banner__text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* --- 大きな画像セクション --- */
.full-image {
  width: 100%;
  height: 50vh;
  min-height: 300px;
  object-fit: cover;
  background: #e0e0e0;
}

.full-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
}

/* --- ページヘッダー（各ページ上部） --- */
.page-header {
  padding: 150px 0 60px;
  text-align: center;
}

.page-header__title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.page-header__subtitle {
  font-size: 0.85rem;
  color: #999;
  letter-spacing: 0.1em;
}

/* --- 代表メッセージ --- */
.message {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.message__text {
  flex: 1;
}

.message__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 24px;
}

.message__body {
  font-size: 0.95rem;
  line-height: 2;
  color: #555;
}

.message__body p {
  margin-bottom: 20px;
}

.message__body p:last-child {
  margin-bottom: 0;
}

.message__author {
  text-align: right;
  font-size: 0.9rem;
  color: #666;
  margin-top: 24px;
}

.message__photo {
  width: 300px;
  min-width: 250px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  background: #e8e8e8;
}

.message__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.8rem;
}

/* --- フッター --- */
.footer {
  background: #333;
  color: #fff;
  padding: 60px 0 32px;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer__nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

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

.footer__logo {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.footer__links {
  text-align: center;
  margin-bottom: 16px;
}

.footer__links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

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

.footer__copy {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- プライバシーポリシー --- */
.privacy__heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.privacy__text {
  font-size: 0.95rem;
  color: #555;
  line-height: 2;
  margin-bottom: 16px;
}

.privacy__list {
  font-size: 0.95rem;
  color: #555;
  line-height: 2;
  margin-bottom: 16px;
  padding-left: 24px;
  list-style: disc;
}

.privacy__list li {
  margin-bottom: 4px;
}

/* --- フェードインアニメーション --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- レスポンシブ --- */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: 70px 0;
  }

  /* ヘッダー */
  .hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 0;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .header__nav.is-open {
    right: 0;
  }

  .header__nav a {
    font-size: 1rem;
    padding: 16px 0;
    display: block;
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

  .nav-overlay.is-visible {
    display: block;
  }

  /* Hero */
  .hero {
    height: 80vh;
    min-height: 500px;
  }

  .hero__copy {
    font-size: 2rem;
  }

  /* Vision */
  .vision {
    padding: 80px 0;
  }

  .vision__inner {
    flex-direction: column;
    gap: 16px;
  }

  .section-label {
    writing-mode: horizontal-tb;
  }

  .vision__heading {
    font-size: 1.2rem;
  }

  .vision__image {
    height: 250px;
  }

  /* Work */
  .work {
    padding: 80px 0;
  }

  .work__inner {
    flex-direction: column;
    gap: 16px;
  }

  .work__images {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: 1fr;
  }

  /* News List */
  .news-list__item {
    flex-direction: column;
    gap: 12px;
  }

  .news-list__image {
    width: 100%;
    min-width: 100%;
  }

  /* Message */
  .message {
    flex-direction: column-reverse;
    gap: 24px;
  }

  .message__photo {
    width: 100%;
    min-width: unset;
    aspect-ratio: 4 / 3;
  }

  /* TOM JAPAN Banner */
  .tom-japan-banner__inner {
    flex-direction: column;
    gap: 24px;
  }

  .tom-japan-banner__image {
    width: 100%;
    min-width: unset;
  }

  /* Page Header */
  .page-header {
    padding: 120px 0 40px;
  }

  .page-header__title {
    font-size: 1.6rem;
  }

  /* Members */
  .members-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }

  /* Section Header */
  .section-header {
    flex-direction: column;
    gap: 12px;
  }

  .section-title {
    font-size: 1.3rem;
  }

  /* Info Table */
  .info-table th {
    width: 90px;
    font-size: 0.8rem;
    padding-right: 12px;
  }

  .info-table td {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero__copy {
    font-size: 1.6rem;
  }

  .work__images {
    grid-template-columns: 1fr 1fr;
  }

  .members-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 16px;
  }
}
