@charset "UTF-8";
/*
 * =========================================================
 * IT未来高校 Webサイト - スタイルシート
 * =========================================================
 * 【編集の目安】
 * 1. 基本設定・共通パーツ
 * 2. ヘッダー／グローバルナビゲーション
 * 3. トップページ各セクション
 * 4. フッター・固定リンク
 * 5. レスポンシブ（900px以下／560px以下）
 * 6. モバイルメニュー・iOS Safari調整
 * 7. お問い合わせエリア
 */
/* =========================================================
   1. 基本設定・共通スタイル
========================================================= */
:root {
  --navy: #06172e;
  --blue: #2861a4;
  --text: #222;
  --muted: #777;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: "Noto Sans JP",sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

i {
  font-size: 18px;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 82px;
  padding: 18px 3.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(180deg,rgba(0,0,0,.35),transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  color: #fff;
}

.brand-mark {
  height: 60px;
  width: auto;
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .04em;
}

.brand-name small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .08em;
}

.global-nav>ul {
  display: flex;
  align-items: center;
  gap: clamp(12px,2vw,30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-nav li {
  position: relative;
}

.global-nav a,.submenu-toggle {
  font: inherit;
  font-size: 13px;
  color: #fff;
  background: none;
  border: 0;
  padding: 12px 0;
  cursor: pointer;
  white-space: nowrap;
}

.submenu-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.submenu-parent-link {
  display: block;
}

.submenu-toggle {
  display: none;
}

.global-nav a:hover,.submenu-toggle:hover {
  opacity: .7;
}

.submenu {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 180px;
  padding: 8px 0!important;
  list-style: none;
  background: rgba(4,22,43,.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .25s;
  box-shadow: 0 8px 24px #0002;
}

.has-submenu:hover>.submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 9px 18px;
}

.menu-toggle {
  display: none;
}

/* =========================================================
   2. ヘッダー・ヒーローエリア
========================================================= */
.hero {
  height: min(57vw,990px);
  min-height: 460px;
  position: relative;
  overflow: hidden;
  background: #53677a url("../assets/hero-poster.svg") center/cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-copy {
  position: absolute;
  left: 8%;
  bottom: 12%;
  color: white;
  text-shadow: 0 2px 15px #0005;
  letter-spacing: .16em;
  font-size: clamp(16px,2vw,25px);
}

/* =========================================================
   3. トップページ各コンテンツ
========================================================= */
.section-wrap,.blue-section {
  padding: 76px max(5%,calc((100% - var(--max))/2));
}

.blue-section {
  color: #fff;
  background: linear-gradient(110deg,#326caf 0%,#17467e 48%,#020d1c 100%);
  display: grid;
  grid-template-columns: 24% 1fr;
  gap: 4%;
}

.section-intro {
  max-width: 260px;
}

.eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: .13em;
  font-weight: 600;
  color: #777;
  margin-bottom: 7px;
}

.light .eyebrow {
  color: #b8d4f3;
}

.section-intro h2,.contact h2,.insta-copy h2 {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 12px;
  font-weight: 700;
}

.section-intro p {
  font-size: 12px;
  color: #666;
  line-height: 1.9;
  margin: 0 0 16px;
}

.section-intro.light p {
  color: #d5e4f5;
}

.text-link {
  display: inline-block;
  font-size: 13px;
  border-bottom: 1px solid #999;
  transition: 0.2s;
  padding-bottom: 3px;
}

.text-link:hover {
  letter-spacing: 0.2em;
  opacity: 0.7;
  transition: 0.2s;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 36px;
}

.feature-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: start;
}

.feature-item h3 {
  font-size: 15px;
  margin: 0 0 5px;
}

.feature-item p {
  font-size: 13px;
  color: #d4e1f0;
  line-height: 1.8;
  margin: 0;
}

.news {
  display: grid;
  grid-template-columns: 22% 1fr 24%;
  gap: 3%;
  align-items: center;
  background: #f4f4f4;
}

.news-list {
  border-left: 2px solid #bbb;
  padding-left: 24px;
}

.news-list a {
  display: flex;
  gap: 25px;
  padding: 5px 0;
  font-size: 13px;
}

a.news-item:hover {
  opacity: 0.7;
  transition: 0.2s;
}

.news-list time {
  color: #777;
  white-space: nowrap;
}

.welcome {
  height: 120px;
  overflow: hidden;
}

.courses {
  display: grid;
  grid-template-columns: 22% 1fr;
  gap: 4%;
  align-items: center;
}

.course-list {
  display: grid;
  gap: 16px;
}

.course-card {
  display: grid;
  grid-template-columns: 31% 1fr;
  border: 1px solid #aaa;
  min-height: 150px;
  overflow: hidden;
}

.course-card img {
  min-height: 150px;
}

.course-card div {
  padding: 22px 28px;
}

.course-card h3 {
  font-size: 13px;
  margin: 0 0 8px;
}

.course-card p {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.9;
}

.achievements {
  align-items: center;
}

.achievement-cards {
  display: flex;
  justify-content: center;
  gap: 70px;
}

.mini-card {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.mini-card img {
  width: 200px;
  height: 200px;
  background: #e5e5e5;
  margin-bottom: 10px;
}

.events {
  display: grid;
  grid-template-columns: 22% 1fr;
  gap: 4%;
  align-items: center;
  background: #f5f5f5;
}

.small-copy {
  font-size: 10px!important;
}

.event-cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
}

.event-cards .mini-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.school-life {
  align-items: center;
  grid-template-columns: 22% 32% 1fr;
}

.life-feature {
  height: 190px;
  overflow: hidden;
}

.message {
  padding-left: 5%;
}

.message p {
  font-size: 11px;
  margin: 5px 0;
}

.outline-link {
  display: inline-block;
  border: 1px solid currentColor;
  color: inherit;
  font-size: 13px;
  padding: 6px 28px;
  margin-top: 12px;
  min-width: 160px;
  text-align: center;
  transition: 0.3s;
}

.outline-link:hover {
  opacity: 0.7;
  letter-spacing: 0.1em;
  transition: 0.3s;
}

.instagram {
  display: grid;
  grid-template-columns: 24% 1fr;
  gap: 5%;
  padding: 65px max(5%,calc((100% - var(--max))/2));
  background: #030303;
  color: #fff;
  align-items: center;
}

.insta-copy .eyebrow {
  color: #aaa;
}

.insta-copy h2 {
  font-size: 18px;
}

.insta-copy p {
  font-size: 13px;
  color: #ccc;
}

.insta-gallery {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 22px;
}

.insta-gallery a {
  aspect-ratio: 1;
  overflow: hidden;
}

.clubs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.club-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px 40px;
}

.club-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 16px;
  align-items: center;
}

