/*
 * style.css
 * クワトロ・ワークスウェブサイトのスタイルを定義します。
 */

/* Google FontsとFont Awesomeを読み込みます */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

*{margin:0}

/* ======================================================
 * 全体設定
 * ====================================================== */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;

}

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

h2, h3, h4 {
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ロゴのカラーからメインカラーを定義 */
:root {
    --primary-color: #1a73e8; /* 青 */
    --secondary-color: #e81a3d; /* 赤 */
    --accent-color-1: #4285f4; /* 明るい青 */
    --accent-color-2: #34a853; /* 緑 */
    --accent-color-3: #fbbc05; /* 黄 */
    --accent-color-4: #ea4335; /* 赤 */
    --dark-text: #202124; /* ロゴの濃いテキストカラー */
    --bg-color: #f5f5f5;
}

/* ======================================================
 * ヘッダー
 * ====================================================== */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height:90px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-text);
}

.logo img {
    height: 50px;
    border-radius: 0;
}

nav .nav{
    font-size:1.5rem;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: bold;
}

.nav-item {
    margin-left: 30px;
}

.nav-item a {
    color: var(--dark-text);
    position: relative;
    padding-bottom: 5px;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color-1);
    transition: width 0.3s;
}

.nav-item a:hover::after {
    width: 100%;
}

/* 個別のメニュー項目に異なる色を適用 */
.nav-list .nav-item:nth-child(1) a:hover::after {
    background-color: var(--accent-color-1);
}

.nav-list .nav-item:nth-child(2) a:hover::after {
    background-color: var(--accent-color-4);
}

.nav-list .nav-item:nth-child(3) a:hover::after {
    background-color: var(--accent-color-2);
}

.nav-list .nav-item:nth-child(4) a:hover::after {
    background-color: var(--accent-color-3);
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 30px;
    border-radius: 9999px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.btn-download {
    background-color: var(--accent-color-3);
    color: #fff;
}

.btn-download:hover {
    background-color: #d99a03;
}

.btn-contact {
    background-color: var(--accent-color-1);
    color: #fff;
    font-size: 1.5rem;;
}

.btn-contact:hover {
    background-color: #3b78e2;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background-color: var(--dark-text);
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--accent-color-1);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: var(--accent-color-1);
}

.mobile-nav {
    list-style: none;
    display: none;
    flex-direction: column;
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 20px 40px;
    gap: 15px;
}

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

.mobile-nav-link {
    font-size: 1.2rem;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: var(--dark-text);
}

