/*
Theme Name: Beelief
Theme URI: https://www.beelief.co.jp/
Author: beelief
Description: beelief corporate website custom theme (prototype)
Version: 1.0
Text Domain: beelief
*/

:root {
  --color-brown-dark: #746241;
  --color-brown-light: #9B8357;
  --color-green-deep: #637052;
  --color-green-sage: #94A088;
  --color-accent: #BD582C;
  --color-accent-bright: #E48312;
  --color-cream: #F7F3EC;
  --color-white: #FFFFFF;
  --font-heading: 'Kosugi', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  --font-body: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: #333;
  background: var(--color-white);
  line-height: 1.8;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: var(--color-white);
}

.site-header .logo-text {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-green-deep);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-header .logo img {
  max-height: 56px;
  width: auto;
}

.site-header nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.site-header nav a {
  color: #555;
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* Mobile nav toggle (hidden above the 768px breakpoint) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 28px;
  line-height: 1;
  color: var(--color-brown-dark);
  cursor: pointer;
}

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    padding: 20px 24px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
  }

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

  .site-header nav ul {
    flex-direction: column;
    gap: 0;
    margin-top: 16px;
  }

  .site-header nav li {
    border-top: 1px solid rgba(116, 98, 65, 0.15);
  }

  .site-header nav a {
    display: block;
    padding: 14px 4px;
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--color-brown-dark);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.hero-band {
  background: rgba(116, 98, 65, 0.88);
  color: var(--color-white);
  padding: 40px 64px;
  width: 100%;
  max-width: 720px;
}

.hero-band .eyebrow {
  font-size: 13px;
  letter-spacing: 0.15em;
  opacity: 0.85;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.5);
  display: inline-block;
  padding: 4px 12px;
}

.hero-band h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.5;
  margin: 16px 0;
  font-weight: 400;
}

.hero-band .sub {
  font-size: 15px;
  opacity: 0.9;
  border-top: 1px solid rgba(255,255,255,0.35);
  padding-top: 16px;
  margin-top: 16px;
}

/* Below this width .hero-band tracks the viewport instead of sitting at
   its 720px max-width, so the fixed 64px side padding starts eating an
   ever-larger share of the available line. Scale padding and the h1 down
   together (rather than just the font) so each of the mission statement's
   three fixed line-break points keeps fitting on one line down to small
   phone widths instead of wrapping mid-word. */
@media (max-width: 720px) {
  .hero-band {
    padding: 32px 28px;
  }

  .hero-band h1 {
    font-size: 3.7vw;
  }
}

@media (max-width: 480px) {
  .hero-band {
    padding: 24px 16px;
  }

  .hero-band h1 {
    font-size: clamp(14px, 4vw, 19px);
  }
}

/* Intro section */
.intro {
  max-width: 860px;
  margin: 96px auto;
  padding: 0 24px;
  text-align: center;
}

.intro h2 {
  font-family: var(--font-heading);
  color: var(--color-brown-dark);
  font-size: 28px;
  margin-bottom: 24px;
  font-weight: 400;
}

.intro p {
  color: #555;
  font-size: 16px;
}

/* Services grid */
.services {
  background: var(--color-cream);
  padding: 96px 48px;
}

.services-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.services h2 {
  font-family: var(--font-heading);
  color: var(--color-brown-dark);
  font-size: 28px;
  text-align: center;
  margin-bottom: 56px;
  font-weight: 400;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-card {
  background: var(--color-white);
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(116, 98, 65, 0.08);
}

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

.service-card .body {
  padding: 28px;
}

.service-card .tag {
  color: var(--color-green-deep);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 12px 0;
  color: #3a3a3a;
  font-weight: 400;
}

.service-card p {
  font-size: 14px;
  color: #666;
}

/* CTA */
.cta {
  text-align: center;
  padding: 96px 24px;
}

.cta h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--color-brown-dark);
  margin-bottom: 32px;
  font-weight: 400;
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 16px 40px;
  border-radius: 2px;
  font-size: 14px;
  letter-spacing: 0.1em;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--color-accent-bright);
  color: var(--color-white);
}

.site-footer {
  background: var(--color-green-deep);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 40px 24px;
  font-size: 13px;
}

.site-footer .privacy-note {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.85;
}

