/*
Theme Name: thankAQ Theme
Version: 1.0.0
*/

:root {
    --color-primary: #5A8EFF; /* 例: メインカラー */
    --color-secondary: #1e318e; /* 例: ボタンのホバーなど */
    --color-accent-1: #C2DCE5; /* 例: シェイプカラー */
    --color-accent-2: #C0D2D0; /* 例: シェイプカラー */
    --color-accent-3: #C2C8EA; /* 例: シェイプカラー */
    --color-accent-4: #D1C2EB; /* 例: シェイプカラー */
    --color-accent-5: #ceb9c1; /* 例: シェイプカラー */
    --color-text: #333; /* 例: シェイプカラー */
    --color-bg-gray: #7C89A5; /* セクションの背景 */
    --color-bg-tri-gray: #BDBDBD; /* 背景 */
    --color-bg-light-gray: #F3F3F3; /* 背景 */
    --font-family-base: 'Noto Sans JP', sans-serif;
    --font-size-base: 1rem; /* 16px */
    --spacing-unit: 1rem;
}
html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}
html, body {
    height: 100%;
}
body {
    background-color: #fff;
    color: #000;
    margin: 0;
    display: flex;
    flex-direction: column;
}
a {
    text-decoration: none; /* リンクの下線を非表示にする */
    color: var(--color-primary);
    font-size: 16px;
    transition: color 0.3s;
}
a:hover{
    color: var(--color-secondary);
}
h2 {
    font-size: 32px;
}
h3 {
    font-size: 28px;
    margin-top: 16px;
    margin-bottom: 32px;
}
ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}
.btn {
    display: inline-block;
    padding: 20px 48px;
    border-radius: 36px;
    color: #333;
    background: #fff;
    box-shadow: 6px 3px 4px rgba(0, 0, 0, 0.25);
    font-size: 16px;
    font-weight: 800;
    /* transform, background-color, color, box-shadow を0.3秒で滑らかに変化 */
    transition: transform 0.3s ease-out, 
                background-color 0.3s ease-out, 
                color 0.3s ease-out,
                box-shadow 0.3s ease-out;
}
.btn:hover {
    transform: scale(1.1); /* 1.05倍に大きくする */
    color: #fff; /* 文字色を白に反転 */
    background: #333; /* 背景色を黒（または濃い色）に反転 */
    box-shadow: 8px 4px 6px rgba(0, 0, 0, 0.35); /* 影を強調して浮き上がったように見せる */
}
.btn-rv {
    color: #fff;
    background: var(--color-bg-gray);
}
.arrow-right:hover {
    color: #fff;
}
.cv-btn {
    display: inline-block;
    padding: 24px 48px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(to right, #34c9ff, #00a5ff, #5A8EFF);
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.25);
    font-size: 20px;

    position: relative; /* 光の疑似要素の基準点 */
    overflow: hidden; /* 光がボタンからはみ出さないように隠す */
    z-index: 1; /* ボタンが他の要素の上に表示されるように（必要であれば） */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; /* 大きくなるアニメーションと影のアニメーション */
}
.cv-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%; /* 左から完全に隠れた位置からスタート */
    width: 40%; /* 光の筋の幅 */
    height: 100%;
    background: rgba(255, 255, 255, 0.3); /* 半透明の白い光 */
    transform: skewX(-20deg); /* 斜めにする */
    pointer-events: none; /* 光の上にマウスが乗ってもボタンのホバーが中断されないように */
    z-index: 2; /* ボタンのコンテンツの上に光を重ねる */
}

/* ホバー時のアニメーション */
.cv-btn:hover {
    color: #fff;
    transform: scale(1.1); /* 1.05倍に大きくする */
    box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.35); /* 影を強調して浮き上がったように見せる */
}
.btn:hover .arrow-right {
    transform: translateX(5px); /* 矢印を右に5px移動させる */
}

/* ホバー時に光をアニメーション */
.cv-btn:hover::before {
    animation: shimmer 0.8s forwards; /* shimmerアニメーションを0.8秒で実行 */
}
.grecaptcha-badge { 
    visibility: hidden;
}
/* 光のアニメーションを定義 */
@keyframes shimmer {
    0% {
        left: -75%; /* 左からスタート */
    }
    100% {
        left: 100%; /* 右へ移動して完全に消える */
    }
}
.base-wrapper {
    display: flex;
    justify-content: center;
    position: relative; /* 擬似要素の基準となる */
}
.base-container {
    max-width: 80%;
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between; /* 子要素を両端に配置 */
    align-items: center;            /* 縦方向の中央揃え */
    padding: 120px 16px 120px;
    align-content: center;
}
.base-container-left, .base-container-right{
    flex-basis: 50%;
    position: relative;
}
.base-container-left img, .base-container-right img{
    width:70%;
    justify-content: center;
}
.base-container-middle{
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    margin-top: 80px;
}
.base-container-bottom{
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 100px;
}
.arrow-right {
    display: inline-block;
    vertical-align: middle;
    color: inherit;
    line-height: 1;
    position: relative;
    width: 1em;
    height: 0.1em;
    background: currentColor;
    margin-right: 24px;
    transition: transform 0.3s ease-out; 
}

