/*
Theme Name: Koyanagi Tsusho Corporate
Theme URI: https://koyanagitsusho.com/
Author: Koyanagi Tsusho LLC
Description: 小柳通商合同会社の企業サイト専用WordPressテーマ。
Version: 2.1.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: koyanagi-tsusho
*/

:root {
  --ink: #172534;
  --text: #2f3a44;
  --muted: #65717c;
  --line: #d9dfe4;
  --line-dark: #aeb8c1;
  --paper: #ffffff;
  --soft: #f4f6f7;
  --blue: #365e78;
  --blue-dark: #23465d;
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "Noto Sans JP Variable", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 80px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; left: 16px; top: -80px; padding: 10px 16px; color: #fff; background: var(--ink); }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.brand { display: inline-grid; grid-template-columns: 58px auto; grid-template-rows: auto auto; column-gap: 15px; align-items: center; }
.brand-logo { grid-row: 1 / 3; width: 58px; height: 58px; object-fit: contain; }
.brand-text { align-self: end; color: var(--ink); font-size: 19px; font-weight: 650; letter-spacing: .06em; line-height: 1.35; white-space: nowrap; }
.brand-en { align-self: start; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .16em; line-height: 1.5; }
.site-nav { display: flex; align-items: center; gap: 40px; }
.site-nav a { position: relative; color: var(--ink); font-size: 13px; font-weight: 550; letter-spacing: .06em; }
.site-nav a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; bottom: -9px; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-contact { padding: 12px 19px; color: #fff !important; background: var(--ink); border: 1px solid var(--ink); transition: background .2s; }
.nav-contact:hover, .nav-contact:focus-visible { background: var(--blue-dark); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 1px; margin: 6px auto; background: var(--ink); transition: .2s ease; }

.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { min-height: 670px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 92px 8.2% 92px 0; }
.hero-label { display: flex; align-items: center; gap: 15px; margin: 0 0 35px; color: var(--blue); font-size: 11px; font-weight: 650; letter-spacing: .17em; }
.hero-label::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.hero h1 { max-width: 760px; margin: 0; color: var(--ink); font-size: clamp(46px, 5vw, 72px); font-weight: 650; line-height: 1.43; letter-spacing: .015em; }
.hero-lead { max-width: 690px; margin: 32px 0 0; color: #3f4b56; font-size: 17px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.btn { min-width: 210px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 15px 20px; color: var(--ink); background: #fff; border: 1px solid var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .08em; transition: color .2s, background .2s; }
.btn::after { content: ""; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn-primary { color: #fff; background: var(--ink); }
.btn:hover, .btn:focus-visible { color: #fff; background: var(--blue-dark); }
.hero-index { position: relative; display: grid; grid-template-columns: 1fr .86fr; border-left: 1px solid var(--line); background: var(--soft); }
.hero-index::before, .hero-index::after { content: ""; position: absolute; pointer-events: none; }
.hero-index::before { inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 25% 25%; opacity: .45; }
.hero-index::after { right: 0; bottom: 0; width: 22%; height: 26%; background: var(--blue); }
.hero-services, .hero-number { position: relative; z-index: 1; }
.hero-services { display: grid; grid-template-rows: repeat(3, 1fr); border-right: 1px solid var(--line-dark); }
.hero-services span { display: flex; align-items: center; padding: 0 30px; color: var(--ink); border-bottom: 1px solid var(--line-dark); background: rgba(255,255,255,.38); font-size: 14px; font-weight: 550; }
.hero-services span:last-child { border-bottom: 0; }
.hero-number { display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: clamp(72px, 7vw, 112px); font-weight: 250; letter-spacing: -.04em; }

.section { padding: 118px 0; }
.section-soft { background: var(--soft); }
.section-header { display: grid; grid-template-columns: 170px 1fr; gap: 44px; align-items: start; margin-bottom: 62px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.section-no { color: var(--blue); font-size: 38px; font-weight: 300; line-height: 1.1; letter-spacing: -.02em; }
.section-title { margin: 0; color: var(--ink); font-size: clamp(30px, 3vw, 43px); font-weight: 600; line-height: 1.45; letter-spacing: .05em; }
.section-intro { max-width: 760px; margin: 14px 0 0; color: var(--muted); }

.services { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 170px 1fr 1.15fr; gap: 44px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.service-id { color: var(--line-dark); font-size: 13px; font-weight: 600; letter-spacing: .16em; }
.service h3 { margin: 0; color: var(--ink); font-size: 24px; font-weight: 600; letter-spacing: .04em; }
.service h3 small { display: block; margin-top: 7px; color: var(--blue); font-size: 10px; font-weight: 600; letter-spacing: .14em; }
.service-copy p { margin: 0; color: var(--muted); }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 20px 0 0; padding: 0; list-style: none; }
.service-tags li { color: var(--ink); font-size: 12px; font-weight: 550; }
.service-tags li::before { content: "—"; margin-right: 7px; color: var(--line-dark); }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; }
.process-step { min-height: 290px; padding: 34px 32px; border-right: 1px solid var(--line); }
.process-step:last-child { border-right: 0; }
.process-step span { display: block; margin-bottom: 60px; color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.process-step h3 { margin: 0 0 15px; color: var(--ink); font-size: 21px; font-weight: 600; }
.process-step p { margin: 0; color: var(--muted); font-size: 14px; }

.local-service-section { background: #eef2f3; }
.mimamori-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: start; }
.mimamori-name { display: inline-block; margin-bottom: 20px; padding: 7px 13px; color: #fff; background: var(--blue); font-size: 13px; font-weight: 650; letter-spacing: .1em; }
.mimamori-intro h3 { margin: 0 0 24px; color: var(--ink); font-size: clamp(32px, 3.4vw, 48px); font-weight: 600; line-height: 1.5; letter-spacing: .04em; }
.mimamori-intro p { max-width: 500px; margin: 0 0 32px; color: var(--muted); }
.mimamori-intro .btn { width: 270px; }
.mimamori-details { border-top: 1px solid var(--ink); }
.support-list article { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 27px 0; border-bottom: 1px solid var(--line-dark); }
.support-list article > span { color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.support-list h4 { margin: 0 0 6px; color: var(--ink); font-size: 17px; font-weight: 600; }
.support-list p { margin: 0; color: var(--muted); font-size: 13px; }
.mimamori-price { display: grid; grid-template-columns: 1fr 1fr; margin-top: 28px; border: 1px solid var(--line-dark); background: #fff; }
.mimamori-price > div { padding: 24px; border-right: 1px solid var(--line); }
.mimamori-price > div:nth-child(2) { border-right: 0; }
.mimamori-price small { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 550; }
.mimamori-price strong { color: var(--ink); font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: 0; }
.mimamori-price em { margin-left: 3px; font-size: 13px; font-style: normal; font-weight: 500; }
.mimamori-price > span { grid-column: 1 / -1; padding: 7px 14px; color: var(--muted); background: var(--soft); border-top: 1px solid var(--line); font-size: 10px; text-align: right; }
.mimamori-note { margin: 17px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }

.focus-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.focus-copy h2 { margin: 0 0 25px; color: var(--ink); font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; line-height: 1.55; }
.focus-copy p { color: var(--muted); }
.focus-panel { padding: 42px; background: var(--ink); color: #fff; }
.focus-panel .label { display: block; margin-bottom: 48px; color: #a9bbc8; font-size: 11px; font-weight: 600; letter-spacing: .16em; }
.focus-panel h3 { margin: 0 0 20px; font-size: 24px; font-weight: 550; }
.focus-panel p { margin: 0; color: #c8d1d8; font-size: 14px; }

.company-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 100px; }
.company-copy p { max-width: 450px; color: var(--muted); }
.company-table { margin: 0; border-top: 1px solid var(--ink); }
.company-row { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid var(--line); }
.company-row dt, .company-row dd { margin: 0; padding: 21px 12px; }
.company-row dt { color: var(--ink); font-size: 13px; font-weight: 600; }
.company-row dd { color: var(--text); }

.contact-section { color: #fff; background: var(--ink); }
.contact-section .section-title { color: #fff; }
.contact-section .section-no { color: #9fb5c4; }
.contact-section .section-header { border-bottom-color: #6d7a85; }
.contact-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 90px; }
.contact-copy p { max-width: 440px; color: #b9c4cc; }
.contact-points { margin: 30px 0 0; padding: 24px 0 0; border-top: 1px solid #4b5a66; list-style: none; }
.contact-points li { margin: 7px 0; color: #d5dce1; font-size: 13px; }
.contact-points li::before { content: "—"; margin-right: 8px; color: #8ca8ba; }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field-full { grid-column: 1 / -1; }
.contact-form label { display: block; margin-bottom: 7px; color: #e1e6e9; font-size: 12px; font-weight: 550; letter-spacing: .06em; }
.required { margin-left: 7px; color: #afc7d5; font-size: 9px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 13px 14px; color: #fff; background: #233440; border: 1px solid #53636e; border-radius: 0; outline: none; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: #b9cad5; background: #293d4a; }
.contact-form select option { color: var(--ink); background: #fff; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.privacy-check { display: flex !important; align-items: flex-start; gap: 10px; color: #bac5cc !important; font-weight: 400 !important; }
.privacy-check input { width: 17px; height: 17px; margin-top: 5px; accent-color: #7e9fb4; }
.privacy-check a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.submit-button { width: 100%; min-height: 56px; color: var(--ink); background: #fff; border: 1px solid #fff; font-weight: 600; letter-spacing: .08em; cursor: pointer; transition: .2s; }
.submit-button:hover, .submit-button:focus-visible { color: #fff; background: transparent; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 11px 14px; border: 1px solid #788893; }
.form-status.success { border-color: #83aa94; }.form-status.error { border-color: #bd8585; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.privacy-section { padding: 70px 0; background: var(--soft); }
.privacy-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy-details summary { display: flex; justify-content: space-between; align-items: center; padding: 21px 0; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.privacy-details summary::-webkit-details-marker { display: none; }
.privacy-details summary::after { content: "+"; font-size: 20px; font-weight: 300; }
.privacy-details[open] summary::after { content: "−"; }
.privacy-content { max-width: 900px; padding-bottom: 28px; color: var(--muted); font-size: 13px; }
.privacy-content h3 { margin: 24px 0 5px; color: var(--ink); font-size: 14px; }.privacy-content p { margin: 0; }

.site-footer { padding: 54px 0 24px; color: #9ba7b0; background: #101c26; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 50px; padding-bottom: 42px; }
.footer-brand { display: grid; grid-template-columns: 58px auto; grid-template-rows: auto auto; column-gap: 15px; align-items: center; color: #fff; }
.footer-brand img { grid-row: 1 / 3; width: 58px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand strong { align-self: end; font-size: 18px; font-weight: 600; letter-spacing: .05em; }.footer-brand small { align-self: start; font-size: 9px; letter-spacing: .14em; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px 28px; font-size: 12px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 20px; border-top: 1px solid #33424e; color: #73818c; font-size: 10px; }

.entry-page { padding: 100px 0; }.entry-page h1 { color: var(--ink); font-size: 42px; font-weight: 600; }.entry-content { max-width: 820px; }.entry-content a { color: var(--blue); text-decoration: underline; }.empty-state { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 1000px) {
  .container { width: min(calc(100% - 44px), var(--container)); }
  .header-inner { min-height: 78px; }.brand { grid-template-columns: 50px auto; }.brand-logo { width: 50px; height: 50px; }.brand-text { font-size: 17px; }
  .menu-toggle { display: block; position: relative; z-index: 102; }
  .site-nav { position: fixed; inset: 0; z-index: 101; flex-direction: column; justify-content: center; gap: 28px; background: rgba(255,255,255,.99); visibility: hidden; opacity: 0; pointer-events: none; transition: .2s; }
  .site-nav.open { visibility: visible; opacity: 1; pointer-events: auto; }.site-nav a { font-size: 17px; }.nav-contact { padding: 13px 24px; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid { min-height: 620px; grid-template-columns: 1fr; }.hero-copy { padding: 78px 0 74px; }.hero-index { min-height: 260px; border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 88px 0; }.service { grid-template-columns: 100px 1fr; }.service-copy { grid-column: 2; }.section-header { grid-template-columns: 100px 1fr; }
  .focus-layout, .company-grid, .contact-layout, .mimamori-layout { grid-template-columns: 1fr; gap: 52px; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 30px), var(--container)); }.header-inner { min-height: 70px; }.brand { grid-template-columns: 43px auto; column-gap: 10px; }.brand-logo { width: 43px; height: 43px; }.brand-text { font-size: 14px; letter-spacing: .03em; }.brand-en { font-size: 8px; }
  .hero-grid { min-height: 0; }.hero-copy { padding: 68px 0 64px; }.hero-label { margin-bottom: 24px; font-size: 9px; }.hero h1 { font-size: clamp(36px, 11vw, 48px); line-height: 1.48; }.hero-lead { margin-top: 23px; font-size: 14px; }.hero-actions { display: grid; }.btn { width: 100%; min-width: 0; }.hero-index { min-height: 225px; }.hero-services span { padding: 0 17px; font-size: 12px; }.hero-number { font-size: 65px; }
  .section { padding: 72px 0; }.section-header { grid-template-columns: 1fr; gap: 16px; margin-bottom: 42px; }.section-no { font-size: 28px; }.section-title { font-size: 30px; }.section-intro { margin-top: 9px; }
  .service { grid-template-columns: 1fr; gap: 15px; padding: 35px 0; }.service-copy { grid-column: 1; }.service h3 { font-size: 21px; }
  .process-grid { grid-template-columns: 1fr; }.process-step { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }.process-step:last-child { border-bottom: 0; }.process-step span { margin-bottom: 32px; }
  .mimamori-price { grid-template-columns: 1fr; }.mimamori-price > div { border-right: 0; border-bottom: 1px solid var(--line); }.mimamori-price > div:nth-child(2) { border-bottom: 0; }.mimamori-intro .btn { width: 100%; }
  .focus-panel { padding: 30px 24px; }.focus-panel .label { margin-bottom: 34px; }
  .company-row { grid-template-columns: 1fr; padding: 17px 0; }.company-row dt, .company-row dd { padding: 2px 0; }.company-row dd { margin-top: 4px; }
  .contact-form { grid-template-columns: 1fr; }.contact-form > * { grid-column: 1; }.footer-top, .footer-bottom { flex-direction: column; }.footer-nav { justify-content: flex-start; }
}
