@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon child theme / Claude Design B implementation
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template: cocoon-master
Version: 1.2.0
*/

:root {
  --sumi-navy: #12233F;
  --sumi-gold: #A9873F;
  --sumi-white: #FFFFFF;
  --sumi-ivory: #F7F5F0;
  --sumi-text: rgba(18, 35, 63, .86);
  --sumi-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sumi-sans: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sumi-ivory);
  color: var(--sumi-text);
  font-family: var(--sumi-sans);
  -webkit-font-smoothing: antialiased;
}
body, button, input, textarea, select { font-family: var(--sumi-sans); }
a { color: var(--sumi-gold); transition: opacity .2s ease, color .2s ease, background-color .2s ease; }
a:hover { color: var(--sumi-gold); opacity: .78; }
img { border-radius: 0; }

/* Replace Cocoon's common chrome with Design B. */
#header-container, #footer, .mobile-footer-menu-buttons { display: none !important; }
.sumi-site-header, .sumi-site-footer { box-sizing: border-box; width: 100%; }
.sumi-site-header { position: relative; z-index: 1000; background: var(--sumi-navy); color: var(--sumi-white); border-bottom: 1px solid rgba(169,135,63,.35); }
.sumi-header-tagline { border-bottom: 1px solid rgba(255,255,255,.08); }
.sumi-header-tagline > div { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 11px 0; color: rgba(247,245,240,.62); font-size: 12px; line-height: 1.6; letter-spacing: .08em; }
.sumi-header-bar { width: min(1200px, calc(100% - 48px)); min-height: 80px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.sumi-header-brand, .sumi-footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--sumi-white); font-family: var(--sumi-serif); font-weight: 600; letter-spacing: .1em; text-decoration: none; white-space: nowrap; }
.sumi-header-brand { font-size: 24px; line-height: 1; }
.sumi-header-brand img { width: 32px; height: 32px; object-fit: contain; }
.sumi-global-nav { display: flex; align-items: center; gap: 28px; }
.sumi-global-nav a { color: rgba(247,245,240,.86); font-size: 13px; line-height: 1.35; text-decoration: none; white-space: nowrap; }
.sumi-global-nav .sumi-nav-cta { color: var(--sumi-gold); border-bottom: 1px solid rgba(169,135,63,.8); padding-bottom: 6px; font-weight: 500; }
.sumi-menu-toggle { display: none; }

