/*====== 基本設定 ======*/
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #333;
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/*====== コンテンツ幅 ======*/
.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/*====== ヘッダー ======*/
header {
  background-color: #ffffff;
  color: #0a2342;
  padding: 15px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .logo {
  display: flex;
  align-items: center;
}
header .logo img {
  height: 60px;
  margin-right: 10px;
  border-radius: 4px;
}
header .logo span {
  font-size: 1.8rem;
  font-weight: bold;
  color: #0a2342;
}
.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  font-size: 0.95rem;
}
.contact-item:last-child {
  margin-bottom: 0;
}
.contact-item a {
  color: #0a2342;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.contact-item a:hover {
  color: #1f4e80;
}
.contact-item::before {
  content: attr(data-icon);
  margin-right: 5px;
  color: #1f4e80;
  font-weight: bold;
}

/*====== トップ画像 ======*/
.hero {
  width: 100%;
  max-height: 400px;
  height: 400px;
  overflow: hidden;
  border-top: 5px solid #1f4e80;
  border-bottom: 5px solid #1f4e80;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0a2342;
}
.hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/*====== ナビゲーションリンク =====*/
.links {
  display: flex;
  justify-content: center;
  background-color: #1f4e80;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  margin-bottom: 40px;
  border-bottom: 2px solid #1a3a60;
}
.links a {
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  display: block;
  font-size: 1.0rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
  letter-spacing: 0.5px;
  box-shadow: none;
  position: relative;
}
.links a:hover {
  background: #123c7c;
  color: #f9c74f;
  box-shadow: none;
}
.links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: #f9c74f;
  transition: width 0.3s ease-out, left 0.3s ease-out;
}
.links a:hover::after {
  width: 100%;
  left: 0;
}

/*====== キャッチコピー ======*/
.catch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 60px auto 80px auto;
}
.catch .main {
  font-size: 34px;
  font-weight: 800;
  color: #0a2342;
  margin-bottom: 15px;
  white-space: nowrap;
}
.catch .sub {
  font-size: 22px;
  font-weight: 600;
  color: #1f4e80;
  border-bottom: 3px solid #f9c74f;
  padding-bottom: 5px;
  white-space: nowrap;
}
.page-title {
  color: #0a2342;
  text-align: center;
  font-size: 2.4rem;
  margin: 50px auto 30px auto;
  border-bottom: none;
  padding-bottom: 10px;
  max-width: 1000px;
  position: relative;
}
.page-title::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 3px;
  background-color: #f9c74f;
}

/*====== コンテンツエリアの汎用スタイル ======*/
.main-content {
  padding-bottom: 60px;
}
.section-block {
  margin-bottom: 30px;
  padding: 30px;
  background-color: #fcfcfc;
  border: 1px solid #eee;
  border-left: 5px solid #1f4e80;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.section-block h2 {
  font-size: 1.8rem;
  color: #123c7c;
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px dashed #d0d0d0;
  margin-bottom: 20px;
}
.section-block h3 {
  font-size: 1.4rem;
  color: #0a2342;
  border-bottom: 2px solid #f9c74f;
  padding-bottom: 5px;
  margin-top: 30px;
  margin-bottom: 15px;
}
.section-block p,
.section-block ul {
  font-size: 1.05rem;
}
.section-block p strong {
  font-weight: bold;
  color: #1f4e80;
  margin-right: 5px;
}
.submit-button {
  background-color: #f9c74f;
  color: #0a2342;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
  width: 100%;
  max-width: 300px;
  margin: 20px auto 0 auto;
  display: block;
}
.submit-button:hover {
  background-color: #f5b92b;
  transform: translateY(-1px);
}
/* tutor.html */
.image-placeholder {
  width: 80%;
  height: auto;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #666;
  font-size: 1.2rem;
  border: 1px solid #ccc;
  margin: 20px auto;
}
.image-placeholder img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-content {}

/*====== about.html ======*/
.section-heading {
  font-size: 2.0rem;
  color: #123c7c;
  margin-top: 50px;
  margin-bottom: 20px;
  padding-bottom: 5px;
  border-bottom: 3px solid #f9c74f;
}
.company-info p {
  font-size: 1.05rem;
  padding: 5px 0;
  border-bottom: 1px dotted #e0e0e0;
}
.company-info p strong {
  display: inline-block;
  width: 150px;
  font-weight: 700;
  color: #0a2342;
}

