/* ==========================================================================
   Create Links - Renewal Design System (2026)
   ========================================================================== */

:root {
  --color-primary: #4b78ae;
  --color-primary-dark: #345683;
  --color-primary-light: #eaf1fa;
  --color-accent-orange: #f5a623;
  --color-accent-pink: #ea8fa0;
  --color-ink: #253242;
  --color-ink-soft: #5b6675;
  --color-bg: #f7f9fc;
  --color-bg-card: #ffffff;
  --color-border: #e6ebf2;

  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --container-w: 1120px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 0 rgba(37, 50, 66, 0.05), 0 1px 3px rgba(37, 50, 66, 0.08);
  --shadow-md: 0 6px 0 rgba(37, 50, 66, 0.05), 0 4px 14px rgba(37, 50, 66, 0.14);
  --shadow-lg: 0 10px 0 rgba(37, 50, 66, 0.05), 0 10px 26px rgba(37, 50, 66, 0.18);
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; }

body, button, input, select, textarea {
  font-family: var(--font-base);
  font-size: 16px;
  color: var(--color-ink);
  background: var(--color-bg);
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

body { margin: 0; overflow-x: hidden; }

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

a { color: var(--color-primary); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-base);
  font-weight: 800;
  color: var(--color-ink);
  line-height: 1.4;
  margin: 0 0 .7em;
  letter-spacing: 0;
}

p { margin: 0 0 1.3em; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------- Skip link ------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------- Header ------------------------- */
#header-section { position: relative; z-index: 500; }

#masthead {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .2s ease, background .2s ease;
}
#masthead.is-scrolled {
  box-shadow: 0 2px 0 rgba(37, 50, 66, 0.04), 0 4px 16px rgba(37, 50, 66, 0.10);
}

#masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.site-logo-div img { height: 42px; width: auto; }
.custom-logo-link { display: inline-flex; align-items: center; }

.header-right-wrapper { display: flex; align-items: center; gap: 8px; }

.main-navigation .onepress-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.main-navigation .onepress-menu > li > a {
  display: inline-block;
  padding: 10px 18px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--color-ink);
  border-radius: var(--radius-sm);
  position: relative;
}
.main-navigation .onepress-menu > li > a:hover {
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
}

#nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}
#nav-toggle span,
#nav-toggle::before,
#nav-toggle::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--color-ink);
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
#nav-toggle::before { top: 15px; }
#nav-toggle span { top: 21px; }
#nav-toggle::after { top: 27px; }
#nav-toggle.is-active::before { top: 21px; transform: rotate(45deg); }
#nav-toggle.is-active::after { top: 21px; transform: rotate(-45deg); }
#nav-toggle.is-active span { opacity: 0; }

@media (max-width: 860px) {
  #nav-toggle { display: block; }
  .main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    padding-top: var(--header-h);
    background: #fff;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    overflow-y: auto;
  }
  .main-navigation.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .main-navigation .onepress-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 40px;
  }
  .main-navigation .onepress-menu > li > a {
    display: block;
    padding: 18px 6px;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    font-size: 1.05rem;
  }
}

/* ------------------------- Hero (home) ------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 130px;
  background: linear-gradient(155deg, #3f6699 0%, var(--color-primary) 46%, #6d97c7 100%);
  isolation: isolate;
}
.hero__decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__shape {
  position: absolute;
  will-change: transform;
}
.hero__shape svg { display: block; width: 100%; height: 100%; }

.hero__shape--ring {
  width: 420px; height: 420px; top: -120px; right: -120px;
  opacity: .22;
  animation: heroFloatRing 27s ease-in-out infinite;
}
.hero__shape--orange {
  width: 190px; height: 190px; top: -60px; left: -40px;
  opacity: .55;
  animation: heroFloatOrange 21s ease-in-out infinite;
}
.hero__shape--pink {
  width: 150px; height: 150px; bottom: -40px; right: 8%;
  opacity: .5;
  animation: heroFloatPink 24s ease-in-out infinite;
  animation-delay: -9s;
}

@keyframes heroFloatOrange {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  28%  { transform: translate(22px, -16px) rotate(7deg) scale(1.05); }
  54%  { transform: translate(-12px, 12px) rotate(-5deg) scale(0.96); }
  79%  { transform: translate(10px, 20px) rotate(3deg) scale(1.02); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}
@keyframes heroFloatPink {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  24%  { transform: translate(-18px, -12px) rotate(-6deg) scale(1.04); }
  58%  { transform: translate(14px, -22px) rotate(5deg) scale(0.97); }
  83%  { transform: translate(-8px, 10px) rotate(-3deg) scale(1.02); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}
@keyframes heroFloatRing {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  33%  { transform: translate(-16px, 18px) rotate(4deg) scale(1.03); }
  66%  { transform: translate(12px, -14px) rotate(-3deg) scale(0.98); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__shape { animation: none; }
}

.hero__inner { position: relative; text-align: center; color: #fff; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-orange);
  color: #29354a;
  margin-bottom: 28px;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: 0;
}
.hero__lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  max-width: 650px;
  margin: 0 auto;
}

/* ------------------------- Page header (inner pages) ------------------------- */
.page-header {
  position: relative;
  padding: 78px 0 56px;
  background: linear-gradient(155deg, #3f6699 0%, var(--color-primary) 60%, #6d97c7 100%);
  overflow: hidden;
}
.page-header::before,
.page-header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.page-header::before { width: 180px; height: 180px; background: var(--color-accent-orange); opacity: .35; top: -70px; left: -50px; }
.page-header::after { width: 140px; height: 140px; background: var(--color-accent-pink); opacity: .35; bottom: -60px; right: 6%; }
.page-header .entry-title {
  position: relative;
  color: #fff;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  margin: 0;
  text-align: center;
  letter-spacing: .06em;
}

/* ------------------------- Content wrapper ------------------------- */
.site-content { padding: 0; }
#content-inside.container { max-width: 860px; }
#content-inside.no-sidebar #primary { width: 100%; }

@keyframes contentRiseIn {
  from { opacity: 0; transform: translateY(48px); }
  to   { opacity: 1; transform: translateY(0); }
}

.content-area .entry-content {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(28px, 5vw, 64px);
  margin: -40px 0 80px;
  position: relative;
  z-index: 2;
  animation: contentRiseIn .7s cubic-bezier(.16, .8, .3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .content-area .entry-content { animation: none; }
}

.entry-content h3 {
  font-size: 1.28rem;
  color: var(--color-primary-dark);
  padding-left: 16px;
  border-left: 4px solid var(--color-accent-orange);
  margin-top: 2.2em;
}
.entry-content h3:first-child { margin-top: 0; }
.entry-content p { color: var(--color-ink-soft); }
.entry-content b { color: var(--color-ink); }
.entry-content a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------- Home: about / services ------------------------- */
.section-padding { padding: 96px 0; }
.section-title-area { text-align: center; margin-bottom: 56px; }
.section-title-area .section-desc > h2:first-child {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}
.section-title-area .section-desc > h2:first-child::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 5px;
  border-radius: 0;
  background: var(--color-accent-orange);
}

.section-about .section-desc,
.section-services .section-desc { text-align: left; }
.section-about .section-desc > h2:first-child,
.section-services .section-desc > h2:first-child { display: block; text-align: center; margin: 0 auto 40px; }

.service-block {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent-orange);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 48px);
  margin-bottom: 32px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.service-block:hover { transform: translateY(-2px); }