.club-card img {
  aspect-ratio: 1;
  background: #e5e5e5;
}

.club-card h3 {
  font-size: 15px;
  margin: 0 0 5px;
  letter-spacing: 0.1em;
}

.club-card p {
  font-size: 13px;
  color: #777;
  margin: 0;
  line-height: 1.7;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 230px;
  background: #f1f1f1;
}

.contact-info {
  padding: 38px max(8%,calc((100vw - var(--max))/2));
}

.contact h2 {
  font-size: 17px;
  margin-bottom: 7px;
}

.contact-info>p,.contact-address {
  font-size: 13px;
}

.contact-address p {
  margin-bottom: 20px;
}

.contact-details {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.contact-details p {
  margin: 2px 0;
}

.contact-details b {
  display: inline-block;
  width: 48px;
}

.contact-address {
  padding: 50px 8%;
  background: linear-gradient(90deg,#ffffffcc,#ffffff55),url("../assets/contact-bg.png") center/cover;
}

.map-link {
  border: 1px solid #555;
  border-radius: 20px;
  padding: 5px 25px;
  font-size: 13px;
  transition: 0.2s;
}

.map-link:hover {
  opacity: 0.7;
  letter-spacing: 0.1em;
  transition: 0.2s;
}

.related {
  padding-top: 60px;
  padding-bottom: 75px;
}

.centered {
  text-align: center;
  margin: 0 auto 28px;
}

.related-links {
  display: flex;
  justify-content: center;
  gap: 50px;
}

.related-links a {
  width: auto;
  height: 90px;
  overflow: hidden;
}

/* =========================================================
   4. フッター・固定表示
========================================================= */
.site-footer {
  background: #050505;
  color: #fff;
  padding: 30px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  min-width: 220px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer nav a {
  font-size: 11px;
  color: #ddd;
}

.page-top {
  position: fixed;
  right: 18px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #20579b;
  color: white;
  z-index: 10;
}

.fixed-links {
  position: fixed;
  right: 0;
  top: 38%;
  z-index: 12;
  display: grid;
}

.fixed-links a {
  writing-mode: vertical-rl;
  background: #06172e;
  color: #fff;
  padding: 15px 9px;
  font-size: 13px;
  border: 1px solid #fff;
  height: 150px;
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
  transition: 0.3s;
}

.fixed-links a:hover {
  opacity: 0.7;
  transition: 0.3s;
}

.fixed-links a+a {
  background: linear-gradient(117deg, rgba(43, 98, 163, 1) 0%, rgba(21, 64, 117, 1) 49%, rgba(6, 24, 47, 1) 100%);
}

.hover-image {
  overflow: hidden;
}

.hover-image img {
  transition: transform .65s cubic-bezier(.2,.7,.2,1),filter .65s;
}

.hover-image:hover img {
  transform: scale(1.07);
  filter: brightness(1.04);
}

/* =========================================================
   5. レスポンシブ（タブレット）
========================================================= */
@media (max-width:900px) {
  .site-header {
    height: 70px;
    padding: 14px 5%;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 10px;
    z-index: 3;
  }
  .menu-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    display: block;
  }
  .global-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: auto;
    min-height: 115vh;
    min-height: 100dvh;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-top: calc(90px + env(safe-area-inset-top));
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
  }
  .global-nav.is-open {
    transform: translateX(0);
  }
  .global-nav>ul {
    display: block;
  }
  .global-nav li {
    border-bottom: 1px solid #ffffff26;
  }
  .global-nav a,.submenu-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 0;
    font-size: 13px;
  }
  .submenu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #102b4a;
    padding: 0 0 8px 15px!important;
  }
  .has-submenu.is-open>.submenu {
    display: block;
  }
  .hero {
    height: 65vw;
    min-height: 420px;
  }
  .section-wrap,.blue-section {
    padding: 55px 6%;
  }
  .blue-section,.news,.courses,.events,.school-life,.instagram {
    grid-template-columns: 1fr;
  }
  .section-intro {
    max-width: none;
    margin-bottom: 28px;
  }
  .feature-grid {
    gap: 22px;
  }
  .news {
    gap: 20px;
  }
  .news-list {
    padding-left: 15px;
  }
  .welcome {
    height: auto;
    width: 70%;
    margin: 20px auto 0px;
  }
  .school-life {
    gap: 20px;
  }
  .message {
    padding: 0;
  }
  .life-feature {
    height: 240px;
  }
  .insta-gallery {
    gap: 10px;
  }
  .club-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .contact-info {
    padding: 35px 7%;
  }
  .contact-address {
    padding: 45px 7%;
  }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-footer nav {
    gap: 10px 18px;
  }

}

