/*** ボディー ***/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  padding-top: 80px; /* ヘッダー高さ分 */
}

/* ヘッダー基本スタイル */
header {
  position: fixed; /* 追加: ヘッダー固定 */
  top: 0;
  width: 100%;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 1rem clamp( 2rem, 7.5vw, 500px );
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  justify-content: flex-start;
  /* flex-wrap: wrap; */
  box-sizing: border-box; /* 追加: padding含めてwidth計算 */
}

.header-left img {
  height: 40px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 0  1.25vw;
  /* margin-left: 50px; */
  justify-content: flex-start;
}

.header-nav a {
  margin: 0 0.1rem; /* ← 左右の間隔を広めに変更 */
  padding: 0.5rem 0.5rem; /* ← 上下左右に余白をもたせる */
  text-decoration: none;
  color: #347188;
  font-weight: bold;
  display: inline-block; /* paddingが効くように */
}

.contact-btn {
  background: #4a8ca4;
  color: #fff !important; /* ← 白色を固定 */
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-left: 1rem;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-size: 14px;
  word-break: keep-all; /* 追加: 電話番号折り返さない */
}

header {
  justify-content: space-between; /* 全体で等間隔 */
  justify-content: center; /* 全体で等間隔 */
  gap: 0 4cqw;
}

.header-left,
.header-right,
.menu-toggle {
  flex: 0 0 auto;
}

.header-right {
  /* margin: 0 0 0 auto; */
}

/* ハンバーガーメニュー */
.menu-toggle {
  display: none; /* デフォルトは非表示 */
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #347188;
  z-index: 1000;
}

.nav-center {
  position: relative;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  header {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }

  .header-nav {
    display: none;
    position: fixed;
    top: 95px;
    right: 0;
    background: #fff;
    flex-direction: column;
    width: 155px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 999;
    border-radius: 8px; /* 角丸 */
    padding: 0.5rem 1rem; /* 全体に余白追加 */
    justify-content: flex-start;
  }

  .header-nav a {
    margin: 0 0.1rem;
    padding: 0.5rem 0.5rem;
    text-align: right; /* 右寄せ（好みで中央でもOK） */
    white-space: nowrap; /* 折り返し防止 */
  }

  .header-nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block; /* スマホでは表示 */
    order: 3;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .header-left {
    order: 1;
    flex: 0 0 auto;
  }

  .header-right {
    order: 2;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 0 10px;
  }
}

@media screen and (max-width: 768px) {
  .header-nav {
    width: 100%;
  }

  .header-nav a {
    text-align: center;
  }
}

/*** ヒーロー ***/
.hero {
  position: relative;
  height: clamp(500px, 75vh, 1000px);
  text-align: center;
  background: url(../images/mv/index_hero.webp) no-repeat center;
  background-size: cover;
}

.hero hgroup {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 100%;
  width: 45vw;
  min-width: 32.5rem; 
  padding: 0 0 0 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10vh;
  height: 60%;
}

.hero h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: .05em;
  /* text-shadow: .5px 0 0 #347188, 0 .5px 0 #347188, -.5px 0 0 #347188, 0 -.5px 0 #347188; */
  -webkit-text-stroke: 3px #347188;
  paint-order: stroke;
}

.hero p {
  font-size: 1.2rem;
  -webkit-text-stroke: .5px #fff;
  color: #347188;
  paint-order: stroke;
  font-weight: 500;
}

.courses-intro {
  padding: 2rem 1rem;
  text-align: center;
}

.course-card {
  border: 1px solid #ddd;
  border-left: 5px solid #4a8ca4;
  padding: 1.5rem;
  margin: 1.5rem auto 0;
  max-width: 600px;
  border-radius: 8px;
  background: #f9f9f9;
  text-align: left;
}

.course-card h3 {
  margin-top: 0;
  color: #347188;
}

/* コール・トゥ・アクション */
.cta {
  text-align: center;
  margin: 3rem 0;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #4a8ca4;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #347188;
}

/* フッター */
footer {
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid #ddd;
}

.centered-block {
  display: flex;
  justify-content: center;
}

.centered-block-inner {
  text-align: left;
  max-width: 600px;
}

/* ヘッダー情報の追加 */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-size: 14px;
}