.service-block h3 {
  font-size: 1.2rem;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-block p { color: var(--color-ink-soft); }
.service-block .btn-link { margin-top: 4px; }

.topimg { width: 100%; max-width: 800px; margin: 32px auto 8px; }
.topimg img { width: 100%; border: none; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.flexbox { display: flex; gap: 20px; margin-bottom: 8px; }
.box1, .box2 { width: 50%; margin: 0; overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.box1 img, .box2 img { border-radius: var(--radius-md); }

@media screen and (max-width: 767px) {
  .flexbox { display: block; }
  .flexbox .box1, .flexbox .box2 { width: 100%; margin: 0 0 16px 0; }
}

.section-meta { background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 100%); }

.cv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.cv-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-accent-pink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 40px);
  transition: box-shadow .15s ease, transform .15s ease;
}
.cv-card:hover { transform: translateY(-2px); }
.cv-card:nth-child(2) { border-top-color: var(--color-primary); }
.cv-card h2 { font-size: 1.15rem; color: var(--color-primary-dark); margin-bottom: .6em; }
.cv-card p { color: var(--color-ink-soft); margin-bottom: 1em; }

@media (max-width: 760px) {
  .cv-grid { grid-template-columns: 1fr; }
}

/* ------------------------- Buttons / links ------------------------- */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--color-primary-dark);
  border-bottom: 2px solid var(--color-accent-orange);
  padding-bottom: 2px;
}
.btn-link::after {
  content: "\2192";
  transition: transform .15s ease;
}
.btn-link:hover::after { transform: translateX(4px); }

/* ------------------------- Scroll reveal ------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal.reveal-left {
  transform: translateX(-56px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.16, .8, .3, 1);
}
.reveal.reveal-left.is-visible { transform: translateX(0); }

.reveal.reveal-right {
  transform: translateX(56px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.16, .8, .3, 1);
}
.reveal.reveal-right.is-visible { transform: translateX(0); }

.service-block.reveal:nth-of-type(2) { transition-delay: .08s; }
.service-block.reveal:nth-of-type(3) { transition-delay: .16s; }
.cv-card.reveal:nth-of-type(2) { transition-delay: .1s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.reveal-left, .reveal.reveal-right {
    transition: none !important;
    transform: none !important;
  }
}

/* ------------------------- Contact form area ------------------------- */
#main #contact-form {
  width: 100%;
  margin: -40px 0 80px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 4vw, 40px);
  position: relative;
  z-index: 2;
  animation: contentRiseIn .7s cubic-bezier(.16, .8, .3, 1) both;
}

/* Stack label above input on every screen size, PC included */
#contact-form .form-row {
  flex-direction: column;
  align-items: flex-start;
}
#contact-form .form-label {
  width: 100%;
  margin-right: 0;
  margin-bottom: 8px;
}
#contact-form .form-input {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  #main #contact-form { animation: none; }
}
#contact-form h2 { color: var(--color-primary-dark); }
#contact-form .txt-row { color: var(--color-ink-soft); line-height: 2; }
#contact-form .txt-row a { font-weight: 700; }

/* ------------------------- Footer ------------------------- */
.site-footer {
  background: linear-gradient(155deg, #2f4b70 0%, #3c608f 100%);
  color: rgba(255,255,255,.82);
  margin-top: 40px;
}
.footer-widgets { padding: 64px 0 32px; }
.footer-widgets .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.footer-widgets .footer-column {
  flex: 0 0 auto;
}
.footer-widgets .menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.footer-widgets .menu a {
  color: rgba(255,255,255,.85);
  font-weight: 700;
  font-size: .92rem;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm);
  display: inline-block;
}
.footer-widgets .menu a:hover { color: #fff; background: rgba(255,255,255,.12); }

.site-info {
  background: rgba(0,0,0,.14);
  padding: 20px 0;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
}
.site-info .sep { display: inline-block; margin-left: 4px; }

/* ------------------------- Misc ------------------------- */
.no-sidebar { }
