/*
Theme Name: Custom School Uniform Theme
Author: Original Theme Creator
Version: 1.0.0
Description: 制服デザインに特化したモダンCSS対応のWordPressオリジナルテーマ（モバイルファースト版）
*/

/* ==========================================================================
   1. Reset & CSS Variables
   ========================================================================== */
:root {
  --color-primary: #004c7d; /* メインのダークブルー */
  --color-primary-light: #1292d3; /* 明るいブルー */
  --color-accent: #ff5e7e; /* WEB予約・アクセントピンク */
  --color-line-green: #58b837; /* LINE予約グリーン */
  --color-bg-light: #e4f3fa; /* ライトブルー背景 */
  --color-bg-gray: #f8fafc; /* ライトグレー背景 */
  --color-text: #333333; /* テキストカラー */
  --color-white: #ffffff;
  --font-family:
    "kozuka-gothic-pro", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  --container-width: 1100px;
  --border-radius-lg: 16px;
  --border-radius-sm: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  font-style: normal;
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

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

ul,
ol {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--container-width));
  margin-inline: auto;
}

/* 汎用クラス */
.text-white {
  color: var(--color-white) !important;
}

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

/* ==========================================================================
   ページ内スムーズスクロール ＆ 固定ヘッダー位置補正
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

/* アンカー移動時に固定ヘッダーで隠れないようにスクロール位置を調整 */
#school-list {
  scroll-margin-top: 80px;
}

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding-block: 12px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.site-logo a {
  align-items: baseline;
  text-decoration: none;
  color: #000000;
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  margin-top: -8px;
  line-height: 1;
}

.logo-main {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* 予約ボタンエリア */
.header-cta {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-left: auto;
  margin-top: -12px;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 12px 10px;
  border-radius: 0 0 8px 8px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-white);
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.btn-header:hover {
  opacity: 0.88;
}

.btn-web {
  background-color: var(--color-accent);
}

.btn-line {
  background-color: var(--color-line-green);
}

/* ハンバーガーボタン (スマホ用) */
.hamburger-btn {
  position: relative;
  z-index: 1010;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
}

.hamburger-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ドロワーメニュー (スマホ用) */
.site-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  padding: 80px 30px 40px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  overflow-y: auto;
}

.site-nav.is-open {
  right: 0;
}

.header-menu-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.header-menu-list a {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  display: block;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f5;
  transition: color 0.2s ease;
}

.header-menu-list a:hover {
  color: var(--color-primary-light);
}

body.menu-open::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

/* ==========================================================================
   3. Main Visual / Hero Section (トップページメインビジュアル)
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--color-white);
  overflow: hidden;
  padding-block: 40px;
  z-index: 1;
  margin-bottom: 2em;
}

.hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: clamp(180px, 28vw, 360px);
  height: clamp(180px, 28vw, 360px);
  background-color: var(--color-primary);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(100px, 20vw, 240px);
  height: clamp(100px, 20vw, 240px);
  background-color: var(--color-primary);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ★ 画像領域：overflow: hidden で角丸枠外へのはみ出しをガード */