.arrow-right::before {
    content: '';
    width: 0.65em;
    height: 0.65em;
    border: 0.1em solid currentColor;
    border-left: 0;
    border-bottom: 0;
    transform: rotate(45deg);
    transform-origin: top right;
    position: absolute;
    top: 50%;
    right: -0.05em;
    box-sizing: border-box;
}
.rounded-triangle-s,
.rounded-triangle-s::before,
.rounded-triangle-s::after{
    width: 120px;
    height: 120px;
}
.rounded-triangle-m,
.rounded-triangle-m::before,
.rounded-triangle-m::after{
    width: 150px;
    height: 150px;
}
/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: #fff;
    flex-shrink: 0; /* ヘッダーは縮まないようにする */
}
.header__logo a {
    display: block;
    padding: 0;
}
.header__logo img {
    height: 64px;
    display: block;
}
.header__nav ul {
    display: flex; /* Flexboxを使って子要素を横並びにする */
    list-style: none; /* リストの点を非表示にする */
    margin: 0;
    padding: 0 16px 0;
    gap: 60px; /* メニュー項目間の余白を30pxにする */
    font-weight: bold;
}
.header__nav a{
    color: var(--color-text);
    position: relative;
}
.header__nav a {
    padding: 8px 4px;
    color: var(--color-text);
    position: relative;
}
.header__nav a::before {
    background: var(--color-bg-gray);
    content: '';
    width: 100%;
    height: 3px;
    position: absolute;
    left: 0;
    bottom: 0;
    transform-origin: right top;
    transform: scale(0, 1);
    transition: transform .3s;
}
.header__nav a:hover::before {
    transform-origin: left top;
    transform: scale(1, 1);
}
.hamburger-btn {
    display: none; /* ハンバーガーボタンを非表示にする */
}

/* Main */
main {
    flex-grow: 1;
}