.btn-download-mobile, .btn-contact-mobile {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

/* ======================================================
 * メインビジュアル
 * ====================================================== */
.hero-section {
    background-image: url('img/main_img.png');
    background-size: cover;
    background-position: center center; /* 画像の中心を常に表示 */
    height: 80vh;
    display: flex;
    justify-content: flex-start;
    padding-left: 0;             /* 左余白を削除 */
    /* align-items: center; */
}

.hero-text {
    color: #fff;
    background-color: rgba(32, 33, 36, 0.7);
    padding: 50px; 
    width: 70%;

    text-align: left; /* 左揃え */
    margin-left: 0;   /* 念のため左マージンをリセット */
}

.hero-text .large-text {
    font-size: 4.0rem;
    font-weight: 800;
}

.hero-text .small-text {
    font-size: 3.0rem;
    font-weight: 700;
    margin-bottom:20px;
}

.hero-text .small-text-en {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.hero-text .main-text {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-text .description {
    font-size: 1.5rem;
    line-height: 1.8;
}


/* ------------------------------------------------------
 * 新しいCTAバーセクションのスタイル
 * ------------------------------------------------------ */
.cta-bar-section {
    background-color: #e6e6e6;
    padding: 70px 0;
    text-align: center;
}

.cta-bar-btn {
    display: inline-block;
    background-color: var(--accent-color-1);
    font-size: 30px;
    color: #fff;
    padding: 30px 100px;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-bar-btn:hover {
    background-color: #3b78e2;
}

/* ======================================================
 * 私たちの考えセクション
 * ====================================================== */
.vision-section {
    background-color: var(--dark-text);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.vision-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.vision-section .subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
}

.vision-section .body-copy {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.strength-left-column
.vision-section p:not(.subtitle):not(.body-copy) {
    display: none;
}

.mindblowing-text {
    display: none;
}

/*--------------------------------------------------
  強みセクション
--------------------------------------------------*/
.strength-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 100px 20px;
    padding-top: calc(90px + 50px); /* ヘッダーの高さ90pxとセクション上部の余白50pxを足す */
    padding-bottom: 40px; /* 下部の余白 */
    /* このセクションの最小高さを設定 */
    min-height: 100vh;
}

.strength-section div{
    padding:30px;
}

/* 左カラムの固定表示 */
.strength-left-column {
    position: sticky;
    top: 90px; /* ヘッダーの高さに合わせて調整 */
    height: calc(100vh - 90px); /* 画面の高さからヘッダー高さを引いた値を設定 */
    overflow-y: auto; /* コンテンツがはみ出た場合にスクロール可能に */

    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* コンテンツを中央に配置 */
    padding-left: 20px;
}

.left-content-wrapper {
  text-align: center;
}

.strength-left-column .left-content-wrapper .title {
  font-size: 2.0rem;
  line-height: 1.5;
  font-weight: 700;
  margin-bottom: 0;
}

.subtitle-wrapper {
  margin-top: 20px;
  text-align: center;
}

.subtitle{
    font-size: 1.5rem;
}

.strength-left-column .left-content-wrapper .multi {
  display: inline-block;
  font-size: 7rem;
  font-weight: 900;
  margin: 0 10px;
}

.strength-left-column .left-content-wrapper .subtitle {
  margin-top: 20px;
  font-size: 1.2rem;
  line-height: 1.8;
}

/* 左カラムのテキスト装飾 */
.strength-left-column .title {
  position: relative; /* 子要素のposition:absoluteの基準となる */
  display: block; /* 全体が1ブロックになるように */
  text-align: center;
}

/* 各テキストに下線を引く */
.strength-left-column .title span {
  position: relative;
  display: inline-block;
  padding-bottom: 5px; /* 下線と文字の間に余白を追加 */
}

.strength-left-column .title span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.25em; /* em単位で文字の高さに合わせて調整 */
  width: 100%;
  height: 14px; /* 下線の太さを調整 */
  border-radius: 2px; /* 角を丸くして柔らかさを出す */
  transform-origin: bottom left;
  transition: all 0.3s ease;
  z-index: -1;
}

/* 各カラーラインの色を指定 */
.strength-left-column .title .color-1::after {
    background-color: var(--accent-color-1);
}

.strength-left-column .title .color-2::after {
  background-color: #EA4335;
}

.strength-left-column .title .color-3::after {
  background-color: #34A853;
}

.strength-left-column .title .color-4::after {
  background-color: #FBBC05;
}

/* 「&」のフォントサイズを小さくする */
.strength-left-column .title .small {
  font-size: 1.5rem; /* 親のh2より小さいサイズに */
  font-weight: 400; /* 太さを通常に戻す */
  margin: 0 5px; /* 前後の余白 */
  padding-bottom: 0;
}

/* 「&」の下線を非表示に */
.strength-left-column .title .small::after {
  display: none;
}

/* 右カラムのスクロール表示 */
.strength-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* カードのスタイル */
.strength-card {
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* translateYの初期値を0に設定することで、元の位置から開始させる */
    transform: translateY(0); 
    transition: opacity 0.5s ease-out; /* アニメーションを滑らかにする */
}

.strength-card .card-headding {
  font-size: 2.0rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.strength-card h2{
    text-align: center;
}

h2.card-headding span {
    display: block;
  font-size: 1.8rem;
}

.strength-card:first-child h2.card-headding span{
    color: var(--accent-color-1);
}

.strength-card:nth-child(2) h2.card-headding span{
    color: var(--accent-color-4);
}

.strength-card:nth-child(3) h2.card-headding span{
    color: var(--accent-color-2);
}

.strength-card:nth-child(4) h2.card-headding span{
    color: var(--accent-color-3);
}

.strength-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.strength-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.strength-card p {
  font-size: 1rem;
  line-height: 1.8;
}

/* ======================================================
 * サービス一覧セクション
 * ====================================================== */
.services-section {
    padding: 80px 0;
    background-color: #f5f5f5;
    text-align: center;
}

.services-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.services-section .subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    border:1.5px solid var(--accent-color-3);
}

.service-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-link {
    font-weight: bold;
    color: #fff;
    background-color: var(--dark-text);
    padding: 15px 30px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.service-link:hover {
    background-color: #fff;
    color:var(--dark-text);
    border: 1px solid var(--dark-text);
}

.prj{
    color:var(--accent-color-1);
}

/* ======================================================
 * 導入事例セクション
 * ====================================================== */
.case-study-section {
    padding: 120px 0;
    background-color: var(--accent-color-1); /* 添付画像に合わせ青色に変更 */
    color: #fff;
}

.case-study-header {
    text-align: center;
    margin-bottom: 50px;
}

.case-study-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
}

.case-study-header p {
    font-size: 1.1rem;
    margin-top: 10px;
    color: #f0f0f0;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.case-study-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    color: #333; /* カード内のテキストは黒に */
}

.case-study-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.case-study-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.case-study-content {
    padding: 20px;
}

.case-study-logo img {
    height: 80px;
    max-width: 100%;
    object-fit: contain;
}

/* カルーセルコンテナ */
.case-study-slider {
    position: relative;
    overflow: hidden;
}

/* スライダー内の全カードを横並びにするラッパー */
.case-study-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

/* 個々のカードのスタイル調整 */
.case-study-card {
    flex: 0 0 calc(33.333% - 20px * 2 / 3); /* 3件表示 */
    box-sizing: border-box;
}

/* ナビゲーションボタン */
.case-study-slider .slider-prev,
.case-study-slider .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.4); /* ← 半透明の黒背景 */
    color: #fff; /* 矢印は白で視認性UP */
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10; /* 画像より前面に */
}

/* ホバー時の効果 */
.case-study-slider .slider-prev:hover,
.case-study-slider .slider-next:hover {
    background: rgba(0, 0, 0, 0.7); /* ← 濃い黒でさらに視認性UP */
    transform: translateY(-50%) scale(1.1); /* 少し拡大 */
}

.case-study-slider .slider-prev {
    left: 15px;
}

.case-study-slider .slider-next {
    right: 15px;
}

.case-study-tags {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
}

.case-study-title {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
}

.case-study-company {
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.case-study-category {
    font-size: 0.8rem;
    color: #666;
    display: inline-block;
    background-color: #eee;
    padding: 5px 10px;
    border-radius: 5px;
    margin-top: 5px;
}

.view-all-btn {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    font-weight: bold;
    color: #fff;
    padding: 15px 40px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s;
}

.view-all-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* ======================================================
 * パララックスセクション
 * ====================================================== */
.parallax-separator {
    padding: 150px 0; /* 上下の余白を確保 */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/shake_hand.jpg'); /* 背景画像とオーバーレイ */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* パララックス効果 */
    text-align: center;
    color: #fff;
}

.parallax-separator h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.parallax-separator p {
    font-size: 1.2rem;
    font-weight: 300;
}

/* ======================================================
 * CTAセクションのスタイル
 * ====================================================== */
.new-cta-section {
    background-color: var(--accent-color-1); /* 明るい青に変更 */
    color: #fff;
    padding: 100px 0;
}

.new-cta-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1列に変更 */
    gap: 20px;
    place-items: center; /* 中央に配置 */
}

.new-cta-card {
    background-color: #fff; /* 背景を白に変更 */
    color: var(--dark-text); /* テキストを濃い色に */
    padding: 40px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
    max-width: 600px; /* カードの最大幅を設定 */
}

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

.new-cta-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -100px;
    transform: translateY(-50%) rotate(45deg);
    width: 200px;
    height: 200px;
    border: 2px solid var(--accent-color-3); /* 黄色の円に変更 */
    border-radius: 50%;
    opacity: 0.1;
    transition: all 0.5s ease-out;
}

