/*
Theme Name: アイファーマ
Theme URI: https://example.com/aipharma
Author: Your Name
Author URI: https://example.com
Description: どまと薬局の採用サイト用WordPressテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aipharma
*/

/* =============================================================================
   reset css
================================================================================ */
html {
    font-size: 62.5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    /* font-size: 16px;
    line-height: 1.8; */
    line-height: 1.5;
    color: #333;
    background-color: #F6F7EA;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

.site-main {
    overflow: hidden;
}

/* ========================================
   カラー変数
======================================== */
:root {
    /* --color-primary: #4A4A6A;
    --color-secondary: #5BA3D0;
    --color-background: #F6F7EA; */
    --color-white: #FFFFFF;
    /* --color-pink: #FFE5E5;
    --color-yellow: #FFF8DC;
    --color-text: #333333;
    --color-text-light: #666666; */
}

/* =============================================================================
   header
============================================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 6.510416666666667vw;
    padding: 0 5.3125vw;
    z-index: 9999;
}

.site-header::before {
  content: "";
  position: absolute;
  top: -8.854166666666668vw;
  left: -5.15625vw;
  width: 31.25vw; 
  height: 15.364583333333334vw;
  border-radius: 6.302083333333333vw;
  box-shadow: 0 3px 6px #00000029;
  background-color: var(--color-white);
}

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

.site-logo {
    position: static;
    width: 15.677083333333334vw;
    z-index: 999;
}

.site-logo img {
    width: 100%;
    display: block;
}

.btn {
    display: inline-block;
    text-align: center;
    color: var(--color-white);
}

.header-buttons {
    display: flex;
    gap: 1.1979166666666667vw;
}

.header-buttons .btn {
    width: 10.727604166666667vw;
    padding: 0.8906250000000001vw 2.7864583333333335vw;
    border-radius: 80px;
    font-size: 1.25vw;
    box-shadow: 0.4166666666666667vw 0.5208333333333333vw 0.3125vw #00000029;
}

.btn-primary {
    background: linear-gradient(to right, #766FA2, #3A3650);
}

.btn-secondary {
    background: linear-gradient(to right, #1895D1, #297193);
}

/* =============================================================================
   footer
============================================================================= */
.site-footer {
    position: relative;
    padding: 8.625vw 0 7.34375vw 9.479166666666666vw;
    overflow: hidden;
    background-color: var(--color-white);
}

.site-footer::after {
    content: "";
    position: absolute;
    bottom: -12.90625vw;
    right: -4.822916666666666vw;
    width: 44.85885416666667vw;
    height: 42.71041666666667vw;
    background-image: url("./assets/images/bg_tomato.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 5.625vw;
    width: 49.895833333333336vw;
}

.footer-logo {
    width: 17.65625vw;
}

.footer-logo img {
    width: 100%;
    display: block;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 3.927083333333334vw;
    flex: 1;
}

.company-list {
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

.company-list .menu-item a {
    font-size: 1.25vw;
}

.footer-menu-wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.3854166666666667vw 0;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 0.26041666666666663vw;
    width: 50%;
}

.footer-menu .menu-item a {
    font-size: max(0.8333333333333334vw, 1rem);
}

/* =============================================================================
   components
============================================================================= */

/* cta */
.cta-section--btm {
    margin: 6.25vw 0;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15.416666666666668vw;
}

.cta-button {
    width: 24.6875vw;
    padding: 0.8854166666666666vw 5.703125vw 0.5729166666666666vw;
    border-radius: 0.8333333333333334vw;
    font-size: 2.083333333333333vw;
    box-shadow: 0.4166666666666667vw 0.5208333333333333vw 0.3125vw #00000029;
}

/* video section */
.video-section {
    margin: 6.25vw 0;
    padding: 3.0208333333333335vw 0 3.6458333333333335vw;
    background-color: #F2F5CC;
}

.video-wrapper {
    width: 73.95833333333334vw;
    margin: 0 auto;
    padding: 4.166666666666666vw;
    border-radius: 1.9791666666666665vw;
    background-color: var(--color-white);
    text-align: center;
}

.video {
    width: 65.67708333333333vw;
}

.video-title-wrap {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 3.125vw;
    display: flex;
    align-items: end;
    gap: 0.4166666666666667vw;
}

.video-title-wrap::before,
.video-title-wrap::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 0.26041666666666663vw;
    height: 80%;
    border-radius: 10px;
    background-color: #625C8A;
}

.video-title-wrap::before {
    left: -2vw;
    transform: rotate(-25deg);
}

.video-title-wrap::after {
    right: -2vw;
    transform: rotate(25deg);
}

.video-title-img-wrap {
    width: 19.980729166666666vw;
}

.video-title-img {
    width: 100%;
}

.video-title-text {
    font-size: max(1.9270833333333335vw, 1rem);
    color: #625C8A;
    line-height: 1;
}


/* SP */
/* =============================================================================
   header
============================================================================= */
@media screen and (max-width: 768px) {
    .site-header {
        height: 60px;
        padding: 0 8px;
    }

    .site-header::before {
        top: -72px;
        left: -50px;
        width: 270px;
        height: 132px;
        border-radius: 186px;
    }

    /* .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
    } */

    .site-logo {
        width: 180px;
    }

    /* .site-logo img {
        width: 100%;
        display: block;
    } */

    /* .btn {
        display: inline-block;
        text-align: center;
        color: var(--color-white);
    } */

    .header-buttons {
        gap: 8px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0 8px 8px;
    }

    .header-buttons .btn {
        width: calc(50% - 4px);
        font-size: 14px;
        height: 44px;
        line-height: 44px;
        padding: 0;
        box-shadow: 2px 4px 3px #00000029;
    }
    
}

/* =============================================================================
   footer
============================================================================= */
@media screen and (max-width: 768px) {
    .site-footer {
        position: relative;
        padding: 40px 20px 80px;
    }
    
    .site-footer::after {
        bottom: -25px;
        right: -57px;
        width: 225px;
        height: 214.22px;
    }
    
    .footer-content {
        flex-direction: column-reverse;
        width: 100%;
    }
    
    .footer-logo {
        width: 154px;
    }
    
    .footer-right {
        width: 100%;
        flex-direction: column-reverse;
        gap: 32px;
    }
    
    .company-list {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }
    
    .company-list .menu-item a {
        font-size: 11px;
    }
    
    .footer-menu-wrap {
        width: 80%;
        margin: 0 auto;
        gap: 16px 0;
        justify-content: space-between;
    }
    
    .footer-menu {
        width: 45%;
    }
    
    .footer-menu .menu-item a {
        font-size: 12px;
    }
}

/* =============================================================================
   components
============================================================================= */
@media screen and (max-width: 768px) {
    /* cta */
    .cta-section--btm {
        margin: 60px 0;
    }

    .cta-buttons {
        gap: 8px;
    }
    
    .cta-button {
        width: 154px;
        padding: 5px 39px;
        border-radius: 16px;
        font-size: 14px;
        line-height: 1.1;
        box-shadow:  8px 10px 6px #00000029;
    }

    /* video section */
    .video-section {
        margin-top: 16px;
        margin-bottom: 68px;
        padding: 20px 0;
        background-color: #F2F5CC;
    }
    
    .video-wrapper {
        width: 86%;
        margin: 0 auto;
        padding: 32px;
        border-radius: 16px;
    }
    
    .video {
        width: 100%;
    }

    .video-title-wrap {
        margin-bottom: 24px;
        gap: 4px;
    }

    .video-title-wrap::before,
    .video-title-wrap::after {
        width: 0.976562px;
        height: 13.25px;
    }

    .video-title-wrap::before {
        left: -7.5px;
    }

    .video-title-wrap::after {
        right: -7.5px;
    }

    .video-title-img-wrap {
        width: 80px;
    }

    .video-title-img {
        width: 100%;
    }

    .video-title-text {
        font-size: 10px;
    }
}