/*
Theme Name: Hana to Tetsugaku
Theme URI: https://example.com/
Author: Hana to Tetsugaku
Description: Corporate website theme for 株式会社 花と哲学.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: hanatetsugaku
*/

:root {
  --ink: #20221f;
  --muted: #64685e;
  --paper: #fbfaf5;
  --line: #ded8ca;
  --moss: #4b6548;
  --moss-dark: #263c2f;
  --petal: #c87474;
  --clay: #a7634c;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(38, 60, 47, 0.14);
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 216, 202, 0.82);
  background: rgba(251, 250, 245, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner,
.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--moss);
  border-radius: 50%;
  color: var(--moss-dark);
  font-family: Georgia, serif;
  font-size: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--moss-dark);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--moss-dark);
  border-radius: 4px;
  background: var(--moss-dark);
  color: var(--white);
  font-weight: 700;
  line-height: 1;
  padding: 0 18px;
}

.button.secondary {
  background: transparent;
  color: var(--moss-dark);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  padding: 78px 0 42px;
  background:
    linear-gradient(90deg, rgba(251, 250, 245, 0.96) 0%, rgba(251, 250, 245, 0.86) 48%, rgba(251, 250, 245, 0.18) 100%),
    url("assets/hero-flower-field.svg") center right / cover no-repeat;
}

.hero-copy {
  width: min(690px, 100%);
  padding-bottom: 9vh;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--clay);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(42px, 8vw, 88px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: #3e433b;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: #f2efe6;
}

.section-label {
  margin-bottom: 10px;
  color: var(--petal);
  font-size: 13px;
  font-weight: 700;
}

.section-title {
  margin-bottom: 26px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.28;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}

.body-copy {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--moss-dark);
  font-size: 20px;
}

.service-card p {
  color: var(--muted);
  font-size: 15px;
}

.philosophy-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.philosophy-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.company-table th,
.company-table td {
  border-bottom: 1px solid var(--line);
  padding: 18px 16px;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 180px;
  color: var(--moss-dark);
  font-weight: 700;
}

.contact-band {
  padding: 76px 0;
  background: var(--moss-dark);
  color: var(--white);
}

.contact-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact-layout p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-band .button {
  border-color: var(--white);
  background: var(--white);
  color: var(--moss-dark);
  flex: 0 0 auto;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 820px) {
  .site-nav {
    display: none;
  }

  .hero {
    min-height: 720px;
    padding-top: 54px;
    background:
      linear-gradient(180deg, rgba(251, 250, 245, 0.98) 0%, rgba(251, 250, 245, 0.86) 62%, rgba(251, 250, 245, 0.38) 100%),
      url("assets/hero-flower-field.svg") center bottom / cover no-repeat;
  }

  .hero-copy {
    padding-bottom: 260px;
  }

  .two-column,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 66px 0;
  }

  .service-card {
    min-height: auto;
  }

  .contact-layout,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    padding-bottom: 4px;
  }

  .company-table td {
    padding-top: 4px;
  }
}

.post-pagination {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  margin: 40px auto !important;
}

.post-pagination .prev-page,
.post-pagination .next-page {
  display: inline-block !important;
  float: none !important;
  margin: 0 8px !important;
}

.post-pagination a {
  display: inline-block !important;
  float: none !important;
}