/*
Theme Name: class blue
Theme URI: https://classblue.jp/
Author: class blue Inc.
Author URI: https://classblue.jp/
Description: class blue official corporate WordPress theme featuring minimalist typography, interactive canvas stripes, slicing text effects, dynamic member glitch graphics, and full responsive support.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: class-blue
*/

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0c0c0c;
  color: #0c0c0c;
  font-family: 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: inherit;
}

* {
  box-sizing: border-box;
}

/* WordPress Core Elements Support */
.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   Entry Content (Post & Page Rich Text Styling)
   ========================================================================== */
.entry-content {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 2.1;
  color: #1a1a1a;
  word-break: break-word;
}

.entry-content > *:first-child {
  margin-top: 0 !important;
}

.entry-content > *:last-child {
  margin-bottom: 0 !important;
}

.entry-content p {
  margin: 0 0 1.8em;
  text-wrap: pretty;
}

.entry-content h2 {
  font-family: 'Shippori Mincho B1', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #0c0c0c;
  margin: clamp(48px, 6vw, 72px) 0 clamp(20px, 2.5vw, 28px);
  padding-bottom: 16px;
  border-bottom: 2px solid #0c0c0c;
}

.entry-content h3 {
  font-family: 'Shippori Mincho B1', serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.45;
  color: #0c0c0c;
  margin: clamp(36px, 4.5vw, 56px) 0 clamp(16px, 2vw, 22px);
  padding-left: 14px;
  border-left: 4px solid #1E3AFF;
}

.entry-content h4 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 700;
  line-height: 1.5;
  color: #0c0c0c;
  margin: 32px 0 14px;
}

.entry-content h5,
.entry-content h6 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  margin: 24px 0 12px;
}

.entry-content a {
  color: #1E3AFF;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity .2s;
}

.entry-content a:hover {
  opacity: 0.7;
}

.entry-content strong,
.entry-content b {
  font-weight: 700;
  color: #0c0c0c;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 2em;
  padding-left: 1.6em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entry-content li {
  line-height: 1.85;
}

.entry-content blockquote {
  margin: clamp(32px, 4vw, 48px) 0;
  padding: clamp(20px, 2.5vw, 32px) clamp(22px, 3vw, 36px);
  background: #f7f7f8;
  border-left: 3px solid #0c0c0c;
  color: #2b2b2b;
  font-style: italic;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.95;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content hr,
.entry-content .wp-block-separator {
  border: none;
  border-top: 1px solid #dcdcdc;
  margin: clamp(40px, 5vw, 64px) 0;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.entry-content figure {
  margin: clamp(32px, 4vw, 48px) 0;
}

.entry-content figcaption {
  font-size: 13px;
  color: #6b6b6b;
  text-align: center;
  margin-top: 10px;
  font-family: 'Noto Sans JP', sans-serif;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: clamp(28px, 3.5vw, 44px) 0;
  font-size: 15px;
}

.entry-content th,
.entry-content td {
  padding: 14px 18px;
  border: 1px solid #d6d6d6;
  text-align: left;
}

.entry-content th {
  background: #f5f5f7;
  font-weight: 700;
  color: #0c0c0c;
}

.entry-content pre {
  background: #141414;
  color: #f1f1f1;
  padding: 20px 24px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.7;
  margin: clamp(28px, 3.5vw, 40px) 0;
}

.entry-content code {
  background: #f0f0f2;
  color: #d1203a;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: Consolas, Monaco, monospace;
}

.entry-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

/* Footer CONTACT Marquee Animation (Consistent with Top page) */
@keyframes cb-marq-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

[data-marq2] {
  animation: cb-marq-slide 24s linear infinite;
  will-change: transform;
}

/* ==========================================================================
   Contact Form 7 Styles (class blue design)
   ========================================================================== */
.cb-contact-container {
  width: 100%;
}

.cb-contact-container .wpcf7-form,
.cb-contact-container form.wpcf7-form {
  display: flex;
  flex-direction: column;
  border-top: 1.5px solid #0c0c0c;
  margin: 0;
}

/* Form row (group) */
.cb-form-group,
.wpcf7-form-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px 32px;
  padding: clamp(22px, 2.4vw, 32px) 0;
  border-bottom: 1px solid #d6d6d6;
  align-items: start;
}

/* Label */
.cb-form-label,
.wpcf7-form-label {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: start;
  padding-top: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  color: #0c0c0c;
}

/* Required badge */
.cb-form-req,
.wpcf7-form-req {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  background: #0c0c0c;
  color: #fff;
  padding: 5px 8px;
  border-radius: 3px;
  letter-spacing: 0;
}

/* Optional badge */
.cb-form-opt {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  background: #e2e2e2;
  color: #555;
  padding: 5px 8px;
  border-radius: 3px;
}

/* Field container */
.cb-form-field,
.wpcf7-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: span 2;
  min-width: 0;
}

.cb-form-field .wpcf7-form-control-wrap,
.wpcf7-form-field .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.cb-contact-container form > p {
  margin: 0;
}

/* Form input elements */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-bottom: 1.5px solid #0c0c0c;
  background: transparent;
  padding: 14px 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: #0c0c0c;
  outline: none;
  border-radius: 0;
  transition: border-color .25s ease;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #999999;
  opacity: 1;
}

