@charset "UTF-8";
/* =========================================================
   社会福祉法人 堂角舎  /  style.css
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --green: #7c9f4a;          /* 旧サイトのブランドカラー */
  --green-deep: #4e6a2c;
  --green-pale: #eef3e5;
  --green-line: #d6e2c3;
  --ink: #2c3327;
  --ink-sub: #5f6858;
  --bg: #fbfaf6;
  --white: #ffffff;
  --footer: #2f3529;

  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --wrap: 1080px;
  --wrap-narrow: 800px;
  --radius: 14px;
  --shadow: 0 10px 30px -18px rgba(44, 51, 39, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body, h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 40px, var(--wrap-narrow)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px;
  padding: 8px 16px; background: var(--green-deep); color: #fff;
  border-radius: 6px; z-index: 100; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--green-line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px;
}
.logo { display: inline-flex; align-items: baseline; gap: .6em; text-decoration: none; line-height: 1.2; }
.logo__sub { font-size: .75rem; letter-spacing: .12em; color: var(--ink-sub); }
.logo__main { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 600; letter-spacing: .14em; }

.gnav ul { display: flex; gap: clamp(4px, 1.5vw, 12px); }
.gnav a {
  display: block; padding: .45em .9em;
  font-size: .9rem; text-decoration: none; border-radius: 999px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.gnav a:hover { background: var(--green-pale); color: var(--green-deep); }
.gnav a[aria-current="page"] { background: var(--green); color: #fff; }

@media (max-width: 720px) {
  .site-header { position: static; }
  .site-header__inner { flex-direction: column; align-items: center; padding: 14px 0 10px; gap: 8px; }
  .gnav ul { flex-wrap: wrap; justify-content: center; }
  .gnav a { font-size: .85rem; padding: .35em .8em; }
}

/* ---------- Home: Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 10vw, 120px);
  text-align: center;
}
.hero__deco { position: absolute; inset: 0; pointer-events: none; }
.hero__deco span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #dfe9cf, rgba(223, 233, 207, 0) 70%);
}
.hero__deco span:nth-child(1) { width: 520px; height: 520px; left: -160px; top: -180px; }
.hero__deco span:nth-child(2) { width: 420px; height: 420px; right: -120px; bottom: -200px; background: radial-gradient(circle at 60% 40%, #e9efdd, rgba(233, 239, 221, 0) 70%); }
.hero__deco span:nth-child(3) { width: 160px; height: 160px; right: 18%; top: 14%; background: radial-gradient(circle, #f1e9d6, rgba(241, 233, 214, 0) 70%); }

.hero__label {
  position: relative;
  display: inline-block; font-size: .8rem; letter-spacing: .3em; color: var(--green-deep);
  padding: .2em 1.2em; border: 1px solid var(--green-line); border-radius: 999px; background: rgba(255,255,255,.6);
}
.hero__copy {
  position: relative;
  margin-top: 1.4em;
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(1.6rem, 4.6vw, 3rem);
  line-height: 1.7; letter-spacing: .12em;
}
.hero__copy .br { display: inline-block; }
.hero__lead { position: relative; margin-top: 1.6em; color: var(--ink-sub); font-size: .95rem; }

/* ---------- Home: menu cards ---------- */
.home-menu { padding: 0 0 clamp(64px, 9vw, 110px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; gap: .5em;
  padding: 30px 28px 28px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--green-line);
  text-decoration: none; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--green); }
.card__en { font-size: .72rem; letter-spacing: .24em; color: var(--green); text-transform: uppercase; font-weight: 500; }
.card__title { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; letter-spacing: .1em; }
.card__text { font-size: .875rem; color: var(--ink-sub); line-height: 1.8; }
.card__arrow {
  margin-top: auto; align-self: flex-end;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-pale); color: var(--green-deep);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.card:hover .card__arrow { background: var(--green); color: #fff; }

/* ---------- Home: info ---------- */
.home-info { padding: clamp(56px, 8vw, 96px) 0; background: var(--white); border-top: 1px solid var(--green-line); }
.home-info__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .home-info__grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Section heading ---------- */
.sec-title { display: flex; flex-direction: column; gap: .2em; margin-bottom: 1.4em; }
.sec-title__en { font-size: .72rem; letter-spacing: .28em; color: var(--green); text-transform: uppercase; font-weight: 500; }
.sec-title__ja {
  font-family: var(--font-serif); font-size: clamp(1.3rem, 2.6vw, 1.6rem); font-weight: 600; letter-spacing: .12em;
  display: flex; align-items: center; gap: .7em;
}
.sec-title__ja::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }

/* ---------- Page header (lower pages) ---------- */
.page-head {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px);
  background: linear-gradient(180deg, var(--green-pale), rgba(238, 243, 229, 0));
}
.page-head::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, #dfe9cf, rgba(223, 233, 207, 0) 70%);
}
.page-head__en { font-size: .75rem; letter-spacing: .3em; color: var(--green); text-transform: uppercase; font-weight: 500; }
.page-head__title { font-family: var(--font-serif); font-size: clamp(1.8rem, 4.4vw, 2.6rem); font-weight: 600; letter-spacing: .14em; line-height: 1.4; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .3em; font-size: .8rem; color: var(--ink-sub); margin-top: 1.2em; }
.breadcrumb li + li::before { content: "/"; margin-right: .3em; color: var(--green-line); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--green-deep); text-decoration: underline; }