/* =========================================================
   6. レスポンシブ（スマートフォン）
========================================================= */
@media (max-width:560px) {
  body {
    font-size: 13px;
  }
  .brand {
    min-width: 0;
  }
  .brand-name {
    font-size: 12px;
  }
  .hero {
    min-height: 440px;
    height: 88vh;
    max-height: 680px;
  }
  .hero-copy {
    bottom: 9%;
    left: 7%;
  }
  .section-wrap,.blue-section {
    padding: 30px 6% 70px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .feature-item {
    grid-template-columns: 62px 1fr;
  }
  .news-list a {
    gap: 12px;
    font-size: 10px;
  }
  .news-list time {
    font-size: 9px;
  }
  .course-card {
    grid-template-columns: 1fr;
  }
  .course-card img {
    height: 180px;
  }
  .course-card div {
    padding: 16px;
  }
  .achievement-cards {
    gap: 22px;
  }
  .mini-card img {
    width: 120px;
    height: 120px;
  }
  .event-cards {
    gap: 12px;
  }
  .event-cards .mini-card {
    font-size: 9px;
  }
  .insta-gallery {
    grid-template-columns: repeat(2,1fr);
  }
  .club-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .club-card {
    grid-template-columns: 34% 1fr;
  }
  .contact {
    grid-template-columns: 1fr;
  }
  .contact-info {
    padding: 35px 7%;
  }
  .contact-address {
    min-height: 140px;
  }
  .related-links {
    gap: 12px;
    flex-direction: column;
    align-items: center;
  }
  .related-links a {
    width: min(80%,260px);
    height: 95px;
  }
  .fixed-links {
    display: none;
  }

}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*::before,*::after {
    transition: none!important;
    animation: none!important;
  }

}