.sumi-site-footer { background: var(--sumi-navy); color: var(--sumi-white); border-top: 1px solid rgba(169,135,63,.55); padding: 72px 0 56px; }
.sumi-footer-inner { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.sumi-footer-main { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.sumi-footer-brand { font-size: 22px; line-height: 1; }
.sumi-footer-brand img { width: 30px; height: 30px; object-fit: contain; }
.sumi-footer-nav { display: flex; align-items: center; gap: 32px; }
.sumi-footer-nav a { color: rgba(247,245,240,.82); font-size: 14px; text-decoration: none; }
.sumi-footer-copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(247,245,240,.55); font-size: 12px; line-height: 1.8; }

/* Shared lower-page typography and surfaces. */
#content { margin-top: 0; padding: 88px 24px 112px; background: var(--sumi-ivory); }
#content-in { width: min(1200px, 100%); margin: 0 auto; }
.main, .sidebar { border: 0; border-radius: 0; box-shadow: none; }
.main { padding: 0; background: transparent; }
.article { color: var(--sumi-text); }
.article-header { margin-bottom: 56px; padding-bottom: 28px; border-bottom: 1px solid rgba(169,135,63,.55); }
.entry-title { margin: 0; color: var(--sumi-navy); font-family: var(--sumi-serif); font-size: clamp(36px, 4.2vw, 60px); font-weight: 600; line-height: 1.5; letter-spacing: .015em; }
.entry-content { font-size: 17px; line-height: 1.95; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin: 88px 0 32px; padding: 0 0 22px; border: 0; border-bottom: 1px solid rgba(169,135,63,.55); background: transparent; color: var(--sumi-navy); font-family: var(--sumi-serif); font-size: clamp(30px, 3.3vw, 48px); font-weight: 600; line-height: 1.55; }
.entry-content h3 { margin: 56px 0 22px; padding: 0 0 0 18px; border: 0; border-left: 2px solid var(--sumi-gold); color: var(--sumi-navy); font-family: var(--sumi-serif); font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; line-height: 1.6; }
.entry-content h4 { margin: 40px 0 16px; color: var(--sumi-navy); font-size: 20px; line-height: 1.65; }
.entry-content p { margin: 0 0 1.55em; }
.entry-content strong { color: var(--sumi-navy); }
.entry-content a:not(.wp-block-button__link):not(.btn):not(.button) { color: var(--sumi-gold); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.entry-content blockquote { margin: 40px 0; padding: 30px 36px; border: 0; border-left: 2px solid var(--sumi-gold); border-radius: 0; background: rgba(169,135,63,.08); color: var(--sumi-navy); }
.entry-content table { border-collapse: collapse; border-color: rgba(18,35,63,.2); }
.entry-content th { background: var(--sumi-navy); color: var(--sumi-white); }
.entry-content td, .entry-content th { padding: 16px 18px; border-color: rgba(18,35,63,.2); }
.entry-content figure, .entry-content .wp-block-image { margin-top: 42px; margin-bottom: 42px; }
.entry-content img { height: auto; }
.blogcard, .related-entry-card-wrap, .entry-card-wrap, .speech-balloon, .information-box, .question-box, .alert-box { border-radius: 2px !important; box-shadow: none !important; }
.wp-block-button__link, .btn, .button, button[type="submit"], input[type="submit"] { border: 1px solid var(--sumi-gold) !important; border-radius: 2px !important; background: var(--sumi-gold) !important; color: var(--sumi-navy) !important; font-weight: 500; letter-spacing: .04em; box-shadow: none !important; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], textarea, select { width: 100%; box-sizing: border-box; border: 1px solid rgba(18,35,63,.28); border-radius: 2px; background: var(--sumi-white); color: var(--sumi-navy); padding: 14px 16px; box-shadow: none; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(169,135,63,.35); border-color: var(--sumi-gold); }
.wpcf7-form label { color: var(--sumi-navy); font-weight: 500; }
.breadcrumb, .sns-share, .sns-follow, .post-date, .post-update, .author-info { color: rgba(18,35,63,.55); }

/* Normalize legacy page-local designs to the four-color Design B system. */
body:not(.home) .entry-content > div,
body:not(.home) .entry-content > section {
  --rir-navy: #12233F !important;
  --rir-deep: #12233F !important;
  --rir-gold: #A9873F !important;
  --rir-gold-light: #A9873F !important;
  --rir-cream: #F7F5F0 !important;
  --rir-ink: #12233F !important;
  --rir-copy: rgba(18,35,63,.86) !important;
  --rir-line: rgba(18,35,63,.2) !important;
  --navy: #12233F !important;
  --navy-light: #12233F !important;
  --deep: #12233F !important;
  --gold: #A9873F !important;
  --gold-light: #A9873F !important;
  --gold-pale: #F7F5F0 !important;
  --cream: #F7F5F0 !important;
  --ink: #12233F !important;
  --copy: rgba(18,35,63,.86) !important;
  --text-main: #12233F !important;
  --text-sub: rgba(18,35,63,.86) !important;
  --text-muted: rgba(18,35,63,.62) !important;
  --line: rgba(18,35,63,.2) !important;
  --border: rgba(18,35,63,.2) !important;
  --burgundy: #12233F !important;
  --sm-navy: #12233F !important;
  --sm-navy-light: #12233F !important;
  --sm-navy-deep: #12233F !important;
  --sm-gold: #A9873F !important;
  --sm-gold-light: #A9873F !important;
  --sm-gold-pale: #F7F5F0 !important;
  --sm-burgundy: #12233F !important;
  --sm-burgundy-light: #12233F !important;
  --sm-cream: #F7F5F0 !important;
  --sm-text-main: #12233F !important;
  --sm-text-sub: rgba(18,35,63,.86) !important;
  --sm-text-muted: rgba(18,35,63,.62) !important;
  --sm-border: rgba(18,35,63,.2) !important;
}
body:not(.home) .entry-content div,
body:not(.home) .entry-content section,
body:not(.home) .entry-content article,
body:not(.home) .entry-content aside,
body:not(.home) .entry-content form,
body:not(.home) .entry-content figure,
body:not(.home) .entry-content a,
body:not(.home) .entry-content button,
body:not(.home) .entry-content input,
body:not(.home) .entry-content textarea,
body:not(.home) .entry-content select { box-shadow: none !important; border-radius: 2px !important; }
body:not(.home) .entry-content [class*="hero"],
body:not(.home) .entry-content [class*="final"],
body:not(.home) .entry-content [class*="assets"],
body:not(.home) .entry-content [class*="capabilities"],
body:not(.home) .entry-content [class*="unsupported"],
body:not(.home) .entry-content .rir-privacy-contact { background: #12233F !important; background-image: none !important; }
body:not(.home) .entry-content [class*="gold-button"],
body:not(.home) .entry-content [class*="cta-btn"],
body:not(.home) .entry-content .co-fbtn,
body:not(.home) .entry-content button[type="submit"],
body:not(.home) .entry-content input[type="submit"] { border: 1px solid #A9873F !important; background: #A9873F !important; background-image: none !important; color: #12233F !important; text-shadow: none !important; }
body:not(.home) .entry-content [class*="gold-button"]::before,
body:not(.home) .entry-content [class*="gold-button"]::after,
body:not(.home) .entry-content [class*="cta-btn"]::before,
body:not(.home) .entry-content [class*="cta-btn"]::after,
body:not(.home) .entry-content .co-fbtn::before,
body:not(.home) .entry-content .co-fbtn::after { background: #A9873F !important; background-image: none !important; box-shadow: none !important; }
body:not(.home) .entry-content [class*="cta-sep"] { background: #A9873F !important; background-image: none !important; }
body:not(.home) .entry-content h1,
body:not(.home) .entry-content h2,
body:not(.home) .entry-content h3,
body:not(.home) .entry-content h4 { font-family: var(--sumi-serif) !important; text-shadow: none !important; }
body:not(.home) .entry-content [class*="hero"] h1,
body:not(.home) .entry-content [class*="hero"] h2,
body:not(.home) .entry-content [class*="hero"] h3,
body:not(.home) .entry-content [class*="final"] h1,
body:not(.home) .entry-content [class*="final"] h2,
body:not(.home) .entry-content [class*="final"] h3,
body:not(.home) .entry-content [class*="assets"] h2,
body:not(.home) .entry-content [class*="assets"] h3,
body:not(.home) .entry-content [class*="capabilities"] h2,
body:not(.home) .entry-content [class*="capabilities"] h3,
body:not(.home) .entry-content [class*="unsupported"] h2,
body:not(.home) .entry-content [class*="unsupported"] h3 { color: #FFFFFF !important; }

/* The B top page is the supplied design document, without Cocoon framing. */
body.home { background: var(--sumi-navy); }
body.home #content { width: 100%; max-width: none; margin: 0; padding: 0; background: var(--sumi-navy); }
body.home #content-in, body.home .main, body.home .article, body.home .entry-content { width: 100%; max-width: none; margin: 0; padding: 0; background: transparent; }
body.home .article-header, body.home .article-footer, body.home .breadcrumb { display: none !important; }
.sumi-home-b { width: 100%; overflow: hidden; background: var(--sumi-navy); }
.sumi-home-b, .sumi-home-b * { box-sizing: border-box; }
.sumi-home-b__desktop { display: block; }
.sumi-home-b__mobile { display: none; }
.sumi-home-b a { text-decoration: none; }
.sumi-home-b img { max-width: 100%; border-radius: 0; }
.sumi-evidence-image { cursor: zoom-in; }

.sumi-lightbox { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 32px; background: rgba(5,12,24,.94); }
.sumi-lightbox.is-open { display: flex; }
.sumi-lightbox img { max-width: min(1200px, 96vw); max-height: 90vh; width: auto; height: auto; object-fit: contain; background: var(--sumi-white); }
.sumi-lightbox-close { position: fixed; top: 18px; right: 22px; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255,255,255,.55) !important; background: transparent !important; color: var(--sumi-white) !important; font-size: 30px; line-height: 1; }

@media screen and (max-width: 1180px) {
  .sumi-global-nav { gap: 16px; }
  .sumi-global-nav a { font-size: 12px; }
  .sumi-header-brand { font-size: 21px; }
}

@media screen and (max-width: 1024px) {
  html.sumi-menu-open { overflow: hidden; }
  .sumi-header-tagline { display: none; }
  .sumi-header-bar { width: 100%; min-height: 64px; padding: 0 20px; position: relative; }
  .sumi-header-brand { gap: 10px; font-size: 19px; letter-spacing: .08em; }
  .sumi-header-brand img { width: 26px; height: 26px; }
  .sumi-menu-toggle { display: inline-flex; align-items: center; gap: 10px; border: 0 !important; background: transparent !important; color: var(--sumi-gold) !important; padding: 10px 0; font-size: 12px; letter-spacing: .12em; }
  .sumi-menu-toggle i, .sumi-menu-toggle i::before, .sumi-menu-toggle i::after { display: block; width: 20px; height: 1px; background: var(--sumi-gold); content: ""; transition: transform .2s ease; }
  .sumi-menu-toggle i { position: relative; }
  .sumi-menu-toggle i::before { position: absolute; top: -6px; left: 0; }
  .sumi-menu-toggle i::after { position: absolute; top: 6px; left: 0; }
  .sumi-menu-toggle[aria-expanded="true"] i { background: transparent; }
  .sumi-menu-toggle[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
  .sumi-menu-toggle[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }
  .sumi-global-nav { position: absolute; top: 64px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(169,135,63,.45); background: var(--sumi-navy); }
  .sumi-global-nav.is-open { display: flex; }
  .sumi-global-nav a { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 15px; }
  .sumi-global-nav .sumi-nav-cta { border-bottom-color: rgba(169,135,63,.65); }
  .sumi-site-footer { padding: 48px 20px 40px; }
  .sumi-footer-inner { width: 100%; }
  .sumi-footer-main { display: block; }
  .sumi-footer-brand { font-size: 19px; }
  .sumi-footer-brand img { width: 26px; height: 26px; }
  .sumi-footer-nav { margin-top: 32px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .sumi-footer-nav a { font-size: 15px; }
  .sumi-footer-copy { margin-top: 40px; }
  #content { padding: 56px 20px 80px; }
  .article-header { margin-bottom: 40px; padding-bottom: 20px; }
  .entry-title { font-size: 34px; line-height: 1.55; }
  .entry-content { font-size: 16px; line-height: 1.9; }
  .entry-content h2 { margin-top: 64px; font-size: 30px; }
  .entry-content h3 { margin-top: 44px; font-size: 24px; }
  .entry-content blockquote { padding: 24px 22px; }
  .entry-content td, .entry-content th { padding: 12px 10px; }
  .sumi-home-b__desktop { display: none; }
  .sumi-home-b__mobile { display: block; }
  .sumi-lightbox { padding: 16px; }
}

@media screen and (min-width: 600px) and (max-width: 1024px) {
  .sumi-home-b__mobile > section {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
}

@media screen and (max-width: 480px) {
  .sumi-menu-toggle span { display: none; }
  #content { padding-left: 20px; padding-right: 20px; }
}


/* RA-20260810-015: correct hero spacing and desktop side margins */
.sumi-home-b__desktop h1 > br,
.sumi-home-b__mobile h1 > br {
  display: none !important;
}
@media screen and (min-width: 1025px) {
  .sumi-home-b__desktop [style*="width:1200px"] {
    width: min(1120px, calc(100% - 96px)) !important;
  }
  .sumi-home-b__desktop > section:first-child {
    padding-top: 96px !important;
    padding-bottom: 88px !important;
  }
  .sumi-home-b__desktop h1 + div {
    margin-top: 24px !important;
    margin-bottom: 28px !important;
  }
}
@media screen and (max-width: 1024px) {
  .sumi-home-b__mobile > section:first-child {
    padding-top: 48px !important;
    padding-bottom: 56px !important;
  }
  .sumi-home-b__mobile h1 + div {
    margin-top: 16px !important;
    margin-bottom: 22px !important;
  }
}
しゅつ

@media screen and (max-width: 360px) {
  .sumi-home-b__mobile > section:first-child h1 {
    font-size: 40px !important;
    line-height: 1.2 !important;
  }
  .sumi-home-b__mobile > section:first-child h1 > span:first-child > span {
    display: block !important;
  }
}


/* Person-centered visual bridge for selected lower pages. */
body:not(.home) .entry-content .sumi-lower-visual { margin:0!important; padding:64px 24px!important; background:var(--sumi-offwhite)!important; }
body:not(.home) .entry-content .sumi-lower-visual__inner { width:min(880px,100%); margin:0 auto; }
body:not(.home) .entry-content .sumi-lower-visual__frame { position:relative; aspect-ratio:16/9; margin:0; overflow:hidden; border-left:6px solid var(--sumi-gold); background:var(--sumi-navy); }
body:not(.home) .entry-content .sumi-lower-visual__frame img { display:block; width:100%; height:100%; margin:0; object-fit:cover; filter:saturate(.78) contrast(1.03); }
body:not(.home) .entry-content .sumi-lower-visual__caption { margin:18px 0 0!important; color:rgba(18,35,63,.82)!important; font-family:var(--sumi-serif)!important; font-size:18px!important; font-weight:600; line-height:1.8!important; }
@media screen and (max-width:1024px) {
  body:not(.home) .entry-content .sumi-lower-visual { padding:44px 20px!important; }
  body:not(.home) .entry-content .sumi-lower-visual__frame { aspect-ratio:4/3; }
  body:not(.home) .entry-content .sumi-lower-visual__caption { margin-top:14px!important; font-size:16px!important; }
}