.site-footer .privacy-note a {
  color: var(--color-white);
  text-decoration: underline;
}

/* ==========================================================================
   Subpage templates (about-us / services / aboutus / inquiry)
   ========================================================================== */

/* Page hero (smaller banner used on interior pages) */
.page-hero {
  background: var(--color-brown-dark);
  color: var(--color-white);
  padding: 72px 48px;
  text-align: center;
}

.page-hero .eyebrow {
  font-size: 13px;
  letter-spacing: 0.15em;
  opacity: 0.85;
  border: 1px solid rgba(255,255,255,0.5);
  display: inline-block;
  padding: 4px 12px;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1.6;
  margin: 16px 0 0;
  font-weight: 400;
}

/* Mission statement band (shared: about-us / aboutus) */
.mission-band {
  background: var(--color-cream);
  padding: 64px 24px;
  text-align: center;
}

.mission-band .mission-text {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-brown-dark);
  line-height: 2;
  white-space: pre-line;
  max-width: 720px;
  margin: 0 auto;
  font-weight: 400;
}

/* Generic centered content section */
.content-section {
  max-width: 860px;
  margin: 96px auto;
  padding: 0 24px;
}

.content-section h2 {
  font-family: var(--font-heading);
  color: var(--color-brown-dark);
  font-size: 26px;
  margin-bottom: 24px;
  font-weight: 400;
}

.content-section h3 {
  font-family: var(--font-heading);
  color: var(--color-green-deep);
  font-size: 18px;
  margin: 40px 0 12px;
  font-weight: 400;
}

.content-section p {
  color: #555;
  font-size: 16px;
}

.content-section ul {
  color: #555;
  font-size: 15px;
  padding-left: 20px;
}

.content-section ul li {
  margin-bottom: 8px;
}

.content-section .logo-illustration {
  margin: 32px auto;
  max-width: 220px;
}

.content-section .logo-illustration img {
  display: block;
  width: 100%;
  height: auto;
}

/* Cream-background wrapper for nested content-section blocks */
.section-cream {
  background: var(--color-cream);
  padding: 96px 0;
}

.section-cream .content-section {
  margin: 0 auto;
}

/* Intro block variant with a secondary paragraph (services lead + supplement) */
.intro .supplementary {
  display: block;
  margin-top: 24px;
  font-size: 14px;
  color: #777;
}

/* Value / IPSM three-axis cards */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: 1120px;
  margin: 48px auto 0;
  padding: 0 24px;
}

.value-card {
  background: var(--color-white);
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 4px 24px rgba(116, 98, 65, 0.08);
  padding: 32px 28px;
}

.value-card h3 {
  font-family: var(--font-heading);
  color: var(--color-brown-dark);
  font-size: 19px;
  margin: 0 0 12px;
  font-weight: 400;
}

.value-card p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Services list (accordion) */
.service-list-section {
  background: var(--color-cream);
  padding: 96px 48px;
}

.service-list {
  max-width: 860px;
  margin: 0 auto;
}

.service-list details {
  background: var(--color-white);
  margin-bottom: 16px;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(116, 98, 65, 0.06);
  overflow: hidden;
}

.service-list summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 28px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--font-heading);
  color: var(--color-brown-dark);
  font-size: 17px;
  font-weight: 400;
}

.service-list summary::-webkit-details-marker {
  display: none;
}