.new-cta-card:hover::after {
    right: -50px;
    opacity: 0.2;
}

.cta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-header h3 {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 5px;
}

.cta-header .sub-text {
    font-size: 1rem;
    color: #666; /* サブテキストの色を変更 */
}

.cta-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-color-3); /* 黄色に変更 */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, background-color 0.3s;
}

.cta-icon-wrapper:hover {
    background-color: var(--accent-color-3); /* ホバーで黄色に */
    transform: rotate(360deg);
}

.cta-icon-wrapper i {
    font-size: 1.5rem;
    color: var(--accent-color-3); /* 黄色に変更 */
    transition: color 0.3s;
}

.cta-icon-wrapper:hover i {
    color: var(--dark-text); /* ホバーで濃い色に */
}

.cta-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555; /* 説明文の色を変更 */
    margin-top: 20px;
}

/* ======================================================
 * 問い合わせセクション (既存のセクション)
 * ====================================================== */
.cta-section {
   background: linear-gradient(
    to left,
    var(--accent-color-1), /* 明るい青 */
    var(--accent-color-2), /* 緑 */
    var(--accent-color-3), /* 黄 */
    var(--accent-color-4)  /* 赤 */
  );
    color: #fff;
    padding: 80px 0;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-text h2 {
    font-size: 2.0rem;
    font-weight: bold;
    line-height: 1.5;
}

.cta-btn-white {
    background-color: #fff;
    color: var(--dark-text);
    padding: 15px 40px;
    border-radius: 9999px;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
    transition: background-color 0.3s;
}

.cta-btn-white:hover {
    background-color: #f0f0f0;
}

/* CTAボタンを縦並びに */
.cta-buttons {
    display: flex;
    flex-direction: column; /* 縦並び */
    align-items: center;    /* 中央寄せ */
    gap: 20px;              /* ボタン間の余白 */
}

/* CTA ボタン共通 */
.cta-btn-red, .cta-btn-blue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;               /* アイコンとテキストの間隔 */
    width: 100%;             /* 親幅いっぱい */
    max-width: 480px;        /* PCでは最大幅480px */
    min-height: 90px;
    padding: 20px 40px;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.4;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;  /* ← はみ出し防止 */
}

