/*
Theme Name: Peuplier Child
Theme URI: https://peuplier.co.jp
Description: アトリエ ププリエ 公式サイト カスタムテーマ
Author: Atelier Peuplier
Template: twentytwentyfour
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600&family=Cormorant+Garamond:wght@300;400&display=swap');

/* ===== CSS変数 ===== */
:root {
  --bg:       #f5f2ee;
  --bg2:      #edeae6;
  --bg3:      #e4e0da;
  --text1:    #2a2320;
  --text2:    #6b5f58;
  --text3:    #a8998e;
  --border:   #d8d0c8;
  --border2:  #c8bfb8;
  --accent:   #c8a882;
  --nav:      #3d3530;
  --nav-text: #e8ddd2;
  --nav-sub:  #a8998e;
}

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

/* ===== Twenty Twenty-Four 干渉を完全除去 ===== */
html { margin-top: 0 !important; }
body {
  font-family: 'Shippori Mincho', serif;
  background: var(--bg) !important;
  color: var(--text1);
  line-height: 1.8;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  /* PCでの基準フォントサイズを大きく */
  font-size: 17px;
}
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.wp-site-blocks { padding: 0 !important; margin: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0 !important; margin-block-end: 0 !important; padding: 0 !important; }
.wp-block-post-content,
.wp-block-group,
.entry-header,
.entry-content,
.entry-footer,
.page-content { max-width: none !important; padding: 0 !important; margin: 0 !important; }
.has-global-padding { padding-inline: 0 !important; }
.alignfull { max-width: 100% !important; margin: 0 !important; }
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: none !important; }
.wp-block-template-part { display: none !important; }

/* ===== サイト全体：フッターを常に最下部に ===== */
.site-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.site-inner {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* 各セクション最大幅 */
.header-inner,
.home-hero,
.works-bar,
.news-section,
.page-hero,
.philosophy-section,
.works-section,
.recruit-section,
.job-section,
.company-section {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ===== ナビゲーション ===== */
.site-header {
  background: var(--nav);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  flex-shrink: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
}
.site-logo a { text-decoration: none; display: block; }
.site-logo .logo-ja {
  font-size: 20px; font-weight: 500; letter-spacing: 0.14em;
  color: var(--nav-text); display: block;
}
.site-logo .logo-en {
  font-size: 11px; font-weight: 400; letter-spacing: 0.2em;
  color: var(--nav-sub); font-family: 'Cormorant Garamond', serif;
  display: block; margin-top: 4px;
}
.main-navigation ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.main-navigation ul li a {
  font-size: 14px; font-weight: 400; letter-spacing: 0.1em;
  color: var(--nav-sub); text-decoration: none;
  padding: 8px 18px; border-radius: 20px;
  transition: background 0.2s; display: block;
  font-family: 'Shippori Mincho', serif;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  background: rgba(255,255,255,0.1);
  color: var(--nav-text); font-weight: 500;
}

/* ===== ページ共通ヘッダー ===== */
.page-hero {
  padding: 64px 48px 52px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.page-hero .hero-label {
  font-size: 12px; letter-spacing: 0.22em; color: var(--text3);
  margin-bottom: 14px; font-family: 'Cormorant Garamond', serif;
}
.page-hero h1 {
  font-size: 44px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--text1); line-height: 1.3;
}
.page-hero .page-desc {
  font-size: 16px; color: var(--text2); line-height: 2;
  margin-top: 16px; max-width: 600px;
}

/* ===== ホーム ヒーロー：高さを伸ばす ===== */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* min-heightを増やして縦を長く */
  min-height: 520px;
  border-bottom: 1px solid var(--border);
  align-items: stretch;
}
.hero-text {
  padding: 56px 48px;
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
  border-right: 1px solid var(--border);
}
.hero-sublabel {
  font-size: 12px; letter-spacing: 0.22em;
  color: var(--text3); font-family: 'Cormorant Garamond', serif;
}
.hero-catchcopy {
  /* キャッチコピーのフォントサイズを大きく */
  font-size: 40px; font-weight: 500; line-height: 1.65;
  color: var(--text1); border-left: 3px solid var(--accent); padding-left: 20px;
}
.hero-description {
  font-size: 15px; color: var(--text2); line-height: 2;
}

/* スライドショー：高さを親に合わせる */
.hero-slideshow {
  position: relative; overflow: hidden;
  background: var(--bg2);
  /* min-heightをヒーローに合わせて伸ばす */
  min-height: 520px;
}
.hero-slideshow .slides-track {
  display: flex; width: 300%; height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slideshow .slide {
  width: 33.333%;
  min-height: 520px;
}
.hero-slideshow .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; background: var(--bg);
  border: 1px solid var(--border2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; font-size: 16px; color: var(--text2);
  transition: background 0.2s;
}
.slide-btn:hover { background: var(--bg2); }
.slide-btn.prev { left: 12px; }
.slide-btn.next { right: 12px; }
.slide-dots {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 8px;
}
.slide-dots .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--border2);
  cursor: pointer; transition: background 0.3s; border: none; padding: 0;
}
.slide-dots .dot.active { background: var(--accent); }