.company-link {
  color: #347188;
  font-weight: bold;
  margin-bottom: 4px;
  text-decoration: none;
}

.company-link:hover {
  text-decoration: underline;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.contact-info .tel {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  white-space: nowrap; /* 追加: 電話番号を折り返さない */
}

.contact-info .tel a {
  text-decoration: none;
  color: #000;
}

.contact-info .bar {
  width: 100%;
  height: 1px;
  background-color: #999;
  margin: 4px 0;
}

.contact-info .hours {
  font-size: 13px;
  color: #666;
}

/* トップページのプラス・ワンITスクールの特長 */
.school-features {
  background: #f9fcfd;
  padding: 4rem 1rem;
  text-align: center;
}

.school-features .container {
  width: 75%;
  max-width: 2048px;
  margin: 0 auto;
}

.school-features h2 {
  font-size: 1.8rem;
  color: #347188;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1rem;
  margin-bottom: 3rem;
  color: #555;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card img {
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  color: #347188;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* トップページの受講生のキャリア事例 */
.case-studies {
  padding: 60px 10%;
  background-color: #f8f8f8;
  text-align: center;
}

.case-studies h2 {
  font-size: 1.8rem;
  color: #347188;
  margin-bottom: 1rem;
}

.case-intro {
  font-size: 16px;
  margin-bottom: 30px;
  color: #555;
}

.case-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 2048px;
  margin: 0 auto;
}

.case-card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  width: clamp(260px, 30%, 480px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.case-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #347188;
}

.case-card p {
  font-size: 14px;
  margin: 6px 0;
}

/* トップページの施設紹介セクション */
.facility-section h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #347188;
  margin-bottom: 1rem;
}

.facility-section {
  padding: 60px 10%;
  background-color: #f9fcfd;
  display: flex;
  flex-direction: column;
}

.facility-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "h3 h3"
                        "img map"
                        "tbl map";
  gap: 1rem;
  max-width: 1024px;
  margin: 0 auto;
}

.facility-block:not(:last-child) {
  margin: 0 auto 10vh;
}


@media screen and (min-width: 2560px) {
  .facility-section {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
  }
  
  .facility-section h2 {
    width: 100%;
  }

  .facility-block:nth-child(n) {
    margin: 0;
  }
}


.facility-block h3 {
  grid-area: h3;
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
}

.facility-image {
  grid-area: img;
}

.facility-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.facility-content {
  /* flex: 2 1 500px; */
  grid-area: tbl;
  height: fit-content;
}

.facility-content dl {
  display: flex;
  flex-wrap: wrap;
  gap: .5em;
  margin: 0;
  font-size: 16px;
  color: #333;
}

.facility-content dt {
  align-self: flex-start;
  width: 5em;
  text-align: center;
  background: #777;
  color: #fff;
  padding: .125em 0;
}

.facility-content dd {
  margin: 0;
  width: calc(100% - 5em - .5em);
  text-align: justify;
  text-align-last: left;
}

.map-container {
  grid-area: map;
  width: 100%;
  height: 100%;
  border: 0;
}