/* MV */
/* 回転アニメーションの定義 */
@keyframes rotateAnimation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
@keyframes bgcolor{
    0% { background-color: #C2DCE5; }
    20% { background-color: #C0D2D0; }
    40% { background-color: #C2C8EA; }
    60% { background-color: #D1C2EB; }
    80% { background-color: #ceb9c1; }
    100% { background-color: #C2DCE5; }
}
@keyframes radius-left{
    0% { border-top-left-radius: 40%; }
    50% { border-top-left-radius: 100%; }
    100% { border-top-left-radius: 40%; }
}
@keyframes radius-right{
    0% { border-top-right-radius: 40%; }
    50% { border-top-right-radius: 100%; }
    100% { border-top-right-radius: 40%; }
}
@keyframes radius-bottom{
    0% { border-bottom-left-radius: 40%; }
    50% { border-bottom-left-radius: 100%; }
    100% { border-bottom-left-radius: 40%; }
}

.mv-container {
    padding-top: 0;
    max-width: 100%;
}
.mv-left {
    flex-basis: 50%;
    position: relative;
    z-index: 10;
    text-align: left; /* 左寄せにする */
    padding-left: 10%;
    justify-content: center;
}
.mv-left h2 {
    font-size: 42px;
    margin-bottom: 64px;
}
.mv-right {
    flex-basis: 50%;
    height: 540px;
    position: relative;
}

.rounded-triangle-1-area{
    position: absolute;
    top: 15%;
    left: 25%;
    transform: rotate(45deg);
    animation: rotateAnimation 40s linear infinite;
    animation-direction: reverse; 
}
.rounded-triangle-2-area{
    position: absolute;
    top: 20%;
    left: 75%;
    transform: rotate(20deg);
    animation: rotateAnimation 45s linear infinite;
}
.rounded-triangle-3-area{
    position: absolute;
    top: 65%;
    left: 55%;
    transform: rotate(30deg);
    animation: rotateAnimation 60s linear infinite;
}
.rounded-triangle-4-area{
    position: absolute;
    top: 65%;
    left: 90%;
    transform: rotate(45deg);
    animation: rotateAnimation 50s linear infinite;
    animation-direction: reverse; 
    z-index: -1;
}
.rounded-triangle-1,
.rounded-triangle-1::before,
.rounded-triangle-1::after{
    width: 200px;
    height: 200px;
}
.rounded-triangle-1 {
    animation: radius-left 10s ease-in-out infinite, bgcolor 20s infinite;
}
.rounded-triangle-1::before {
    animation: radius-right 6s ease-in-out infinite, bgcolor 20s infinite;
}
.rounded-triangle-1::after {
    animation: radius-bottom 8s ease-in-out infinite, bgcolor 20s infinite;
}
.rounded-triangle-2,
.rounded-triangle-2::before,
.rounded-triangle-2::after{
    width: 180px;
    height: 180px;
}
.rounded-triangle-2 {
    animation: radius-left 6s ease-in-out infinite, bgcolor 20s infinite;
    animation-delay: -5s;
}
.rounded-triangle-2::before {
    animation: radius-right 8s ease-in-out infinite, bgcolor 20s infinite;
    animation-delay: -5s;
}
.rounded-triangle-2::after {
    animation: radius-bottom 10s ease-in-out infinite, bgcolor 20s infinite;
    animation-delay: -5s;
}
.rounded-triangle-3,
.rounded-triangle-3::before,
.rounded-triangle-3::after{
    width: 160px;
    height: 160px;
}
.rounded-triangle-3 {
    animation: radius-left 6s ease-in-out infinite, bgcolor 20s infinite;
    animation-delay: -10s;
}
.rounded-triangle-3::before {
    animation: radius-right 8s ease-in-out infinite, bgcolor 20s infinite;
    animation-delay: -10s;
}
.rounded-triangle-3::after {
    animation: radius-bottom 10s ease-in-out infinite, bgcolor 20s infinite;
    animation-delay: -10s;
}
.rounded-triangle-4,
.rounded-triangle-4::before,
.rounded-triangle-4::after{
    width: 180px;
    height: 180px;
}
.rounded-triangle-4 {
    animation: radius-left 6s ease-in-out infinite, bgcolor 20s infinite;
    animation-delay: -15s;
}
.rounded-triangle-4::before {
    animation: radius-right 8s ease-in-out infinite, bgcolor 20s infinite;
    animation-delay: -15s;
}
.rounded-triangle-4::after {
    animation: radius-bottom 10s ease-in-out infinite, bgcolor 20s infinite;
    animation-delay: -15s;
}

.rounded-triangle::before,
.rounded-triangle::after {
    content: "";
    position: absolute;
}

.rounded-triangle {
    position: relative;
    background-color: var(--color-bg-tri-gray);
    border-top-left-radius: 40%;
    transform: rotate(30deg) skewY(30deg) scaleX(.86666);
}

.rounded-triangle::before {
    background-color: var(--color-bg-tri-gray);
    border-top-right-radius: 40%;
    transform: skewX(-45deg) translateX(50%);
}

.rounded-triangle::after {
    background-color: var(--color-bg-tri-gray);
    border-bottom-left-radius: 40%;
    transform: skewY(-45deg) translateY(50%);
}

/* about */
.about-wrapper{
    color: #fff;
}
.about-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--color-bg-gray);
    transform: skewY(-5deg); /* Y軸で傾ける */
    transform-origin: center; /* 傾きの基準点を左上に */
    z-index: -1; /* コンテンツの下に配置 */
}
.about-right{
    display: flex;              /* Flexboxコンテナにする */
    justify-content: center;    /* 子要素を水平方向の中央に配置 */
    align-items: center;        /* 子要素を垂直方向の中央に配置 */
}
.rounded-triangle-about-area{
    position: absolute;
    top: 75%;
    left: 0%;
    transform: rotate(15deg);
    animation: rotateAnimation 40s linear infinite;
}

/* support */
.support-wrapper{
    overflow: hidden;
}
.support-container{
    height: 100%;
}

/* リスト（タイムライン全体）のスタイル */
.process-flow{
    max-width: 800px;
}
.process-flow h4{
    font-size: 1.4em;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}
.process-flow h4:before {
    position: absolute;
    bottom: -24px;
    left: calc(50% - 30px);
    width: 60px;
    height: 5px;
    content: '';
    border-radius: 3px;
    background: var(--color-bg-gray);
}
.process-list {
    list-style: none; /* デフォルトのリストマーカーを非表示にする */
    padding: 0;
    margin: 0;
}

/* 各リスト項目（ステップ）のスタイル */
.process-item {
    position: relative;
    padding: 0 0 40px 80px; /* 左側にスペースを確保 */
}

/* 各項目のタイトルと説明文 */
.process-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.process-description {
    font-size: 1em;
    color: #383838;
    margin: 0;
}

/* タイムラインの「丸」と「線」の共通スタイル */
.process-item::before,
.process-item::after {
    content: '';
    position: absolute;
    left: 15px; /* 左端からの位置調整 */
}

/* タイムラインの「丸」のスタイル（::before 擬似要素） */
.process-item::before {
    top: 0px;
    width: 30px;
    height: 30px;
    background-color: #555; /* 画像の丸の色に合わせる */
    border-radius: 50%;
    z-index: 1; /* 線よりも手前に表示する */
}

/* タイムラインの「線」のスタイル（::after 擬似要素） */
.process-item::after {
    top: 25px;
    bottom: -15px; /* 次の項目まで線を伸ばす */
    left: 28px;
    width: 4px;
    background-color: #555; /* 画像の線の色に合わせる */
}

/* 最後の項目に線を非表示にする */
.process-item:last-child::after {
    display: none;
}
.support-bottom{
    display: flex;
    flex-wrap: wrap;  
    gap: 20px;
    margin-top: 60px;
}
/* 各カードのスタイル */
.card {
    display: flex;
    flex-direction: column; /* 縦並びにする */
    align-items: center; /* 縦方向の中央揃え */
    flex-basis: calc(18% - 15px); 
    flex-grow: 0;   /* 必要以上に伸びない */
    flex-shrink: 0; /* 必要以上に縮まない */
    background-color: var(--color-bg-light-gray);
    border-radius: 12px;
    padding: 30px 20px;

    /* 画像のシャドウを再現 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* transition: transform 0.2s, box-shadow 0.2s; */
}
/* .card:hover {
    transform: translateY(-5px); ホバー時の浮き上がり効果
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
} */
/* アイコンとテキストのスタイル */
.card-icon {
    display: inline-block;
    text-align: center;
}
.card-icon img {
    width: 35%;
}
.card-text {
    font-size: 1.1em;
    font-weight: bold;
    color: #000000;
    margin: 0;
    text-align: center;
    padding-top: 16px;
}
.rounded-triangle-support-area{
    position: absolute;
    top: 50%;
    left: 92%;
    transform: rotate(30deg);
    animation: rotateAnimation 50s linear infinite;
}

/* case */
.case-wrapper{
    color: #fff;
}
.case-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--color-bg-gray);
    transform: skewY(5deg); /* Y軸で傾ける */
    transform-origin: center; 
    z-index: -1; 
}
/* カードを横並びにする親コンテナ */
.case-middle {
    display: flex;
    flex-wrap: wrap;  
    gap: 24px; /* カード間のスペースを調整 */
    margin-top: 0;
}

/* 各カードのスタイル */
.case-study-card {
    flex: 1; /* 各カードが均等な幅を占めるようにする */
    background-color: transparent;
    color: #ffffff;
    z-index: 100;
    overflow: hidden; /* 角丸に合わせて画像を切り抜く */
    /* その他、画像に合わせてpaddingやフォントを設定 */
}
/* 画像とプロフィールアイコンのレイアウト */
.card-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    aspect-ratio: 16 / 9;
}
.card-image{
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}
.card-content{
    padding: 8px 0;
}
.company-name{
    margin: 0;
}
.tags{
    font-size: 12px;
}
.rounded-triangle-case-area{
    position: absolute;
    top: 60%;
    left: 0%;
    transform: rotate(30deg);
    animation: rotateAnimation 50s linear infinite;
}

/* contact */
.contact-wrapper{
    overflow: hidden;
}
.contact-content a{
    margin-top: 48px;
}
.rounded-triangle-contact-area{
    position: absolute;
    top: 65%;
    left: 95%;
    transform: rotate(30deg);
    animation: rotateAnimation 50s linear infinite;
}
/* Lower about */
.lower-title-wrapper{
    margin-top: 75px;
}
.lower-title-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--color-bg-gray);
    transform: skewY(-5deg); /* Y軸で傾ける */
    transform-origin: center; 
    z-index: -1; 
}
.lower-title-container{
    color: #fff;
    text-align: center;
    padding: 48px;
}
.lower-title{
    width: 100%;
}
.rounded-triangle-lower-title-area{
    position: absolute;
    top: 5%;
    left: 5%;
    transform: rotate(30deg);
    animation: rotateAnimation 50s linear infinite;
    z-index: -1;
}
.about-message-container{
    max-width: 800px;
    justify-content: center;
}
.about-message-top{
    margin-top: 0;
    text-align: center;
}
.top-message-highlight{
    font-size: 1.2em;
    font-weight: 800;
    margin: 36px 0 16px;
    width: 100%;
}
.top-message-sign{
    width: 100%;
    text-align: right;
    margin-top: 24px;
}
.top-message-sign-name{
    display: inline-block;
    margin-top: 8px;
}
.about-message-bottom{
    margin-top: 0;
}
.about-info-wrapper{
    flex-wrap: wrap;
}
.about-info-container{
    padding-top: 0;
    max-width: 800px;
    justify-content: center;
}
table {
    width: 100%; /* テーブルの幅を親要素に合わせる */
    border-collapse: collapse; /* セルのボーダーを結合 */
    table-layout: fixed; /* カラム幅を固定するため */
}

