/*
Theme Name: TRISONA HP
Theme URI: https://trisona.co.jp
Author: TRISONA
Author URI: https://trisona.co.jp
Description: 株式会社TRISONAオリジナルWordPressテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trisona
*/

/* ============================================================
   CSS Variables
============================================================ */
:root {
  --color-green:   #8db350;
  --color-orange:  #febf8c;
  --color-white:   #ffffff;
  --color-black:   #000000;
  --color-gray:    #9c9a9a;
  --color-gray-bg: #d9d9d9;
  --font-base: 'Noto Sans JP', 'Inter', sans-serif;
}

/* ============================================================
   Reset / Base
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-black);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* ============================================================
   Site Wrapper
============================================================ */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   Header
============================================================ */
.site-header {
  background-color: var(--color-green);
  width: 100%;
  height: 176px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo a {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 48px;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 48px;
}

.global-nav ul li a {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 32px;
  color: var(--color-white);
  transition: opacity 0.2s;
}

.global-nav ul li a:hover {
  opacity: 0.75;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 32px;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============================================================
   Hero Section
============================================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 846px;
  overflow: hidden;
  background-color: var(--color-gray);
}

.hero-section .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-gray-bg);
  opacity: 0.45;
}

.hero-text {
  position: absolute;
  left: 119px;
  top: 222px;
  width: 609px;
  font-family: var(--font-base);
  font-weight: 500;
  font-style: italic;
  font-size: 96px;
  line-height: 1.2;
  color: var(--color-white);
}

/* ============================================================
   Section: 会社概要
============================================================ */
.company-section {
  background-color: var(--color-white);
  width: 100%;
  min-height: 1024px;
  overflow: hidden;
  position: relative;
}

.company-inner {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  min-height: 1024px;
}

/* 代表挨拶ラベル */
.company-heading-bar {
  position: absolute;
  left: 0;
  top: 71px;
  width: 485px;
  height: 160px;
  background-color: var(--color-green);
  display: flex;
  align-items: center;
  padding-left: 37px;
}

.company-heading-bar h2 {
  font-family: 'Inter', var(--font-base);
  font-weight: 900;
  font-size: 48px;
  color: var(--color-white);
}

/* サイドナビ */
.company-side-nav {
  position: absolute;
  left: 0;
  top: 270px;
  width: 339px;
}

.company-side-nav ul {
  display: flex;
  flex-direction: column;
}

.company-side-nav ul li a {
  display: block;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 24px;
  color: var(--color-black);
  text-align: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transition: color 0.2s;
}

.company-side-nav ul li a:hover {
  color: var(--color-green);
}

/* 人物写真 */
.company-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 698px;
  height: 1046px;
  overflow: hidden;
}

.company-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* 挨拶テキスト */
.company-message {
  position: absolute;
  left: 365px;
  top: 545px;
  width: 544px;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 24px;
  color: var(--color-green);
  line-height: 1.7;
}

.company-message p {
  margin-bottom: 0.5em;
}

/* ============================================================
   Section: 事業紹介
============================================================ */
.business-section {
  background-color: var(--color-green);
  width: 100%;
  min-height: 1024px;
  overflow: hidden;
  position: relative;
}

.business-inner {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  min-height: 1024px;
}