.service-list summary .no {
  color: var(--color-accent);
  font-size: 13px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.service-list summary .summary-text {
  color: #666;
  font-size: 13px;
  font-family: var(--font-body);
  margin-left: auto;
  font-weight: 400;
  text-align: right;
}

.service-list summary::after {
  content: '+';
  color: var(--color-accent);
  font-size: 20px;
  margin-left: 8px;
}

.service-list details[open] summary::after {
  content: '\2212';
}

.service-list .service-body {
  padding: 0 28px 28px;
  color: #555;
  font-size: 15px;
  line-height: 1.9;
}

.service-list .service-body p {
  margin: 0 0 1em;
}

.service-list .service-body p:last-child {
  margin-bottom: 0;
}

/* Company overview table */
.company-table-section {
  max-width: 860px;
  margin: 64px auto 96px;
  padding: 0 24px;
}

.company-table-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.company-table-section th,
.company-table-section td {
  text-align: left;
  padding: 18px 16px;
  border-bottom: 1px solid #e5e0d5;
  vertical-align: top;
}

.company-table-section tr > :first-child {
  width: 180px;
  color: var(--color-brown-dark);
  font-family: var(--font-heading);
  font-weight: 400;
  white-space: nowrap;
}

.company-table-section tr > :not(:first-child) {
  color: #444;
}

/* Access section */
.access-section {
  background: var(--color-cream);
  padding: 96px 48px;
}

.access-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.access-inner h2 {
  font-family: var(--font-heading);
  color: var(--color-brown-dark);
  font-size: 26px;
  margin-bottom: 8px;
  font-weight: 400;
}

.access-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.access-list li {
  padding: 12px 0 12px 24px;
  position: relative;
  color: #555;
  font-size: 15px;
  border-bottom: 1px solid rgba(116,98,65,0.12);
}

.access-list li::before {
  content: '\2022';
  color: var(--color-accent);
  position: absolute;
  left: 4px;
  font-size: 18px;
  line-height: 1.2;
}

.map-embed {
  aspect-ratio: 16 / 9;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 13px;
  text-align: center;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(116, 98, 65, 0.08);
  margin-top: 44px;
}

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

@media (max-width: 720px) {
  .access-inner {
    grid-template-columns: 1fr;
  }
}

/* Contact page */
.contact-section {
  max-width: 720px;
  margin: 80px auto;
  padding: 0 24px;
}

.contact-note {
  background: var(--color-cream);
  padding: 20px 24px;
  font-size: 14px;
  color: #555;
  margin-bottom: 40px;
  border-left: 3px solid var(--color-accent);
}

.contact-note a {
  font-weight: 600;
}

.contact-form-wrap h2 {
  font-family: var(--font-heading);
  color: var(--color-brown-dark);
  font-size: 22px;
  margin-bottom: 24px;
  font-weight: 400;
}

/* Shared field styling for both the CF7-rendered form and the static preview markup */
.contact-form,
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form .form-row,
.wpcf7-form p {
  margin: 0;
}

.contact-form label,
.wpcf7-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-brown-dark);
  margin-bottom: 8px;
  font-weight: 400;
}

.contact-form .required,
.wpcf7-form .required {
  color: var(--color-accent);
  font-size: 12px;
  margin-left: 4px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d2c4;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  color: #333;
  background: var(--color-white);
}

.contact-form textarea,
.wpcf7-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form .btn {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.wpcf7-form input[type="submit"] {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 16px 40px;
  border: none;
  border-radius: 2px;
  font-size: 14px;
  letter-spacing: 0.1em;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s ease;
}

.wpcf7-form input[type="submit"]:hover {
  background: var(--color-accent-bright);
}

.wpcf7-response-output {
  border-radius: 2px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  margin: 0 !important;
}

.wpcf7-not-valid-tip {
  color: var(--color-accent);
  font-size: 12px;
  margin-top: 4px;
}

/* ==========================================================================
   情識 blog archive (archive.php + template-parts/blog-card.php)
   ========================================================================== */

.blog-archive {
  background: var(--color-cream);
  padding: 96px 48px;
}

.blog-archive-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.blog-archive-inner > p {
  text-align: center;
  color: #777;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.blog-card {
  display: block;
  background: var(--color-white);
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(116, 98, 65, 0.08);
  padding: 28px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-card-date {
  font-size: 12px;
  color: #999;
  letter-spacing: 0.05em;
}

.blog-card-tag {
  color: var(--color-green-deep);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  color: #3a3a3a;
  margin: 0 0 12px;
  font-weight: 400;
  line-height: 1.5;
}

.blog-card-excerpt {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.8;
}

/* Pagination (WordPress core the_posts_pagination() output) */
.pagination {
  margin-top: 56px;
  text-align: center;
}

.pagination .nav-links {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 2px;
  background: var(--color-white);
  color: var(--color-brown-dark);
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(116, 98, 65, 0.08);
}

.pagination a.page-numbers:hover {
  background: var(--color-brown-dark);
  color: var(--color-white);
}

.pagination .page-numbers.current {
  background: var(--color-accent);
  color: var(--color-white);
}

.pagination .page-numbers.dots {
  background: transparent;
  box-shadow: none;
}
