/*
Theme Name: Hitori Corporate Bright Preview
Theme URI: https://hitori-kabu.com/
Author: ひとり株式会社
Description: ひとり株式会社公式サイト用テーマの明るいブルー基調プレビュー版。親しみやすいITサービスの雰囲気で構成します。
Version: 0.2.8
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: hitori-corporate-bright
*/

:root {
  --hitori-ink: #14253d;
  --hitori-deep: #0b192b;
  --hitori-paper: #f7f3ea;
  --hitori-cream: #fffaf1;
  --hitori-gold: #d7aa4b;
  --hitori-line: rgba(20, 37, 61, 0.16);
  --hitori-muted: #607084;
}

html { scroll-behavior: smooth; }
body { background: var(--hitori-paper); color: var(--hitori-ink); }
.wp-site-blocks { overflow: hidden; }
.hitori-wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.hitori-section { padding-block: clamp(72px, 9vw, 120px); }

.hitori-header {
  width: min(1240px, calc(100% - 64px));
  min-height: 96px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.hitori-brand { display: flex; align-items: center; gap: 14px; }
.hitori-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--hitori-ink);
  border-radius: 999px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 22px;
  font-weight: 700;
}
.hitori-brand-name { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 18px; font-weight: 700; letter-spacing: .08em; }
.hitori-brand-en { margin: -3px 0 0; color: var(--hitori-muted); font-size: 9px; letter-spacing: .28em; }
.hitori-header .wp-block-navigation { font-size: 13px; font-weight: 700; }
.hitori-header .wp-block-navigation-item:last-child { background: var(--hitori-ink); color: white; padding: 10px 18px; }

