/*
Theme Name: LANDL Custom Theme
Theme URI: https://landl.nextlaunchers.com/
Author: OpenAI
Author URI: https://openai.com/
Description: LANDL学習塾・予備校向けのカスタムWordPressテーマ。固定ページをPHPテンプレート化し、ブログ投稿はWordPress CMSを活用する構成です。
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: landl-theme
*/

/* ========================================
   Base Design Tokens
   ======================================== */
:root {
  --landl-primary: #1b48a3;
  --landl-primary-dark: #14377d;
  --landl-primary-light: #eef4ff;
  --landl-accent: #fdf001;

  --landl-text: #111827;
  --landl-text-sub: #4b5563;
  --landl-text-light: #6b7280;

  --landl-bg: #f8fbff;
  --landl-bg-soft: #eef4ff;
  --landl-white: #ffffff;
  --landl-border: #dbe6ff;
  --landl-border-soft: #e8eefc;

  --landl-success: #15803d;
  --landl-danger: #b91c1c;

  --landl-radius-xs: 10px;
  --landl-radius-sm: 14px;
  --landl-radius-md: 18px;
  --landl-radius-lg: 24px;
  --landl-radius-xl: 28px;
  --landl-radius-pill: 999px;

  --landl-shadow-soft: 0 10px 30px rgba(27, 72, 163, 0.08);
  --landl-shadow-medium: 0 14px 36px rgba(27, 72, 163, 0.10);
  --landl-shadow-accent: 0 16px 40px rgba(27, 72, 163, 0.16);

  --landl-container: 1180px;

  --landl-space-2xs: 8px;
  --landl-space-xs: 12px;
  --landl-space-sm: 16px;
  --landl-space-md: 24px;
  --landl-space-lg: 32px;
  --landl-space-xl: 48px;
  --landl-space-2xl: 72px;

  --landl-transition: 0.2s ease;

}

/* ========================================
   Reset / Base
   ======================================== */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--landl-text);
  background: var(--landl-bg);
  line-height: 1.8;
  font-size: 16px;
  overflow-wrap: break-word;
  word-break: normal;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

iframe {
  width: 100%;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--landl-transition), opacity var(--landl-transition), transform var(--landl-transition), box-shadow var(--landl-transition);
}

a:hover {
  color: var(--landl-primary);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  padding-left: 1.4em;
}

p,
ul,
ol,
dl,
table,
blockquote {
  margin: 0 0 1.2em;
}

p:last-child,
ul:last-child,
ol:last-child,
dl:last-child,
table:last-child,
blockquote:last-child {
  margin-bottom: 0;
}

/* ========================================
   Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.7em;
  color: var(--landl-text);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.2;
}

h2 {
  font-size: clamp(28px, 3vw, 38px);
}

h3 {
  font-size: clamp(22px, 2.2vw, 28px);
}

h4 {
  font-size: 20px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}

small {
  font-size: 0.875em;
}

strong,
b {
  font-weight: 800;
}

blockquote {
  padding: 20px 24px;
  border-left: 4px solid var(--landl-primary);
  background: var(--landl-primary-light);
  border-radius: var(--landl-radius-md);
  color: var(--landl-text-sub);
}

/* ========================================
   Layout helpers
   ======================================== */
.container,
[class*="__container"] {
  width: min(var(--landl-container), calc(100% - 32px));
  margin-inline: auto;
}

.section,
section {
  padding-top: var(--landl-space-2xl);
  padding-bottom: var(--landl-space-2xl);
}

.section--soft {
  background: var(--landl-bg-soft);
}

.rounded-box,
.card,
.price-card,
.feature-card,
.faq-card,
.blog-card,
.results-card,
.contact-card,
.access-card,
.story-card {
  background: var(--landl-white);
  border: 1px solid var(--landl-border);
  border-radius: var(--landl-radius-md);
  box-shadow: var(--landl-shadow-soft);
  padding: var(--landl-space-md);
}

