/*
Theme Name: Temari
Description: Team Rapportia — Temari official website theme.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: temari-website
*/

/* =====================
   CSS変数
===================== */
:root {
  --color-primary:    #0A5C5C;
  --color-primary-dark: #084a4a;
  --color-bg:         #FAF7F2;
  --color-surface:    #F9F6E3;
  --color-text:       #1A1A1A;
  --color-muted:      #8A9E9E;
  --color-border:     #e8e4de;

  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans:  system-ui, -apple-system, sans-serif;

  --container: 1100px;
  --content:   720px;

  --space-4:  4px;
  --space-8:  8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;
}

/* =====================
   リセット
===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-text); }

/* =====================
   レイアウト
===================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-24);
}
.content-wrap {
  max-width: var(--content);
  margin: 0 auto;
}

/* =====================
   ヘッダー
===================== */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(10, 92, 92, 0.07);
}
.site-header__inner {
  display: flex;
  align-items: center;
}
/* ヘッダー3分割ライン */
.hline {
  display: block;
  flex-shrink: 0;
  height: 14px;
  border-top: 3px solid #c5dcdc;
  border-bottom: 3px solid #c5dcdc;
  background: transparent;
  pointer-events: none;
}
.hline--l {
  flex: none;
  width: max(var(--space-24), calc((100vw - var(--container)) / 2 + var(--space-24)));
}
.hline--c { flex: 1; min-width: 0; }
.hline--r {
  flex: none;
  width: max(var(--space-24), calc((100vw - var(--container)) / 2 + var(--space-24)));
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.site-header__logo .logo-icon {
  height: 72px;
  width: auto;
}
.site-header__logo .logo-wordmark {
  height: 54px;
  width: auto;
  margin-left: -14px;
  margin-top: 8px;
}

/* ナビゲーション */
.site-nav {
  flex-shrink: 0;
  padding-left: 20px;
  padding-right: 20px;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-32);
}
.site-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: width 0.25s ease;
}
.site-nav a:hover,
.site-nav .current-menu-item a {
  color: var(--color-primary);
}
.site-nav a:hover::after,
.site-nav .current-menu-item a::after {
  width: 100%;
}

/* =====================
   ボタン
===================== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn--primary {
  background: var(--color-primary);
  color: #ffffff;
  border: 1px solid var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #ffffff;
}
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}
.btn--sm {
  padding: 8px 20px;
  font-size: 0.8rem;
}
.btn--lg {
  padding: 16px 40px;
  font-size: 1rem;
}
.btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

/* =====================
   セクション共通
===================== */
.section { padding: var(--space-96) 0; }
.section--sm { padding: var(--space-64) 0; }
.section--white { background: var(--color-surface); }
.section__label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: var(--space-8);
}
.section__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2rem;
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-48);
}

/* =====================
   ヒーロー
===================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  align-items: center;
}
.hero--sm { min-height: 350px; }

/* スライドショー背景 */
.hero-slideshow {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateX(100%);
  will-change: transform;
}
.hero-slide--1 { background-image: url(assets/images/hero-1.webp); }
.hero-slide--2 { background-image: url(assets/images/hero-2.webp); }
.hero-slide--3 { background-image: url(assets/images/hero-3.webp); }
/* JS制御用コントロール */
.hero__slideshow-ui {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  z-index: 2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 30, 30, 0.48);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-96) var(--space-24);
  text-align: center;
}
.sp-br { display: none; }
.hero__catch {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: var(--space-16);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  text-align: center;
}
.hero__sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-32);
}
.btn--hero {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}
.btn--hero:hover {
  background: #ffffff;
  color: var(--color-primary);
  border-color: #ffffff;
}

/* =====================
   作品グリッド
===================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-32);
  margin-bottom: var(--space-48);
}
.work-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.2s ease;
}
.work-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.work-card.is-visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(10, 92, 92, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.work-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.work-card__img--placeholder {
  background: var(--color-border);
  display: block;
}
.works-empty {
  text-align: center;
  color: var(--color-muted);
}
.work-card__body {
  padding: var(--space-16) var(--space-16) var(--space-24);
}
.work-card__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.1rem;
  margin-bottom: var(--space-8);
}
.work-card__excerpt {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: var(--space-16);
}
.works-more { text-align: center; }

/* =====================
   ページヘッダー
===================== */
.page-header {
  padding: var(--space-64) 0;
  text-align: center;
  background: var(--color-bg);
}
.page-header__label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-8);
}
.page-header__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2rem;
  color: var(--color-text);
}
.page-header__desc {
  margin-top: var(--space-16);
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* =====================
   作者ページ スライドショー
===================== */
.about-slideshow {
  position: relative;
  width: 100%;
}
.about-slideshow__slides {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
}
.about-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.about-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* JS制御用コントロール */
.about__slideshow-ui {
  margin-top: 12px;
}

/* =====================
   Bootstrap スタイル カルーセルコントロール
===================== */

/* --- ヒーロー矢印（フル高さ側面オーバーレイ） --- */
.hero-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2rem;
  opacity: 0.55;
  transition: opacity 0.2s ease;
  padding: 0;
}
.hero-arrow--prev {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
}
.hero-arrow--next {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
}
.hero-arrow:hover { opacity: 1; }

/* --- ヒーロードット（中抜き丸） --- */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 3;
  padding: 0;
  margin: 0;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

