/*
Theme Name: Shibata Theme
Theme URI: https://shibatatakumi.com
Author: Hiromitsu Yoshida
Description: 柴田巧オフィシャルサイト カスタムテーマ
Version: 1.0
*/

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #1F1B4C;
  --color-secondary: #f5f5f0;
  --color-accent: #61ce70;
  --color-text: #333333;
  --color-white: #ffffff;
  --color-dark-bg: #16213e;
  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-secondary);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(8px);
  transition: background 0.3s;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header-logo img {
  height: 55px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 0;
}

.nav-list li a {
  display: block;
  padding: 0 12px;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 70px;
  white-space: nowrap;
  position: relative;
  transition: color 0.3s;
}

.nav-list li a::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
  transform: scaleX(1);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 765px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-image: url("https://shibatatakumi.com/wp/wp-content/uploads/2024/08/IMG_2320-scaled-e1723608864789.jpg");
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: 70px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(3, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--color-white);
  text-align: left;
  animation: fadeInUp 1.2s ease-out both;
}

/* ============================================
   INTRO
   ============================================ */
.intro {
  padding: 100px 0;
}

.intro-heading {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 50px;
  letter-spacing: 0;
}

.intro-columns {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.intro-image {
  flex: 1;
  padding-right: 20px;
}

.intro-image img {
  width: 100%;
  height: auto;
}

.intro-text {
  flex: 1;
  padding-left: 25px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 200;
  line-height: 56px;
  letter-spacing: 0.9px;
}

.intro-text p {
  margin: 0;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title-serif {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  color: var(--color-secondary);
  margin-bottom: 20px;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 50px;
}

.section-title-white {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  color: var(--color-white);
  margin-bottom: 10px;
}

.section-subtitle-light {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: var(--color-secondary);
  margin-bottom: 0;
}

/* ============================================
   PROFILE
   ============================================ */
.profile {
  background-color: var(--color-primary);
  padding: 100px 0;
  transition: background 0.3s;
}

.profile .section-title-serif {
  color: var(--color-secondary);
}

.profile-content {
  color: var(--color-white);
  text-align: left;
  border-radius: 0;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  padding: 16px;
}

.profile-content h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-white);
}

.profile-content h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-white);
}

.profile-content p {
  margin-bottom: 8px;
  line-height: 1.9;
}

.profile-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 24px 0;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.profile-table th,
.profile-table td {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 16px;
  text-align: left;
  vertical-align: top;
}

.profile-table th {
  white-space: nowrap;
  font-weight: 600;
  width: 120px;
  background-color: rgba(255, 255, 255, 0.05);
}

/* ============================================
   GREETING
   ============================================ */
.greeting {
  padding: 100px 0;
}

.greeting .section-title-serif {
  color: var(--color-primary);
}

.greeting .section-subtitle {
  padding-bottom: 50px;
}

.greeting-columns {
  display: flex;
  gap: 0;
}

.greeting-image {
  flex: 1;
  background-color: var(--color-secondary);
  margin-right: 25px;
}

.greeting-image img {
  width: 100%;
  height: auto;
}

.greeting-text {
  flex: 1;
  background-color: var(--color-secondary);
  margin-left: 25px;
  color: var(--color-text);
}

.greeting-text p {
  margin-bottom: 12px;
  line-height: 1.9;
}

.greeting-title {
  text-align: center;
  margin-bottom: 16px !important;
}

.greeting-date {
  text-align: right;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
}

.greeting-name {
  text-align: right;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

/* ============================================
   NEWS
   ============================================ */
.news {
  background-color: var(--color-primary);
  padding: 100px 0 13px;
}

.news-content {
  background-color: var(--color-primary);
  padding: 0 0 100px;
}

.news-item {
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.news-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* WP投稿リスト行（日付＋タイトル横並び） */
.news-item:has(> .date) {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 20px 8px;
}

.news-item .date {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.news-item > a {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.6;
  transition: color 0.2s ease;
}

.news-item > a:hover {
  color: var(--color-accent);
}

/* 画像・ダウンロード系アイテムは従来どおり中央寄せ */
.news-item:has(> img),
.news-item:has(> a > img) {
  text-align: center;
  padding: 40px 0 30px;
  border: none;
}

.news-item img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.news-tall-img {
  max-width: 693px;
  margin: 0 auto;
}

.news-btn-wrap {
  margin-top: 20px;
  margin-bottom: 40px;
}

.btn-download {
  display: inline-block;
  padding: 10px 30px;
  background-color: var(--color-accent);
  color: var(--color-white) !important;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  transition: opacity 0.3s;
}

.btn-download:hover {
  opacity: 0.85;
}

.btn-download i {
  margin-right: 8px;
}

/* ============================================
   LINE & TOYAMA
   ============================================ */
.line-section {
  background-color: var(--color-primary);
  padding: 40px 0;
}

.line-columns {
  display: flex;
  align-items: center;
  gap: 20px;
}

.line-text {
  flex: 3;
}

.line-text h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-secondary);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.line-qr {
  flex: 1;
}

.line-qr img {
  max-width: 150px;
}

.toyama-section {
  background-color: var(--color-primary);
  padding: 20px 0 40px;
}

.toyama-columns {
  display: flex;
  align-items: center;
  gap: 20px;
}

.toyama-text {
  flex: 3;
}

.toyama-text h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-secondary);
}