.company-row {
    position: relative; /* 三角形のために必要 */
}

.company-row td {
    padding: 48px 0 8px; /* セルの上下パディング */
    border-bottom: 1px solid #ccc; /* セルの下線 */
    vertical-align: middle; /* セルの内容を垂直方向中央に揃える */
}

.label-cell {
    width: 30%; /* 左のセルの幅を固定（必要に応じて調整） */
    color: #333;
    padding-right: 20px; /* 右のセルとの間隔 */
    box-sizing: border-box; /* パディングを含めて幅を計算 */
}

.value-cell {
    color: #333;
    text-align: left; /* 右寄せ */
    width: 70%; /* 右のセルの幅を固定（残りの幅） */
}
.value-cell a{
    display: inline-block;
}
.value-cell img{
    vertical-align: text-top; /* 画像を親要素のベースラインの中央に揃える */
    width: 30px;
}

/* 左右の三角形（tr要素に適用） */
.company-row::before,
.company-row::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    top: 100%;
    transform: translateY(-50%);
    /* z-index: 1; */ /* 必要に応じて前面に表示 */
}
.company-row::before {
    left: -10px; /* 線の右端より少し外側 */
    border-width: 5px 0 5px 10px;
    border-color: transparent transparent transparent #888;
}
.company-row::after {
    right: -10px; /* 線の左端より少し外側 */
    border-width: 5px 10px 5px 0;
    border-color: transparent #888 transparent transparent;
}