.cb-form-group {
  scroll-margin-top: 100px;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus {
  border-bottom-color: #1E3AFF;
}

/* Textarea */
.wpcf7 textarea {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: 1.5px solid #0c0c0c;
  padding: 14px 16px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: #0c0c0c;
  outline: none;
  border-radius: 0;
  resize: vertical;
  margin-top: 6px;
  min-height: 160px;
  transition: border-color .25s ease;
}

.wpcf7 textarea:focus {
  border-color: #1E3AFF;
}

/* Bottom submit & agreement area */
.cb-form-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-top: clamp(40px, 5vw, 64px);
}

.cb-form-agree {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  color: #0c0c0c;
}

.cb-form-agree .wpcf7-form-control-wrap {
  display: inline-flex;
}

.cb-form-agree .wpcf7-acceptance,
.wpcf7-acceptance {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
  display: inline-flex;
}

.cb-form-agree label,
.wpcf7-acceptance label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  color: #0c0c0c;
  cursor: pointer;
}

.cb-form-agree input[type="checkbox"],
.wpcf7-acceptance input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #0c0c0c;
  margin: 0;
  cursor: pointer;
}

.cb-form-agree a,
.wpcf7-acceptance a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
  transition: color .2s;
}

.cb-form-agree a:hover,
.wpcf7-acceptance a:hover {
  color: #1E3AFF;
}


/* Submit button */
.cb-form-submit {
  display: flex;
  justify-content: center;
}

.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #0c0c0c;
  color: #fff;
  border: 1.5px solid #0c0c0c;
  border-radius: 99px;
  padding: 24px 64px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .16em;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
  appearance: none;
  -webkit-appearance: none;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover {
  background: #1E3AFF;
  border-color: #1E3AFF;
}

/* Validation errors */
.wpcf7-not-valid-tip {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  color: #d1203a;
  margin-top: 6px;
  display: block;
}

.wpcf7-not-valid {
  border-color: #d1203a !important;
}

/* Response output messages */
.wpcf7-response-output {
  margin: 32px 0 0 0 !important;
  padding: 24px 32px !important;
  border-radius: 0 !important;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}

.wpcf7 form.sent .wpcf7-response-output {
  border: 1.5px solid #0c0c0c !important;
  background: #fafafa;
  color: #0c0c0c;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 18px;
  font-weight: 700;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border: 1.5px solid #d1203a !important;
  background: #fff8f8;
  color: #d1203a;
}

/* Spinner */
.wpcf7 .wpcf7-spinner {
  margin-left: 12px;
  vertical-align: middle;
}

/* ==========================================================================
   Subpage Header & Mobile Navigation
   ========================================================================== */
.cb-subpage-menu-btn {
  display: none;
}

@media (max-width: 899px) {
  .cb-subpage-nav {
    display: none !important;
  }
  .cb-subpage-menu-btn {
    display: inline-block !important;
  }
}