.hero-image-main {
  background-image: url(./images/hero_sp.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 20em 0em 8em 1.5em !important;
  border-radius: 20px;
  overflow: hidden !important; /* 角丸枠外への飛び出しを防止 */
}

/* ★ テキスト領域：他ページの width: 48% の干渉をリセット */
.hero .hero-text {
  width: 100% !important;
  max-width: 100% !important;
  text-align: right !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}

.hero .hero-text h1 {
  font-size: clamp(1.5rem, 3.7vw, 2.7rem) !important;
  color: var(--color-primary);
  line-height: 1.4;
  margin-bottom: 12px;
  text-align: right !important;
}

/* 白帯：角丸なし＆右端ピッタリ密着 */
.hero .hero-text h1 span {
  display: table !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  background: var(--color-white);
  padding: 6px 16px;
  margin-bottom: 8px;
}

.hero .hero-text h1 span:last-child {
  margin-bottom: 0;
}

/* ピンクバッジ：横並び＆角丸保持 */
.hero .hero-tags {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 8px;
  margin-top: 18px;
  margin-left: auto !important;
  margin-right: 1.5em; /* 画像内側に収める */
}

.tag-badge {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 12px 14px !important;
  border-radius: 8px !important; /* 角丸あり */
  font-size: clamp(0.9rem, 2vw, 1.4rem) !important;
  font-weight: bold;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Heroアニメーション用 */
.hero-image-main.js-fade {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.8s ease,
    transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-main.js-fade.is-show {
  opacity: 1;
  transform: scale(1);
}

.hero-text-fade {
  opacity: 0;
  transition: opacity 2s ease 0.3s;
}

.hero-image-main.is-show .hero-text-fade {
  opacity: 1;
}

/* ==========================================================================
   4. Campaign Bar
   ========================================================================== */
.campaign-bar {
  background: var(--color-white);
  padding-block: 15px;
}

.campaign-inner {
  display: flex;
  align-items: stretch;
  background-color: var(--color-white);
  border: 2px solid var(--color-accent);
  border-radius: 100px;
  overflow: hidden;
}

.campaign-label {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.campaign-text {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
}

.campaign-arrow {
  font-size: 0.7rem;
  color: var(--color-primary);
  align-self: flex-start;
  margin-top: 3px;
}

.sp-br {
  display: inline;
}

/* ==========================================================================
   5. General Sections & Common Component Styles
   ========================================================================== */
.section {
  position: relative;
  padding-block: 40px;
  z-index: 1;
}

.section-bg-light,
.section-bg-light2 {
  position: relative;
  background-color: #f5f5f5;
  z-index: 2;
}

.section-bg-dark {
  background: linear-gradient(
    to bottom,
    var(--color-primary) 0%,
    var(--color-primary) 20%,
    transparent 20%,
    transparent 100%
  );
  color: var(--color-white);
  border-top: 10px solid var(--color-accent);
}

.section-title {
  text-align: left;
  font-size: 1.5rem;
  margin-bottom: 30px;
  position: relative;
}

.section-title::before {
  content: "";
  display: block;
  width: 30px;
  height: 4px;
  background: var(--color-primary-light);
  margin: 0 0 8px;
  border-radius: 2px;
}

.section-bg-dark .section-title::before {
  background: var(--color-white);
}

.section-sub-desc {
  margin-bottom: 30px;
  font-size: 0.9rem;
}

/* 時期のご案内 (Lead Section) */
.lead-sub-text {
  color: var(--color-primary);
  font-weight: bold;
  border: 1px solid var(--color-primary);
  padding: 3px 20px;
  display: inline-block;
  border-radius: 100px;
  margin-bottom: 8px;
}

.lead-main-title {
  color: var(--color-primary);
  font-size: 1.8rem;
}

.lead-attention {
  color: var(--color-accent);
  font-weight: bold;
}

.lead-description {
  margin-top: 10px;
  font-size: 0.9rem;
}

.contact-btn-wrapper {
  text-align: right;
  margin-top: 20px;
}

.btn-contact-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #31b3d3;
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.btn-contact-blue:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* 右下青三角形飾り */
.hero-image-corner {
  position: relative;
  z-index: 1;
}

.hero-image-corner img {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
  display: block;
}

.hero-image-corner::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: calc((100vw - 100%) / -2);
  width: clamp(250px, 48vw, 750px);
  height: clamp(250px, 48vw, 750px);
  background-color: var(--color-primary);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

/* ==========================================================================
   6. School Section (取扱い学校一覧)
   ========================================================================== */
.school-section {
  position: relative;
  padding-block: 40px;
}

.school-vertical-text {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: #ebebeb;
  padding-top: 30px;
  padding: 10px;
  font-size: clamp(2rem, 5vw, 2.2rem);
  color: var(--color-white);
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  user-select: none;
  z-index: 1;
  font-family: "bebas-neue-pro", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.school-container {
  padding-left: 55px;
}

.school-content {
  width: 100%;
}

.school-category {
  margin-bottom: 20px;
}

.school-category-title {
  font-size: 0.95rem;
  color: var(--color-primary-light);
  font-weight: bold;
  border-bottom: 1px dotted var(--color-primary-light);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.school-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.btn-school {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-white);
  padding: 10px 12px 10px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--color-text);
  border: 1px solid var(--color-primary-light);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-school:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(18, 146, 211, 0.15);
}

.btn-school span {
  width: 28px;
  height: 28px;
  background-color: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  flex-shrink: 0;
  margin-left: 10px;
  position: relative;
}

.btn-school span::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--color-white);
  border-right: 2px solid var(--color-white);
  transform: rotate(45deg);
  margin-left: -2px;
}

/* ==========================================================================
   7. Cards & Feature Sections
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  overflow: hidden;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card img {
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-weight: bold;
}

.card-text {
  font-size: 0.85rem;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.feature-section {
  overflow: hidden;
}

.feature-banner {
  position: relative;
  border-radius: clamp(200px, 12vw, 140px) 0 0 clamp(200px, 12vw, 140px);
  overflow: hidden;
  margin-right: calc((100vw - 100%) / -2);
}

.feature-banner-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.feature-banner-box {
  position: absolute;
  right: 0;
  top: 70%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  background: transparent;
  padding: 0;
  max-width: 85%;
}

.feature-banner-title {
  background-color: var(--color-white);
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 800;
  padding: 8px 20px;
  margin: 0;
  display: inline-block;
}

.feature-banner-text {
  background-color: var(--color-white);
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 800;
  padding: 10px 24px;
  margin: 0;
  display: inline-block;
}

/* ==========================================================================
   8. Product Section
   ========================================================================== */
.product-section .section-title {
  text-align: center;
}

.product-section .section-title::before {
  margin: 0 auto 8px;
}

.product-section .grid-3 {
  gap: 12px;
}

.product-card .card-body {
  padding: 8px 10px 12px;
}

.product-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  color: #000000;
}

.arrow-circle {
  width: 24px;
  height: 24px;
  background-color: #31b3d3;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.arrow-circle::after {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-top: 2px solid var(--color-white);
  border-right: 2px solid var(--color-white);
  transform: rotate(45deg);
  margin-left: -2px;
}

/* ==========================================================================
   9. News Section
   ========================================================================== */
.news-section {
  padding-block: 50px;
  background-color: var(--color-white);
}

.news-arch-container {
  display: flex;
  flex-direction: column-reverse;
  background-color: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.news-image-column {
  position: relative;
  background-color: var(--color-white);
}

.news-image-mask {
  width: 100%;
  height: 100%;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  position: relative;
}

.news-image-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.news-content-column {
  background-color: var(--color-bg-light);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}

.news-content-inner {
  width: 100%;
}

.section-title-wrapper {
  margin-bottom: 24px;
}

.title-bar {
  display: block;
  width: 30px;
  height: 4px;
  background-color: var(--color-primary);
  margin-bottom: 10px;
  border-radius: 2px;
}

.news-section-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-primary);
  margin: 0;
}

