@charset "UTF-8";

/* ===== 1. Foundation: Settings (設定・変数) ===== */
:root {
  --primary-color: #13c2d8;
  --text-color: #290754;
  --white-color: #ffffff;
  --container-width: 1040px;
}

/* ===== 1. Foundation: Base (要素の基本スタイル) ===== */
body {
  font-family: "Klee One", "游明朝", "Noto Serif CJK JP", "Hiragino Mincho ProN", "MS P明朝", serif;
  margin: 0;
  color: var(--text-color);
  background: var(--white-color);
}

h1 {
  color: var(--white-color);
  font-size: 1.7rem;
  margin: 0;
}

/* 共通リストのリセット */
.topics-list,
.footer-nav ul,
.service-list,
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== 2. Layout (全体レイアウト) ===== */

/* ヘッダー全体 */
.l-header {
  background: var(--primary-color);
  color: var(--white-color);
  padding: 20px 3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* メインコンテンツの幅 */
.l-main {
  max-width: var(--container-width);
  margin: 0 auto;
}

/* フッター全体 */
.l-footer {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 2%;
  margin-top: 80px;
}

/* フッター内のコンテナ */
.l-footer-container {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  padding: 0 20px;
}

/* 共通コンテナ */
.l-container {
  /* ページ内容を中央寄せにするための親要素 */
  text-align: center;
  padding: 0 16px;
}

/* コピーライト表記 */
.l-copyright {
  display: block;
  text-align: center;
  margin: 20px 0;
}

/* ===== 3. Object: Project (ヘッダーコンテンツ) ===== */

/* ロゴリンク全体（画像とH1を内包） */
.l-header .logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* ロゴ画像 */
.l-header .logo img {
  max-width: 70px;
  height: auto;
  margin-right: 24px;
}

/* ===== 3. Object: Component (ボタン) ===== */

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

.c-button {
  margin-left: 8px;
  text-decoration: none;
  padding: 5px 15px;
  border: 1px solid var(--white-color);
  border-radius: 25px;
  color: var(--white-color);
}

.c-button--active {
  color: var(--primary-color);
  background-color: var(--white-color);
}

.c-button:hover {
  color: var(--white-color);
  background-color: #ffb330;
  border: 1px solid #ffb330;
}

/* ===== 3. Object: Project (ヒーローセクション) ===== */

.p-hero {
  text-align: center;
  background: url(../img/top-back.png) no-repeat 90% 30%, linear-gradient(#13c2d8, #6fdbe9);
  background-color: rgba(255, 255, 255, 0.2), auto;
  color: var(--white-color);
  padding: 20px 5%;
}

.p-hero__catchphrase {
  margin: 30px 0;
}

.p-hero__catchphrase--right {
  font-size: 1.8rem;
  text-align: right;
}

.p-hero__catchphrase--left {
  text-align: left;
  font-size: 1.5rem;
  font-weight: bold;
  padding-left: 100px;
}

.p-hero__cards {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: nowrap;
}

.p-hero__card {
  background: var(--white-color);
  border-radius: 16px;
  box-shadow: 0px 20px 5px -5px rgba(0, 0, 0, 0.3);
  width: 200px;
  height: 400px;
  /*flex-shrink: 0;*/
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-hero__card img {
  width: 130px;
  height: auto;
}

.p-hero__people-img {
  width: 912px;
  width: 90%;
  height: auto;
  display: block;
  margin: 30px auto;
}

/* ===== 3. Object: Component (タイトル) ===== */

/* 共通セクションタイトル */
.c-section-title {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 10px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 100px 0 30px 0;
  margin-bottom: 30px;
  text-align: center;

  /* 背景を傾斜 */
  -webkit-transform: skew(-15deg);
  transform: skew(-15deg);
}

/* 傾斜を打ち消し、文字を真っ直ぐにする */
.c-section-title span {
  display: inline-block;
  -webkit-transform: skew(15deg);
  transform: skew(15deg);
}

/* ===== 3. Object: Project (ミッションセクション) ===== */

/* ミッションセクション全体 */
.p-mission {
  text-align: center;
}

/* ミッションの説明テキスト */
.p-mission__text {
  font-size: 1.3rem;
  margin: 0 auto 30px;
  text-align: left;
  max-width: 900px;
}

/* ===== 3. Object: Project (トピックスセクション) ===== */

/* トピックスセクション全体 */
.p-topics {
  text-align: center;
}

/* トピックスリストのコンテナ */
.p-topics__list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

/* リストアイテム */
.p-topics__item {
  padding: 20px;
  display: flex;
  justify-content: flex-start;
  border-top: 1px solid #ccc;
}

.p-topics__item:last-child {
  border-bottom: 1px solid #ccc;
}

.p-topics__meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-basis: auto;
  min-width: auto;
}

.p-topics__date {
  font-size: 1rem;
  margin-right: 30px;
}

.p-topics__title {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
  display: inline;
}

/* ===== 3. Object: Project (法人概要ページ構造) ===== */

.p-about {
  text-align: center;
}

/* 基本情報テーブル */
.p-about__info-table {
  margin-top: 40px;
}

.p-about__info-table dl {
  display: flex;
  margin: 0;
  border-bottom: 1px solid #ccc;
  align-items: center;
  padding: 30px 0;
}

.p-about__info-table dl:last-child {
  border: none;
}

.p-about__info-table dt {
  width: 10%;
  text-align: left;
}

.p-about__info-table dd {
  margin: 0;
  padding: 20px;
  width: 90%;
  line-height: 1.8;
  text-align: left;
}

/* 役員紹介グリッド */
.p-about__directors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  
}

.p-about__director-card {
  height: auto;
  background-color: #efefef;
  padding: 24px;

}

.p-about__director-photo {
  width: 70%;
  height: auto;
  margin:0 auto 15px;
  aspect-ratio: 1 / 1;
  border: 1px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.p-about__director-photo img {
  width: 100%;
}

.p-about__director-role {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

.p-about__director-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 5px 0;
}

.p-about__director-title {
  font-size: 0.85rem;
  color: #333;
  margin: 0;
}

.p-about__director-detail {
  font-size: 0.85rem;
  color: #333;
  margin-top: 10px;
  line-height: 1.5;
}

/* 事業内容・経歴ブロック */
.p-about__greeting-text {
  margin-bottom: 40px;
}

.p-about__service-list {
  list-style: none;
  padding: 0;
}

.p-about__service-list li {
  margin-bottom: 25px;
}

.p-about__service-list h3 {
  display: inline;
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 10px 0;
  background: linear-gradient(transparent 70%, rgba(250, 140, 89, 0.5) 70%);
  background-repeat: repeat-x;
}

.p-about__service-list p {
  margin: 0;
}

/* 経歴リストと画像を囲むコンテナ */
.p-about__history-container {
  display: flex;
  justify-content: space-between;
}

/* 経歴リスト */
.p-about__history-list {
  list-style: none;
  padding: 0;
  width: 80%;
}

.p-about__history-list li {
  margin-bottom: 25px;
}

/* 実績の右側にあるイラストのコンテナ */
.p-about__history-illustration {
  width: 20%;
  padding-top: 150px;
}

.p-about__history-illustration img {
  max-width: 150px;
  height: auto;
}

/* ===== 3. Object: Component (リスト, 情報リスト, リンク) ===== */

/* フッターや法人概要の「名称」「TEL」などに使用する情報リスト */
.c-info-list {
  width: 100%;
  font-size: 1rem;
  display: flex;
  margin-bottom: 10px;
}

.c-info-list dt {
  width: 20%;
}

.c-info-list dd {
  display: inline;
  text-align: left;
  width: 80%;
}


/* ミッションセクションのリンク全体 */
.p-mission__link__wrap {
  text-align: right;
}

.p-mission__link {
  display: inline-block;
  height: 25px;
  text-decoration: none;
  font-weight: bold;
  text-align: right;
}

/* ミッションセクションのリンクの矢印部分 */
.p-mission__link-arrow {
  display: inline-block;
  font-size: 1.4rem;
  width: 25px;
  height: 25px;
  color: var(--white-color);
  background-color: var(--primary-color);
  border-radius: 50%;
  text-align: left;
  line-height: 25px;
  margin-right: 20px;
}

/* ===== 3. Object: Project (フッターコンテンツ) ===== */

/* 会社情報ブロック (MAILなどを含む) */
.p-footer-info {
  flex: 1 1 35%;
  min-width: 250px;
}

.p-footer-info h4 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

/* フッターナビゲーションブロック */
.p-footer-nav {
  flex: 0 0 auto;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #ffffff;
  margin: 0;
  padding: 0 40px;
  text-align: center;
}

.p-footer-nav ul {
  display: inline-block;
  text-align: left;
  list-style: none;
  padding: 0 60px;
}

.p-footer-nav li {
  margin-bottom: 10px;
}

.p-footer-nav a {
  text-decoration: none;
  color: var(--white-color);
  font-size: 0.9rem;
}

/* イラストブロック */
.p-footer-illustration {
  flex: 1 1 35%;
  text-align: right;
}

.p-footer-illustration img {
  max-width: 100%;
  width: 350px;
  height: auto;
}

/* ===== 4. Utility: Responsive (Homeページ専用レスポンシブ) ===== */

/* 768px以下 (タブレット縦) */
@media (max-width: 768px) {
  /* ヘッダーの調整 */
  .l-header {
    flex-direction: column;
    padding: 15px 3%;
    /*align-items: flex-start;*/
  }

  .c-header-nav {
    margin-top: 10px;
  }

  /* ヒーローセクション (p-hero) の調整 */
  .p-hero {
    background-size: 50% auto, auto; /* 背景画像を小さく調整 */
    padding: 20px 5%;
  }

  .p-hero__catchphrase--right {
    font-size: 1.4rem;
  }

  .p-hero__catchphrase--left {
    font-size: 1.4rem;
    padding-left: 20px;
  }

  .p-hero__cards {
    gap: 20px;
  }

  .p-hero__card {
    width: 150px;
    height: 300px;
    box-shadow: 0px 10px 5px -5px rgba(0, 0, 0, 0.3);
  }

  .p-hero__card img {
    width: 100px;
  }

  .p-hero__people-img {
    max-width: 100%;
    height: auto;
  }

  /* ミッションセクション (p-mission) の調整 */
  .p-mission__text {
    font-size: 1rem;
    padding: 0 15px;
  }

  /* トピックスセクション (p-topics) の調整 */
  .p-topics__item {
    padding: 15px;
    gap: 4px;
    flex-direction: column;
    align-items: flex-start;
  }

  .p-topics__meta {
    flex-basis: auto;
    min-width: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .p-topics__date {
    margin-right: 15px;
  }

  /* フッターの調整 */
  .l-footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .p-footer-info,
  .p-footer-illustration {
    min-width: auto;
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 20px;
    padding: 0 16px;
  }

  .p-footer-info {
    margin-top: 20px;
  }

  .p-footer-info h4 {
    max-width: 250px;
    margin: 0 auto 20px;
    line-height: 1.3;
  }

  .p-footer-info h4 span {
    display: block;
  }

  .p-footer-nav {
    border: none;
    padding: 20px 0;
    margin: 20px 0;
    border-top: 1px solid var(--white-color);
    border-bottom: 1px solid var(--white-color);
  }

  .c-info-list {
    flex-direction: row;
    max-width: 250px;
    margin: 0 auto 10px;
    text-align: center;
  }

  .c-info-list dt {
    width: 50%;
  }

  .c-info-list dd {
    flex-grow: 1;
  }
}

/* 500px以下 (スマートフォン) */
@media (max-width: 500px) {
  /* ヘッダーの調整 */
  .l-header {
    padding: 15px 3%;
  }

  .l-header .logo h1 {
    font-size: 1.3rem;
    line-height: 1.3;
  }

  .l-header .logo h1 span {
    display: block;
  }

  .c-button {
    padding: 5px 10px;
    font-size: 0.9rem;
  }

  /* ヒーローセクション */
  .p-hero {
    background: linear-gradient(#13c2d8, #6fdbe9);
    background-position: center top;
  }

  .p-hero__catchphrase--right,
  .p-hero__catchphrase--left {
    font-size: 1.1rem;
    text-align: center;
    padding-left: 0;
  }

  .p-hero__cards {
    flex-wrap: wrap;
    gap: 10px;
    max-width: 350px;
    margin: 0 auto;
  }

  .p-hero__card {
    width: 100px;
    height: 200px;
  }

  .p-hero__card img {
    width: 70px;
  }
}

/* ===== 4. Utility: Responsive (法人概要ページ専用レスポンシブ) ===== */

/* 768px以下 (タブレット縦) */
@media (max-width: 768px) {
  /* 基本情報テーブル */
  .p-about__info-table dl {
    flex-direction: column;
    align-items: flex-start;
  }

  .p-about__info-table dt {
    width: 100%;
    padding: 15px 15px 5px 15px;
    font-size: 1.1rem;
  }

  .p-about__info-table dd {
    width: 100%;
    padding: 5px 15px 15px 15px;
    box-sizing: border-box;
  }

  /* 役員紹介グリッド */
  .p-about__directors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 15px;
  }

  .p-about__director-card {
    width: 100%;
  }

  .p-about__director-photo {
    margin-bottom: 10px;
  }

  .p-about__director-name {
    font-size: 1.1rem;
  }

  .p-about__director-title {
    font-size: 0.8rem;
  }

  .p-about__history-container {
    flex-direction: column;
    align-items: center;
  }

  .p-about__history-list {
    width: 100%;
    text-align: left;
  }

  .p-about__history-illustration {
    width: 100%;
    margin-top: 20px;
    padding: 0;
    text-align: center;
  }
}

/* 500px以下 (スマートフォン) */
@media (max-width: 500px) {
  /* 役員紹介グリッド */
  .p-about__directors-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  .p-about__director-photo {
    height: 200px;
    width: auto;
  }

  .p-about__greeting-text {
    margin-bottom: 20px;
    padding: 0 15px;
    font-size: 1rem;
  }

  .p-about__service-list li {
    margin-bottom: 15px;
    padding: 0 15px;
  }

  .p-about__service-list h3 {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .p-about__history-list li {
    padding: 0 15px 15px;
    font-size: 0.9rem;
  }
}