.hitori-kicker { color: #8a6a28; font-size: 11px; font-weight: 800; letter-spacing: .24em; }
.hitori-kicker-light { color: #d8bb79; }
.hitori-display { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 600; line-height: 1.35; letter-spacing: .035em; }
.hitori-hero { min-height: 700px; display: flex; align-items: center; position: relative; }
.hitori-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: 20px; border-radius: 999px; background: #e9dfca; opacity: .58; }
.hitori-hero > * { position: relative; z-index: 1; }
.hitori-hero-title { margin: 0 0 30px; font-size: clamp(46px, 5.1vw, 76px); }
.hitori-hero-title strong { color: #a47720; font-weight: inherit; }
.hitori-lead { max-width: 690px; color: #44566b; font-size: 16px; line-height: 1.95; }
.hitori-lead-dark { color: var(--hitori-muted); }
.hitori-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hitori-actions .wp-block-button__link { border: 1px solid var(--hitori-ink); border-radius: 0; padding: 14px 22px; font-size: 13px; font-weight: 700; }
.hitori-actions .is-style-outline .wp-block-button__link { background: rgba(255,255,255,.44); color: var(--hitori-ink); }
.hitori-hero-card { min-height: 380px; padding: 42px 34px; background: var(--hitori-ink); color: white; box-shadow: 0 30px 80px rgba(20,37,61,.18); transform: rotate(2deg); }
.hitori-hero-card p:first-child, .hitori-hero-card p:last-child { color: #d9c79e; font-size: 9px; letter-spacing: .22em; }
.hitori-hero-card h2 { margin-block: 90px; color: white; font-family: "Yu Mincho", serif; font-size: clamp(25px, 3vw, 34px); line-height: 1.6; }

.hitori-statement { background: var(--hitori-cream); border-block: 1px solid var(--hitori-line); }
.hitori-statement h2 { margin: 0; font-size: clamp(42px, 5vw, 68px); }
.hitori-statement .hitori-large-copy { margin-top: 0; font-family: "Yu Mincho", serif; font-size: 22px; line-height: 1.9; }
.hitori-muted { color: var(--hitori-muted); }

.hitori-section-title { margin: 0; font-size: clamp(38px, 4vw, 58px); }
.hitori-section-head { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 52px; }
.hitori-section-head > p { max-width: 420px; margin: 0; color: var(--hitori-muted); font-size: 14px; }
.hitori-theme-grid { gap: 0; border-top: 1px solid var(--hitori-line); border-left: 1px solid var(--hitori-line); }
.hitori-theme-card { min-height: 330px; padding: 34px; border-right: 1px solid var(--hitori-line); border-bottom: 1px solid var(--hitori-line); display: flex; flex-direction: column; }
.hitori-theme-card h3 { margin: 55px 0 12px; font-family: "Yu Mincho", serif; font-size: 31px; }
.hitori-theme-card p { color: #526277; font-size: 14px; }
.hitori-theme-card .wp-block-button { margin-top: auto; padding-top: 28px; }
.hitori-theme-card .wp-block-button__link { padding: 0 0 6px; border-bottom: 1px solid currentColor; border-radius: 0; background: transparent; color: inherit; font-size: 13px; font-weight: 700; }
.hitori-sand { background: #f0e4cc; }
.hitori-blue { background: #e3edf3; }
.hitori-green { background: #e0e9df; }
.hitori-ink { background: var(--hitori-ink); color: white; }
.hitori-ink p { color: #c3ccd7; }

.hitori-process, .hitori-fit { background: var(--hitori-deep); color: white; }
.hitori-process h2, .hitori-fit h2 { color: white; }
.hitori-step { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.hitori-step:first-child { border-top: 1px solid rgba(255,255,255,.2); }
.hitori-step strong { color: var(--hitori-gold); font-family: Georgia, serif; }
.hitori-step h3 { margin: 0; color: white; font-family: "Yu Mincho", serif; font-size: 22px; }
.hitori-step p { margin: 0; color: #b9c4d2; font-size: 13px; }

.hitori-brands { background: #a87b2b; color: white; }
.hitori-brands h2 { color: white; }
.hitori-brands .hitori-large-copy { font-size: 21px; line-height: 1.8; }
.hitori-brand-row { padding: 22px 0; border-block-start: 1px solid rgba(255,255,255,.3); }
.hitori-brand-row:last-of-type { border-block-end: 1px solid rgba(255,255,255,.3); }
.hitori-brand-row strong { font-family: "Yu Mincho", serif; font-size: 23px; }

.hitori-company-list { margin: 0; border-top: 1px solid var(--hitori-ink); }
.hitori-company-row { display: grid; grid-template-columns: 220px 1fr; padding: 22px 0; border-bottom: 1px solid var(--hitori-line); }
.hitori-company-row > * { margin: 0; }
.hitori-company-row strong { font-size: 12px; }

.hitori-contact { background: var(--hitori-ink); color: white; }
.hitori-contact h2 { color: white; }
.hitori-contact-item { padding: 16px 0; border-block-start: 1px solid rgba(255,255,255,.25); font-size: 13px; }
.hitori-contact-item:last-child { border-block-end: 1px solid rgba(255,255,255,.25); }
.hitori-notice { padding: 20px 24px; background: #f0e4cc; color: #6d5424; font-size: 13px; }

.hitori-subhero { min-height: 440px; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--hitori-line); background: radial-gradient(circle at 84% 22%, #e8dcc4 0 13%, transparent 13.3%), var(--hitori-paper); }
.hitori-subhero h1 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.hitori-topic-grid { gap: 0; border-top: 1px solid var(--hitori-line); border-left: 1px solid var(--hitori-line); }
.hitori-topic-card { min-height: 250px; padding: 32px; border-right: 1px solid var(--hitori-line); border-bottom: 1px solid var(--hitori-line); background: rgba(255,255,255,.42); }
.hitori-topic-card h3 { margin: 34px 0 10px; font-family: "Yu Mincho", serif; font-size: 24px; }
.hitori-topic-number { color: #a47720; font-family: Georgia, serif; font-size: 22px; }
.hitori-fit ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.25); }
.hitori-fit li { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.25); }

.hitori-content { max-width: 900px; }
.hitori-content > * + * { margin-block-start: 1.3em; }
.hitori-content h2 { margin-top: 2.2em; font-family: "Yu Mincho", serif; font-size: 34px; }

.hitori-footer { background: #07111e; color: white; padding-block: 52px; }
.hitori-footer a { color: #c3ccd7; font-size: 11px; text-decoration: none; }
.hitori-footer .hitori-brand-name { color: white; }
.hitori-footer .hitori-brand-en, .hitori-copyright { color: #7e8da0; }

@media (max-width: 920px) {
  .hitori-header { align-items: flex-start; padding-block: 22px; }
  .hitori-section-head { display: block; }
  .hitori-section-head > p { margin-top: 18px; }
  .hitori-hero { min-height: auto; padding-block: 72px; }
}

@media (max-width: 680px) {
  .hitori-wrap, .hitori-header { width: min(100% - 36px, 1240px); }
  .hitori-header { min-height: 76px; }
  .hitori-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--hitori-paper); color: var(--hitori-ink); padding: 28px; }
  .hitori-section { padding-block: 78px; }
  .hitori-hero-title { font-size: 42px; }
  .hitori-hero-card { min-height: 300px; margin-top: 32px; }
  .hitori-hero-card h2 { margin-block: 60px; }
  .hitori-company-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/*
 * Bright service-site variation.
 * The content structure remains unchanged; this layer updates only the visual system.
 */
:root {
  --hitori-ink: #2f343a;
  --hitori-deep: #25313a;
  --hitori-paper: #ffffff;
  --hitori-cream: #f2faff;
  --hitori-gold: #df3157;
  --hitori-line: rgba(7, 137, 230, 0.18);
  --hitori-muted: #61717e;
  --hitori-primary: #0789e6;
  --hitori-primary-dark: #006fc6;
  --hitori-primary-soft: #eaf7ff;
  --hitori-accent: #df3157;
  --hitori-shadow: 0 18px 50px rgba(0, 111, 198, 0.12);
}

body {
  background: var(--hitori-paper);
  color: var(--hitori-ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

header.wp-block-template-part {
  position: relative;
  z-index: 20;
  background: #ffffff;
  box-shadow: 0 3px 16px rgba(37, 49, 58, 0.08);
}

.hitori-header {
  width: min(1240px, calc(100% - 48px));
  min-height: 88px;
}

.hitori-mark {
  border: 2px solid var(--hitori-primary);
  background: var(--hitori-primary-soft);
  color: var(--hitori-primary-dark);
  font-family: inherit;
  font-size: 20px;
}

.hitori-brand-name {
  color: var(--hitori-ink);
  font-family: inherit;
  font-weight: 800;
  letter-spacing: .04em;
}

.hitori-brand-en { color: #7c8b96; }
.hitori-header .wp-block-navigation { color: #3d464e; }
.hitori-header .wp-block-navigation a { text-decoration: none; }
.hitori-header .wp-block-navigation a:hover { color: var(--hitori-primary); }
.hitori-header .wp-block-navigation-item:last-child {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--hitori-accent);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(223, 49, 87, 0.2);
}
.hitori-header .wp-block-navigation-item:last-child a:hover { color: #ffffff; }

.hitori-display,
.hitori-statement .hitori-large-copy,
.hitori-theme-card h3,
.hitori-step h3,
.hitori-brand-row strong,
.hitori-topic-card h3,
.hitori-content h2 {
  font-family: inherit;
}

.hitori-display {
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: .015em;
}

.hitori-kicker {
  color: var(--hitori-primary-dark);
  font-weight: 800;
  letter-spacing: .18em;
}

.hitori-kicker-light { color: rgba(255, 255, 255, 0.82); }

.hitori-hero {
  min-height: 660px;
  margin-bottom: clamp(52px, 7vw, 92px);
  color: #ffffff;
}

.hitori-hero::before {
  left: 50%;
  right: auto;
  top: 0;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  border-radius: 0 0 50% 50% / 0 0 12% 12%;
  background: linear-gradient(135deg, #18a7ef 0%, #0789e6 52%, #006fc6 100%);
  opacity: 1;
}

.hitori-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 360px;
  height: 360px;
  right: -40px;
  top: 70px;
  border: 64px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.hitori-hero .hitori-kicker { color: rgba(255, 255, 255, 0.84); }
.hitori-hero-title { font-size: clamp(44px, 4.9vw, 70px); }
.hitori-hero-title,
.hitori-hero-title strong { color: #ffffff; }
.hitori-lead { color: rgba(255, 255, 255, 0.9); }
.hitori-lead.hitori-lead-dark { color: var(--hitori-muted); }

.hitori-actions .wp-block-button__link {
  border: 2px solid #ffffff;
  border-radius: 999px;
  padding: 14px 24px;
  background: var(--hitori-accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 64, 118, 0.2);
}

.hitori-actions .is-style-outline .wp-block-button__link {
  background: #ffffff;
  color: var(--hitori-primary-dark);
}

.hitori-hero-card {
  min-height: 360px;
  padding: 40px 36px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--hitori-primary-dark);
  box-shadow: 0 28px 70px rgba(0, 72, 130, 0.2);
  transform: none;
}

.hitori-hero-card p:first-child,
.hitori-hero-card p:last-child {
  color: var(--hitori-primary);
  font-size: 10px;
}

.hitori-hero-card h2 {
  margin-block: 78px;
  color: var(--hitori-deep);
  font-family: inherit;
  font-weight: 800;
  line-height: 1.5;
}

.hitori-statement {
  border: 0;
  background: #ffffff;
}

.hitori-statement .hitori-large-copy { font-size: 20px; font-weight: 700; }
.hitori-section-title { font-size: clamp(34px, 3.7vw, 52px); }

.hitori-section-title::after,
.hitori-statement h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 5px;
  margin-top: 22px;
  border-radius: 999px;
  background: var(--hitori-primary);
}

.hitori-theme-grid {
  gap: 22px;
  margin-bottom: 22px;
  border: 0;
}

.hitori-theme-card {
  min-height: 310px;
  padding: 32px;
  border: 1px solid var(--hitori-line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--hitori-shadow);
}

.hitori-theme-card h3 {
  margin: 30px 0 12px;
  color: var(--hitori-deep);
  font-size: 27px;
  font-weight: 800;
}

.hitori-theme-card p { color: var(--hitori-muted); }
.hitori-topic-number { color: var(--hitori-primary); font-family: inherit; font-weight: 800; }
.hitori-sand { background: #f8fcff; }
.hitori-blue { background: #eaf7ff; }
.hitori-green { background: #eefbf8; }
.hitori-ink { background: #edf4ff; color: var(--hitori-ink); }
.hitori-ink p { color: var(--hitori-muted); }

.hitori-theme-card .wp-block-button__link {
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--hitori-primary);
  color: #ffffff;
}

.hitori-theme-grid:last-child .hitori-theme-card:last-child .wp-block-button__link {
  background: var(--hitori-accent);
}

.hitori-process,
.hitori-fit {
  background: var(--hitori-primary-soft);
  color: var(--hitori-ink);
}

.hitori-process h2,
.hitori-fit h2 { color: var(--hitori-deep); }
.hitori-process .hitori-kicker,
.hitori-fit .hitori-kicker { color: var(--hitori-primary-dark); }

.hitori-step {
  margin-bottom: 12px;
  padding: 20px 22px;
  border: 1px solid var(--hitori-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 111, 198, 0.08);
}

.hitori-step:first-child { border-top: 1px solid var(--hitori-line); }
.hitori-step strong { color: var(--hitori-primary); font-family: inherit; }
.hitori-step h3 { color: var(--hitori-deep); font-family: inherit; font-weight: 800; }
.hitori-step p { color: var(--hitori-muted); }

.hitori-brands {
  background: linear-gradient(135deg, #18a7ef, #0789e6 56%, #006fc6);
  color: #ffffff;
}

.hitori-brands .hitori-section-title::after,
.hitori-contact .hitori-section-title::after { background: #ffffff; }
.hitori-brand-row strong { font-weight: 800; }

.hitori-company-list {
  margin-top: 38px;
  padding: 8px 30px;
  border: 1px solid var(--hitori-line);
  border-radius: 18px;
  background: var(--hitori-primary-soft);
}

.hitori-company-row { border-bottom-color: var(--hitori-line); }
.hitori-company-row:last-child { border-bottom: 0; }
.hitori-company-row strong { color: var(--hitori-primary-dark); }

.hitori-contact {
  background: linear-gradient(135deg, #087fd6, #0064b6);
  color: #ffffff;
}

.hitori-contact .wp-block-button__link {
  border-radius: 999px;
  background: var(--hitori-accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 51, 96, 0.2);
}

.hitori-notice { border-radius: 14px; background: #fff1f4; color: #8d2440; }

.hitori-subhero {
  min-height: 390px;
  border: 0;
  border-radius: 0 0 50% 50% / 0 0 12% 12%;
  background: linear-gradient(135deg, #18a7ef, #0789e6 56%, #006fc6);
  color: #ffffff;
}

.hitori-subhero h1,
.hitori-subhero .hitori-kicker { color: #ffffff; }

.hitori-topic-grid { gap: 20px; border: 0; }
.hitori-topic-card {
  border: 1px solid var(--hitori-line);
  border-radius: 18px;
  background: var(--hitori-primary-soft);
}

.hitori-topic-card h3 { color: var(--hitori-deep); font-weight: 800; }
.hitori-content h2 { color: var(--hitori-deep); font-weight: 800; }

.hitori-footer { background: #25313a; }
.hitori-footer a { color: #d9e1e6; }
.hitori-footer .hitori-brand-en,
.hitori-copyright { color: #aebbc4; }

@media (max-width: 920px) {
  .hitori-hero::before { border-radius: 0 0 44% 44% / 0 0 7% 7%; }
  .hitori-hero::after { width: 260px; height: 260px; right: -90px; }
  .hitori-theme-grid { gap: 18px; }
}

@media (max-width: 680px) {
  .hitori-header { width: min(100% - 32px, 1240px); }
  .hitori-header .wp-block-navigation__responsive-container.is-menu-open {
    background: #ffffff;
    color: var(--hitori-ink);
  }
  .hitori-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child {
    display: inline-flex;
  }
  .hitori-hero { padding-block: 60px 84px; }
  .hitori-hero-title { font-size: 40px; }
  .hitori-hero-card { min-height: 270px; }
  .hitori-hero-card h2 { margin-block: 52px; }
  .hitori-theme-card { min-height: auto; }
  .hitori-company-list { padding-inline: 20px; }
  .hitori-step { grid-template-columns: 42px 1fr !important; }
  .hitori-step p:last-child { grid-column: 2; }
}