/* 赤ボタン */
.cta-btn-red {
    background-color: var(--accent-color-4);
    color: #fff;
    background: linear-gradient(135deg, #ff5a5a, #c91414); /* 赤グラデーション */
    color: #fff;
    border: 2px solid #fff; /* 白フチで背景との差別化 */
}

.cta-btn-red:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* 青ボタン */
.cta-btn-blue {
    background-color: var(--accent-color-1);
    color: #fff;
    background: linear-gradient(135deg, #4285f4, #1a73e8); /* 青グラデーション */
    color: #fff;
    border: 2px solid #fff; /* 白フチで背景との差別化 */
}

.cta-btn-blue:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}


/* テキスト */
.cta-btn-text {
    font-size: 1.2rem;
    margin: 0;
}

/* アイコン */
.cta-btn-red i, .cta-btn-blue i {
    font-size: 1.4rem;
}

/* ======================================================
 * フッター
 * ====================================================== */
.footer {
    background-color: var(--dark-text);
    color: #fff;
    padding: 60px 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #444;
    padding-bottom: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo img {
    height: 90px;
    margin-left: 20px;
}

.footer-company-name{
    margin-left: 40px;
}

.footer-address{
    margin-top: 10px;
    margin-left: 40px;
}

.footer-nav {
    display: flex;
    gap: 40px;
}

.nav-column h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: solid 3px #ffffff;
}
.nav-column h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.nav-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}


