/* =========================================================
   昇英館 共通スタイル
   - トップページと下位ページで共通利用する基礎・ヘッダー・ナビ・
     ボタン・お問い合わせ・フッター・レスポンシブ記述
   - 読み込み順: common.css → 各ページ専用CSS
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

:root {
  --orange: #ff8a00;
    --orange-dark: #e97800;
    --yellow: #ffd43b;
    --navy: #0068b7;
	--navy-2: #00528f;
    --heading: #1f756a;
    --blue: #0076c9;
    --visited: #53609a;
    --green: #15a77a;
    --ink: #172433;
    --muted: #5f6b76;
    --line: #dde5ec;
    --cream: #fff9f0;
    --pale-blue: #f3f8fd;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(18, 58, 90, 0.12);
    --shadow-soft: 0 10px 28px rgba(18, 58, 90, 0.08);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1240px;
    --header-height: 86px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0.025em;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
    max-width: 100%;
    height: auto;
}

a {
  color: inherit;
    text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

.skip-link {
  position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: var(--white);
    background: var(--navy);
    border-radius: 8px;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.section {
  padding: 112px 0;
}

.site-header {
  position: sticky;
    z-index: 1000;
    top: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(18, 58, 90, 0.08);
    backdrop-filter: blur(18px);
    transition: box-shadow 0.25s ease, height 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(18, 58, 90, 0.1);
}

.header-inner {
  display: flex;
    align-items: center;
    gap: 28px;
    width: min(calc(100% - 48px), 1380px);
    height: 100%;
    margin-inline: auto;
}

.brand {
  display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 13px;
    color: var(--navy);
    font-weight: 800;
    white-space: nowrap;
}

.brand-logo {
	position: relative;
  width: 54px;
	height: 54px;
	flex: 0 0 54px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 22px rgba(255,138,0,.22)
}

.brand .brand-logo img.normal {
	opacity: 1;
}

.brand .brand-logo img.hover {
	position: absolute;
	top: 0px;
	left: 0px;
	opacity: 0;
}

.brand:hover .brand-logo img.normal {
	opacity: 0;
}

.brand:hover .brand-logo img.hover {
	opacity: 1;
}

.brand-logo img {
  width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.8s;
}

.brand-copy {
  display: flex;
  	flex-direction: column;
  	justify-content: center;
  	color: var(--navy);
  	line-height: 1.1;
}

.brand-copy-name {
  font-size: clamp(28px, 2.4vw, 32px);
  	font-weight: 800;
  	letter-spacing: .06em;
  	color: var(--navy)
}

.brand-copy-name img {
  width: auto;
	height: 35px;
}

.brand-copy-main {
  margin-top: 5px;
  	font-size: 12px;
  	font-weight: 500;
  	letter-spacing: .12em;
  	color: var(--navy);
}

.brand-mark {
  display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 126px;
    min-height: 48px;
    padding: 8px 19px;
    color: var(--white);
    background: var(--orange);
    border-radius: 9px;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    box-shadow: 0 7px 16px rgba(255, 138, 0, 0.22);
}

.brand-label {
  font-size: 16px;
    letter-spacing: 0.05em;
}

.global-nav {
  margin-left: auto;
}

.global-nav ul {
  display: flex;
	align-items: center;
	gap: clamp(18px, 1.8vw, 34px);
	gap: 3px clamp(18px, 1.4vw, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
	flex-flow: row wrap;
}

.global-nav a {
  position: relative;
    padding: 12px 0;
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
  white-space: nowrap;
}

.global-nav a:visited {
  color: var(--visited);
}

.global-nav a::after {
  position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 2px;
    background: var(--orange);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after {
  transform: scaleX(1);
    transform-origin: left;
}

.button {
  display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 24px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white)!important;
	text-decoration: none!important;
    background: var(--orange);
    box-shadow: 0 9px 18px rgba(255, 138, 0, 0.25);
}

.button-primary:hover {
  background: var(--orange-dark);
    box-shadow: 0 12px 24px rgba(255, 138, 0, 0.3);
}

.button-light {
  color: var(--navy);
    background: var(--white);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.button-outline-light {
  color: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
    background: transparent;
}

.button-outline-light:hover {
  color: var(--navy);
    background: var(--white);
}

.button-large {
  min-height: 58px;
    padding-inline: 30px;
    font-size: 18px;
}

.button-block {
  width: 100%;
}

.header-cta {
  flex: 0 0 auto;
    min-height: 48px;
    padding-inline: 20px;
    font-size: 15px;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.section-label {
  display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0 0 18px;
    padding: 4px 18px;
    color: var(--navy);
    background: var(--yellow);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.section-label-light {
  color: var(--navy);
    background: var(--white);
}

.contact-panel h2 {
  margin: 0;
    color: var(--heading);
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: 0.025em;
}

.contact-panel h2 {
  color: var(--white);
}

.contact-panel p:not(.section-label) {
  max-width: 660px;
    margin: 16px 0 0;
    font-size: 18px;
}

.contact {
  padding-top: 56px;
    background: var(--pale-blue);
}

.contact-panel {
  display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 44px;
    padding: 62px 64px;
    color: var(--white);
    background: var(--orange);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 48px rgba(255, 138, 0, 0.26);
}

.contact-actions {
  display: grid;
    flex: 0 0 280px;
    gap: 12px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.8);
    background: var(--navy-2);
}

.footer-main {
  display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    padding-top: 66px;
    padding-bottom: 48px;
		align-items: flex-start;
}

.footer-main > div:first-of-type {
}

.brand-footer,
.brand-footer .brand-copy > * {
  color: var(--white);
}

.footer-main p {
  max-width: 560px;
    margin: 22px 0 0;
}

.footer-main nav {
  display: grid;
	gap: 12px 34px;
	align-content: start;
}

.footer-main nav a {
  font-weight: 700;
}

.footer-main nav a:hover {
  color: var(--yellow);
}

.footer-bottom {
  text-align: center;
    padding-top: 24px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom a {
  font-size: 13px;
}

.mobile-fixed-cta {
  display: none;
}

.reveal {
  opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
    transform: translateY(0);
}


@media (max-width: 1180px) {
  :root {
    --header-height: 78px;
  }

	.global-nav a {
		font-size: 14px;
	}

  .header-cta {
    margin-left: auto;
  }

  .menu-toggle-label {
    font-size: 13px;
        font-weight: 800;
  }

  .menu-toggle-lines {
    display: grid;
        gap: 5px;
        width: 28px;
  }

  .menu-toggle-lines i {
    display: block;
        width: 100%;
        height: 2px;
        background: currentColor;
        transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
        z-index: 999;
        top: var(--header-height);
        right: 0;
        left: 0;
        display: block;
        /* 画面内にメニュー領域を固定し、メニュー自体を上下スクロールさせます。 */
        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height));
        padding: 24px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        background: rgba(255, 255, 255, 0.99);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu nav {
    width: min(100%, 680px);
        margin: 0 auto;
  }

  .mobile-menu ul {
    display: grid;
        margin: 0 0 24px;
        padding: 0;
        border-top: 1px solid var(--line);
        list-style: none;
  }

  .mobile-menu li {
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu li a {
    display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 60px;
        color: var(--navy);
        font-weight: 700;
  }

  .mobile-menu li a:visited {
    color: var(--visited);
  }

  .mobile-menu li a::after {
    color: var(--orange);
        content: "→";
  }
}