.news-list-updated {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-white);
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.news-card-body {
  flex: 1;
}

.news-date {
  font-size: 0.8rem;
  color: #333333;
  font-weight: 700;
  margin: 0 0 4px 0;
  font-family: Arial, sans-serif;
}

.news-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px dotted #cccccc;
  display: block;
  width: 100%;
}

.news-arrow-icon {
  width: 24px;
  height: 24px;
  background-color: #34b5e7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  flex-shrink: 0;
}

.arrow-shape {
  width: 5px;
  height: 5px;
  border-top: 2px solid var(--color-white);
  border-right: 2px solid var(--color-white);
  transform: rotate(45deg);
  display: block;
}

/* ==========================================================================
   10. Action Banner
   ========================================================================== */
.banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-block: 30px;
}

.action-banner {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 16px;
  color: var(--color-white);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  overflow: hidden;
}

.action-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.banner-image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  margin-right: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-block: 4px;
  position: relative;
}

.banner-text::before,
.banner-text::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.6);
}

.banner-text::before {
  margin-bottom: 6px;
}

.banner-text::after {
  margin-top: 6px;
}

.banner-sub-text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
  line-height: 1.2;
}

.banner-main-text {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.banner-red {
  background-color: #ff6584;
}

.banner-blue {
  background-color: #31b3d3;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding-top: 40px;
  padding-bottom: 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-white);
}

