/*
Theme Name: Takumu Hojo Official
Author: Takumu Hojo
Description: Official website theme for Takumu Hojo.
Version: 1.0
*/

/* ========================================
   1. 共通設定
======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #111;
  color: #f5f5f5;
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.7;
}

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

/* ========================================
   2. ヘッダー・ナビゲーション
======================================== */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 26px 7%;
  border-bottom: 1px solid #333;
}

.logo {
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 26px;
}

nav a {
  color: #999;
  font-size: 10px;
  letter-spacing: 0.14em;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #fff;
}

/* About page social links */
.about-social-links {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.about-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: inherit;
  transition: opacity 0.2s ease;
}

.about-social-links a:hover {
  opacity: 0.6;
}

.about-social-links svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* YouTube icon color */
.about-social-links a[aria-label="YouTube"] {
  color: #FF0000;
}

/* ========================================
   3. HOME
======================================== */

.hero {
  min-height: 70vh;
  padding: 100px 10% 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-label {
  color: #999;
  font-size: 20px;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 24px 0;
  font-size: clamp(64px, 13vw, 160px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.subtitle {
  color: #bbb;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.hero-line {
  width: 100%;
  height: 1px;
  margin: 100px 0 20px;
  background: #444;
}

.japanese-name {
  margin: 32px 0 40px;
  font-size: 20px;
  letter-spacing: 0.2em;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 260px;
  object-fit: contain;
  object-position: center 40%;
  margin-top: 36px;
}
/* Home WORKS thumbnails */
.home-work-thumbnail {
  width: 300px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.home-work-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 36px;
}

.contact-heading a {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid #fff;
  padding-bottom: 2px;
}
/* =========================
   Mobile - HOME WORKS
========================= */

@media screen and (max-width: 768px) {

  .home-works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 28px;
    width: 100%;
  }

  .home-work-item {
    min-width: 0;
    width: 100%;
  }

  .home-work-title {
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .home-work-thumbnail {
    width: 100%;
    max-width: 100%;
  }

  .home-work-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

}
/* =========================
   Mobile - HOME WORKS alignment
========================= */

@media screen and (max-width: 768px) {

  .home-work-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .home-work-title {
    height: 4.5em;
    min-height: 4.5em;
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .home-work-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
  }

}
/* ========================================
   4. 共通コンテンツ・フッター
======================================== */


.content-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 60px;
  box-sizing: border-box;
  border-top: 1px solid #333;
}

.content-section h1 {
  margin: 0 0 40px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.4;
}

.content-section h2 {
  margin: 30px 0;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .content-section {
    padding: 60px 24px;
  }
}


.description {
  max-width: 560px;
  color: #aaa;
  font-size: 14px;
  line-height: 2.2;
}

footer {
  padding: 30px 10%;
  border-top: 1px solid #333;
  color: #777;
  font-size: 10px;
  letter-spacing: 0.12em;
}

/* ホーム以外の content-section 共通レイアウト */
body:not(.home) .content-section {
  padding-top: 50px;
}

body:not(.home) .content-section > .section-label,
body:not(.home) .content-section > h1,
body:not(.home) .content-section > .description {
  text-align: center;
}

body:not(.home) .content-section > p.description {
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   5. ABOUT
======================================== */

.about-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: none;
  margin: 40px 0 0;
}

.about-heading {
  width: 100%;
}

.about-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: 0.12em;
}

.about-heading h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 400;
  color: #bbb;
}

.about-role {
  color: #999;
  font-size: 12px;
}

.about-text {
  width: 100%;
  max-width: none;
}

.about-text p {
  margin: 0 0 24px;
  color: #bbb;
  font-size: 14px;
  line-height: 2.2;
}

/* ========================================
   6. WORKS
======================================== */

.works-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
  width: 100%;
  max-width: 1000px;
  margin: 60px auto 0;
}

.works-item h2 {
  margin-top: 10px;
  margin-bottom: 15px;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
}

.works-thumbnail img {
  display: block;
  width: 40%;
  height: auto;
  margin: 0 auto;
}

/* WORKS用の一覧・カード形式 */
.work-item {
  padding: 28px 0;
  border-top: 1px solid #444;
}

.work-category {
  color: #999;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.work-item h3 {
  margin: 12px 0;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 400;
}

.work-item p:last-child {
  color: #bbb;
  font-size: 14px;
  line-height: 2;
}

/* WORKS - YouTube Gallery */
.works-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  width: 100%;
  max-width: none;
}

.work-card {
  width: 100%;
  min-width: 0;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #222;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.work-card .work-category {
  margin-top: 20px;
  color: #999;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.work-card h3 {
  margin: 8px 0;
  font-size: 28px;
  font-weight: 400;
  text-align: left;
}

