/*
Theme Name: drawer-r (試作)
Template: drawer
Description: drawer のレスポンシブ試作。検証サイトで ?sp=on のときだけ使う。
Version: 0.1
*/

:root {
	--navy: #122a88;
	--navy-dark: #0b1b5c;
	--sky: #009fe9;
	--accent: #f08300;
	--ink: #1f2430;
	--muted: #5d6475;
	--line: #e3e6ee;
	--bg: #f5f7fb;
	--white: #fff;
	--radius: 10px;
	--wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.8;
	color: var(--ink);
	background: var(--bg);
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--navy); }
a:hover { color: var(--sky); }
.r-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.r-sp { display: none; }
@media (max-width: 600px) { .r-sp { display: inline; } }
.r-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.r-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}
.r-header__in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.r-logo { margin: 0; line-height: 0; flex-shrink: 0; }
.r-logo img { width: 150px; }
.r-nav { margin-left: auto; }
.r-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.r-nav a {
	display: block; padding: 8px 12px; border-radius: 6px;
	font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.r-nav a:hover, .r-nav .is-current a { background: var(--bg); color: var(--navy); }
.r-cta {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 18px; border-radius: 999px;
	background: var(--accent); color: var(--white) !important; font-weight: 700; font-size: 14px;
	text-decoration: none; white-space: nowrap;
}
.r-cta:hover { filter: brightness(1.08); }
.r-menu-btn {
	display: none; margin-left: auto; width: 44px; height: 44px;
	border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer;
}
.r-menu-btn span, .r-menu-btn span::before, .r-menu-btn span::after {
	display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--ink); position: relative; content: "";
	transition: transform .2s;
}
.r-menu-btn span::before { position: absolute; top: -6px; }
.r-menu-btn span::after { position: absolute; top: 6px; }
.r-open .r-menu-btn span { background: transparent; }
.r-open .r-menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.r-open .r-menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.r-hero {
	position: relative; color: var(--white);
	background: var(--navy-dark) center / cover no-repeat;
	min-height: 360px; display: flex; align-items: flex-end;
}
.r-hero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(11,27,92,.92) 0%, rgba(11,27,92,.55) 55%, rgba(11,27,92,.15) 100%);
}
.r-hero__in { position: relative; padding-top: 64px; padding-bottom: 56px; }
.r-hero__label { display: inline-block; font-size: 13px; letter-spacing: .15em; opacity: .85; margin-bottom: 8px; }
.r-hero h2 { margin: 0 0 14px; font-size: clamp(26px, 4.2vw, 42px); line-height: 1.35; }
.r-hero p { margin: 0 0 24px; max-width: 34em; opacity: .9; }
.r-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.r-btn-ghost {
	display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.7);
	color: var(--white) !important; text-decoration: none; font-weight: 700; font-size: 14px;
}
.r-btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- layout ---------- */
.r-main { padding: 40px 0 56px; }
.r-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.r-section { margin-bottom: 40px; }
.r-h {
	display: flex; align-items: baseline; gap: 12px;
	margin: 0 0 18px; font-size: 22px; line-height: 1.4;
}
.r-h small { font-size: 12px; color: var(--muted); letter-spacing: .12em; font-weight: 600; text-transform: uppercase; }
.r-h::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--navy); align-self: center; }
.r-more { font-size: 14px; font-weight: 700; text-decoration: none; }