.footer-address {
  font-size: 0.85rem;
  margin-top: 8px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.footer-phone {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 10px;
}

.footer-map {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  color: var(--color-white);
  font-size: 0.88rem;
  transition: opacity 0.2s ease;
}

.footer-nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.copyright {
  text-align: center;
  font-size: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   12. Scroll Animation (スクロールフェードアニメーション)
   ========================================================================== */
.js-fade {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.js-fade.is-show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.15s;
}
.delay-2 {
  transition-delay: 0.3s;
}
.delay-3 {
  transition-delay: 0.45s;
}

/* ==========================================================================
   13. Page Specific: 当店について (About Page)
   ========================================================================== */
.page .section-title {
  text-align: left;
  font-size: 2.5rem;
}

.about-company-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.about-store-img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.company-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  font-size: 0.95rem;
}

.company-dl dt {
  font-weight: bold;
  color: var(--color-text);
  padding-right: 20px;
  padding-bottom: 14px;
}

.company-dl dd {
  line-height: 1.6;
  border-left: 1px solid #e0e0e0;
  padding-left: 20px;
  padding-bottom: 14px;
}

/* 営業品目エリア */
.business-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding-block: 28px;
}

.business-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.business-list li {
  font-size: 0.95rem;
  font-weight: bold;
  position: relative;
  padding-left: 1.2em;
  list-style: none;
}

.business-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--color-text);
}

/* ==========================================================================
   14. Page Specific: 制服のアフターフォロー (After Follow Page)
   ========================================================================== */
.hero-image-afterfollow {
  background-image: url("./images/afterfollow_hero_sp.jpg");
}

.afterfollow-lead-desc {
  margin-top: 24px;
  line-height: 1.8;
  font-weight: bold;
}

.afterfollow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
  margin-top: 40px;
}

.afterfollow-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.afterfollow-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #d6d6d6;
  border-radius: 4px;
  overflow: hidden;
}

.afterfollow-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.afterfollow-card-title {
  margin-top: 12px;
  text-align: center;
  font-weight: bold;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--color-text);
}

.afterfollow-btn-wrapper {
  text-align: center;
  margin-top: 48px;
}

.btn-afterfollow-cta {
  display: inline-block;
  background-color: #31b7e8;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.05rem;
  padding: 14px 48px;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-afterfollow-cta:hover {
  background-color: #27a2d0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   15. Page Specific: 学校詳細 (Single School Page)
   ========================================================================== */
.school-hero-img {
  background-image: url("./images/school_hero_sp.jpg");
}

.school-lead-desc {
  margin-top: 16px;
  font-weight: bold;
}

.school-campaign-box {
  margin-top: 24px;
}

.campaign-badge {
  display: inline-block;
  background-color: #ff6584;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.campaign-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.campaign-list li {
  font-size: 0.95rem;
  font-weight: bold;
  position: relative;
  padding-left: 1.2em;
  border-bottom: 1px dotted #cccccc;
  padding-bottom: 6px;
}

.campaign-list li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #ff6584;
  font-size: 0.75rem;
}

.school-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
  margin-top: 32px;
}

.school-product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.school-product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  background-color: #d6d6d6;
}

.school-product-name {
  margin-top: 12px;
  text-align: center;
  font-weight: bold;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--color-text);
}

.school-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.btn-school-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  text-decoration: none;
  width: 100%;
  max-width: 360px;
}

.btn-school-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-pink {
  background-color: #ff6584;
}
.btn-blue {
  background-color: #31b7e8;
}

.hero-text .section-title {
  text-align: left;
}

.hero-text .section-title::before {
  margin: 0 0 8px 0;
}

/* 共通：右側写真（左側完全半円アーチ & 右端吸着） */
.afterfollow-thumb-image,
.school-thumb-image {
  margin-right: calc((100vw - 100%) / -2);
  border-radius: 999px 0 0 999px !important;
  overflow: hidden;
}

.afterfollow-thumb-image img,
.school-thumb-image img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   16. Page Specific: お問い合わせフォーム & カレンダー (Contact Page)
   ========================================================================== */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 16px;
}