.toyama-btn {
  flex: 1;
  text-align: right;
}

.btn-outline {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.btn-outline:hover {
  opacity: 0.85;
}

/* ============================================
   TAKUMI'S GOAL
   ============================================ */
.goal {
  padding: 100px 0;
}

.goal-title {
  color: var(--color-primary) !important;
  margin-top: 50px;
}

.goal-subtitle {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  padding-bottom: 50px;
}

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

.goal-text {
  flex: 1;
}

.goal-text p {
  margin-bottom: 16px;
  line-height: 1.9;
}

.goal-text strong {
  font-weight: 700;
}

.goal-image {
  flex: 1;
}

.goal-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
  margin-top: 70px;
  padding: 80px 0 100px;
  background-color: var(--color-white);
  min-height: calc(100vh - 70px - 300px);
}

.contact-title-en {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.contact-title-ja {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 50px;
}

.contact-form {
  max-width: 100%;
}

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

.form-group--submit {
  margin-top: 32px;
}

.form-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.form-label strong {
  font-weight: 700;
}

.required {
  color: #e2553d;
  font-weight: 700;
  margin-left: 0;
}

.form-note {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text);
}

.form-input,
.form-textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid #ccc;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
}

.form-input--short {
  max-width: 400px;
}

.form-input--middle {
  max-width: 600px;
}

.form-textarea {
  resize: vertical;
}

.form-submit {
  display: inline-block;
  padding: 10px 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-white);
  background-color: #444;
  border: 1px solid #444;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s, opacity 0.3s;
  letter-spacing: 0.5px;
}

.form-submit:hover {
  background-color: #333;
}

/* ============================================
   CONTACT2 PAGE (Contact us)
   ============================================ */
.contact2-title-en {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.contact2-title-ja {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 50px;
}

.contact2-form .form-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 6px;
}

.contact2-form .form-group {
  margin-bottom: 16px;
}

.contact2-form .form-input {
  padding: 8px 10px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
}

.contact2-form .form-input:focus {
  border-color: #999;
  background-color: var(--color-white);
}

.contact2-form .form-textarea {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  padding: 10px 12px;
}

.contact2-form .form-textarea:focus {
  border-color: #999;
  background-color: var(--color-white);
}

.form-textarea--tall {
  min-height: 220px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--color-primary);
  padding: 60px 0 30px;
  color: var(--color-white);
}

.footer-columns {
  display: flex;
  gap: 30px;
}

.footer-info {
  flex: 1;
}

.footer-logo {
  margin-bottom: 16px;
}

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

.footer-info p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 20px;
  transition: background 0.3s, transform 0.2s;
}

.footer-social a:hover {
  transform: scale(1.1);
}

.footer-social a[aria-label="Facebook"] {
  background-color: rgba(24, 119, 242, 0.4);
}

.footer-social a[aria-label="Facebook"]:hover {
  background-color: #1877F2;
}

.footer-social a[aria-label="X"] {
  background-color: rgba(0, 0, 0, 0.4);
}

.footer-social a[aria-label="X"]:hover {
  background-color: #000000;
}

.footer-social a[aria-label="YouTube"] {
  background-color: rgba(255, 0, 0, 0.4);
}

.footer-social a[aria-label="YouTube"]:hover {
  background-color: #FF0000;
}

.footer-social a[aria-label="Instagram"] {
  background-color: rgba(225, 48, 108, 0.4);
}

.footer-social a[aria-label="Instagram"]:hover {
  background-color: #E1306C;
}

.footer-map {
  flex: 1;
}

.map-embed {
  width: 100%;
  height: 250px;
  margin-bottom: 12px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-map p {
  font-size: 12px;
  line-height: 1.7;
}

.footer-copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   SINGLE POST (ニュース個別記事)
   ============================================ */
.single-post-page {
  margin-top: 70px;
  background-color: var(--color-secondary);
}

/* --- タイトルエリア --- */
.single-post-header {
  background-color: var(--color-primary);
  padding: 60px 0;
}

.single-post-header .container {
  text-align: center;
}

.single-post-date {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.single-post-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.6;
}

.single-post-category {
  margin-top: 20px;
}

.single-post-category a {
  display: inline-block;
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-white);
  background-color: var(--color-accent);
  border-radius: 3px;
  transition: opacity 0.3s;
}