/* スマホ表示用 */
@media (max-width: 768px) {
  .facility-block {
    flex-direction: column;
  }

  .facility-image, .facility-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* 画像は画面幅に合わせて縮小 */
img {
  max-width: 100%;
  height: auto;
}

/* ヒーローセクション */
.hero h1 {
  font-size: 2rem;
}
.hero p {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .hero hgroup {
    width: calc(100% - 1rem);
    min-width: auto;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    height: 20%;
    padding: 0;
  }

  .top_hero hgroup {
    height: 80%;
  }

  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 1024px) {
  .features-grid {
    padding: 0 10%;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* features-grid スマホは1列 */
@media (max-width: 768px) {
  .features-grid {
    padding: 0 5%;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* course-card 幅調整 */
.course-card {
  width: 100%;
  box-sizing: border-box;
}

/* facility-block スマホは縦並び */
@media (max-width: 768px) {
  .facility-block {
    flex-direction: column;
  }
  .facility-image, .facility-content {
    max-width: 100%;
  }
}

/* メニュー（nav）のリンクはタップしやすく */
.header-nav a {
  padding: 0.8rem 1.2rem;
  padding: 0.8rem 0.25rem;
  display: inline-block;
  white-space: nowrap;
}

.header-nav a:last-child {
  padding: 0.8rem .75rem;
}



/*********/
/* 追加 */
/*******/
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

.inline_block {
  display: inline-block;
}

h2:has(> .material-symbols-outlined) {
  line-height: 1.25;
}

.material-symbols-outlined {
  color: #347188;
  transform: translateY(.125em);
  margin: 0 .25em 0 0;
  font-size: 1.15em;
  font-weight: bold;
}

.fade {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 1.5s, transform 1s;
}

.fade.active {
	opacity: 1;
	transform: translateY(0);
}

/* .icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #000;
  overflow: hidden;
} */

.number {
  margin: 0 .125em;
  font-size: 1.25em;
  font-weight: 600;
  line-height: 1;
}

section:has(> video) {
  text-align: center;
  padding: 2em 0;
}

section video {
  width: clamp(400px, 70%, 1920px);
  cursor: pointer;
}

.courses-intro:has(> .course-card) {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  width: 95%;
  max-width: 3000px;
  padding: 60px 10%;
  margin: 0 auto;
}

.courses-intro:has(> .course-card) h2 {
  width: 100%;
  font-size: 1.8rem;
  color: #347188;
  margin-bottom: -1rem;
} 

.course-card {
  width: calc((100% - 2rem) / 2);
  border: none;
  padding: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: translate .3s;
}

.course-card:hover {
  translate: 0 -5px;
}

.course-card > *:not(h3) {
  width: 90%;
  margin: 0 auto;
}

.course-card > h3 {
  padding: 0 1em;
  text-align: center;
  background: hsl(196, 70%, 75%);
  background: #347188;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  height: 4.5em;
  line-height: 1.3;
  display: grid;
  place-items: center;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.course-card .cta-button {
  display: block;
  width: 100%;
  text-align: right;
  background: transparent;
  text-decoration: underline;
  color: #347188;
  line-height: 1;
}

.course-card .cta-button::after {
  display: block;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
}

.course-card dl > div {
  display: flex;
  gap: 0 1em;
}

.course-card dl {
  display: flex;
  flex-direction: column;
  gap: 1rem 0;
  margin: 1em auto;
}

.course-card dl > div dt {
  width: 3.5em;
  height: 1.5em;
  align-self: flex-start;
  display: grid;
  place-items: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  background: #999;
  color: #fff;
}

.course-card dl > div dd {
  margin: 0;
  width: calc(100% - 3.5em);
}

.learning_content {
  padding: 0;
}

ul.learning_content {
  display: flex;
  flex-wrap: wrap;
  gap: .5em;
  padding: 1rem;
  margin: 1rem 0 0;
  width: 100%;
  list-style: none;
  background: #aaa;
  background: #ccc;
}

.learning_content li {
  padding: .5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  line-height: 1;
  display: flex;
  align-items: center;
}

.learning_content li::before {
  display: inline-block;
  content: "";
  width: 1rem;
  height: 1rem;
  margin: 0 .25em 0 0;
  background: center center no-repeat;
  background-size: contain;
}

.learning_content li.illustrator::before {
  background-image: url(../images/icon/adobe-illustrator.svg);
}

.learning_content li.photoshop::before {
  background-image: url(../images/icon/adobe-photoshop.svg);
}

.learning_content li.premierepro::before {
  background-image: url(../images/icon/adobe-premiere.svg);
}

.learning_content li.figma::before {
  background-image: url(../images/icon/figma.svg);
}

.learning_content li.Java::before {
  background-image: url(../images/icon/Java.svg);
}

.learning_content li.Oracle::before {
  background-image: url(../images/icon/Oracle.svg);
}

.learning_content li.Spring::before {
  background-image: url(../images/icon/Spring.svg);
}

.learning_content li.TypeScript::before {
  background-image: url(../images/icon/TypeScript.svg);
}

.learning_content li.chatgpt::before {
  background-image: url(../images/icon/chatgpt.svg);
}

.learning_content li.gemini::before {
  background-image: url(../images/icon/gemini.svg);
}

.learning_content li.firefly::before {
  background-image: url(../images/icon/firefly.svg);
}

.learning_content li.github::before {
  background-image: url(../images/icon/github.svg);
}

.learning_content li.html::before {
  background-image: url(../images/icon/html-5.svg);
}

.learning_content li.css::before {
  background-image: url(../images/icon/css-3.svg);
}

.learning_content li.javascript::before {
  background-image: url(../images/icon/javascript.svg);
}

.learning_content li.jquery::before {
  background-image: url(../images/icon/jquery.svg);
  width: 2.5rem;
}

.learning_content li.mysql::before {
  background-image: url(../images/icon/mysql-icon.svg);
}

.learning_content li.php::before {
  background-image: url(../images/icon/php.svg);
  width: 1.5rem;
}

.learning_content li.wordpress::before {
  background-image: url(../images/icon/wordpress-icon-alt.svg);
}

.learning_content li span {
  vertical-align: bottom;
}

main > .cta,
.courses-intro + .cta {
  margin: 0 auto 3rem;
  display: flex;
  justify-content: center;
  gap: 0 2rem;
}

.sns_link {
  display: flex;
  align-items: center;
  gap: 0 1rem;
  margin: 1rem auto;
  line-height: 1;
  width: 18.5rem;
}

@media (max-width: 1024px) {
  .case-studies,
  .facility-section,
  .courses-intro:has(> .course-card) {
    padding: 60px 2.5%;
  }

  section video {
    width: 95%;
  }
}

@media (max-width: 768px) {
  .pc {
    display: none;
  }

  header {
    padding:  1rem 1.25rem;
  }

  .header-right {
    align-items: center;
    margin: 0;
  }

  .header-left img {
    height: 36px;
  }

  .contact-info .tel {
    font-size: 16px;
  }
  
  .contact-info .hours {
    font-size: 12px;
  }
}

/* case-cards スマホは1列 */
@media (max-width: 768px) {
  .courses-intro:has(> .course-card),
  .case-cards {
    flex-direction: column;
    align-items: center;
  }

  .course-card {
    width: 98%;
    font-size: 87.5%;
  }

  section video {
    width: 100%;
  }
  
  .case-card {
    width: 90%;
  }

  .facility-block {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto 1fr;
    grid-template-areas: "h3"
                        "img"
                        "tbl"
                        "map";
    gap: 1rem;
  }

  .facility-block dl {
    font-size: 87.5%;
  }

  .school-features .container {
    width: 100%;
  }

  .facility-section {
    width: 95%;
    margin: 0 auto;
  }

  .case-studies,
  .facility-section,
  .courses-intro:has(> .course-card) {
    padding: 3rem 2.5%;
  }

}

@media screen and (max-width: 460px) {
  header {
    padding:  1rem .75rem 1rem .25rem;
  }

  .hero {
    /* padding: 2.5rem .5rem; */
      height: clamp(500px, 52.5vh, 1000px);
  }

  .hero h1 {
    font-size: 1.25rem;
  }

  .hero p {
    font-size: 1rem;
    -webkit-text-stroke: .5px #fff;
  }

  .section-lead {
    margin: 0 0 2rem;
  }

  .feature-card img {
    margin: 0;
  }

  .features-grid {
    padding: 0;
  }

  .feature-card {
    padding: 1rem .5rem;
  }

  .courses-intro:has(> .course-card) h2,
    h2:has(> .material-symbols-outlined) {
    font-size: 1.5rem;
  }

  .case-card {
    width: 95%;
  }

  .course-card > h3 {
    padding: 0 .5em;
  }

  .courses-intro:has(> .course-card) {
    width: 98%;
  }

  .case-studies,
  .facility-section,
  .courses-intro:has(> .course-card) {
    padding: 3rem 0;
  }

  .school-features {
    padding: 3rem .5em;
  }

  .case-intro {
    padding: 0 .5em;
    margin: 0 0 2rem;
  }

  .facility-section h2 {
    margin: 0 0 2rem;
  }

  .facility-content dd {
    width: calc(100% - 5em - 1em);
  }

  main > .cta,
  .courses-intro + .cta {
    font-size: 87.5%;
    gap: 0 1rem;
  }

  footer {
    padding: 1rem 0;
  }
}