/* ======================================================
 * レスポンシブ対応
 * ====================================================== */
 @media (max-width: 1023px) {
    .header-inner {
        padding: 20px;
    }
    .nav, .header-buttons {
        display: none;
    }
    .hamburger-menu {
        display: flex;
    }
    .hero-section {
        padding-left: 5%;
        height: 60vh;
        
    }
    .hero-text p {
        font-size: 2.5rem;
    }

    .strength-section {
        min-height: auto;
    }

    .strength-grid-container {
        position: static;
        grid-template-columns: 1fr;
        gap: 30px;
        height: auto;
    }

    .strength-left-column {
        text-align: center;
        position: static;
        transform: none;
        height: auto;
    }

    .strength-left-column .title {
        font-size: 2rem;
        position: relative; /* 子要素のposition:absoluteの基準となる */
        display: block; /* 全体が1ブロックになるように */
        text-align: center;
    }

    /* 各テキストに下線を引く */
    .strength-left-column .title span {
    position: relative;
    padding-bottom: 5px; /* 下線と文字の間に余白を追加 */
    }

    .strength-left-column .title span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px; /* 下線の太さ */
    }

    /* 各カラーラインの色を指定 */
    .strength-left-column .title .color-1::after {
        background-color: #4285F4;
    }

    .strength-left-column .title .color-2::after {
        background-color: #EA4335;
    }

    .strength-left-column .title .color-3::after {
        background-color: #34A853;
    }

    .strength-left-column .title .color-4::after {
        background-color: #FBBC05;
    }

    /* 「&」のフォントサイズを小さくする */
    .strength-left-column .title .small {
        font-size: 1.5rem; /* 親のh2より小さいサイズに */
        font-weight: 400; /* 太さを通常に戻す */
        margin: 0 5px; /* 前後の余白 */
        padding-bottom: 0;
    }

    /* 「&」の下線を非表示に */
    .strength-left-column .title .small::after {
        display: none;
    }

    .strength-right-column {
        min-height: auto;
        gap:10px;
    }

    .strength-card {
        position: static;
        /* width: 95%; */
        margin-bottom: 20px;
        opacity: 1;
        padding:0 10px;
    }

    /* .case-study-grid {
        grid-template-columns: repeat(2, 1fr);
    } */
    .cta-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .cta-buttons {
        gap: 10px;
    }
    .footer-top {
        flex-direction: column;
        align-items: center;
    }
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        max-width: 400px;
    }
    .new-cta-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 768px) {
    .problem-cards {
        flex-direction: column;
        align-items: center;
    }
    .case-study-grid {
        grid-template-columns: 1fr;
    }
    .members {
        flex-direction: column;
        align-items: center;
    }
    .member-card {
        flex-basis: 100%;
        max-width: 250px;
    }
    .cta-text h2 {
        font-size: 1.8rem;
    }
    /* 強みセクション */
    .strength-section {
        grid-template-columns: 1fr;
        padding: 50px 20px;
        min-height: auto;
    }
    .strength-section div {
        padding: 0px;
    }

    .vision-section h2 {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 10px;
    }

    /* 左カラムをドキュメントフローに戻し、最初に表示 */
    .strength-left-column {
        position: static; /* absoluteを無効化 */
        width: 100%;
        height: auto;
        order: 1; /* 1番目に表示 */
        padding-left: 0 !important;
    }

    /* 右カラムを次に表示 */
    .strength-right-column {
        gap: 40px;
        order: 2; /* 2番目に表示 */
    }

    /* 強みカードのスタイル調整 */
    .strength-right-column .strength-card {
        opacity: 1;
        padding:20px;
    }
    
    .case-study-card {
        flex: 0 0 calc(100% - 20px); /* 1件表示 */
    }
}

@media (max-width: 480px) {
    /* メインビジュアル */
    .hero-section {
        justify-content: center;
        align-items: center;
        min-height: 500px;
        padding: 0px;
        text-align: center;      /* モバイルでは中央寄せの方が見やすい */
    }
    .hero-text {
        width: 100%;
        padding:40px;
    }
    .hero-text h2.large-text {
        font-size: 2.0rem;
        line-height: 1.4;
    }
    .hero-text h2.small-text {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    .hero-text .small-text-en {
        font-size: 0.9rem;
    }
    .hero-text .main-text {
        font-size: 1.5rem;
    }
    .hero-text h3.description {
        font-size: 1.0rem;
        line-height: 1.6;
    }
    .vision-section{
        padding: 30px;
    }

    .vision-section h2 {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 10px;
    }
    /* ボタンとCTAバー */
    .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .btn-download-mobile, .btn-contact-mobile{
        width:210px;
    }

    
    .cta-bar-section {
        padding: 15px 0;
    }

    .cta-bar-btn {
        font-size: 1.2rem;
        padding: 20px 30px;
    }

    /* 各セクションの見出し */
    .section-title {
        font-size: 1.8rem;
    }



    /* メンバーセクション */
    .member-card .member-photo {
        width: 150px;
        height: 150px;
    }

    /* フッター */
    .footer-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .footer-logo h2{
        text-align: center;
    }
    .footer-logo img{
        height: 80px;
        margin-left: 5px;
    }
    h2.footer-company-name{
        font-size: 20px;
    }
    .cta-btn-red, .cta-btn-blue {
        max-width: 100%;      /* 幅制限を解除して画面幅にフィット */
        padding: 15px 20px;   /* 左右余白を少し縮小してはみ出し防止 */
        max-width: 100%;      
        margin: 0 auto;       /* 中央寄せ */
        padding: 15px 25px;   /* 左右余白を少し広めに戻す */
        font-size: 1.1rem;    /* テキストサイズもやや小さめに */
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);/* スマホ時は影を強める */
    }

    .cta-btn-red:hover,
    .cta-btn-blue:hover {
        transform: none; /* スマホはホバー効果オフ */
    }

    .cta-btn-red i, .cta-btn-blue i {
        font-size: 1.4rem;    /* アイコンも少し調整 */
    }
}