/*
Theme Name: KOHAL
Theme URI: https://kohal.co.jp/
Author: KOHAL合同会社
Description: KOHAL合同会社のための、余白と静かな希望を大切にしたオリジナルテーマ。
Version: 1.1.2
License: GPL-2.0-or-later
Text Domain: kohal
*/

:root {
  --ink: #263238;
  --muted: #68767b;
  --paper: #fffdf8;
  --paper-blue: #f3f9fb;
  --sky: #86c8df;
  --sky-deep: #347f98;
  --teal: #7eaaa6;
  --amber: #c79a55;
  --line: #dbe8e9;
  --white: #fff;
  --radius: 28px;
  --shadow: 0 18px 50px rgba(39, 69, 76, .08);
  --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 9999; background: #fff; padding: 8px 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, .9);
  border-bottom: 1px solid rgba(219, 232, 233, .8);
  backdrop-filter: blur(16px);
}
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; font-weight: 700; letter-spacing: .09em; }
.brand-mark { font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; letter-spacing: .12em; }
.brand-dot { color: var(--amber); }
.brand-company { color: var(--muted); font-size: .68rem; font-weight: 500; letter-spacing: .06em; }
.site-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.site-nav a { position: relative; display: block; padding: 24px 0; color: #435156; font-size: .88rem; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 18px; height: 1px; background: var(--sky-deep); transition: right .25s ease; }
.site-nav a:hover::after, .site-nav .current-menu-item a::after { right: 0; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1px; margin: 5px auto; background: var(--ink); }

.hero { position: relative; min-height: 720px; overflow: hidden; display: grid; align-items: center; padding: 100px 0 120px; }
.hero::before { content: ""; position: absolute; width: 600px; height: 600px; right: -180px; top: 30px; border-radius: 50%; background: rgba(134, 200, 223, .18); filter: blur(2px); }
.hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: 15%; bottom: -210px; border-radius: 48% 52% 60% 40%; background: rgba(126, 170, 166, .12); transform: rotate(18deg); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(520px, 1.35fr) minmax(300px, .65fr); gap: 72px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; color: var(--sky-deep); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--sky); }
.hero h1 { margin: 0; max-width: 820px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 500; line-height: 1.42; letter-spacing: .025em; }
.hero-title-line { display: block; white-space: nowrap; }
.hero-lead { max-width: 620px; margin: 36px 0 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid var(--sky-deep); border-radius: 999px; color: #fff; background: var(--sky-deep); font-size: .9rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(52,127,152,.2); }
.button.ghost { color: var(--sky-deep); background: transparent; }
.hero-scene { position: relative; width: 100%; aspect-ratio: 4 / 5; max-width: 430px; justify-self: end; }
.window { position: absolute; inset: 0 0 12% 10%; border-radius: 46% 46% 24px 24px; background: linear-gradient(180deg, #dff2f8 0%, #f8fbf7 66%, #e9e2d4 100%); box-shadow: var(--shadow); overflow: hidden; }
.window::before { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255,255,255,.88) 0 22%, transparent 22% 100%); }
.horizon { position: absolute; left: -10%; right: -10%; bottom: 17%; height: 35%; border-radius: 50% 50% 0 0; background: #dceae2; transform: rotate(-4deg); }
.plant { position: absolute; right: 7%; bottom: 8%; width: 34%; height: 47%; border-left: 4px solid #759d83; transform: rotate(7deg); }
.plant i { position: absolute; display: block; width: 58px; height: 28px; border-radius: 100% 0 100% 0; background: #8eb59a; transform-origin: 0 100%; }
.plant i:nth-child(1){ left: -3px; top: 20%; transform: rotate(-28deg); }
.plant i:nth-child(2){ left: 2px; top: 40%; transform: rotate(20deg) scale(.85); }
.plant i:nth-child(3){ left: -4px; top: 61%; transform: rotate(-35deg) scale(.75); }
.quiet-card { position: absolute; left: 50%; bottom: -18px; width: min(290px, 88%); padding: 22px 24px; border: 1px solid rgba(255,255,255,.8); border-radius: 20px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); backdrop-filter: blur(12px); writing-mode: horizontal-tb; transform: translateX(-50%); }
.quiet-card small { color: var(--amber); letter-spacing: .12em; }
.quiet-card p { margin: 10px 0 0; font-family: "Yu Mincho", serif; font-size: 1rem; line-height: 1.8; white-space: nowrap; writing-mode: horizontal-tb; }

.section { padding: 110px 0; }
.section.soft { background: var(--paper-blue); }
.section-heading { display: grid; grid-template-columns: 180px 1fr; gap: 36px; margin-bottom: 54px; align-items: start; }
.section-number { color: var(--amber); font-family: Georgia, serif; font-size: .8rem; letter-spacing: .18em; }
.section-heading h2 { margin: 0; font-family: "Yu Mincho", serif; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 500; line-height: 1.45; }
.section-heading p { grid-column: 2; max-width: 690px; margin: 12px 0 0; color: var(--muted); }
.philosophy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.philosophy-item { min-height: 230px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.62); }
.philosophy-item b { color: var(--sky-deep); font-family: Georgia, serif; font-size: .78rem; letter-spacing: .14em; }
.philosophy-item h3 { margin: 22px 0 10px; font-family: "Yu Mincho", serif; font-size: 1.35rem; font-weight: 500; }
.philosophy-item p { margin: 0; color: var(--muted); font-size: .92rem; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card { position: relative; min-height: 360px; padding: 34px; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .25s ease; }
.work-card:hover { transform: translateY(-5px); }
.work-card::before { content: ""; position: absolute; width: 170px; height: 170px; right: -45px; top: -45px; border-radius: 50%; background: var(--card-color, rgba(134,200,223,.22)); }
.work-label { position: relative; color: var(--sky-deep); font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.work-card h3 { position: relative; margin: 84px 0 16px; font-family: "Yu Mincho", serif; font-size: 1.65rem; font-weight: 500; }
.work-card p { position: relative; margin: 0; color: var(--muted); font-size: .92rem; }
.work-link { position: absolute; left: 34px; bottom: 30px; color: var(--sky-deep); font-size: .85rem; }
.work-link::after { content: " →"; }
.journal-list { border-top: 1px solid var(--line); }
.journal-item { display: grid; grid-template-columns: 150px 1fr 40px; gap: 26px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.journal-date { color: var(--muted); font-family: Georgia, serif; font-size: .78rem; letter-spacing: .05em; }
.journal-item h3 { margin: 0; font-size: 1.05rem; font-weight: 500; }
.journal-arrow { color: var(--sky-deep); }
.empty-note { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); background: rgba(255,255,255,.7); }
.closing { padding: 120px 0; text-align: center; }
.closing h2 { margin: 0; font-family: "Yu Mincho", serif; font-size: clamp(2.1rem, 5vw, 4rem); font-weight: 500; line-height: 1.5; }
.closing p { max-width: 680px; margin: 24px auto 38px; color: var(--muted); }

.page-hero { padding: 100px 0 70px; border-bottom: 1px solid var(--line); background: var(--paper-blue); }
.page-hero h1 { margin: 8px 0 0; font-family: "Yu Mincho", serif; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 500; }
.page-content { width: min(calc(100% - 40px), 860px); margin: 0 auto; padding: 80px 0 120px; }
.page-content h2 { margin: 2.5em 0 .8em; font-family: "Yu Mincho", serif; font-size: 2rem; font-weight: 500; }
.page-content h3 { margin-top: 2em; }
.page-content p { margin: 0 0 1.5em; }
.page-content table { width: 100%; border-collapse: collapse; }
.page-content th, .page-content td { padding: 16px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.default-copy { display: grid; gap: 28px; }
.default-copy .lead { font-family: "Yu Mincho", serif; font-size: 1.35rem; line-height: 2; }
.notice-box { padding: 24px 28px; border-left: 3px solid var(--sky); background: var(--paper-blue); }

.site-footer { padding: 70px 0 28px; color: #dce8e8; background: #26373b; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.footer-brand .brand-mark { color: #fff; }
.footer-copy { max-width: 470px; margin-top: 20px; color: #aebfc2; font-size: .85rem; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: #dce8e8; font-size: .86rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #93a7aa; font-size: .72rem; }

@media (max-width: 900px) {
  .admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 76px 0 auto; display: none; padding: 22px 20px 28px; background: rgba(255,253,248,.98); border-bottom: 1px solid var(--line); }
  .admin-bar .site-nav { top: 122px; }
  .site-nav.open { display: block; }
  .site-nav ul { display: block; }
  .site-nav a { padding: 12px 4px; }
  .site-nav a::after { display: none; }
  .hero { min-height: auto; padding: 78px 0 90px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero h1 { font-size: clamp(2.35rem, 9vw, 4.5rem); }
  .hero-scene { width: min(100%, 430px); justify-self: center; }
  .quiet-card { left: 50%; }
  .section-heading { grid-template-columns: 1fr; gap: 10px; }
  .section-heading p { grid-column: 1; }
  .philosophy-grid, .works-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 300px; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--content)); }
  .brand-company { display: none; }
  .hero h1 { font-size: clamp(1.72rem, 8.2vw, 2.45rem); line-height: 1.55; letter-spacing: 0; }
  .quiet-card { left: 50%; width: 250px; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 36px; }
  .journal-item { grid-template-columns: 1fr 28px; gap: 8px 12px; }
  .journal-date { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
}