@media (max-width: 900px) {
  .global-nav {
    display: none;
}


  .menu-toggle {
    display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 8px;
        color: var(--navy);
        background: transparent;
        border: 0;
        cursor: pointer;
  }

  .section {
    padding: 88px 0;
	}

  .contact-panel {
    align-items: flex-start;
        flex-direction: column;
  }

  .contact-actions {
    width: 100%;
        flex-basis: auto;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 68px;
  }

  body {
    padding-bottom: 64px;
        font-size: 16px;
  }

  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .header-inner {
    width: calc(100% - 28px);
        gap: 12px;
  }

  .brand {
    gap: 0;
  }

  .brand-mark {
    min-width: 106px;
        min-height: 40px;
        padding: 7px 15px;
        font-size: 22px;
  }

  .header-inner .brand-label {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .menu-toggle-label {
    position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
  }

  .button-large {
    min-height: 54px;
        padding-inline: 20px;
        font-size: 16px;
  }

  .contact-panel h2 {
    font-size: clamp(24px, 9vw, 26px);
  }

  .contact {
    padding: 0;
  }

  .contact-panel {
    width: 100%;
		padding: 56px 26px;
		border-radius: 0;
		box-shadow: none;
  }

  .footer-main {
    grid-template-columns: 1fr;
        gap: 38px;
				text-align: center;
				padding: 40px 0px 10px;
		}
  .brand {
    gap: 7px
  }

  .brand-copy-main {
    font-size: 7.5px
  }

  .footer-main nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    align-items: flex-start;
        flex-direction: column;
        gap: 8px;
  }

  .mobile-fixed-cta {
    position: fixed;
        z-index: 900;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        height: 64px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 22px rgba(18, 58, 90, 0.1);
        backdrop-filter: blur(12px);
  }

  .mobile-fixed-cta a {
    display: flex;
        align-items: center;
        justify-content: center;
        color: var(--navy);
        border: 2px solid var(--navy);
        font-weight: 800;
  }

  .mobile-fixed-cta a:first-child {
    color: var(--white);
        background: var(--orange);
        border-color: var(--orange);
        border-radius: 8px 0 0 8px;
  }

  .mobile-fixed-cta a:last-child {
    border-radius: 0 8px 8px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
        transform: none;
  }
}