/* Lower case */
.lower-case-container{
    max-width: 70%;
    padding-top: 0;
}
.lower-case-middle{
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    margin-top: 100px;
}
.lower-case-card{
    background-color: var(--color-bg-light-gray);
    border-radius: 16px;
    flex-basis: calc(33% - 10px); 
    padding: 16px;
}
.lower-card-image-wrapper{
    display: flex;
    justify-content: center;
}
.lower-card-image-wrapper img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
}
.lower-company-name{
    margin: 8px 0 0;
    font-size: 20px;
}
.lower-tags{
    margin-top: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d7d7d7;
}
.lower-card-content span{
    color: #6f6f6f;
}
.pagination-links{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pagination-links ul{
    display: flex;
    padding-left: 0;
}
.pagination-links li{
    padding: 16px;
}
/* Lower service */
.lower-service-wrapper{
    margin-top: 100px;
    flex-wrap: wrap;
}
.lower-service-container{
    max-width: 70%;
    background-color: var(--color-bg-light-gray);
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 48px;
}
.lower-service-left{
    flex-basis: 60%;
}
.lower-service-right{
    flex-basis: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lower-service-right img{
    width: 90%;
}
.service-content-box{
    padding-bottom: 8px;
}
.service-content-box h4{
    font-size: 1.2em;
}
.service-content-tag span {
	position: relative;
	display: inline-block;
	margin: 0 .6em .6em .6em;
	padding: .6em .6em .6em 1.2em;
	line-height: 1;
	color: #fff;
	text-decoration: none;
    font-size: 14px;
	background-color: var(--color-bg-gray);
}
.service-content-tag span:before {
	position: absolute;
	top: 0;
	left: -1em;
	content: '';
	border-width: 1.1em 1em 1.1em 0;
	border-style: solid;
	border-color: transparent var(--color-bg-gray) transparent transparent;
}
.service-content-tag span:after {
	position: absolute;
	top: center;
	left: 0;
	content: '●';
	color: #fff;
}
.feature-item-row {
    display: flex; /* 子要素を横並びにする */
    align-items: flex-start; /* 垂直方向の配置を上揃えにする（アイコンが小さい場合などに有効） */
    /* align-items: center; /* もしアイコンやテキストが複数行になっても中央に揃えたい場合はこちら */
    margin-bottom: 0; /* 各行の下の余白 */
}

/* 最後の行には下線を引かない */
.feature-item-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.feature-label {
    flex-shrink: 0; /* 幅が縮まないようにする */
    width: 70px; /* 要素1（ラベル）の固定幅 */
    margin-right: 15px; /* アイコンとの間のスペース */
    /* padding-left: 20px; /* 左端の揃えに使うこともできるが、ここではアイコンで調整 */
}

.feature-icon {
    flex-shrink: 0; /* 幅が縮まないようにする */
    width: 24px; /* アイコンの幅 */
    height: 24px; /* アイコンの高さ */
    margin-right: 15px; /* 要素2との間のスペース */
    /* アイコン画像のスタイル */
    display: flex; /* 画像を中央揃えにするため */
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%; /* 親要素(feature-icon)の幅に合わせる */
    height: 90%; /* 親要素(feature-icon)の高さに合わせる */
    object-fit: contain; /* 画像が枠内に収まるように */
}

.feature-value {
    flex-grow: 1; /* 残りのスペースを全て埋める */
    color: #000000;
    line-height: 1.6;
}


/* 最後のdd要素の下線 */
service-content-vol dd:not(:last-child) {
    border-bottom: 1px dashed #e0e0e0; /* カテゴリごとに点線で区切る */
    padding-bottom: 15px; /* 下線と次の項目の間のスペース */
}
.service-content-qa ul {
  list-style-type: none; /* デフォルトのリストマーカー（数字や点）を非表示 */
  padding-left: 0; /* デフォルトの左側のパディングをリセット */
  margin: 0; /* デフォルトのマージンをリセット（必要であれば） */
}
.service-content-qa li {
  padding-left: 30px; /* アイコンを表示するための左側のスペースを確保 */
  position: relative; /* 疑似要素の配置基準 */
  margin-bottom: 4px; /* 各リストアイテムの下マージン */
  line-height: 1.5; /* 行の高さ調整 */
}
.service-content-qa li::before {
    content: "";
    position: absolute;
    left: 0;
    width: 24px; /* アイコンの幅 */
    height: 24px; /* アイコンの高さ */
    background-image: url('/wp-content/themes/thankaq_theme/assets/img/qa.svg'); /* アイコン画像のパス */
    background-repeat: no-repeat;
    background-size: contain; /* アイコンが枠内に収まるように調整 */
    background-position: center; /* アイコンを中央に配置 */
}
.rounded-triangle-lower-area{
    position: absolute;
    top: 50%;
    left: 0%;
    transform: rotate(15deg);
    animation: rotateAnimation 40s linear infinite;
}

/* lower contact */
.lower-contact-container{
    padding-top: 24px;
}
.lower-contact-middle h1{
    display: none;
}
.wpcf7 {
background-color: var(--color-bg-light-gray);
padding: 50px;
border-radius: 12px;
width: 750px;
margin: auto;
}
/* ラベルのスタイル */
.wpcf7-form label {
display: block;
margin-bottom: 10px;
font-size: 16px;
color: #333333; /* ダークグレー */
margin-bottom: 36px;
}
/* 必須フィールドのラベルスタイル */
.wpcf7-form .required {
background-color: #bf0000; /* レッド */
color: white;
padding: 2px 5px;
border-radius: 3px;
margin-left: 10px;
font-size: 12px;
margin-bottom: 10px;
display: inline-block;
}
.wpcf7-form-control-wrap{
    width: 100%;
}
/* インプットフィールドのスタイル */
.wpcf7-form input,.wpcf7-form textarea {
width: 100%;
padding: 10px;
border: 1px solid #cccccc; /* ライトグレー */
border-radius: 5px;
font-size: 16px;
background-color: #ffffff; /* 白 */
}
/* テキストエリアのスタイル */
.wpcf7-form textarea {
height: 200px;
resize: vertical;
}
.wpcf7-form input[type="checkbox"] {
    width: 20px;
}
.wpcf7-acceptance .wpcf7-list-item{
    margin: 16px 0;
}
/* 送信ボタンのスタイル */
.wpcf7-form input[type="submit"] {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(to right, #34c9ff, #00a5ff, #5A8EFF);
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.25);
    font-size: 16px;
    z-index: 1; /* ボタンが他の要素の上に表示されるように（必要であれば） */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; /* 大きくなるアニメーションと影のアニメーション */
    cursor: pointer;
}
.wpcf7-form input[type="submit"]:hover {
    color: #fff;
    transform: scale(1.01); /* 1.05倍に大きくする */
    box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.35); /* 影を強調して浮き上がったように見せる */
}
/* エラーメッセージと成功メッセージのスタイル */
.wpcf7-form .wpcf7-not-valid-tip {
color: #bf0000;
font-size: 14px;
}
/* エラーメッセージと成功メッセージのスタイル */
.wpcf7 form.sent .wpcf7-response-output{
    background: #5db035;
    border-radius:16px;
    padding: 24px 16px;
    color: #fff;
    border-color: #5db035;
}
.wpcf7 form.failed .wpcf7-response-output{
    background: #bf0000;
    border-radius: 16px;
    padding: 24px 16px;
    color: #fff;
    border-color: #bf0000;
}
.wpcf7 form.invalid .wpcf7-response-output{
    background: #f3d83d;
    border-radius: 16px;
    padding: 24px 16px;
    color: #000000;
    border-color: #f3d83d;
}
/* Privacy Policy */
.privacy-policy-container{
    max-width: 800px;
}
.privacy-policy-middle{
    display: block;
    margin-top: 0;
}
.privacy-policy-middle h3{
    font-size: 1.2em;
    margin:48px 0 0;
}
.privacy-policy-middle h4{
    margin:36px 0 0;
}
/* footer */
.footer {
    display: flex;
    justify-content: center; /* 子要素を横中央に配置 */
    padding: 16px;
    background-color: #515151;
    flex-shrink: 0; /* フッターも縮まないようにする */
}
.footer_container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
}
.footer__nav a, .footer__nav span{
    color: #fff;
    display: inline-block;
}
.footer__nav ul {
    display: flex; /* Flexboxを使って子要素を横並びにする */
    list-style: none; /* リストの点を非表示にする */
    margin: 0;
    padding: 16px;
    gap: 36px; /* メニュー項目間の余白を30pxにする */
}
.sns-area img{
    width: 30px;
}
.footer__nav_middle{
    font-size: 14px;
    padding: 16px 16px 0;
}
.footer__nav_middle a{
    font-size: 14px;
}
.footer__nav_bottom{
    padding: 16px;
    font-size: 12px;
}
.footer__logo{
    background-color: #fff;
    border-radius: 50%;
}
.footer__logo a{
    display: block;
}
.footer__logo img{
    width: 160px;
    border-radius: 50%;
    display: block;
}