/* 事業紹介タイトル */
.business-title-wrap {
  position: absolute;
  left: -112px;
  top: 56px;
  width: 527px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.business-title-wrap::before {
  content: '';
  position: absolute;
  inset: 3px -70px -33px 112px;
  background: var(--color-white);
  z-index: 0;
}

.business-title {
  position: relative;
  z-index: 1;
  font-family: 'Inter', var(--font-base);
  font-weight: 800;
  font-style: italic;
  font-size: 48px;
  color: var(--color-green);
  text-align: center;
  width: 100%;
  padding-left: 112px;
}

/* 区切り線 */
.business-divider {
  position: absolute;
  left: -40px;
  top: 121px;
  width: calc(100% + 80px);
  height: 2px;
  background-color: var(--color-white);
  opacity: 0.6;
}

/* カード */
.business-cards {
  position: absolute;
  top: 297px;
  left: 0;
  right: 0;
  display: flex;
  gap: 54px;
  padding: 0 51px;
}

.business-card {
  flex: 1;
  max-width: 641px;
  background-color: var(--color-orange);
  border-radius: 91px;
  min-height: 587px;
  padding: 67px 40px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.business-card-image {
  width: 342px;
  height: 240px;
  border-radius: 120px;
  overflow: hidden;
  flex-shrink: 0;
}

.business-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-card-text {
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 24px;
  color: var(--color-black);
  text-align: center;
  line-height: 1.6;
}

/* ============================================================
   Section: 採用情報
============================================================ */
.recruit-section {
  background-color: var(--color-white);
  width: 100%;
  min-height: 1024px;
  overflow: hidden;
  position: relative;
}

.recruit-inner {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  min-height: 1024px;
}

/* 背景写真 */
.recruit-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.4;
}

.recruit-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 採用情報タイトル */
.recruit-title-wrap {
  position: absolute;
  left: -112px;
  top: 56px;
  width: 527px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recruit-title-wrap::before {
  content: '';
  position: absolute;
  inset: 3px -70px -33px 112px;
  background: var(--color-green);
  z-index: 0;
}

.recruit-title {
  position: relative;
  z-index: 1;
  font-family: 'Inter', var(--font-base);
  font-weight: 800;
  font-style: italic;
  font-size: 48px;
  color: var(--color-white);
  text-align: center;
  width: 100%;
  padding-left: 112px;
}

/* タブナビ */
.recruit-nav {
  position: absolute;
  top: 141px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.recruit-nav a {
  font-family: 'Inter', var(--font-base);
  font-weight: 900;
  font-style: italic;
  font-size: 36px;
  color: var(--color-white);
  transition: opacity 0.2s;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.recruit-nav a:hover {
  opacity: 0.8;
}

/* 中央写真 */
.recruit-center-photo {
  position: absolute;
  left: 0;
  top: 219px;
  width: 100%;
  height: 594px;
  overflow: hidden;
}

.recruit-center-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* キャッチコピー */
.recruit-catchcopy {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  font-family: 'Inter', var(--font-base);
  font-weight: 900;
  font-style: italic;
  font-size: 96px;
  color: var(--color-white);
  text-align: center;
  text-shadow: 0 4px 4px rgba(0,0,0,0.25);
  line-height: 1;
}

/* ============================================================
   Footer
============================================================ */
.site-footer {
  background-color: var(--color-green);
  color: var(--color-white);
  padding: 48px 60px;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 36px;
}

.footer-nav ul {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav ul li a {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-white);
  transition: opacity 0.2s;
}

.footer-nav ul li a:hover {
  opacity: 0.75;
}

.footer-copy {
  font-size: 14px;
  opacity: 0.8;
  text-align: center;
}

/* ============================================================
   Responsive — Tablet (≤1024px)
============================================================ */
@media (max-width: 1024px) {
  .site-header {
    height: 120px;
  }

  .site-logo a {
    font-size: 36px;
  }

  .global-nav ul {
    gap: 28px;
  }

  .global-nav ul li a {
    font-size: 22px;
  }

  .hero-section {
    height: 560px;
  }

  .hero-text {
    left: 60px;
    top: 140px;
    font-size: 64px;
    width: auto;
    max-width: 80%;
  }

  /* 会社概要 */
  .company-inner {
    display: flex;
    flex-direction: column;
    padding: 0 0 60px;
    min-height: unset;
  }

  .company-heading-bar {
    position: static;
    width: 100%;
    max-width: 400px;
    margin-top: 40px;
  }

  .company-side-nav {
    position: static;
    width: 100%;
    padding: 0 40px;
  }

  .company-side-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .company-side-nav ul li {
    flex: 1 1 120px;
  }

  .company-photo {
    position: static;
    width: 100%;
    height: 400px;
    order: -1;
  }

  .company-message {
    position: static;
    width: 100%;
    padding: 40px;
    font-size: 20px;
  }

  /* 事業紹介 */
  .business-cards {
    position: static;
    margin-top: 220px;
    flex-wrap: wrap;
    padding: 0 30px 60px;
  }

  .business-card {
    max-width: 100%;
  }

  /* 採用情報 */
  .recruit-nav {
    gap: 40px;
  }

  .recruit-nav a {
    font-size: 28px;
  }

  .recruit-catchcopy {
    font-size: 64px;
    bottom: 40px;
  }
}

/* ============================================================
   Responsive — Mobile (≤768px)
============================================================ */
@media (max-width: 768px) {
  /* Header */
  .site-header {
    height: 80px;
  }

  .header-inner {
    padding: 0 24px;
  }

  .site-logo a {
    font-size: 28px;
  }

  .global-nav {
    display: none;
    position: fixed;
    inset: 80px 0 0 0;
    background-color: var(--color-green);
    padding: 40px 24px;
    z-index: 99;
    overflow-y: auto;
  }

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

  .global-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .global-nav ul li a {
    font-size: 28px;
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.3);
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-section {
    height: 360px;
  }

  .hero-text {
    left: 24px;
    top: 60px;
    font-size: 40px;
    width: 90%;
  }

  /* 会社概要 */
  .company-heading-bar {
    height: 100px;
  }

  .company-heading-bar h2 {
    font-size: 36px;
  }

  .company-message {
    font-size: 16px;
  }

  /* 事業紹介 */
  .business-title {
    font-size: 36px;
    padding-left: 80px;
  }

  .business-cards {
    margin-top: 180px;
    gap: 30px;
    padding: 0 16px 40px;
  }

  .business-card {
    border-radius: 48px;
    padding: 40px 24px 40px;
  }

  .business-card-image {
    width: 220px;
    height: 160px;
  }

  .business-card-text {
    font-size: 18px;
  }

  /* 採用情報 */
  .recruit-nav {
    top: 100px;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 16px;
  }

  .recruit-nav a {
    font-size: 22px;
  }

  .recruit-catchcopy {
    font-size: 36px;
    bottom: 24px;
    padding: 0 16px;
  }

  /* Footer */
  .site-footer {
    padding: 32px 24px;
  }

  .footer-logo {
    font-size: 28px;
  }

  .footer-nav ul {
    gap: 20px;
  }
}

/* ============================================================
   Section: お問い合わせ
============================================================ */
.contact-section {
  background-color: var(--color-white);
  padding: 80px 60px 100px;
}

.contact-inner {
  max-width: 760px;
  margin: 0 auto;
}

.contact-heading {
  font-family: 'Inter', var(--font-base);
  font-weight: 900;
  font-size: 48px;
  color: var(--color-green);
  margin-bottom: 16px;
}

.contact-lead {
  font-size: 20px;
  color: var(--color-black);
  margin-bottom: 48px;
}

.simple-contact-form .form-group {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.simple-contact-form label {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-black);
}

.simple-contact-form .required {
  color: #e53e3e;
  margin-left: 4px;
}

.simple-contact-form input[type="text"],
.simple-contact-form input[type="email"],
.simple-contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-base);
  font-size: 18px;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  background: #fafafa;
}

.simple-contact-form input:focus,
.simple-contact-form textarea:focus {
  border-color: var(--color-green);
  background: var(--color-white);
}

.btn-submit {
  display: inline-block;
  padding: 18px 64px;
  background-color: var(--color-green);
  color: var(--color-white);
  font-family: var(--font-base);
  font-size: 20px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-submit:hover {
  background-color: #7a9e42;
}

.btn-submit:active {
  transform: scale(0.98);
}

/* ============================================================
   Blog / Archive (index.php)
============================================================ */
.main-content.blog-archive {
  padding: 60px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.page-title {
  font-size: 40px;
  font-weight: 900;
  color: var(--color-green);
  margin-bottom: 48px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 900px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 60px 24px; }
  .contact-heading { font-size: 36px; }
}

.post-card {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.post-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.post-card-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-card-body {
  padding: 24px;
}

.post-date {
  font-size: 14px;
  color: var(--color-gray);
  display: block;
  margin-bottom: 8px;
}

.post-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.post-card-title a {
  color: var(--color-black);
  transition: color 0.2s;
}

.post-card-title a:hover {
  color: var(--color-green);
}

.post-card-excerpt {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}

.btn-readmore {
  display: inline-block;
  padding: 8px 20px;
  background: var(--color-green);
  color: var(--color-white);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-readmore:hover {
  background: #7a9e42;
}

.pagination {
  margin-top: 60px;
  text-align: center;
}

.no-posts {
  font-size: 20px;
  color: var(--color-gray);
  text-align: center;
  padding: 60px 0;
}
