@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

:root {
  --ink: #23413c;
  --ink-soft: #3f5d57;
  --muted: #6e817c;
  --cream: #fffaf2;
  --cream-deep: #f7f0e4;
  --white: #ffffff;
  --peach: #ffe2d5;
  --peach-deep: #ed806d;
  --mint: #dff2e7;
  --mint-deep: #3d8b78;
  --yellow: #fff1ab;
  --sky: #dceef7;
  --lilac: #e9e1f3;
  --pink: #f6dce5;
  --line: rgba(35, 65, 60, .14);
  --shadow: 0 24px 70px rgba(45, 72, 65, .13);
  --shadow-soft: 0 14px 34px rgba(45, 72, 65, .08);
  --radius-xl: 42px;
  --radius-lg: 30px;
  --radius-md: 22px;
  --shell: min(1240px, calc(100% - 64px));
  --header-height: 86px;
  --ease: cubic-bezier(.2,.75,.3,1);
  color-scheme: light;
}

* { box-sizing: border-box; scroll-margin-top: var(--header-height); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--cream);
	background-image: url(images/bg-body.svg);
	background-repeat: repeat-y;
	background-position: 0 -10vw;
	background-size: 100% auto;
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

	animation: bodyBgMove linear forwards;
	animation-duration: 1ms;
	animation-timeline: scroll();
}
body.large-text { font-size: 22px; }

@keyframes bodyBgMove {
	from {
		background-position: 0 -10vw;
	}
	to {
		background-position: 0 var(--body-height);
	}
}


h1 {
	margin: 0px auto 80px;
	padding: 0px;
	width: 95%;
	max-width: 1100px;
	color: #6A9362;
	font-size: 0px;
	line-height: 0px;
	font-weight: bold;
}

h1 > span.parent {
	box-sizing: border-box;
	display: inline-block;
	padding: 0px 10px 5px;
	min-width: 30%;
	text-align: justify;
	color: #15413C;
	font-size: clamp(14px, 3vw, 20px);
	line-height: 130%;
	border-bottom: 1px solid #666;
}

h1 > span.child {
	display: block;
	text-align: justify;
	font-size: clamp(28px, 5vw, 48px);
	line-height: 130%;
}

h2 {
	box-sizing: border-box;
	margin: 0px auto 20px;
	padding: 0px 3px 10px;
	width: 100%;
	border-bottom: solid 2px #A8C1A3;
	color: #15413C;
	font-size: clamp(24px, 4vw, 32px);
	line-height: 140%;
	font-weight: bold;
}

h3 {
	box-sizing: border-box;
	margin: 0px auto 20px;
	padding: 0px 3px 7px;
	width: 100%;
	border-bottom: dotted 2px #A8C1A3;
	color: #15413C;
	font-size: clamp(20px, 3vw, 26px);
	line-height: 140%;
	font-weight: bold;
}

.page + h3 {
	margin-top: 50px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a[name] { position: relative; top: -45px; }
.pageBg a { color: revert; text-decoration: underline; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-180%);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 150px 0; }
.pageBg .section { padding: 0px 0; }

/* 会長挨拶の本文内写真 */
.chairmanMessagePhoto {
	float: right;
	box-sizing: border-box;
	width: min(34%, 330px);
	margin: 0 0 32px 42px;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 26px;
	box-shadow: 0 18px 45px rgba(45, 78, 70, .14);
}

.section .chairmanMessagePhoto img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 17px;
}

