/*
Theme Name: towalab
Author: Crossroad Co., Ltd.
*/
@charset "utf-8";

/* --- 1. Variables --- */
:root {
  --bg-color: #fdfbf7;
  --primary-pink: #f7a1c4;
  --primary-blue: #a0d8ef;
  --primary-yellow: #fde08e;
  --accent-blue: #008cd6;
  --text-main: #333333;
  --text-soft: #4a4a4a;

  /* Soft Pastel Variations */
  --soft-pink: #fff0f6;
  --soft-blue: #f0f9ff;
  --soft-yellow: #fffdeb;
}

/* --- 2. Base & Resets --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.8;
  font-size: 17px;
  overflow-x: hidden;
}

body h1,
body h2,
body h3 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.4 !important;
  margin-bottom: 1rem;
}

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

body a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  opacity: 0.7;
}

.txt-15 {
  font-size: 15px !important;
}

/* --- 3. Layout & Common Classes --- */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

@media(min-width:768px) {
  .container {
    max-width: 720px;
  }
}

@media(min-width:992px) {
  .container {
    max-width: 960px;
  }
}

@media(min-width:1200px) {
  .container {
    max-width: 1140px;
  }
}

.towa-section {
  padding: 50px 0;
}

.towa-header {
  background: rgba(253, 251, 247, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.towa-footer {
  background-color: #f3f4f6;
}

.footer-school-logo {
  width: 100px;
  object-fit: contain;
}

.footer-corp-logo {
  width: 160px;
  object-fit: contain;
}

.header-bg {
  background: rgba(253, 251, 247, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media(min-width:768px) {
  .towa-section {
    padding: 80px 0;
  }
}


/* breadcrumb list */
.breadcrumb-container {
  padding: 1rem 1.5rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: ">";
  margin: 0 10px;
  color: #999;
}

.breadcrumb-item a {
  text-decoration: none;
  color: #666;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #333;
  font-weight: bold;
}

/* --- 4. UI Components --- */
.nav-link {
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-blue);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.a_round {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #00b0ff);
  color: #fff !important;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.btn-primary.pink {
  background: linear-gradient(135deg, #e61773, var(--primary-pink));

}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 140, 214, 0.3);
  opacity: 1;
}

.towa-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0eee8;
  transition: 0.3s;
}

.towa-card:hover {
  transform: translateY(-5px);
}

.about-image {
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease-out;
}

.fade-in.is-visible,
.fade-in.is-active {
  opacity: 1;
  transform: translateY(0);
}


/* WordPressが自動付与する不要なスタイルのリセット */
.nav-desktop,
.mobile-nav-list,
.footer-nav-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.nav-desktop>li {
  display: inline-block;
}

.mobile-nav-link,
.footer-nav-link {
  display: block;
  width: 100%;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  color: #6b7280;
}

/* Soft Design Utilities */
.bg-soft-pink {
  background-color: var(--soft-pink);
}

.bg-soft-blue {
  background-color: var(--soft-blue);
}

.bg-soft-yellow {
  background-color: var(--soft-yellow);
}

.soft-shadow-pink {
  box-shadow: 0 20px 40px rgba(230, 23, 115, 0.08);
}

.soft-shadow-blue {
  box-shadow: 0 20px 40px rgba(0, 140, 214, 0.08);
}

.soft-shadow-yellow {
  box-shadow: 0 20px 40px rgba(248, 183, 46, 0.08);
}

.bubble-frame {
  border-radius: 60px 20px 60px 20px;
}

.hand-drawn-marker {
  background: linear-gradient(transparent 70%, var(--primary-yellow) 70%);
  padding: 0 2px;
}

.hand-drawn-marker.pink {
  background: linear-gradient(transparent 70%, var(--primary-pink) 70%);
}

.organic-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  opacity: 0.4;
}

/* Form Elements (from Contact) */
.towa-input {
  font-size: 18px !important;
  padding: 0.6rem !important;
  border-radius: 15px !important;
  background-color: #fff !important;
  border: 2px solid #eee !important;
  width: 100%;
}

.towa-input:focus {
  border-color: var(--accent-blue) !important;
  outline: none;
}

.towa-label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.75rem;
  color: #555;
}

.required::after {
  content: "必須";
  background: #e61773;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.btn-submit {
  background-color: var(--accent-blue);
  color: #fff;
  padding: 1.5rem 4rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
  display: inline-block;
  border: none;
}

