/* ------------------------------
   Base
------------------------------ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  background-color: #fdfdfb;
  line-height: 1.9;
}

/* ------------------------------
   Layout
------------------------------ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: 96px 0;
}

/* ------------------------------
   Header / Navigation
------------------------------ */
.header {
  position: sticky;
  top: 0;
  background: #fdfdfb;
  border-bottom: 1px solid #e0e0e0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 96px;
}

.site-branding {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin: 0;
}

.site-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-top: 4px;
  color: #666;
}

.nav a {
  margin-left: 32px;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: #333;
}

.nav a:hover {
  color: #004080;
}

/* ------------------------------
   Headings
------------------------------ */
h2 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 56px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ------------------------------
   Profile
------------------------------ */
.profile-grid {
  display: grid;
  grid-template-columns: 260px 1fr; /* 写真幅を安定させる */
  gap: 40px;                        /* 余白を引き締める */
  align-items: start;
}

.profile-photo img {
  width: 100%;
  display: block;
}

.profile-text {
  max-width: 720px;
}

.profile-text h3 {
  margin-bottom: 20px;
}

.profile-text p {
  margin-bottom: 22px; /* 少し詰める */
}

.profile-text p:first-of-type {
  font-weight: 500;
}


/* ------------------------------
   Tables (Works / Studio)
------------------------------ */
.table-wrap {
  width: 100%;
  margin-left: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th {
  text-align: left;
  font-weight: 600;
  padding: 12px 8px;
  border-bottom: 1px solid #ccc;
}

td {
  padding: 12px 8px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}

/* ------------------------------
   Details / Summary
------------------------------ */
details {
  margin: 0;
  padding: 0;
}

summary {
  display: block;
  padding-left: 0;
}

summary::-webkit-details-marker {
  display: none;
}

/* ------------------------------
   Buttons
------------------------------ */
.btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 32px;
  border: 1px solid #004080;
  color: #004080;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

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

/* ------------------------------
   Social Links
------------------------------ */
.social-links a {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  margin-right: 16px;
}

.social-links a:hover {
  color: #000;
}

/* ------------------------------
   Studio
------------------------------ */
.studio-name {
  font-weight: 600;
  margin-bottom: 16px;
}

/* --- Studio Gallery Wrapper --- */
.studio-gallery-grid {
  max-width: 1200px;
  padding: 0 48px;
  margin: 48px auto 16px; /* 上だけ広い */
}

.studio-gallery-wide {
  max-width: 1200px;
  padding: 0 48px;
  margin: 16px auto 16px; /* ← gapと同じ */
}

/* --- Grid Images --- */
.studio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.studio-gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* --- Wide Image --- */
.studio-gallery-wide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

@media (max-width: 768px) {
  .studio-gallery-wide img {
    height: 260px;
  }
}

/* ------------------------------
   Studio Equipment (Works-like UI)
------------------------------ */
.studio-equipment {
  margin-top: 40px;
}

/* ------------------------------
   Responsive
------------------------------ */
@media (max-width: 900px) {
  .container {
    padding: 0 24px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 24px 0;
  }

  .nav {
    margin-top: 16px;
  }

  .nav a {
    margin-left: 16px;
    font-size: 0.85rem;
  }

  .section {
    padding: 72px 0;
  }

  .studio-gallery-grid,
  .studio-gallery-wide {
    padding: 0 24px;
  }
}

@media (max-width: 768px) {
  .studio-gallery-grid img,
  .studio-gallery-wide img {
    height: 200px;
  }
}

/* ------------------------------
   Works alignment fix
------------------------------ */
details {
  margin: 0 0 48px;
  padding: 0;
}

summary {
  display: block;
  padding: 0;
}

.table-wrap {
  width: 100%;
  margin: 0;
}

/* --- Works decade toggle (Pattern C) --- */
.works-decade summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  background: #fdfdfb;
  color: #333;
}

.works-decade summary::-webkit-details-marker {
  display: none;
}

.works-decade summary:hover {
  background: #f5f5f2;
}

.decade-toggle {
  display: inline-block;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

/* 開いた状態：▶ が回転して ▼ に見える */
.works-decade[open] .decade-toggle {
  transform: rotate(90deg);
}

/* Artist列は改行させない */
.works-table td:nth-child(2),
.works-table th:nth-child(2) {
  white-space: nowrap;
}

/* ==============================
   Mail Page (Legacy Form Skin)
============================== */

.mail-page {
  background: #fdfdfb;
}

/* メニューバー非表示 */
.mail-page table:first-of-type {
  display: none;
}

/* フォーム全体を中央に */
.mail-page form {
  display: flex;
  justify-content: center;
}

/* メインフォームカード */
.mail-page form table {
  width: 100%;
  max-width: 640px;
  background: #fff;
  padding: 32px;
  border: 1px solid #ddd;
  border-radius: 16px;
  box-sizing: border-box;
}

/* textarea */
.mail-page textarea {
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
}

/* email input */
.mail-page input[type="text"] {
  font-size: 0.9rem;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* submit image */
.mail-page input[type="image"] {
  margin-top: 16px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.mail-page input[type="image"]:hover {
  opacity: 0.7;
}

/* ------------------------------
   Thanks
------------------------------ */
.thanks {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.thanks p {
  margin: 32px 0 40px;
  line-height: 1.8;
}