.work-card > p {
  margin: 0;
  text-align: left;
}

.work-card .work-composer {
  margin: 0 0 30px;
  text-align: left;
}

.work-card .work-performer {
  margin: 0;
  text-align: left;
}

.work-card > p:last-child {
  color: #aaa;
  font-size: 13px;
  line-height: 1.8;
}

.work-meta {
  width: 100%;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #333;
  color: #888;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.work-date {
  margin: 0 0 4px;
  color: #aaa;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.work-event {
  margin: 0;
  color: #888;
  font-size: 16px;
  line-height: 2;
}

.work-venue {
  margin: 4px 0 0;
  color: #777;
  font-size: 16px;
  line-height: 2;
}

/* ========================================
   7. NEWS
======================================== */

.news-list {
  max-width: 1000px;
  margin-top: 60px;
}

.news-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid #444;
}

.news-date {
  color: #999;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.news-category {
  color: #999;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.news-content h3 {
  margin: 10px 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
}

.news-content p {
  color: #bbb;
  font-size: 14px;
  line-height: 2;
}

.news-content .news-note {
  color: #888;
  font-size: 12px;
}

/* お知らせ一覧（HOME内・NEWSページ共通） */
.home-news-list {
  width: 100%;
  max-width: 1000px;
  margin-top: 36px;
}

.home-news-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid #444;
}

.home-news-date {
  color: #999;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.home-news-title {
  font-size: 18px;
}

.home-news-arrow {
  color: #999;
  transition: transform 0.2s ease;
}

.home-news-item:hover .home-news-arrow {
  transform: translate(3px, -3px);
}

.news-more {
  display: inline-block;
  margin-top: 28px;
  color: #aaa;
  font-size: 11px;
  letter-spacing: 0.12em;
  border-bottom: 1px solid #555;
  padding-bottom: 6px;
}

.news-more:hover {
  color: white;
}

/* NEWSページの一覧を中央に配置 */
body:not(.home) .home-news-list {
  margin: 60px auto 0;
}

/* ========================================
   8. CONTACT
======================================== */

.contact-info {
  max-width: 600px;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid #444;
}

.contact-label {
  color: #999;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.contact-info p:last-child {
  color: #bbb;
  font-size: 14px;
  line-height: 2;
}

/* WordPress固定ページ（About・Contactなど） */
body.page main > article {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 50px 10%;
}

body.page main > article > h1 {
  text-align: center;
}

body.page main > article > p {
  margin-left: auto;
  margin-right: auto;
}

/* CONTACTフォームのレイアウト */
.wpcf7 {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* 入力欄 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  margin-top: 8px;
  font: inherit;
  border: 1px solid #777;
  background: transparent;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"] {
  padding: 7px 10px;
  font-size: 14px;
}
/* お問い合わせ内容の入力欄 */
.wpcf7 textarea {
  min-height: 240px;
  resize: vertical;
}

/* 各項目の間隔 */
.wpcf7 form > p,
.wpcf7 form label {
  display: block;
  margin-bottom: 24px;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
  display: block;
  margin: 30px auto 0;
  padding: 12px 36px;
  cursor: pointer;
}

/* スマートフォン */
@media (max-width: 600px) {
  .wpcf7 {
    max-width: 100%;
  }

  .wpcf7 textarea {
    min-height: 200px;
  }
}
/* CONTACTフォーム：入力文字を白にする */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  color: #ffffff;
}

/* ========================================
   9. スマートフォン対応
======================================== */

@media (max-width: 600px) {
  /* ヘッダー */
  .header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 24px 7%;
  }

  nav {
    justify-content: flex-start;
    gap: 18px;
  }

  /* HOME */
  .hero {
    min-height: 60vh;
    padding-top: 80px;
    padding-bottom: 60px;
  }

  /* 共通コンテンツ */
  .content-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  body:not(.home) .content-section {
    padding-top: 50px;
  }

  /* WORKS */
  .works-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .works-gallery {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* NEWS */
  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-news-item {
    grid-template-columns: 90px minmax(0, 1fr) 20px;
    gap: 12px;
  }

  .home-news-title {
    font-size: 15px;
  }
}

/* 個別記事：タイトルと本文を分ける */
body.single-post main > article {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 60px 60px 100px;
}

body.single-post main > article > h1 {
  margin: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid #444;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.5;
}

body.single-post main > article .post-body {
  margin-top: 32px;
  font-size: 16px;
  line-height: 2;
}

@media (max-width: 600px) {
  body.single-post main > article {
    padding: 40px 24px 70px;
  }

  body.single-post main > article > h1 {
    padding-bottom: 20px;
  }

  body.single-post main > article .post-body {
    margin-top: 24px;
  }
}