.cta-box {
  background: var(--accent-blue);
  border-radius: 60px;
  padding: 5rem 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Page Header (for lower pages) */
.towa-page-header {
  position: relative;
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
}

@media (min-width: 768px) {
  .towa-page-header {
    height: 350px;
    border-radius: 0 0 80px 80px;
    margin-bottom: 6rem;
  }
}

.towa-page-header .header-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.towa-page-header .header-bg-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.towa-page-header .header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 1;
}
.towa-page-header.page-header-company .header-overlay{
  background: rgba(255, 246, 246, 0.55);
}

.towa-page-header .header-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.text-accent-blue {
  color: var(--accent-blue);
}

/* --- 5. Animations & Hero --- */

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  transition: opacity 1s ease-in-out;
}

.pen-wrapper {
  position: relative;
  transform: rotate(-45deg) translateY(-40px);
  animation: pen-entry 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  z-index: 50;
}

.pen-body {
  width: 12px;
  height: 140px;
  background: -webkit-linear-gradient(to right, #999 0%, #888 50%, #aaa 100%);
  background: linear-gradient(to right, #999 0%, #888 50%, #aaa 100%);
  border-radius: 6px;
  position: relative;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
}

.pen-body::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 14px solid #999;
}

@keyframes pen-entry {
  0% {
    transform: rotate(-45deg) translateY(-40px);
    opacity: 0;
  }

  100% {
    transform: rotate(-45deg) translateY(0);
    opacity: 1;
  }
}

.droplet {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  background: #fff;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9));
}

/* Hero Slideshow */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 50vh;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
}

@media (min-width:768px) {
  .hero-slideshow {
    height: 70vh;
    border-radius: 0 0 80px 80px;
  }
}