/* ---------- Content ---------- */
.content { padding: clamp(32px, 5vw, 56px) 0 clamp(72px, 10vw, 120px); }
.section + .section { margin-top: clamp(56px, 8vw, 88px); }
.section p + p { margin-top: 1em; }
.prose p { text-align: justify; }

.motto {
  position: relative;
  padding: clamp(32px, 5vw, 48px) clamp(24px, 5vw, 48px);
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--green-line);
  text-align: center; font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 500; letter-spacing: .12em; line-height: 1.8;
}

/* definition table */
.info-table { border-top: 1px solid var(--green-line); }
.info-table__row { display: grid; grid-template-columns: 11em 1fr; border-bottom: 1px solid var(--green-line); }
.info-table dt, .info-table dd { padding: 1.1em .4em; }
.info-table dt { font-weight: 500; color: var(--green-deep); }
.info-table a { color: var(--green-deep); }
@media (max-width: 600px) {
  .info-table__row { grid-template-columns: 1fr; }
  .info-table dt { padding-bottom: 0; font-size: .85rem; }
  .info-table dd { padding-top: .2em; }
}
.tel { display: inline-flex; flex-wrap: wrap; gap: .2em 1.4em; }

/* timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: var(--green-line); }
.timeline__item { position: relative; display: grid; grid-template-columns: 8.5em 1fr; gap: 0 1.2em; padding: 0 0 1.6em; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -28px; top: .55em;
  width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--green);
}
.timeline__year { font-family: var(--font-serif); font-weight: 600; letter-spacing: .08em; color: var(--green-deep); line-height: 1.6; padding-top: .15em; }
.timeline__year small { display: block; font-family: var(--font-sans); font-weight: 400; font-size: .75rem; color: var(--ink-sub); letter-spacing: .1em; }
.timeline__events li { line-height: 1.8; }
.timeline__events li + li { margin-top: .5em; }
@media (max-width: 600px) {
  .timeline__item { grid-template-columns: 1fr; }
  .timeline__year small { display: inline; margin-left: .6em; }
}

/* documents (disclosure) */
.doc-list { display: grid; gap: 12px; margin-top: 1.6em; }
.doc-list a {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  border-radius: 10px; background: var(--white); border: 1px solid var(--green-line);
  text-decoration: none; transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.doc-list a:hover { border-color: var(--green); background: var(--green-pale); }
.doc-list .badge { flex: none; font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: #fff; background: #b5543c; padding: .15em .6em; border-radius: 4px; }
.doc-list .meta { margin-left: auto; font-size: .8rem; color: var(--ink-sub); }
.notice {
  margin-top: 1.6em; padding: 18px 22px; border-radius: 10px;
  background: var(--green-pale); color: var(--ink-sub); font-size: .9rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #e7eadf; font-size: .875rem; }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; padding: 56px 0 40px; align-items: start; }
@media (max-width: 720px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer .logo__sub { color: #b9c0ad; }
.site-footer .logo__main { font-size: 1.5rem; }
.site-footer address { font-style: normal; margin-top: 1em; line-height: 1.9; color: #c9cfbd; }
.site-footer address a { text-decoration: none; }
.fnav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.fnav a { text-decoration: none; color: #e7eadf; }
.fnav a:hover { color: #c7da9f; text-decoration: underline; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: .75rem; letter-spacing: .08em; color: #a3aa96; }

.pagetop {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: #fff; box-shadow: var(--shadow);
  text-decoration: none; transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.pagetop:hover { background: var(--green-deep); transform: translateY(-3px); }

/* ---------- Utility ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