/*==================================================
// SP用のスタイル（ブレイクポイント: 768px以下）
//==================================================*/
@media screen and (max-width: 767px) {
    /* header */
    body.is-open {
        overflow: hidden; /* メニュー表示時に背景を固定 */
    }

    /* ハンバーガーボタンのスタイル */
    .hamburger-btn {
        display: block;
        position: relative;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        z-index: 100;
        cursor: pointer;
    }
    .hamburger-btn__line {
        position: absolute;
        display: block;
        width: 100%;
        height: 4px;
        background-color: #333;
        transition: transform 0.3s, opacity 0.3s;
    }
    .hamburger-btn__line:nth-of-type(1) {
        top: 0;
    }
    .hamburger-btn__line:nth-of-type(2) {
        top: 50%;
        transform: translateY(-50%);
    }
    .hamburger-btn__line:nth-of-type(3) {
        bottom: 0;
    }

    /* メニューが開いた時のボタンのスタイル (×印) */
    .hamburger-btn.is-open .hamburger-btn__line:nth-of-type(1) {
        transform: translateY(13px) rotate(45deg);
    }
    .hamburger-btn.is-open .hamburger-btn__line:nth-of-type(2) {
        opacity: 0;
    }
    .hamburger-btn.is-open .hamburger-btn__line:nth-of-type(3) {
        transform: translateY(-13px) rotate(-45deg);
    }

    /* ナビゲーションメニューのスタイル */
    .header__nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        padding-top: 80px;
        z-index: 90;
        transform: translateY(-20px); /* 初期位置を少し下げる */
        opacity: 0;
        visibility: hidden;
        background-color: var(--color-bg-light-gray);
    }
    body.is-open .header__nav {
        transform: translateY(0); /* 元の位置に戻す */
        opacity: 1;
        visibility: visible;
        transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0.5s;
    }

    .header__nav ul {
        display: flex; /* Flexboxを適用 */
        flex-direction: column; /* 子要素を縦方向に並べる */
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 16px;
    }
    .header__nav li {
        width: 100%; /* li要素の幅を100%にする */
        text-align: center; /* テキストを中央揃えにする */
    }
    .header__nav a {
        display: block;
        padding: 15px 0;
    }

    /* main */
    .base-container{
        max-width: 100%;
        padding: 80px 16px;
    }
    .base-container-middle, .base-container-bottom{
        margin-top: 50px;
    }
    .rounded-triangle-s,
    .rounded-triangle-s::before,
    .rounded-triangle-s::after{
        width: 60px;
        height: 60px;
    }
    .rounded-triangle-m,
    .rounded-triangle-m::before,
    .rounded-triangle-m::after{
        width: 70px;
        height: 70px;
    }
    .rounded-triangle-1,
    .rounded-triangle-1::before,
    .rounded-triangle-1::after{
        width: 120px;
        height: 120px;
    }
    .rounded-triangle-4,
    .rounded-triangle-4::before,
    .rounded-triangle-4::after{
        width: 70px;
        height: 70px;
    }
    /* mv */
    .mv-container{
        height: 450px;
    }
    .mv-left {
        flex-basis: 100%;
        text-align: center;
        padding-left: 0;
    }
    .mv-left h2{
        font-size: 28px;
    }
    .mv-right {
        position: absolute;
        top: -20%;
        left: 60%;
        flex-basis: 0;
    }
    .rounded-triangle-2-area, .rounded-triangle-3-area, .rounded-triangle-4-area{
        display: none;
    }

    /* about */
    .about-message-top{
        width: 100%;
        text-align: center;
    }
    .base-container-title h3{
        margin: 0 0 48px;
    }
    .about-left {
        flex-basis: 100%;
        text-align: center;
    }
    .about-right {
        flex-basis: 0;
    }
    .rounded-triangle-about-area{
        top: 80%;
    }

    /* support */
    .support-left {
        flex-basis: 0;
    }
    .support-right {
        flex-basis: 100%;
        text-align: center;
    }
    .card {
    flex-basis: calc(50% - 15px); 
    padding: 20px 10px; 
    }
    .rounded-triangle-support-area{
        top: 65%;
        z-index: -1;
    }
    .support-btn-area{
        margin-top: 20%;
    }
    /* case */
    .case-top{
        flex-basis: 100%;
        text-align: center;
    }
    .case-middle{
        margin-top: 16px;
    }
    .case-study-card {
        flex: 1 1 100%; /* 各カードが均等な幅を占めるようにする */
    }
    .rounded-triangle-case-area{
        top: 90%;
        z-index: -1;
    }

    /* contact */
    .contact-left {
        flex-basis: 0;
    }
    .contact-right {
        flex-basis: 100%;
        text-align: center;
    }
    .rounded-triangle-contact-area{
        top: 80%;
        z-index: -1;
    }

    /* lower-template */
    .lower-title-wrapper{
        margin-top: 18px;
        padding: 24px;
    }
    .lower-title-container{
        padding: 16px;
    }
    .about-message-container{
        padding-top: 50px;
    }
    .about-message-bottom{
        margin-top: 0;
    }
    .about-info-container{
        margin: 0 16px;
        padding-top: 0;
    }
    .top-message-highlight{
        margin: 0 0 16px;
    }

    .lower-service-wrapper{
        margin-top: 50px;
        padding: 0 16px;
    }
    .lower-service-left{
        flex-basis: 100%;
    }
    .lower-service-right{
        flex-basis: 0;
    }
    .lower-service-container{
        padding: 24px;
    }
    .lower-service-container h3{
        font-size: 24px;
    }
    .rounded-triangle-lower-title-area{
        top: 40%;
        left: 0%;
    }
    .rounded-triangle-lower-area{
        display: none;
    }

    /* lower case */
    .lower-case-container{
        padding-top: 0;
    }
    .lower-case-card{
        flex-basis: 100%;
    }
    /* lower contact */
    .lower-contact-container{
        padding-top: 0;
    }
    .wpcf7 {
        width: 100%;
        padding: 16px;
    }
    .privacy-policy-container{
        padding-top: 0;
    }
    /* footer */
    .footer__nav ul {
        display: flex;
        flex-wrap: wrap; /* 子要素を折り返す */
        gap: 8px;       /* 要素間の余白を調整 */
    }
    .footer__nav li {
        /*
        * 1行に2つの要素を並べるための幅を計算
        * gap (16px) の半分を50%から引く
        */
        width: calc(50% - 8px); 
    }
    .footer__nav ul a {
        padding: 8px;
    }
    .footer__nav_middle a{
        padding: 16px 8px 4px;
    }
    .footer__nav_bottom{
        display: inline-block;
        text-align: center;
    }
    .footer__logo{
        display: none;
    }
}