.contact-container .section-title {
  text-align: left;
  margin-bottom: 32px;
}

.booking-calendar-wrapper {
  margin-bottom: 40px;
}

.contact-form-wrapper {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333333;
  margin-bottom: 8px;
  line-height: 1.4 !important;
}

.badge-required,
.badge-auto {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: normal;
  line-height: 1.2 !important;
  transform: translateY(2px) !important;
}

.badge-required {
  background-color: #e53e3e;
  color: #ffffff;
}

.badge-auto {
  background-color: #4a5568;
  color: #ffffff;
}

.form-control,
.wpcf7-form-control-wrap input[type="text"],
.wpcf7-form-control-wrap input[type="email"],
.wpcf7-form-control-wrap input[type="tel"],
.wpcf7-form-control-wrap textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  color: #333333;
  background-color: #fafafa;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  outline: none;
}

.form-control:focus,
.wpcf7-form-control-wrap input:focus,
.wpcf7-form-control-wrap textarea:focus {
  background-color: #ffffff;
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

.wpcf7-form-control-wrap textarea {
  height: 140px;
  resize: vertical;
}

.form-submit {
  text-align: center;
  margin-top: 32px;
}

.btn-submit,
.wpcf7-submit {
  display: inline-block;
  width: 100%;
  max-width: 280px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  background: #0056b3;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.btn-submit:hover,
.wpcf7-submit:hover {
  background: #004085;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.wpcf7-list-item {
  display: block;
  margin: 0 0 8px 0;
}

.wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  cursor: pointer;
}

/* ==========================================================================
   17. Media Queries (Progressive Enhancement)
   ========================================================================== */

/* --- Mobile Maximum Adjustments (max-width: 600px) --- */
@media (max-width: 600px) {
  .btn-contact-blue {
    font-size: 0.88rem;
    padding: 10px 20px;
    border-radius: 10px;
  }

  .btn-school {
    padding: 8px 10px 8px 16px;
    font-size: 0.88rem;
  }

  .btn-school span {
    width: 24px;
    height: 24px;
  }

  .btn-school span::after {
    width: 5px;
    height: 5px;
  }

  .feature-banner-img {
    height: 260px;
  }

  .feature-banner-title {
    font-size: 0.9rem;
    padding: 6px 14px;
  }

  .feature-banner-text {
    font-size: 0.95rem;
    padding: 8px 16px;
  }
}

/* --- Mobile Only for News & Images (max-width: 767px) --- */
@media (max-width: 767px) {
  .news-section .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
  }

  .news-arch-container,
  .news-content-column,
  .news-image-mask {
    border-radius: 0 !important;
    box-shadow: none;
  }

  .afterfollow-thumb-image,
  .school-thumb-image {
    margin-right: -16px;
    border-radius: 999px 0 0 999px !important;
  }
}

