﻿/*
Theme Name: Kobetsu M LP
Theme URI: https://tacademy.xsrv.jp/
Author: Kobetsu M
Description: Landing page theme for a private tutoring service in Gifu Mino area.
Version: 2.2.5
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: kobetsu-m-lp
*/

:root {
  --ink: #16211f;
  --muted: #5d6a66;
  --line: #dfe6e0;
  --paper: #fbfaf5;
  --white: #ffffff;
  --green: #1f5d4a;
  --green-dark: #123d32;
  --gold: #b9842f;
  --blue: #233e5f;
  --shadow: 0 18px 44px rgba(20, 37, 32, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "Meiryo", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  line-height: 1.7;
}

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

.lp-page-content > * {
  margin-block-start: 0;
}

.wp-site-blocks,
.lp-page-content {
  background: var(--paper);
}

.lp-page-content > :where(h1, h2, h3, h4, h5, h6, p, ul, ol, figure, table) {
  width: min(920px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.lp-page-content > :where(h1, h2, h3, h4, h5, h6):first-child {
  margin-top: 64px;
}

.lp-page-content > :where(p, ul, ol, figure, table):first-child {
  margin-top: 56px;
}

.lp-page-content > :where(p, ul, ol) {
  margin-bottom: 18px;
}

.lp-page-content > :where(h1, h2, h3, h4, h5, h6, p, ul, ol, figure, table):last-child {
  margin-bottom: 72px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(251, 250, 245, 0.92);
  border-bottom: 1px solid rgba(31, 93, 74, 0.14);
  backdrop-filter: blur(14px);
}

.site-header > .wp-block-buttons {
  flex-shrink: 1;
  justify-content: flex-end;
  min-width: 0;
}

.admin-bar .site-header {
  top: 32px;
}

.brand,
.header-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-weight: 800;
  min-width: 0;
  flex-shrink: 0;
}

.brand p {
  margin: 0;
}

.brand > p:not(.brand-mark) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark,
.brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  color: transparent;
  background: var(--white);
  background-image: url("assets/site-icon.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 8px;
  text-indent: -9999px;
}

.brand-icon {
  margin: 0;
}

.brand-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-nav {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
  flex-shrink: 0;
}

.header-nav p {
  margin: 0;
}

.header-cta,
.button {
  display: inline-flex;
  max-width: 100%;
}

.header-cta .wp-block-button__link,
.button .wp-block-button__link,
a.header-cta,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 100%;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  word-break: keep-all;
}

.header-cta .wp-block-button__link,
a.header-cta,
.button.primary .wp-block-button__link,
a.button.primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 12px 24px rgba(31, 93, 74, 0.22);
}

.button.secondary .wp-block-button__link,
a.button.secondary {
  color: var(--green-dark) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(31, 93, 74, 0.24) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  background: var(--paper) url("assets/hero-study.png") center / cover no-repeat;
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  background: url("assets/hero-study.png") center / cover no-repeat;
  object-fit: cover;
  margin: 0;
}

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(251, 250, 245, 0.97) 0%, rgba(251, 250, 245, 0.84) 42%, rgba(251, 250, 245, 0.2) 78%),
    linear-gradient(0deg, rgba(18, 61, 50, 0.36), rgba(18, 61, 50, 0.06));
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.hero-lead {
  max-width: 620px;
  color: #31403b;
  font-size: 1.18rem;
  font-weight: 500;
}

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

.hero-actions .wp-block-button__link {
  border-radius: 8px;
  font-weight: 800;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 170px));
  gap: 12px;
  margin: 0;
}

.hero-facts div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(31, 93, 74, 0.15);
  border-radius: 8px;
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-weight: 800;
}

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

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.intro-grid,
.results-grid,
.price-grid {
  display: grid;
  gap: 18px;
}

.intro-grid {
  grid-template-columns: repeat(3, 1fr);
}

.intro-grid.wp-block-columns,
.results-grid.wp-block-columns,
.price-grid.wp-block-columns,
.split.wp-block-columns {
  align-items: stretch !important;
}

.intro-grid article,
.intro-grid .wp-block-column,
.profile-panel,
.school-panel,
.price-card,
.area-list > div,
.area-list .wp-block-group,
.faq-item,
details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(20, 37, 32, 0.06);
}

.intro-grid article,
.intro-grid .wp-block-column {
  padding: 24px;
}

.intro-grid p,
.split p,
.school-group p,
.area-list p,
.faq-item p,
details p {
  color: var(--muted);
}

.service.section,
.area.section {
  width: 100%;
  max-width: none;
  padding: 92px max(28px, calc((100vw - 1120px) / 2)) !important;
  background: #eef4ef;
}