/* =========================================
   Responsive layout and mobile navigation
========================================= */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  position: relative;
}

img, video {
  max-width: 100%;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--menu-viewport-height, 115vh);
  z-index: 1000;
  background: rgba(0,0,0,.52);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}

.menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

@media (max-width:900px) {
  .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 70px;
    padding: 12px 5%;
    z-index: 1002;
  }
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1005;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s ease, opacity .3s ease;
  }
  .menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .global-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    width: min(360px, 88vw);
    max-width: 100%;
    height: var(--menu-viewport-height, 115vh);
    max-height: var(--menu-viewport-height, 115vh);
    margin: 0;
    padding: calc(82px + env(safe-area-inset-top, 0px)) 26px calc(28px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    background: #06172e;
    transform: translate3d(105%,0,0);
    visibility: hidden;
    transition: transform .3s ease;
    z-index: 1003;
  }
  .global-nav {
    height: 115vh;
    height: calc(var(--vh, 1vh) * 115);
    height: 100dvh;
  }
  .global-nav.is-open {
    transform: translate3d(0,0,0);
    visibility: visible;
    height: calc(var(--vh, 1vh) * 115);
  }
  .global-nav > ul {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  .global-nav li {
    width: 100%;
    max-width: 100%;
    border-bottom: 1px solid #ffffff26;
  }
  .global-nav a, .submenu-toggle {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 14px 0;
    margin: 0;
    font-size: 13px;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }
  .submenu-heading {
    display: flex;
    align-items: stretch;
    gap: 8px;
  }
  .submenu-parent-link {
    flex: 1 1 auto;
    min-width: 0;
  }
  /* 展開ボタンをリンクと独立させる */
  .submenu-toggle {
    display: block;
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    padding: 14px 0 !important;
  }
  .submenu-toggle::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    color: #fff;
  }
  .has-submenu.is-open > .submenu-heading > .submenu-toggle::after {
    content: "−";
  }
  .submenu {
    position: static;
    display: none;
    width: 100%;
    max-width: 100%;
    padding: 0 0 8px 15px !important;
    margin: 0;
    background: #102b4a;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-submenu.is-open > .submenu {
    display: block;
  }
  .submenu a {
    padding: 12px 10px;
    font-size: 12px;
  }
  /* Keep the hero landscape on mobile; video fills the 16:9 frame. */
  .hero {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  .hero-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
  }
  .hero-shade {
    position: absolute;
    inset: 0;
  }
  .hero-copy {
    left: 6%;
    bottom: 7%;
    font-size: clamp(11px,3vw,16px);
  }
  .fixed-links {
    display: none;
  }
  main, section, .section-wrap, .blue-section, .instagram, .contact, .site-footer {
    min-width: 0;
    max-width: 100%;
  }

}