.single-post-category a:hover {
  opacity: 0.85;
}

/* --- 本文エリア --- */
.single-post-body {
  padding: 60px 0 80px;
}

.single-post-body .container {
  max-width: 860px;
}

.single-post-content {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 2;
  color: var(--color-text);
}

.single-post-content p {
  margin-bottom: 1.6em;
}

.single-post-content h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 2em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent);
}

.single-post-content h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 1.6em 0 0.6em;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
}

.single-post-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.single-post-content a:hover {
  opacity: 0.8;
}

.single-post-content ul,
.single-post-content ol {
  margin: 1em 0 1.6em 1.5em;
  list-style: disc;
}

.single-post-content ol {
  list-style: decimal;
}

.single-post-content li {
  margin-bottom: 0.4em;
}

.single-post-content blockquote {
  margin: 1.5em 0;
  padding: 20px 24px;
  border-left: 4px solid var(--color-accent);
  background-color: rgba(0, 0, 0, 0.03);
  font-style: italic;
}

/* --- サムネイル --- */
.single-post-thumbnail {
  margin-bottom: 32px;
}

.single-post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- 戻るリンク --- */
.single-post-nav {
  padding: 0 0 80px;
}

.single-post-nav .container {
  max-width: 860px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 24px;
}

.back-to-list {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  transition: color 0.3s;
}

.back-to-list:hover {
  color: var(--color-accent);
}

/* ============================================
   TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .nav-list li a {
    font-size: 12px;
    padding: 0 8px;
  }

  .intro-text {
    font-size: 16px;
    line-height: 1.7em;
    letter-spacing: 0.2px;
  }

  /* Show hamburger on tablet */
  .hamburger {
    display: block;
  }

  .header-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 46, 0.98);
    padding: 20px 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .header-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-list li a {
    line-height: 50px;
    padding: 0 30px;
    font-size: 14px;
  }

  .nav-list li a::after {
    display: none;
  }
}

/* ============================================
   MOBILE (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {
  /* Hero */
  .hero {
    min-height: 300px;
    margin-top: 70px;
  }

  .hero-content {
    padding: 30px;
  }

  .hero-content h1 {
    font-size: 19px;
  }

  /* Intro */
  .intro {
    padding: 50px 0;
  }

  .intro-heading {
    font-size: 18px;
    margin-bottom: 50px;
    margin-top: -35px;
  }

  .intro-columns {
    flex-direction: column;
  }

  .intro-image {
    padding-right: 0;
    margin-bottom: 30px;
    text-align: center;
  }

  .intro-image img {
    width: 100%;
  }

  .intro-text {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    text-align: center;
    font-size: 16px;
    line-height: 2.1em;
    letter-spacing: -0.1px;
  }

  /* Profile */
  .profile {
    padding: 0 0 50px;
  }

  /* Greeting */
  .greeting {
    padding: 50px 0;
  }

  .greeting-columns {
    flex-direction: column;
  }

  .greeting-image {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .greeting-text {
    margin-left: 0;
  }

  /* News */
  .news {
    padding: 50px 0 13px;
  }

  .news-content {
    padding: 0 0 50px;
  }

  /* LINE & Toyama */
  .line-columns {
    flex-direction: column;
    text-align: center;
  }

  .line-qr img {
    margin: 0 auto;
  }

  .toyama-columns {
    flex-direction: column;
    text-align: center;
  }

  .toyama-btn {
    text-align: center;
  }

  /* Goal */
  .goal {
    padding: 0 0 50px;
  }

  .goal-columns {
    flex-direction: column;
  }

  .goal-image {
    width: 100%;
  }

  /* Footer */
  .footer-columns {
    flex-direction: column;
  }

  .footer-map {
    margin-top: 20px;
  }

  /* Contact Page */
  .contact-section {
    padding: 50px 0 60px;
  }

  .contact-title-en {
    font-size: 28px;
  }

  .contact2-title-en {
    font-size: 28px;
  }

  .form-input--short {
    max-width: 100%;
  }

  .form-input--middle {
    max-width: 100%;
  }

  .form-textarea--tall {
    min-height: 180px;
  }

  /* Single Post */
  .single-post-header {
    padding: 40px 0;
  }

  .single-post-title {
    font-size: 22px;
  }

  .single-post-body {
    padding: 40px 0 50px;
  }

  .single-post-nav {
    padding: 0 0 50px;
  }
}