@media(min-width:992px) {
  .hero-slideshow {
    height: 80vh;
  }
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.hero-slideshow .slide1 {
  background-image: url(./img/students.jpg);
}

.hero-slideshow .slide2 {
  background-image: url(./img/tablet2.jpg);
}

.hero-slideshow .slide3 {
  background-image: url(./img/study.jpg);
}

.hero-content-box {
  position: absolute;
  bottom: -30%;
  left: 5%;
  background: rgba(255, 255, 255, 0.75);
  padding: 3rem;
  border-radius: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  z-index: 20;
}

@media (max-width: 768px) {
  .hero-content-box {
    position: relative;
    bottom: 0;
    left: 0;
    margin: -40px 20px 0;
    padding: 2rem;
    max-width: calc(100% - 40px);
    border-radius: 30px;
    background: #fff;
  }
}

.quote-icon {
  color: #f8b72e;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.6;
  font-family: serif;
}

.top_intro_img {
  max-width: 600px;
  margin: 0 auto;
}

@media(min-width:450px) {
  .section-cta .a_round {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- 6. Page-Specific Styles --- */
@media(max-width:991px) {
  .concept-visual {
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
  }
}

@media(min-width:992px) {
  .concept-visual img {
    -webkit-transform: rotate(2deg);
    transform: rotate(2deg);
  }
}

/* Company.html Tables */
/* Company.html Tables & General Forms */
body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

body th,
body td {
  padding: 12px;
  text-align: left;
}

body input[type="text"],
body input[type="email"],
body input[type="tel"],
body input[type="url"],
body select,
body textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: 1rem;
  background: #FAFAFA;
}

body .towa-table-row {
  border-bottom: 1px solid #eee;
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
}

body .towa-table-label {
  width: 100%;
  font-weight: bold;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  body .towa-table-label {
    width: 250px;
  }
}

body .towa-table-content {
  flex: 1;
}

/* Privacy.html Policy Container */
.towa-policy-container {
  background: #fff;
  border-radius: 40px;
  padding: 3rem;
  margin-top: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

body .towa-policy-section h2 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  border-left: 6px solid var(--accent-blue);
  padding-left: 1rem;
  margin: 3rem 0 1.5rem 0;
  color: var(--text-soft);
}

/* --- 7. Header & Responsive Navigation (Breakpoint 992px) --- */
.towa-header {
  background: #fdfbf7 !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  /* Subtle shadow */
}

.header-logo-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-school,
.logo-corp {
  height: 42px;
  /* Base height */
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {

  .logo-school,
  .logo-corp {
    height: 50px;
    /* Slightly larger on desktop */
  }
}

@media (max-width: 991px) {
  .nav-desktop {
    display: none !important;
  }

  .mobile-hamburger {
    display: block !important;
  }
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex !important;
  }

  .mobile-hamburger {
    display: none !important;
  }
}

/* Hamburger Styles */
.mobile-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 100;
  display: none;
}

.hamburger-icon {
  width: 28px;
  height: 20px;
  position: relative;
  display: block;
}

.hamburger-line {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: 0.3s ease-in-out;
}

.line-1 {
  top: 0;
}

.line-2 {
  top: 9px;
}

.line-3 {
  top: 18px;
}

/* Menu Open State (Body) */
body.menu-open {
  overflow: hidden;
}

body.menu-open .line-1 {
  transform: translateY(9px) rotate(45deg);
}

body.menu-open .line-2 {
  opacity: 0;
}

body.menu-open .line-3 {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #fdfbf7;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.menu-open .mobile-nav-overlay {
  transform: translateX(0);
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-nav-item {
  margin-bottom: 2rem;
}

.mobile-nav-link {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

.logo-divider {
  width: 2px;
  height: 24px;
  background-color: #ddd;
  display: none;
}

@media (min-width: 450px) {
  .logo-divider {
    display: block;
  }
}

iframe {
  filter: grayscale(0.2) contrast(1.1);
}

.wpcf7-turnstile {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* event list */
.event-flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.event-card {
  width: 100%;

  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

@media (min-width: 600px) {
  .event-card {
    width: calc((100% - 20px) / 2);
  }
}

@media (min-width: 800px) {
  .event-card {
    width: calc((100% - 40px) / 3);
  }
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.event-link {
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-thumb {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
}

.event-content {
  padding: 15px;
  flex-grow: 1;
}

.event-date {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 5px;
  font-family: sans-serif;
}

.event-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 10px 0;
  line-height: 1.4;
  color: #333;
}

.event-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.event-schedule {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--accent-blue);
  margin: 5px 0 10px 0;
  display: flex;
  align-items: flex-start;
  line-height: 1.4;
}

.event-schedule i {
  margin-right: 6px;
  margin-top: 3px;
  color: var(--primary-pink);
}

.event-title {
  margin-bottom: 5px;
}

/* --- 記事詳細ページの調整 --- */
.entry-eye-catch img {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.post-navigation a {
  display: inline-block;
  padding: 12px 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 50px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 140px;
  text-align: center;
}

.post-navigation a:hover {
  background-color: #333;
  border-color: #333;
  color: #fff;
  transform: translateY(-2px);
}

.entry-body {
  line-height: 1.8;
  color: #333;
}

.entry-body h2 {
  font-size: 1.5em;
  font-weight: bold;
  margin: 2em 0 1em;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

.entry-body h3 {
  font-size: 1.25em;
  font-weight: bold;
  margin: 1.5em 0 1em;
}

.entry-body p {
  margin-bottom: 1.5em;
}

.cat-label {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--soft-blue);
  color: var(--accent-blue);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.tag-label {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--soft-pink);
  color: var(--text-soft);
  border-radius: 12px;
  font-size: 0.8rem;
}

.event-info-box {
  background-color: var(--soft-yellow);
  border-color: var(--primary-yellow);
}

.event-label {
  color: #d4a017;
}

.post-navigation a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px 16px;
  font-size: 0.9rem;
  background-color: var(--soft-blue);
  border: 1px solid var(--primary-blue);
  border-radius: 50px;

  text-decoration: none;
  color: var(--text-main);
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .post-navigation a {
    width: auto;
    min-width: 160px;
    font-size: 1rem;
    padding: 12px 24px;
  }

  .event-info-box {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .event-label {
    margin-bottom: 0 !important;
    margin-right: 1rem;
  }

  .event-date {
    font-size: 1.2rem;
    font-weight: 500;
  }
}

.post-navigation a:hover {
  background-color: var(--primary-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(160, 216, 239, 0.4);
}

.back-to-list-btn {
  display: inline-block !important;
  margin-top: 10px;
  padding: 10px 30px;
  font-size: 0.95rem;
  color: var(--text-soft);
  text-decoration: underline;
  background: transparent;
  transition: opacity 0.3s;
}

.back-to-list-btn:hover {
  opacity: 0.7;
  text-decoration: none;
}