@media (max-width:560px) {
  .site-header {
    height: 64px;
    padding: 10px 4%;
  }
  .global-nav {
    width: min(340px, 90vw);
    padding: calc(76px + env(safe-area-inset-top, 0px)) 22px calc(25px + env(safe-area-inset-bottom, 0px));
  }
  .hero {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .feature-grid, .course-list, .event-cards, .club-grid, .insta-gallery, .related-links {
    min-width: 0;
    max-width: 100%;
  }
  .course-card, .club-card {
    min-width: 0;
    max-width: 100%;
  }
  .site-footer nav {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .feature-item h3 {
    font-size: 14px;
    margin: 0 0 5px;
  }
  .feature-item p {
    font-size: 11px;
    line-height: 1.6;
  }
  .section-intro {
    margin-bottom: 0;
  }
  .section-intro h2,.contact h2,.insta-copy h2 {
    font-size: 16px;
  }
  .section-intro p {
    font-size: 11px;
    line-height: 1.5;
  }

}

@media (prefers-reduced-motion:reduce) {
  .menu-overlay, .global-nav, .menu-toggle span {
    transition: none !important;
  }

}

/* =========================================
   iOS Safari 対応：モバイルメニューの高さ調整
========================================= */
@media (max-width: 900px) {
  /* メニュー表示時の画面サイズ */
  :root {
    --menu-viewport-height: 100dvh;
  }
  /* 背景オーバーレイ */
  .menu-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: var(--menu-viewport-height, 100dvh);
    max-height: var(--menu-viewport-height, 100dvh);
    overflow: hidden;
  }
  /* モバイルメニュー本体 */
  .global-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    width: min(360px, 88vw);
    height: var(--menu-viewport-height, 100dvh);
    min-height: 0;
    max-height: var(--menu-viewport-height, 100dvh);
    box-sizing: border-box;
    padding-top: calc(82px + env(safe-area-inset-top, 0px));
    padding-right: 26px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    padding-left: 26px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    transform: translate3d(105%, 0, 0);
    visibility: hidden;
  }
  .global-nav.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }

}

/* 小型スマートフォン */
@media (max-width: 560px) {
  .global-nav {
    width: min(340px, 90vw);
    padding-top: calc(76px + env(safe-area-inset-top, 0px));
    padding-right: 22px;
    padding-bottom: calc(25px + env(safe-area-inset-bottom, 0px));
    padding-left: 22px;
  }

}

/* 高さ調整 */
.container {
  padding: 3rem;
}

/* 背景設定 */
.background {
  position: fixed;
  background-color: #f0f0f0;
  inset: -20px;
  z-index: -1;
}

/* ステータスバー透過防止 */
.for-status-bars {
  position: fixed;
  top: 0;
  pointer-events: none;
  height: 5px;
  width: 100%;
  background-color: #000;
  mix-blend-mode: lighten;
}

/* タブバー透過防止 */
.for-tab-bars {
  position: fixed;
  bottom: 0;
  pointer-events: none;
  height: 4px;
  width: 100%;
  background-color: #000;
  mix-blend-mode: lighten;
}

/* =========================================
   CONTACT：3カラムレイアウト
   背景画像はセクション全体に1枚で配置
========================================= */
.contact {
  display: grid;
  gap: 4%;
  grid-template-columns: 30% 25.5% 44.5%;
  align-items: center;
  min-height: 300px;
  padding: 35px max(4.5%, calc((100% - var(--max)) / 2));
  background: linear-gradient( 90deg, rgba(255, 255, 255, .93) 0%, rgba(255, 255, 255, .88) 48%, rgba(255, 255, 255, .35) 100% ), url("../assets/contact-bg.png") center / cover no-repeat;
}