/* --- aboutスライドショー矢印（フル高さ側面） --- */
.about-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  opacity: 0.55;
  transition: opacity 0.2s ease;
  padding: 0;
}
.about-arrow--prev {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
}
.about-arrow--next {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
}
.about-arrow:hover { opacity: 1; }

/* --- aboutドット（ティール中抜き丸） --- */
.about-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}
.about-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.about-dot.is-active {
  background: var(--color-primary);
  transform: scale(1.25);
}

/* =====================
   作者ページ
===================== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
  align-items: start;
}
.about-content {
  max-width: var(--content);
  margin: 0 auto;
}
@media (max-width: 768px) {
  .about-inner { gap: var(--space-32); }
}
.hero__label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-8);
}
.about-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-16);
}
.about-text {
  line-height: 1.9;
  margin-bottom: var(--space-16);
  font-family: var(--font-serif);
}

/* =====================
   お問い合わせ
===================== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
}
.contact-info__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--color-text);
  margin-bottom: var(--space-32);
}
.contact-info__item {
  display: flex;
  gap: var(--space-16);
  margin-bottom: var(--space-24);
}
.contact-info__icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-info__item-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-4);
}
.contact-info__item-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.7;
}
.contact-form-wrap {
  background: var(--color-bg);
  border-radius: 8px;
  padding: var(--space-48);
}
.contact-gmail__lead {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: var(--space-24);
}
.contact-gmail__note {
  margin-top: var(--space-16);
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* =====================
   プライバシー
===================== */
.privacy-wrap {
  background: var(--color-surface);
  border-radius: 8px;
  padding: var(--space-48);
  max-width: var(--content);
  margin: 0 auto;
}
.privacy-wrap h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: var(--space-32) 0 var(--space-16);
}
.privacy-wrap h2:first-child { margin-top: 0; }
.privacy-wrap p { line-height: 1.9; }
.privacy-date {
  margin-top: var(--space-48);
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* =====================
   フッター
===================== */
.site-footer {
  background: var(--color-primary);
  padding: var(--space-48) 0;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-32);
  margin-bottom: var(--space-32);
}
.footer-brand__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: var(--space-4);
}
.footer-brand__tagline {
  font-size: 0.8rem;
  color: #a8c5c5;
}
.footer-col__label {
  font-size: 0.8rem;
  color: #a8c5c5;
  margin-bottom: var(--space-8);
}
.footer-col a {
  font-size: 0.875rem;
  color: #ffffff;
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-4);
}
.footer-col a:hover { color: var(--color-bg); }
.site-footer__divider {
  border: none;
  border-top: 1px solid #1a7a7a;
  margin: var(--space-32) 0;
}
.site-footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: #a8c5c5;
}

/* =====================
   ハンバーガーメニュー
===================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px 7px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.hamburger:hover { background: rgba(10, 92, 92, 0.08); }
.hamburger-line {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 0;
  border-top: 2px solid var(--color-primary);
  border-radius: 0;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* =====================
   モバイルナビゲーション
===================== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(200px, 60vw);
  background: var(--color-surface);
  z-index: 999;
  overflow-y: auto;
  padding: 96px 24px 40px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.12);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-list li a {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-nav-list li a:hover {
  color: var(--color-primary);
  background: rgba(10, 92, 92, 0.06);
}
.mobile-nav-list li a.mobile-nav-cta {
  background: transparent;
  color: inherit;
  margin-top: 0;
}
.mobile-nav-list li a.mobile-nav-cta:hover {
  color: var(--color-primary);
  background: rgba(10, 92, 92, 0.06);
}
/* 現在ページのハイライト（薄い黄色ボックス） */
.mobile-nav-list li a.is-current {
  background: var(--color-surface);
  color: var(--color-primary);
  border-radius: 6px;
  font-weight: 600;
}
.mobile-nav-list li a.mobile-nav-cta.is-current {
  background: var(--color-surface);
  color: var(--color-primary);
}
.mobile-nav-sub {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.mobile-nav-sub__link {
  display: block;
  padding: 8px 8px;
  font-size: 0.8rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.mobile-nav-sub__link:hover { color: var(--color-primary); }

/* モバイルナビ 閉じるボタン */
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.mobile-nav-close:hover { background: rgba(10, 92, 92, 0.08); }
.mobile-nav-close__line {
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}
.mobile-nav-close__line:nth-child(1) { transform: rotate(45deg); }
.mobile-nav-close__line:nth-child(2) { transform: rotate(-45deg); }

/* オーバーレイ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.is-visible { opacity: 1; }

/* =====================
   レスポンシブ
===================== */
@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .sp-br { display: block; }
  .hamburger { display: flex; margin-left: auto; }
  .hero .btn--lg { padding: 11px 28px; font-size: 0.875rem; }
  .hero--sm { min-height: 350px; }
  .hero__catch { padding-left: 1em; }
}
@media (max-width: 600px) {
  .works-grid { grid-template-columns: 1fr; }
  .site-header__logo .logo-icon { height: 48px; }
  .site-header__logo .logo-wordmark { height: 36px; }
  .hero { min-height: 520px; }
  .hero--sm { min-height: 260px; }
  .hero--sm .hero__content { padding: var(--space-48) var(--space-24); }
}

/* =====================
   モーション軽減
===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
