@charset "UTF-8";
/*
Theme Name: 柳原建興Base
Theme URI: https://yanagihara-kenkou.jp/
Description: 柳原建興　ベーステーマ
Author: バズ部
Author URI: https://lucy.ne.jp/bazubu/
Version: 0.7.3
Text Domain: xeory_base
Tested up to: 6.8
Requires PHP: 7.0
Tags:blog,one-column,two-columns,right-sidebar,theme-options
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Copyright: Copyright (c) バズ部
*/

/* all display
-------------------------------------------------- */
/* ==========================================================
   柳原建興株式会社 | Responsive static website
   Design tokens / base / layout / components / mobile
   No CSS framework or externally hosted fonts required.
   ========================================================== */
:root {
  --red: #c91020;
  --red-dark: #a90e1c;
  --ink: #171d22;
  --muted: #52606a;
  --line: #e1e5e8;
  --paper: #fff;
  --fog: #f5f7f8;
  --dark: #1c2731;
  --serif: "Noto Serif CJK JP", "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  --sans: "Noto Sans CJK JP", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --header-height: 98px;
  --container: 1200px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #fa6871;
  outline-offset: 4px;
}
::selection {
  background: #e9adb3;
  color: #141a1f;
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.container {
  width: min(calc(100% - 96px), var(--container));
  margin-inline: auto;
}
.container--wide {
  --container: 1440px;
}
.section {
  padding-block: 104px;
}
.accent {
  color: var(--red);
}
.accent-light {
  color: #fff;
}
.section-kicker {
  margin: 0 0 6px;
  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--red);
}
.section-title {
  margin: 0;
  font: 700 clamp(32px, 3.5vw, 51px) / 1.33 var(--serif);
  letter-spacing: 0.045em;
}
.section-title--mid {
  font-size: clamp(29px, 3.1vw, 43px);
}
.heading-line {
  height: 2px;
  width: 51px;
  background: var(--red);
  margin-block: 21px 24px;
}
.body-copy {
  margin: 0;
  line-height: 2.15;
  letter-spacing: 0.035em;
  color: #48525c;
}
.desktop-only {
  display: initial;
}
.mobile-only {
  display: none;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--red);
  color: white;
}
.skip-link:focus {
  top: 12px;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  min-height: 53px;
  padding: 13px 22px 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-align: center;
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s,
    transform 0.25s var(--ease);
}
.btn .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
  transition: transform 0.25s var(--ease);
}
.btn:hover .icon:last-child {
  transform: translateX(5px);
}
.btn:active {
  transform: translateY(1px);
}
.btn--red {
  background: var(--red);
  color: white;
  border-color: var(--red);
  box-shadow: 0 9px 24px #ba142125;
}
.btn--red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}
.btn--outline {
  background: #fffffff2;
  border-color: #7b858e;
  color: var(--ink);
}
.btn--outline:hover {
  border-color: var(--red);
  color: var(--red);
  background: white;
}
.btn--small {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 12px;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid #e8ebed;
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled {
  box-shadow: 0 7px 35px #17202a12;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.brand__mark {
  width: 67px;
  height: 67px;
  object-fit: contain;
}
.brand__type {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.22;
}
.brand__type strong {
  font-size: clamp(15px, 1.7vw, 23px);
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: 0.045em;
}
.brand__type small {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
}
.desktop-nav {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 2.2vw, 33px);
  height: 100%;
  margin-left: auto;
}
.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  white-space: nowrap;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 25px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--red);
}
.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
}
.header-contact {
  flex: 0 0 auto;
  min-height: 54px;
  padding-inline: 20px;
  gap: 11px;
}
.header-contact .icon {
  width: 20px;
  height: 20px;
}
.header-contact .icon--arrow {
  display: none;
}
.menu-toggle {
  display: none;
}
.mobile-nav,
.menu-scrim {
  display: none;
}