/* 1カラム目：お問い合わせ案内 */
.contact-info {
  padding: 0;
}

.contact h2 {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.contact-info > p {
  font-size: 12px;
  line-height: 1.9;
  margin: 0;
}

/* 2カラム目：電話・FAX・メール */
.contact-details {
  margin: 0;
  padding: 0 20px;
  border-left: 1px solid #333;
  font-size: 12px;
  letter-spacing: .05em;
}

.contact-details p {
  margin: 2px 0;
  line-height: 1.9;
}

.contact-details b {
  display: inline-block;
  width: 40px;
  font-weight: 500;
}

/* 3カラム目：住所・Google map */
.contact-address {
  padding: 0 0 0 20px;
  border-left: 1px solid #333;
  font-size: 12px;
  background: none;
}

.contact-address p {
  margin: 0 0 10px;
  line-height: 1.8;
}

/* Google mapボタン */
.map-link {
  display: inline-block;
  min-width: 110px;
  padding: 3px 20px;
  border: 1px solid #333;
  border-radius: 20px;
  font-size: 11px;
  text-align: center;
  transition: .2s;
}

.map-link:hover {
  opacity: .6;
}

/* タブレット */
@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1.1fr 1fr;
    gap: 25px 0;
    padding: 35px 6%;
  }
  .contact-info {
    grid-column: 1 / -1;
  }
  .contact-details {
    padding: 0 20px;
  }
  .contact-address {
    padding: 0 0 0 20px;
  }

}

/* スマートフォン */
@media (max-width: 560px) {
  .contact {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 35px 7%;
    background-position: center;
  }
  .contact-info {
    grid-column: auto;
  }
  .contact-details {
    padding: 15px 0 0;
    border-left: none;
    border-top: 1px solid #999;
  }
  .contact-address {
    padding: 15px 0 0;
    border-left: none;
    border-top: 1px solid #999;
  }
  .contact h2 {
    font-size: 17px;
  }

}

/* =========================================
   Header: logo sizing and third-level menus;
========================================= */
.brand {
  flex-shrink: 0;
}

.brand-mark {
  display: flex;
  flex: 0 0 60px;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  overflow: visible;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* PC: 3階層目は親項目の右側に展開 */
@media (min-width: 901px) {
  .global-nav .submenu .has-submenu {
    position: relative;
  }
  .global-nav .submenu .has-submenu > .submenu {
    top: 0;
    left: 100%;
    margin-left: 0;
    transform: translateX(8px);
  }
  .global-nav .submenu .has-submenu:hover > .submenu, .global-nav .submenu .has-submenu:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
  .global-nav .submenu .has-submenu > .submenu-heading::after {
    content: "›";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    pointer-events: none;
  }
  .global-nav .submenu .has-submenu > .submenu-heading {
    position: relative;
    padding-right: 18px;
  }

}

/* Mobile/tablet: nested menus are tap-to-toggle and remain in the flow */
@media (max-width: 900px) {
  .global-nav .submenu .submenu {
    position: static;
    width: 100%;
    padding-left: 14px !important;
    background: #183858;
    box-shadow: none;
    transform: none;
  }
  .global-nav .submenu .has-submenu > .submenu-heading {
    display: flex;
    align-items: stretch;
    gap: 8px;
  }
  .global-nav .submenu .submenu-parent-link {
    flex: 1 1 auto;
    min-width: 0;
  }
  .global-nav .submenu .submenu-toggle {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
  }
  .global-nav .submenu .submenu .submenu a {
    padding-left: 14px;
    font-size: 12px;
  }

}

@media (max-width: 900px) {
  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }
  .brand-mark {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
  }
  .has-submenu.is-open > .submenu-heading > .submenu-toggle::after {
    content: "−";
  }

}