.service.section > .split,
.area.section > .split {
  width: min(1120px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 54px;
  align-items: start;
}

.subject-list,
.area-list {
  display: grid;
  gap: 12px;
}

.subject-list.wp-block-group,
.area-list.wp-block-group,
.faq-list.wp-block-group {
  display: grid;
}

.subject-list div {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: var(--white);
  border-left: 5px solid var(--green);
  border-radius: 8px;
}

.subject-list .wp-block-group {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: var(--white);
  border-left: 5px solid var(--green);
  border-radius: 8px;
}

.subject-list span,
.subject-list .wp-block-group > p:first-child,
.price-card span,
.price-card > p:first-child,
.school-group span {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 800;
}

.school-group > p:first-child strong {
  display: block;
  color: var(--green);
  font-size: 1.52rem;
  font-weight: 900;
  line-height: 1.25;
}

.subject-list em,
.price-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

.results-grid {
  grid-template-columns: 0.8fr 1.2fr;
}

.profile-panel,
.school-panel {
  padding: 30px;
}

.school-panel > h3 {
  font-size: 1.3rem;
}

.profile-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.school-group {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.school-group:first-of-type {
  border-top: 0;
}

.price-grid {
  grid-template-columns: repeat(3, 1fr);
}

.price-card {
  padding: 28px;
}

.price-card.wp-block-group {
  background: var(--white);
}

.price-card.featured {
  border-color: rgba(31, 93, 74, 0.42);
  box-shadow: var(--shadow);
}

.price-card p {
  margin-bottom: 8px;
}

.price-card strong {
  display: block;
  color: var(--blue);
  font-size: 2rem;
  line-height: 1.2;
}

.price-card small {
  color: var(--muted);
}

.transport {
  margin: 20px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.area-list > div {
  padding: 24px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 0 22px;
}

summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 800;
}

details p {
  margin-bottom: 22px;
}

.faq-item {
  padding: 22px;
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.faq-item p {
  margin: 0;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 92px;
  padding: 36px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 8px;
}

.cta-band .eyebrow {
  color: #e7bd70;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
}

.shift-page {
  background: var(--paper);
}

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

.shift-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 44px;
  align-items: center;
  padding: 86px 0 64px;
}

.shift-copy h1 {
  max-width: 760px;
}

.shift-lead {
  max-width: 680px;
  color: #31403b;
  font-size: 1.12rem;
  font-weight: 500;
}

.shift-notice {
  display: inline-flex;
  margin: 16px 0 24px;
  padding: 12px 16px;
  color: var(--green-dark);
  background: #fff7df;
  border: 1px solid rgba(185, 132, 47, 0.32);
  border-radius: 8px;
}

.shift-preview {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.preview-title {
  margin-bottom: 16px;
  color: var(--green);
  font-weight: 900;
}

.shift-table {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.shift-table p {
  min-height: 54px;
  margin: 0;
  padding: 12px 8px;
  color: var(--muted);
  background: #f3f7f3;
  border: 1px solid rgba(31, 93, 74, 0.12);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.shift-table p:nth-child(-n + 5) {
  min-height: 38px;
  color: var(--white);
  background: var(--green);
}

.shift-section {
  padding: 58px 0;
}

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

.shift-feature-grid .wp-block-column {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(20, 37, 32, 0.06);
}

.shift-feature-grid p,
.shift-cta p {
  color: var(--muted);
}

.shift-cta {
  margin-bottom: 84px;
  padding: 34px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 8px;
}

.shift-cta h2 {
  margin-bottom: 10px;
}

.shift-cta p {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header,
  .site-header.wp-block-group,
  .site-header.is-layout-flex {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand cta"
      "nav nav";
    align-items: center;
    gap: 10px 12px !important;
    min-height: 0;
    padding: 10px 16px 12px !important;
  }

  .site-header > .brand {
    grid-area: brand;
  }

  .site-header > .wp-block-buttons {
    grid-area: cta;
    display: flex !important;
    justify-content: flex-end !important;
    min-width: 0;
    margin-left: 0 !important;
  }

  .site-header > .header-nav,
  .site-header > .header-nav.wp-block-group,
  .site-header > .header-nav.is-layout-flex {
    grid-area: nav;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px !important;
    width: 100%;
    font-size: 0.82rem;
  }

  .header-nav p {
    min-width: 0;
  }

  .header-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 93, 74, 0.13);
    border-radius: 8px;
    text-align: center;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(251, 250, 245, 0.98) 0%, rgba(251, 250, 245, 0.9) 58%, rgba(18, 61, 50, 0.24) 100%);
  }

  .hero-content {
    padding: 62px 0 78px;
  }

  .hero-facts,
  .intro-grid,
  .results-grid,
  .price-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .subject-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .section {
    padding: 68px 0;
  }

  .service.section,
  .area.section {
    padding: 68px 24px !important;
  }

  .cta-band,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .shift-hero,
  .shift-feature-grid {
    grid-template-columns: 1fr;
  }

  .shift-hero {
    padding: 58px 0 44px;
  }

  .shift-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 520px) {
  .brand > p:not(.brand-mark) {
    display: none;
  }

  .brand-icon,
  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .header-cta {
    min-height: 0;
  }

  .header-cta .wp-block-button__link,
  a.header-cta {
    min-height: 42px;
    width: auto;
    padding: 0 13px;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .button .wp-block-button__link {
    width: 100%;
  }

  .site-footer nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