.site-footer {
  background: #fff;
}
.site-footer__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding-block: 44px;
  border-bottom: 1px solid var(--line);
}
.site-footer__main .brand__mark {
  width: 63px;
  height: 63px;
}
.site-footer__main .brand__type strong {
  font-size: 20px;
}
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 10px 22px;
}
.site-footer__nav a {
  font-size: 12px;
  font-weight: 700;
}
.site-footer__nav a:hover {
  color: var(--red);
}
.site-footer__brandcopy {
  font: 600 15px/1.9 var(--serif);
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 19px 0 27px;
  color: #89929c;
  font-size: 10px;
}
.back-to-top {
  display: grid;
  position: fixed;
  z-index: 50;
  bottom: 25px;
  right: 25px;
  width: 46px;
  height: 46px;
  place-items: center;
  color: white;
  background: #202b35;
  border: 1px solid #fff8;
  border-radius: 2px;
  box-shadow: 0 7px 22px #0002;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.25s,
    visibility 0.25s,
    transform 0.25s;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover {
  background: var(--red);
}
.back-to-top .icon {
  width: 21px;
}

/* Shared contact form fields */
#contactForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#contactForm label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #28323b;
  font-size: 13px;
  font-weight: 700;
}
#contactForm label span {
  display: inline-block;
  width: max-content;
  padding: 1px 6px;
  background: #fff0f0;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
}
#contactForm input,
#contactForm select,
#contactForm textarea {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cfd8df;
  border-radius: 2px;
  background: white;
  color: var(--ink);
  font-size: 14px;
}
#contactForm textarea {
  resize: vertical;
  min-height: 130px;
}
/* Entry animation: content stays readable without JS */
.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.js-enabled [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1190px) {
  :root {
    --header-height: 88px;
  }
  .container {
    width: min(calc(100% - 70px), var(--container));
  }
  .brand__mark {
    width: 60px;
    height: 60px;
  }
  .brand__type strong {
    font-size: 19px;
  }
  .brand__type small {
    font-size: 8.5px;
  }
  .header-inner {
    gap: 16px;
  }
  .desktop-nav {
    gap: 19px;
  }
  .desktop-nav a {
    font-size: 12px;
  }
  .header-contact {
    font-size: 12px;
    min-height: 48px;
    padding-inline: 15px;
  }
}
@media (max-width: 1020px) {
  :root {
    --header-height: 78px;
  }
  .desktop-nav,
  .header-contact {
    display: none;
  }
  .brand__type strong {
    font-size: 20px;
  }
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 95;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    width: 50px;
    height: 50px;
    border: 1px solid #e0e5e8;
    border-radius: 1px;
    background: #fff;
  }
  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition:
      transform 0.25s,
      opacity 0.25s;
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-8px) rotate(-45deg);
  }
  .mobile-nav {
    position: fixed;
    z-index: 85;
    top: var(--header-height);
    right: 0;
    width: min(450px, 100%);
    height: calc(100dvh - var(--header-height));
    padding: 38px 35px;
    background: white;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(104%);
    visibility: hidden;
    transition:
      transform 0.36s var(--ease),
      visibility 0.36s;
  }
  .site-header.is-open .mobile-nav {
    transform: none;
    visibility: visible;
  }
  .mobile-nav__eyebrow {
    display: flex;
    justify-content: space-between;
    color: var(--red);
    font:
      700 12px Arial,
      sans-serif;
    letter-spacing: 0.18em;
    margin: 0 0 27px;
  }
  .mobile-nav__eyebrow span {
    font: 500 11px var(--sans);
    letter-spacing: 0.08em;
    color: #a4abb0;
  }
  .mobile-nav > a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e8eb;
    font: 700 20px/1.4 var(--serif);
  }
  .mobile-nav > a > span {
    color: var(--red);
    font:
      700 11px Arial,
      sans-serif;
  }
  .mobile-nav > a > .icon {
    margin-left: auto;
    width: 20px;
    color: var(--red);
  }
  .mobile-nav > a.mobile-nav__cta {
    color: var(--red);
  }
  .mobile-nav__bottom {
    margin: auto 0 0;
    padding-top: 35px;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #859099;
  }
  .menu-scrim {
    display: block;
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 79;
    background: #0b1724a3;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }
  .site-header.is-open .menu-scrim {
    opacity: 1;
    visibility: visible;
  }
  .site-footer__brandcopy {
    display: none;
  }
}
@media (max-width: 680px) {
  :root {
    --header-height: 72px;
  }
  html {
    scroll-padding-top: 85px;
  }
  body {
    font-size: 14px;
  }
  .container {
    width: min(calc(100% - 38px), 560px);
  }
  .section {
    padding-block: 67px;
  }
  .section-kicker {
    font-size: 10px;
  }
  .section-title {
    font-size: clamp(30px, 8.3vw, 42px);
  }
  .body-copy {
    font-size: 13px;
    line-height: 2.05;
  }
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: initial;
  }
  .brand {
    gap: 7px;
  }
  .brand__mark {
    width: 51px;
    height: 51px;
  }
  .brand__type strong {
    font-size: clamp(15px, 4.5vw, 19px);
    letter-spacing: 0.01em;
  }
  .brand__type small {
    font-size: 8px;
    letter-spacing: 0.13em;
    margin-top: 5px;
  }
  .menu-toggle {
    width: 42px;
    height: 42px;
    gap: 5px;
  }
  .menu-toggle span {
    width: 19px;
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }
  .mobile-nav {
    padding: 27px 24px 35px;
  }
  .mobile-nav > a {
    padding-block: 18px;
    font-size: 18px;
  }
  .site-footer__main {
    flex-direction: column;
    align-items: start;
    gap: 27px;
    padding-block: 40px;
  }
  .site-footer__main .brand__mark {
    width: 57px;
    height: 57px;
  }
  .site-footer__main .brand__type strong {
    font-size: 18px;
  }
  .site-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }
  .site-footer__nav a {
    font-size: 12px;
  }
  .site-footer__bottom {
    flex-direction: column;
    gap: 7px;
    padding-bottom: 32px;
  }
  .back-to-top {
    width: 43px;
    height: 43px;
    right: 15px;
    bottom: 16px;
  }
}
@media (max-width: 370px) {
  .container {
    width: calc(100% - 30px);
  }
  .brand__type strong {
    font-size: 14px;
  }
  .brand__type small {
    font-size: 7px;
  }
}