/* === ご挨拶セクション & プロフィール === */
.greeting-section {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
  gap: 30px;
  padding: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #fcfcfc;
}
.greeting-section.reverse {
  flex-direction: row-reverse;
}
.person-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #1f4e80;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.greeting-text {
  flex-grow: 1;
}
.greeting-text h3 {
  color: #e88d00;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 2px dashed #f9c74f;
  padding-bottom: 5px;
}
.profile-data {
  background-color: #f7f9fc;
  border: 1px solid #dce3e9;
  border-left: 6px solid #1f4e80;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 4px;
}
.profile-data h4 {
  font-size: 1.1rem;
  color: #0a2342;
  margin: 0 0 10px 0;
  border-bottom: 2px solid #1f4e80;
  padding-bottom: 6px;
}
.profile-data ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.profile-data li {
  font-size: 0.95rem;
  margin-bottom: 4px;
  padding-left: 1.2em;
  text-indent: -1.2em;
  line-height: 1.5;
}
.profile-data li::before {
  content: "・";
  color: #f9c74f;
  font-weight: bold;
  margin-right: 5px;
}
.profile-data li.note-red {
  color: #cc0000;
  font-size: 0.85rem;
  margin-top: 8px;
  font-weight: bold;
  padding-left: 0;
  text-indent: 0;
}
.profile-data li.note-red::before {
  content: none;
}
.mt-4 {
  margin-top: 1.5rem;
}
/* inquiry.html */
.contact-main {
  padding: 50px 0;
  text-align: center;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 50px;
}
.contact-main h2 {
  font-size: 2.5rem;
  color: #0a2342;
  margin-bottom: 40px;
  font-weight: 800;
}
.contact-methods {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.method-card {
  background-color: #e7eff6;
  border-radius: 8px;
  padding: 30px 40px;
  min-width: 280px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}
.method-card:hover {
  transform: translateY(-5px);
}
.method-card .icon {
  font-size: 3rem;
  color: #1a4f9c;
  margin-bottom: 15px;
}
.method-card h3 {
  font-size: 1.4rem;
  color: #0a2342;
  margin-top: 0;
  border-bottom: 2px solid #1a4f9c;
  padding-bottom: 5px;
  margin-bottom: 20px;
}
.method-card .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e88d00;
  display: block;
  text-decoration: none;
  word-break: break-all;
}
.method-card a.value:hover {
  opacity: 0.8;
}
.note {
  margin-top: 50px;
  font-size: 1rem;
  color: #555;
}
.note strong {
  color: #d9534f;
}

/*====== 新着情報 ======*/
.news-container {
  padding: 30px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  margin: 0 auto 60px auto;
}
.news h2,
.news-container h2.section-heading {
  border-left: 5px solid #1f4e80;
  padding-left: 10px;
  margin-bottom: 20px;
  color: #123c7c;
  font-size: 1.8rem;
}
.news p {
  background-color: transparent;
  padding: 10px 0;
  margin-bottom: 8px;
  border-bottom: 1px dashed #cccccc;
  border-radius: 0;
  transition: background-color 0.2s;
  font-size: 1.0rem;
}
.news p:last-child {
  border-bottom: none;
}
.news p:hover {
  background-color: #f7f9fb;
}
footer {
  background-color: #0a2342;
  color: #fff;
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
  box-shadow: 0 -8px 15px rgba(0, 0, 0, 0.2);
}
.footer-links {
  margin-bottom: 15px;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}
footer small {
  display: block;
  font-size: 0.85rem;
  margin-top: 10px;
  opacity: 0.8;
}

/*====== モバイル対応 (600px以下) ======*/
@media (max-width: 600px) {
  header .logo img {
    height: 40px;
  }
  header .logo span {
    font-size: 1.5rem;
  }
  .contact {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: auto;
  }
  .contact-item {
    margin: 0 5px;
    font-size: 0;
    margin-bottom: 0;
  }
  .contact-item a.contact-value {
    display: none;
  }
  .contact-item::before {
    font-size: 1.5rem;
    margin-right: 0;
  }
  /* inquiry.html */
  .contact-main {
    padding: 30px 10px;
  }
  .contact-main h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  .contact-methods {
    gap: 20px;
  }
  .method-card {
    min-width: 90%;
    padding: 20px;
  }
  .method-card .value {
    font-size: 1.5rem;
  }
  .note {
    margin-top: 30px;
    font-size: 0.9rem;
  }
  .hero {
    max-height: 200px;
    height: 200px;
    margin-bottom: 20px;
  }
  /* tutor.html */
  .image-placeholder {
    width: 100%;
    margin: 20px 0;
  }
  .catch .main {
    font-size: 24px;
    white-space: normal;
  }
  .catch .sub {
    font-size: 20px;
    white-space: normal;
  }
  .links {
    flex-direction: column;
    border-bottom: none;
  }
  .links a {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid #1a3a60;
    position: static;
  }
  .links a:last-child {
    border-bottom: none;
  }
  .links a::after {
    content: none;
  }
  .greeting-section,
  .greeting-section.reverse {
    flex-direction: column;
    align-items: center;
    text-align: left;
    padding: 20px;
  }
  .greeting-section h3 {
    text-align: center;
  }
  .person-photo {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    margin-right: 0;
    margin-left: 0;
  }
  .profile-data {
    font-size: 0.9rem;
  }
  .company-info p {
    overflow-wrap: break-word;
  }
  .company-info p strong {
    display: block;
    width: auto;
    margin-bottom: 5px;
  }
  .news-container {
    width: 95%;
    padding: 20px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
  }
}