.section.links { padding: 50px 0; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.is-scrolled {
  background: rgba(255, 250, 242, .93);
  box-shadow: 0 10px 30px rgba(35,65,60,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: 76px;
}
.header-inner {
  width: min(1450px, calc(100% - 48px));
  height: 100%;
  margin: auto;
  display: flex;
	justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 46px;
  height: 46px;
  color: var(--mint-deep);
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-kicker { font-size: 10px; letter-spacing: .14em; margin-bottom: 4px; color: var(--muted); }
.brand-copy strong { font-size: 22px; letter-spacing: .06em; }
.global-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.global-nav a { position: relative; font-size: 14px; font-weight: 700; white-space: nowrap; padding: 12px 0; }
.global-nav a:visited { color: rgb(85, 26, 139); }
.global-nav a#headerMenuInquiry { display: none; }
.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 6px;
  height: 2px;
  background: var(--peach-deep);
  transition: right .25s var(--ease);
}
.global-nav a:hover::after, .global-nav a:focus-visible::after { right: 50%!important; }
.global-nav a.current:after, .global-nav a.current:after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.font-toggle {
  border: 0;
  background: transparent;
  padding: 8px 4px;
  cursor: pointer;
  display: grid;
  justify-items: center;
  line-height: 1.1;
  gap: 3px;
}
.font-toggle span:first-child { font-size: 16px; font-weight: 800; }
.font-toggle span:last-child { font-size: 9px; white-space: nowrap; }
.header-cta {
  display: grid;
  place-items: center;
  min-width: 112px;
  height: 46px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  transition: transform .25s, background .25s;
}
.header-cta:hover, .header-cta:focus-visible { transform: translateY(-2px); background: var(--mint-deep); }
.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  padding: 0;
  place-items: center;
  align-content: center;
  gap: 5px;
}
.menu-button span { display: block; width: 19px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


main {
  position: relative;
  padding: calc(var(--header-height) + 78px) 0 42px;
	z-index: 1;
}

.pageBg {
	box-sizing: border-box;
	margin: 0px auto;
	padding: 3%;
	width: 95%;
	max-width: 1100px;
	border-radius: 30px;
	background-color: rgba(255,255,255,0.7);
	box-shadow: 0px 0px 15px rgba(0,0,0,0.1);
	backdrop-filter: blur(10px);
	text-align: justify;
}

.pageBg + .pageBg {
	margin-top: 50px;
}

.news-category { justify-self: start; border: 1px solid rgba(0,0,0,.15); background-color: rgba(0,0,0,.05); border-radius: 999px; font-size: 12px; padding: 4px 10px; white-space: nowrap; }


.site-footer { background: #1b3530; color: #fff; padding: 88px 0 28px; }
.footer-main { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; padding-bottom: 70px; }
.brand-footer { color: #fff; }
.brand-footer .brand-mark { color: var(--yellow); }
.brand-footer .brand-kicker { color: rgba(255,255,255,.6); }
.footer-brand > p { margin: 26px 0 6px; color: rgba(255,255,255,.72); font-size: 13px; }
.footer-brand > small { color: rgba(255,255,255,.45); font-size: 10px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-nav div { display: flex; flex-direction: column; gap: 5px; }
.footer-nav strong a { display: inline-block; font-size: 16px; color: var(--yellow); }
.footer-nav a { font-size: 14px; color: rgba(255,255,255,.72); transition: color .2s, transform .2s; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: #fff; transform: translateX(3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding-top: 24px; display: block; text-align: center; color: rgba(255,255,255,.45); font-size: 12px; }
.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; gap: 26px; }

.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: var(--shadow-soft); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, visibility .25s, transform .25s, background .25s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--mint-deep); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 3px solid #e5a636; outline-offset: 4px; }

@media (max-width: 1180px) {
  :root { --shell: min(100% - 48px, 1080px); }
  .global-nav { display: none; }
  .menu-button { display: grid; }
  .global-nav.is-open {
    display: flex;
    position: fixed;
    inset: var(--header-height) 20px auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 5px 24px 7px;
    border-radius: 22px;
    box-shadow: var(--shadow);
  }
  .global-nav.is-open a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
  .global-nav.is-open a:last-child { border-bottom: 0; }

	.global-nav.is-open a {
		padding-left: 21px;
	}
	
	.global-nav a {
		transition: transform .25s var(--ease);
	}

	.global-nav a::after {
		top: 50%;
		left: 0;
		right: 100%;
		bottom: auto;
		width: 16px;
		height: 16px;
		border-radius: 100%;
		translate: 0% -50%;
		transition: transform .25s var(--ease);
		background-color: #9BD7B5;
	}
	.global-nav a:hover, .global-nav a:focus-visible {  transform: translateX(10px); }
	.global-nav a:hover::after, .global-nav a:focus-visible::after { transform: scale(1.4)!important; }
	.global-nav a.current:after, .global-nav a.current:after { background-color: var(--mint-deep); }
	.global-nav a#headerMenuInquiry { display: block; }
}

@media (max-width: 900px) {
  :root { --shell: calc(100% - 40px); --header-height: 76px; }
  .section { padding: 110px 0; }
  .font-toggle, .header-cta { display: none; }
  .header-inner { width: calc(100% - 32px); }
  .footer-main { grid-template-columns: 1fr; gap: 55px; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 28px); --radius-lg: 24px; }
  body { font-size: 16px; 	animation-timeline: none; animation: none; }
	h1 { margin: 0px auto 40px; }
	main { padding: calc(var(--header-height) + 10px) 0 42px; }
	.chairmanMessagePhoto {
		float: none;
		width: min(100%, 290px);
		margin: 0 auto 30px;
		padding: 8px;
		border-radius: 22px;
	}
	.section .chairmanMessagePhoto img { border-radius: 15px; }
  .section { padding: 60px 0; }
  .site-header.is-scrolled { height: 68px; }
	.brand { gap: 6px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy strong { font-size: 20px; }
  .brand-kicker { font-size: 8px; }

	.pageBg { padding: 18px; }

	.site-footer { padding: 28px 0px 28px; }
	.footer-brand { text-align: center; }
	.footer-brand > p { margin: 0px 0 6px; font-size: 16px; }
	.footer-nav { display: none; }
  .footer-main { padding-bottom: 20px; }
  .footer-bottom { display: block; text-align: center; }
  .back-to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