/* ---------- class cards ---------- */
.r-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.r-card {
	display: flex; flex-direction: column; gap: 10px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 18px; text-decoration: none; color: var(--ink);
	transition: box-shadow .2s, transform .2s;
}
.r-card:hover { box-shadow: 0 8px 24px rgba(18,42,136,.12); transform: translateY(-2px); color: var(--ink); }
.r-card__date { font-size: 13px; color: var(--muted); font-weight: 600; }
.r-card__title { font-weight: 700; line-height: 1.6; }
.r-card__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.r-tag {
	display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
	background: var(--bg); color: var(--navy);
}
.r-tag.level_01 { background: #fde8e8; color: #b42318; }
.r-tag.level_02 { background: #e6f6ec; color: #1a7f37; }
.r-tag.level_03 { background: #e8f1fd; color: #1f5fbf; }
.r-tag.level_04 { background: #fff0e0; color: #b45309; }

/* ---------- contact band ---------- */
.r-band {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 24px 28px;
}
.r-band p { margin: 0; font-weight: 700; }
.r-band small { display: block; font-weight: 400; opacity: .85; }

/* ---------- sidebar ---------- */
.r-side > * { margin-bottom: 24px; }
.r-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.r-box h3 { margin: 0 0 10px; font-size: 16px; }
.r-news { list-style: none; margin: 0; padding: 0; }
.r-news li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.r-news li:first-child { border-top: 0; padding-top: 0; }
.r-news time { display: block; font-size: 12px; color: var(--muted); }
.r-news a { text-decoration: none; }
.r-voice img { border-radius: 8px; margin-bottom: 8px; }
.r-voice p { margin: 0 0 8px; font-size: 14px; }
.r-partners { display: grid; gap: 10px; }
.r-partners img { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }

/* ---------- content pages ---------- */
.r-pagehead { background: var(--white); border-bottom: 1px solid var(--line); }
.r-pagehead .r-wrap { padding-top: 28px; padding-bottom: 24px; }
.r-pagehead h1 { margin: 0; font-size: clamp(22px, 3vw, 30px); }
.r-crumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.r-crumb a { color: var(--muted); }
.r-article { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; overflow-wrap: anywhere; }
.r-article h2 { font-size: 20px; }
.r-article table { width: 100% !important; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.r-article th, .r-article td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.r-article th { background: var(--bg); white-space: nowrap; }
.r-article [style*="width"] { max-width: 100%; }
.r-article iframe { max-width: 100%; }
.r-date { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.r-infotable { display: grid; grid-template-columns: 8em 1fr; border-top: 1px solid var(--line); margin: 16px 0; }
.r-infotable dt, .r-infotable dd { margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.r-infotable dt { background: var(--bg); font-weight: 700; font-size: 14px; }
.r-entry-btn { text-align: center; margin: 24px 0 8px; }
.r-list-item { padding: 18px 0; border-top: 1px solid var(--line); }
.r-list-item:first-child { border-top: 0; }
.r-list-item h2 { margin: 0 0 6px; font-size: 17px; line-height: 1.55; }
.r-list-item h2 a { text-decoration: none; }
.r-pager { display: flex; justify-content: space-between; margin-top: 20px; font-weight: 700; }

/* ---------- footer ---------- */
.r-footer { background: var(--navy-dark); color: #c9d2f2; padding: 40px 0 24px; font-size: 14px; }
.r-footer a { color: #e6ebff; text-decoration: none; }
.r-footer a:hover { color: var(--white); text-decoration: underline; }
.r-footer__cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.r-footer ul { list-style: none; margin: 0; padding: 0; }
.r-footer li { margin-bottom: 6px; }
.r-footer h4 { margin: 0 0 10px; color: var(--white); font-size: 14px; letter-spacing: .08em; }
.r-footer__copy { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: 12px; }
.r-totop {
	position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%;
	background: var(--navy); color: var(--white) !important; display: grid; place-items: center;
	text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.2); font-size: 18px;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
	.r-nav a { padding: 8px 8px; font-size: 13px; }
}
@media (max-width: 960px) {
	.r-menu-btn { display: block; }
	.r-header .r-cta { display: none; }
	.r-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08);
	}
	.r-open .r-nav { display: block; }
	.r-nav ul { flex-direction: column; padding: 8px 20px 16px; }
	.r-nav a { padding: 12px 8px; font-size: 15px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.r-nav .r-nav__cta { padding-top: 12px; }
	.r-nav .r-nav__cta a { border: 0; text-align: center; }
	.r-grid { grid-template-columns: 1fr; }
	.r-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 961px) {
	.r-nav .r-nav__cta { display: none; }
}
@media (max-width: 600px) {
	body { font-size: 15px; }
	.r-wrap { padding: 0 16px; }
	.r-hero { min-height: 300px; }
	.r-hero::before { background: linear-gradient(0deg, rgba(11,27,92,.95) 10%, rgba(11,27,92,.45) 100%); }
	.r-article { padding: 18px; }
	.r-band { padding: 20px; }
	.r-infotable { grid-template-columns: 1fr; }
	.r-infotable dt { border-bottom: 0; padding-bottom: 2px; }
	.r-footer__cols { grid-template-columns: 1fr; }
}

/* スマホでは表を縦に並べる(フォームや料金表が横にはみ出さないように) */
@media (max-width: 600px) {
	.r-article table, .r-article tbody, .r-article tr, .r-article th, .r-article td { display: block; width: 100% !important; }
	.r-article th { white-space: normal; text-align: left; border-bottom: 0; }
	.r-article td { border-top: 0; }
}