/* --- Tablet & Small Screen (min-width: 600px) --- */
@media (min-width: 600px) {
  .site-logo a {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .logo-sub {
    font-size: 0.8rem;
    margin-top: 0;
  }

  .logo-main {
    font-size: 1.4rem;
  }

  .hero-image-main {
    background-image: url(./images/hero_pc.jpg);
    background-position: center center;
  }

  .hero-image-afterfollow {
    background-image: url("./images/afterfollow_hero.jpg");
  }

  .school-hero-img {
    background-image: url("./images/school_hero.jpg");
  }

  .tag-badge {
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
  }

  .campaign-inner {
    border-radius: 100px;
  }

  .campaign-label {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .campaign-text {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .campaign-arrow {
    align-self: center;
    margin-top: 0;
  }

  .sp-br {
    display: none;
  }

  .school-buttons {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .banner-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .action-banner {
    padding: 15px 15px;
    border-radius: 20px;
  }

  .banner-image {
    width: 85px;
    height: 85px;
    margin-right: 0px;
  }

  .banner-main-text {
    font-size: 1.3rem;
  }

  .feature-banner-box {
    right: 0px;
    padding: 0px;
  }

  .feature-banner-title,
  .feature-banner-text {
    font-size: 1.3rem;
    padding: 5px 24px;
  }

  .school-cta-wrapper {
    flex-direction: row;
    gap: 24px;
  }
}

/* --- Medium Screen (min-width: 768px) --- */
@media (min-width: 768px) {
  .site-nav {
    max-width: 680px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .header-menu-list a {
    white-space: nowrap;
    font-size: 1.05rem;
  }

  .site-header {
    padding-block: 15px;
  }

  .header-cta {
    margin-top: -15px;
    gap: 10px;
  }

  .btn-header {
    padding: 14px 22px 12px;
    font-size: 0.9rem;
  }

  .logo-sub {
    display: inline;
  }

  .logo-main {
    font-size: 1.5rem;
  }

  .tag-badge {
    padding: 6px 14px;
    font-size: 1.3rem;
  }

  .section {
    padding-block: 60px;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .section .hero-text {
    display: block;
    text-align: left;
    margin-left: 0;
  }

  .section .contact-btn-wrapper {
    text-align: left;
    margin-top: 20px;
  }

  .section-bg-light2 {
    background: linear-gradient(
      to right,
      #ebebeb 0%,
      #ebebeb 10%,
      #f5f5f5 10%,
      #f5f5f5 100%
    );
  }

  .section .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 36px;
  }

  .hero-image-corner::after {
    bottom: -60px;
  }

  .school-section {
    padding-block: 60px;
  }

  .school-vertical-text {
    padding-top: 40px;
    padding-left: 30px;
    padding-right: 30px;
    font-size: clamp(3rem, 4vw, 3.8rem);
    letter-spacing: 0.12em;
  }

  .school-container {
    padding-left: 130px;
  }

  .btn-school {
    padding: 6px 10px 6px 16px;
    font-size: 0.85rem;
  }

  .btn-school span {
    width: 22px;
    height: 22px;
    margin-left: 8px;
  }

  .btn-school span::after {
    width: 4px;
    height: 4px;
    margin-left: -1px;
  }

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

  .section-bg-dark {
    background: linear-gradient(
      to bottom,
      var(--color-primary) 0%,
      var(--color-primary) 50%,
      transparent 50%,
      transparent 100%
    );
    color: var(--color-white);
    border-top: 10px solid var(--color-accent);
  }

  .card img {
    height: 200px;
  }

  .card-body {
    padding: 20px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .news-section .container {
    max-width: none;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
  }

  .news-arch-container {
    flex-direction: row;
    border-radius: 0 999px 999px 0;
  }

  .news-content-column {
    flex: 1;
    padding: 50px 40px 50px calc((100vw - min(100vw - 32px, 1100px)) / 2);
    border-radius: 0;
  }

  .news-image-column {
    flex: 1.3;
    height: auto;
    min-height: 380px;
  }

  .news-image-mask {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 0 999px 999px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
  }

  .footer-address {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .footer-phone {
    font-size: 1.8rem;
  }

  .footer-map {
    height: 220px;
  }

  .about-company-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
  }

  .business-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
  }

  .afterfollow-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 36px 24px;
  }

  .school-product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
  }

  .hero-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 32px;
  }

  .hero-inner .hero-text {
    width: 48% !important;
    flex-shrink: 0 !important;
  }

  .hero-inner .school-thumb-image {
    width: 52% !important;
    flex-shrink: 0 !important;
  }
}

/* --- Tablet/Medium PC Range (768px〜1199px) Special Font Clamp & Layout Fix --- */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero-text .section-title {
    font-size: clamp(2rem, 2.2vw, 1.8rem) !important;
    white-space: nowrap;
  }

  .afterfollow-lead-desc,
  .school-lead-desc {
    font-size: clamp(0.82rem, 1.2vw, 0.95rem) !important;
    line-height: 1.8;
    margin-top: 16px;
  }
}

/* --- Large Desktop / PC (min-width: 992px) --- */
@media (min-width: 992px) {
  .container {
    padding-inline: 40px;
  }

  .hero-image-main {
    padding-right: 0;
  }

  .hero-text h1 span {
    display: table;
    margin-left: auto;
    margin-right: 0;
  }

  .hero-tags {
    margin-right: 0;
  }

  .school-vertical-text {
    width: calc((100vw - 1100px) / 2 + 140px);
    padding: 0;
    justify-content: center;
    font-size: 4rem;
  }

  .school-container {
    padding-left: 170px;
  }

  .card-title {
    font-size: 1.35rem;
  }

  .feature-banner-img {
    height: 420px;
  }

  .feature-banner-title,
  .feature-banner-text {
    font-size: 1.6rem;
    padding: 5px 24px;
  }

  .news-section {
    padding-block: 80px;
  }

  .news-content-column {
    flex: 1.1;
    padding: 60px 50px;
  }

  .news-content-inner {
    max-width: 500px;
    margin-right: auto;
  }

  .news-image-column {
    flex: 1;
    height: auto;
  }

  .news-image-mask {
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 0 140px 140px 0;
  }

  .news-title {
    font-size: 0.95rem;
  }

  .news-date {
    font-size: 0.85rem;
  }

  .news-arrow-icon {
    width: 28px;
    height: 28px;
    margin-left: 20px;
  }

  .banner-image {
    width: 95px;
    height: 95px;
  }

  .banner-main-text {
    font-size: 1.8rem;
  }
}

/* --- Large Desktop / PC (min-width: 1200px) --- */
@media (min-width: 1200px) {
  .header-inner {
    align-items: center;
  }

  .site-logo {
    order: 1;
  }

  .hamburger-btn {
    display: none;
  }

  .site-nav {
    order: 2;
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .site-nav::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 14px;
    background-color: #cccccc;
    margin-right: 14px;
  }

  .header-menu-list {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .header-menu-list li {
    display: flex;
    align-items: center;
  }

  .header-menu-list a {
    font-size: 0.82rem;
    padding-bottom: 0;
    border-bottom: none !important;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
  }

  .header-menu-list li:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 14px;
    background-color: #cccccc;
    margin-inline: 14px;
  }

  .header-cta {
    order: 3;
    margin-left: 16px;
    margin-top: -16px;
    align-self: flex-start;
    gap: 8px;
  }

  .btn-header {
    height: auto;
    padding: 26px 18px 10px;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.2;
    border-radius: 0 0 8px 8px;
  }

  .hero .container {
    max-width: 1350px;
    width: 100%;
  }

  .hero-text h1 span {
    display: table;
    margin-left: auto;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .hero-image-main {
    padding-top: 20em;
    padding-bottom: 10em;
    padding-right: 0;
  }

  .hero-tags {
    margin-right: 0;
  }

  .campaign-label,
  .campaign-text {
    font-size: 1.35rem;
  }

  .lead-main-title {
    font-size: 2rem;
  }

  .school-category-title {
    font-size: 1.3rem;
  }

  .section-title,
  .news-section-title {
    font-size: 2.3rem;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .feature-banner-title,
  .feature-banner-text {
    font-size: 2rem;
    padding: 5px 24px;
  }
}

/* --- Extra Large Desktop (min-width: 1440px) --- */
@media (min-width: 1440px) {
  .container,
  .hero .container {
    max-width: 1360px;
  }

  .hero-image-main {
    padding-top: 26em;
    padding-bottom: 12em;
  }

  .school-vertical-text {
    padding-left: 200px;
    padding-right: 80px;
  }

  .feature-banner-img {
    height: 540px;
  }

  .feature-banner {
    border-radius: 270px 0 0 270px;
  }

  .feature-banner-title {
    font-size: 2.2rem;
    padding: 10px 36px;
  }

  .feature-banner-text {
    font-size: 2.5rem;
    padding: 14px 44px;
  }

  .news-section .container {
    max-width: none;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    padding-right: calc((100vw - 1360px) / 2 + 40px);
  }

  .news-content-inner {
    max-width: none;
  }

  .news-content-column {
    padding-left: calc((100vw - 1360px) / 2 + 40px);
    padding-right: 60px;
  }
}
/* トップページのヒーローテキストの幅制限（48%）を解除して1行に収める */
@media (min-width: 768px) {
  .hero .hero-text {
    width: 100% !important;
  }
}