/* ===== Content tree renewal adjustments ===== */

.global-nav > ul > li {
  position: relative;
}

.global-nav .has-submenu > a {
  padding-right: 16px;
}

.global-nav .has-submenu > a::before {
  position: absolute;
    top: 50%;
    right: 0;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: translateY(-65%) rotate(45deg);
    opacity: 0.75;
}

.global-nav .submenu {
  position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    z-index: 20;
    display: block;
    min-width: 230px;
    padding: 12px;
    list-style: none;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(18,58,90,0.1);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(18,58,90,0.14);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.global-nav .submenu::before {
  position: absolute;
    top: -14px;
    right: 0;
    left: 0;
    height: 14px;
    content: "";
}

.global-nav .has-submenu:hover .submenu,
.global-nav .has-submenu:focus-within .submenu {
  opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.global-nav .submenu li + li {
  margin-top: 3px;
}

.global-nav .submenu a {
  display: block;
    padding: 10px 12px;
    color: var(--navy);
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.45;
}

.global-nav .submenu a:visited {
  color: var(--visited);
}

.global-nav .submenu a::after,
.global-nav .submenu a::before {
  display: none;
}

.global-nav .submenu a:hover,
.global-nav .submenu a:focus-visible {
  color: var(--orange-dark);
    background: var(--cream);
}

.mobile-menu-section + .mobile-menu-section {
  margin-top: 20px;
}

.mobile-menu-title {
  margin: 0 0 8px;
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.mobile-menu .mobile-menu-section ul {
  margin-bottom: 0;
}

.footer-main-tree {
  grid-template-columns: minmax(260px, 0.5fr) minmax(0, 1.5fr);
}

.footer-sitemap {
  display: grid !important;
	grid-template-columns: repeat(4, minmax(120px, 1fr));
	gap: 28px !important;
}

.footer-sitemap a {
  display: block;
    padding: 4px 0;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.footer-sitemap strong a {
  display: block;
    margin-bottom: 12px;
    color: var(--yellow);
    font-size: 16px;
    line-height: 1.5;
}

.footer-sitemap strong a:hover {
	opacity: 0.7;
}

.footer-bottom {
  flex-wrap: wrap;
}

@media (max-width: 1050px) {
	.footer-sitemap {
		grid-template-columns: repeat(3, minmax(120px, 1fr));
	}
}

@media (max-width: 900px) {
  .footer-main-tree {
    grid-template-columns: 1fr;
  }

  .footer-sitemap {
    display: none!important;
		grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 720px) {
  .mobile-menu {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .footer-sitemap {
    grid-template-columns: 1fr !important;
  }
}