.soft-panel {
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
  border: 1px solid var(--landl-border);
  border-radius: var(--landl-radius-xl);
  box-shadow: var(--landl-shadow-soft);
}

.table-wrap,
.compare-table-wrap,
.pricing-table-wrap,
.results-table-wrap,
.wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ========================================
   Buttons
   ======================================== */
.button,
.btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"],
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: var(--landl-radius-pill);
  background: linear-gradient(135deg, var(--landl-accent), var(--landl-primary));
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: var(--landl-shadow-accent);
  transition: transform var(--landl-transition), box-shadow var(--landl-transition), filter var(--landl-transition), background var(--landl-transition);
}

.button:hover,
.btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.button-primary:hover {
  color: #ffffff;
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.button-secondary,
.btn-secondary,
.is-style-outline .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--landl-radius-pill);
  background: #ffffff;
  color: var(--landl-primary);
  border: 1px solid #fed7aa;
  font-size: 15px;
  font-weight: 800;
  box-shadow: var(--landl-shadow-soft);
}

.button-secondary:hover,
.btn-secondary:hover,
.is-style-outline .wp-block-button__link:hover {
  color: var(--landl-primary-dark);
  transform: translateY(-1px);
}

/* ========================================
   Forms
   ======================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #e7d7c7;
  border-radius: var(--landl-radius-sm);
  background: #ffffff;
  color: var(--landl-text);
  line-height: 1.6;
  transition: border-color var(--landl-transition), box-shadow var(--landl-transition), background var(--landl-transition);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #fdba74;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18);
}

label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--landl-text);
}

/* ========================================
   Tables
   ======================================== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: var(--landl-radius-md);
  overflow: hidden;
  box-shadow: var(--landl-shadow-soft);
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--landl-border-soft);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--landl-primary-light);
  color: var(--landl-text);
  font-weight: 800;
}

tr:last-child td {
  border-bottom: none;
}

/* ========================================
   WordPress core
   ======================================== */
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5em;
}

.wp-caption img {
  border-radius: var(--landl-radius-md);
}

.wp-caption-text,
.gallery-caption {
  margin-top: 8px;
  color: var(--landl-text-light);
  font-size: 14px;
  line-height: 1.6;
}

.sticky {
  display: block;
}

.bypostauthor {
  display: block;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 9999;
  display: inline-block;
  padding: 10px 14px;
  background: #111827;
  color: #ffffff;
  border-radius: 12px;
}

/* ========================================
   Entry content
   ======================================== */
.entry-content,
.post-content {
  color: var(--landl-text-sub);
  line-height: 1.95;
}

.entry-content > * + *,
.post-content > * + * {
  margin-top: 1.2em;
}

.entry-content img,
.post-content img {
  border-radius: var(--landl-radius-md);
}

.entry-content a,
.post-content a {
  color: var(--landl-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ========================================
   Utility
   ======================================== */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.hidden {
  display: none !important;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 960px) {
  body {
    font-size: 15.5px;
  }

  .section,
  section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .container,
  [class*="__container"] {
    width: min(var(--landl-container), calc(100% - 28px));
  }

  .alignleft,
  .alignright {
    float: none;
    margin: 0 0 1em;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.8;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  .container,
  [class*="__container"] {
    width: min(100% - 24px, var(--landl-container));
  }

  .section,
  section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .rounded-box,
  .card,
  .price-card,
  .feature-card,
  .faq-card,
  .blog-card,
  .results-card,
  .contact-card,
  .access-card,
  .story-card {
    padding: 20px;
    border-radius: var(--landl-radius-sm);
  }

  .button,
  .btn,
  .wp-block-button__link,
  input[type="submit"],
  button[type="submit"],
  .button-primary,
  .button-secondary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .table-wrap table,
  .compare-table-wrap table,
  .pricing-table-wrap table,
  .results-table-wrap table,
  .wp-block-table table {
    min-width: 640px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 22px;
  }

  .section,
  section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}