/* ==================================================
   0) リセット ＆ 全要素 box-sizing ★
================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;   /* ★ 横スクロールの主犯対策 */
}

/* 基本スタイル */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    overflow-x: hidden;       /* ★ 念のための保険（本来は不要になるはず） */
}

/* ヘッダーとナビゲーション */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px; /* 左右の余白を調整 */
    z-index: 10;
}

.nav-menu {
    display: flex;
    gap: 40px;
    margin: 0 auto; /* メニューを中央寄せ */
    justify-content: center; /* 水平方向に揃える */
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #ff6a00;
}


.logo img {
    height: 70px;
}

/* 🍔ハンバーガーは PC では非表示 (下で改めて書き換え) */
.hamburger { display: none; }

/* トップバナー */
.top-banner {
    position: relative;
    width: 100%;
    min-height: 100vh; 
    background-image: url('images/top_image.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding-top: 80px;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay h1 {
    font-size: 4rem;
    margin: 0;
}

.overlay p {
    font-size: 1.5rem;
    margin: 10px 0;
}

.ai-note {
    margin-top: 10px;
    font-size: 1rem;
    color: #ddd;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-style: italic;
}

.explore-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #ff6a00;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.explore-btn:hover {
    background-color: #ff4500;
}

/* コンテンツエリアのスタイル */
.content {
    padding: 120px 20px 50px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #333;
}

.content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

/* 企業概要コンテンツエリアのスタイル */
.about-content {
    padding: 120px 20px 50px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #333;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out;
}

.about-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #333;
    text-shadow: 2px 2px #ff6a00;
}

/* 企業理念セクション */
.mission {
    margin-top: 50px;
    padding: 20px;
    background: linear-gradient(135deg, #eef9ff, #ffffff);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.mission h2 {
    font-size: 2.5rem;
    color: #ff6a00;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.mission-item {
    margin-bottom: 30px;
}

.mission-item h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #ff6a00;
    display: inline-block;
    padding-bottom: 5px;
}

.mission-item p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    text-align: center;
}

/* 業務概要ページのスタイル */
.service-content {
    padding: 120px 20px 50px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out;
}

.service-content h1 {
    font-size: 2.8rem;
    color: #333;
    text-shadow: 2px 2px #ff6a00;
    margin-bottom: 30px;
}

/* 各セクションのスタイル */
.service {
    margin-bottom: 50px;
    text-align: left;
}

.service h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #ff6a00;
    padding-left: 10px;
}

.service p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

.service a {
    color: #ff6a00;
    text-decoration: none;
    font-weight: bold;
}

.service a:hover {
    text-decoration: underline;
}

/* メディアギャラリー（教育事業） */
.media-gallery {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education-video {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.education-photo {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.education-photo:hover {
    transform: scale(1.05);
}

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Googleマップのコンテナ */
.map-container {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 会社所在地情報のスタイル */
.address {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: left;
}

.address p {
    margin-bottom: 15px;
}

/* お問い合わせフォーム */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    font-size: 1rem;
    color: #555;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
    background: rgba(255, 255, 255, 0.8);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ff6a00;
    box-shadow: 0 0 8px rgba(255, 106, 0, 0.4);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.submit-btn {
    margin-top: 10px;
    padding: 12px;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, #ff6a00, #ff3d00);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #ff3d00, #ff6a00);
    transform: scale(1.05);
}

.contact-form input:hover,
.contact-form textarea:hover {
    background: rgba(255, 255, 255, 0.9);
}
/* --- SeaOne会社概要用カスタム --- */
.company-profile {
  background: #f5faff;
  border: 2px solid #7fcdfa;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(34,184,207,0.09);
  padding: 2em 1em;
  margin: 2em auto;
  max-width: 800px;
}
.company-profile h2 {
  color: #ff4500;
  font-size: 1.5em;
  margin-bottom: 1em;
  text-align: center;
}
.company-profile table {
  width: 100%;
  border-collapse: collapse;
}
.company-profile th, .company-profile td {
  padding: 0.7em 0.6em;
  border-bottom: 1px solid #d3f0f7;
  text-align: left;
}
.company-profile th {
  background: #e7f9fd;
  color: #12809c;
  width: 40%;
  font-weight: bold;
}
.company-profile td {
  background: #fff;
}

/* ────────── ［モバイル共通］ ────────── */
@media (max-width: 768px) {

  /* ヘッダー調整 */
  .header { position: relative; padding: 0 16px; height: 64px; }
  .logo img { height: 48px; }

  /* 🍔ハンバーガー */
  .hamburger {                    /* ３本線の親 */
    display: flex; flex-direction: column;
    justify-content: space-between;
    width: 28px; height: 20px; cursor: pointer;
    z-index: 11;                 /* メニューより上 */
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
  }
  .hamburger span {
    display: block; height: 3px; width: 100%;
    background: #fff; transition: 0.3s;
  }

  /* チェックON時に ✕ へ変形 */
  .nav-toggle:checked + .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked + .hamburger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* ナビメニュー（スライドイン） */
  .nav-menu {
    position: fixed; inset: 0 0 0 auto;      /* 右側 */
    width: 50%; max-width: 250px;
    height: 100vh; flex-direction: column;
    justify-content: center; align-items: center;
    gap: 32px; background: rgba(0,0,0,0.95);
    transform: translateX(100%);             /* 初期は隠す */
    transition: transform 0.35s ease;
  }
  .nav-toggle:checked ~ .nav-menu { transform: translateX(0); }

  .nav-menu a { font-size: 1.25rem; }        /* ちょい大きめ */

  /* ロゴと 🍔 の重なり回避 */
  .logo { margin-left: 68px; }

  /* 文字サイズ・余白微調整 */
  .overlay h1      { font-size: 2.6rem; }
  .overlay p       { font-size: 1.1rem; }
  .explore-btn     { padding: 8px 18px; }

  /* 共通コンテンツ幅 */
  .content,
  .about-content,
  .service-content { padding-top: 80px; }

  /* 動画・画像100%化 */
  .video-wrapper iframe { width: 100%; height: auto; aspect-ratio: 16/9; }
  .education-photo,
  .company-photo img,
  .top-banner       { width: 100%; }

  /* 会社プロフィール表も文字を縮小 */
  .company-profile th,
  .company-profile td { font-size: 0.95rem; }
}
/* ────────── ここまでモバイル ────────── */

/* ────────── ［PC 専用］ ────────── */
@media (min-width: 1025px) {

  /* 🍔ハンバーガーとチェックボックスは完全に隠す */
  .hamburger,
  #nav-toggle { display: none !important; }

  /* ナビメニューを元の横並びに戻す */
  .nav-menu {
    position: static !important;   /* fixed を無効化 */
    display: flex !important;      /* 念のため再宣言 */
    transform: none !important;    /* スライドを無効化 */
    gap: 40px;
  }
}
/* ────────── ここまでPC ────────── */