/* ===== WORKSバー ===== */
.works-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 48px;
  display: flex; align-items: center; gap: 18px;
  background: var(--bg);
}
.works-bar-label {
  font-size: 11px; letter-spacing: 0.18em; color: var(--text3);
  white-space: nowrap; font-family: 'Cormorant Garamond', serif;
}
.works-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.works-tag {
  font-size: 13px; padding: 4px 14px;
  border: 1px solid var(--border2); border-radius: 20px; color: var(--text2);
}

/* ===== NEWS ===== */
.news-section { padding: 52px 48px; background: var(--bg); }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 26px; font-weight: 500; letter-spacing: 0.08em; color: var(--text1);
}
.section-link {
  font-size: 13px; color: var(--text3); letter-spacing: 0.1em;
  text-decoration: none; font-family: 'Cormorant Garamond', serif;
}
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: grid; grid-template-columns: 110px 80px 1fr;
  align-items: center; gap: 20px; padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px; color: var(--text1);
}

.news-date {
  color: var(--text3); font-size: 14px; letter-spacing: 0.05em;
  font-family: 'Cormorant Garamond', serif;
}
.news-cat {
  font-size: 11px; padding: 3px 10px; border-radius: 3px;
  text-align: center; letter-spacing: 0.05em; display: inline-block;
}
.cat-news    { background: #eef1f8; color: #1a4fa8; }
.cat-works   { background: #eef7ee; color: #1a6e1a; }
.cat-recruit { background: #fef7e6; color: #8a5c00; }
.news-title { color: var(--text1); line-height: 1.7; }

/* ===== 理念 ===== */
.philosophy-section { padding: 60px 48px; background: var(--bg); }
.phil-group { margin-bottom: 56px; }
.phil-group:last-child { margin-bottom: 0; }
.phil-group-title {
  font-size: 19px; font-weight: 600; letter-spacing: 0.08em;
  padding-bottom: 18px; border-bottom: 1px solid var(--border);
  margin-bottom: 28px; color: var(--text1);
}
.phil-items { display: flex; flex-direction: column; gap: 24px; }
.phil-item { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.phil-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  margin-top: 11px; flex-shrink: 0;
}
.phil-text {
  font-size: 15px; color: var(--text2); line-height: 2.2;
  word-break: break-all; overflow-wrap: break-word;
}

/* ===== 作品 ===== */
.works-section { padding: 52px 48px; background: var(--bg); }
.works-type-label {
  font-size: 12px; letter-spacing: 0.2em; color: var(--text3);
  margin-bottom: 24px; font-family: 'Cormorant Garamond', serif;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.work-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.work-thumb { background: var(--bg2); border-bottom: 1px solid var(--border); overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-info { padding: 24px 26px; }
.work-tag {
  font-size: 11px; padding: 3px 10px; border: 1px solid var(--border2);
  border-radius: 3px; color: var(--text3); display: inline-block; margin-bottom: 12px;
}
.work-name { font-size: 19px; font-weight: 500; margin-bottom: 10px; color: var(--text1); }
.work-meta { font-size: 14px; color: var(--text2); line-height: 1.9; }

/* ===== 採用情報 ===== */
.recruit-section { padding: 52px 48px; background: var(--bg); }
.recruit-status-box {
  background: var(--bg2); border-radius: 12px; padding: 36px 40px;
  margin-bottom: 36px; text-align: center; border: 1px solid var(--border);
}
.recruit-status-title { font-size: 20px; font-weight: 500; margin-bottom: 12px; color: var(--text1); }
.recruit-status-sub { font-size: 15px; color: var(--text2); line-height: 2; }
.recruit-links { display: flex; gap: 16px; margin-bottom: 32px; }
.recruit-link-btn {
  flex: 1; border: 1px solid var(--border2); border-radius: 8px; padding: 24px;
  text-align: center; text-decoration: none; display: block; transition: background 0.2s;
}
.recruit-link-btn:hover { background: var(--bg2); }
.recruit-link-title { font-size: 17px; font-weight: 500; margin-bottom: 8px; color: var(--text1); display: block; }
.recruit-link-arrow { font-size: 13px; color: var(--text3); }
.recruit-note-box { border: 1px solid var(--border); border-radius: 8px; padding: 22px 26px; margin-bottom: 24px; }
.recruit-note-label {
  font-size: 11px; letter-spacing: 0.15em; color: var(--text3);
  margin-bottom: 10px; font-family: 'Cormorant Garamond', serif;
}
.recruit-note-text { font-size: 15px; color: var(--text2); line-height: 1.9; }
.recruit-form-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border: 1px solid var(--border2); border-radius: 8px;
  text-decoration: none; transition: background 0.2s;
}
.recruit-form-link:hover { background: var(--bg2); }
.recruit-form-text { font-size: 15px; color: var(--text2); }
.recruit-form-arrow { font-size: 16px; color: var(--text3); }

/* ===== 採用詳細 ===== */
.job-section { padding: 60px 48px; background: var(--bg); }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px;
  color: var(--text3); text-decoration: none; margin-bottom: 36px; transition: color 0.2s;
}
.back-link:hover { color: var(--text2); }
.job-status-bar {
  display: inline-block; font-size: 12px; padding: 5px 16px; border-radius: 20px;
  background: var(--bg2); color: var(--text3); margin-bottom: 32px; border: 1px solid var(--border);
}
.job-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
.job-table tr { border-bottom: 1px solid var(--border); }
.job-table tr:first-child { border-top: 1px solid var(--border); }
.job-table th {
  width: 180px; padding: 22px 0; font-size: 14px; font-weight: 400;
  color: var(--text3); vertical-align: top; text-align: left; letter-spacing: 0.05em;
}
.job-table td { padding: 22px 0 22px 28px; font-size: 15px; color: var(--text2); line-height: 2; }
.job-table td .note { font-size: 13px; color: var(--text3); display: block; margin-top: 6px; }
.selection-box { border: 1px solid var(--border); border-radius: 12px; padding: 28px 32px; margin-bottom: 32px; }
.selection-title { font-size: 15px; font-weight: 500; margin-bottom: 20px; color: var(--text1); }
.selection-rows { display: flex; flex-direction: column; gap: 16px; }
.selection-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; font-size: 15px; }
.selection-label { color: var(--text3); font-size: 14px; }
.selection-val { color: var(--text2); line-height: 1.8; }
.closed-notice {
  background: var(--bg2); border-radius: 12px; padding: 28px 32px;
  text-align: center; margin-bottom: 28px; border: 1px solid var(--border);
}
.closed-notice-title { font-size: 17px; font-weight: 500; margin-bottom: 10px; color: var(--text1); }
.closed-notice-sub { font-size: 15px; color: var(--text2); line-height: 2; }
.inquiry-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border: 1px solid var(--border2); border-radius: 8px;
  text-decoration: none; transition: background 0.2s;
}
.inquiry-btn:hover { background: var(--bg2); }
.inquiry-btn-text { font-size: 15px; color: var(--text2); }

/* ===== 会社情報 ===== */
.company-section { padding: 60px 48px; background: var(--bg); }
.company-table { width: 100%; border-collapse: collapse; }
.company-table tr { border-bottom: 1px solid var(--border); }
.company-table tr:first-child { border-top: 1px solid var(--border); }
.company-table th {
  width: 180px; padding: 24px 0; font-size: 14px; font-weight: 400;
  color: var(--text3); vertical-align: top; text-align: left; letter-spacing: 0.05em;
}
.company-table td { padding: 24px 0 24px 28px; font-size: 15px; color: var(--text2); line-height: 1.9; }
.company-table td .en {
  font-size: 13px; color: var(--text3);
  font-family: 'Cormorant Garamond', serif; display: block; margin-top: 3px;
}

/* ===== フッター ===== */
.site-footer {
  background: var(--nav);
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  width: 100%;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo a {
  font-size: 17px; font-weight: 500; letter-spacing: 0.12em;
  color: var(--nav-text); text-decoration: none; transition: opacity 0.2s;
}
.footer-logo a:hover { opacity: 0.8; }
.footer-copy { font-size: 12px; color: var(--nav-sub); font-family: 'Cormorant Garamond', serif; }

/* ===== レスポンシブ（タブレット） ===== */
@media (max-width: 1024px) {
  body { font-size: 16px; }
  .home-hero { min-height: 420px; }
  .hero-slideshow, .hero-slideshow .slide { min-height: 420px; }
  .hero-catchcopy { font-size: 34px; }
  .page-hero h1 { font-size: 38px; }
  .header-inner, .footer-inner { padding-left: 32px; padding-right: 32px; }
  .hero-text { padding: 40px 32px; }
  .philosophy-section,
  .works-section,
  .recruit-section,
  .job-section,
  .company-section,
  .news-section,
  .page-hero { padding-left: 32px; padding-right: 32px; }
  .works-bar { padding-left: 32px; padding-right: 32px; }
}

/* ===== レスポンシブ（スマホ） ===== */
@media (max-width: 768px) {
  body { font-size: 15px; }
  body.admin-bar .site-header { top: 46px; }

  .header-inner { padding: 16px 20px; }
  .site-logo .logo-ja { font-size: 16px; }
  .main-navigation ul li a { padding: 6px 10px; font-size: 12px; }

  .home-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 20px; }
  .hero-catchcopy { font-size: 26px; }
  .hero-slideshow, .hero-slideshow .slide { min-height: 260px; }

  .page-hero { padding: 36px 20px 28px; }
  .page-hero h1 { font-size: 30px; }
  .page-hero .page-desc { font-size: 14px; }

  .news-item { grid-template-columns: 90px 1fr; font-size: 14px; }
  .news-cat { display: none; }

  .job-table th { width: 110px; font-size: 13px; }
  .job-table td { font-size: 14px; padding-left: 16px; }

  .philosophy-section,
  .works-section,
  .recruit-section,
  .job-section,
  .company-section,
  .news-section { padding-left: 20px; padding-right: 20px; padding-top: 36px; padding-bottom: 36px; }
  .works-bar { padding-left: 20px; padding-right: 20px; }

  .footer-inner { padding: 20px; }
  .recruit-links { flex-direction: column; }
  .section-title { font-size: 22px; }
  .phil-group-title { font-size: 17px; }
  .phil-text { font-size: 14px; }
}

@media (max-width: 480px) {
  .main-navigation ul li a { font-size: 11px; padding: 4px 7px; }
  .site-logo .logo-ja { font-size: 14px; }
}
