@charset "UTF-8";

/* ==================================
   Variables & Reset
================================== */
:root {
    --color-text: #4a3c31;      /* メインテキスト（知的なダークブラウン） */
    --color-bg: #fcfbf9;        /* 背景色（温かみのあるオフホワイト） */
    --color-bg-light: #f4f1eb;  /* セクション背景（ベージュ） */
    --color-primary: #b06a41;   /* アクセント（テラコッタ・レンガ色） */
    --color-secondary: #7e8c56; /* サブアクセント（オリーブグリーン） */
    
    --font-heading: 'Noto Serif JP', serif;
    --font-body: 'Zen Kaku Gothic New', sans-serif;
    --font-copy: 'Klee One', cursive;
}

body, h1, h2, h3, p, ul, li, figure, blockquote {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    letter-spacing: 0.05em;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--color-text);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================================
   Layout & Utility
================================== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

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

.text-left {
    text-align: left;
}

.mt-4 {
    margin-top: 40px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-primary);
}

.btn {
    display: inline-block;
    background-color: var(--color-secondary);
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #6a7747;
}

/* ==================================
   Header & Navigation
================================== */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.logo a {
    color: var(--color-primary);
}

/* PC表示：メニューの中央寄せ */
.global-nav {
    flex-grow: 1; /* 空きスペースを埋める */
    display: flex;
    justify-content: center; /* リンクを中央に配置 */
}

.global-nav ul {
    display: flex;
    gap: 30px; /* リンク同士の間隔 */
    margin: 0 auto;
}

.global-nav a {
    font-weight: 500;
    font-size: 0.95rem;
}

.global-nav a:hover {
    color: var(--color-primary);
}

/* PCではハンバーガーボタンを隠す */
.hamburger {
    display: none;
}

/* ==================================
   Mobile Responsive (768px以下)
================================== */
@media screen and (max-width: 768px) {
    /* 画面幅の調整 */
    .hero-copy {
        font-size: 1.6rem; /* スマホ用に文字サイズを少し小さく */
    }
    
    /* スマホ表示：メニューの中央寄せ解除 */
    .global-nav {
        flex-grow: 0;
    }

    /* ハンバーガーボタンの装飾 */
    .hamburger {
        display: block;
        position: relative;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 200; /* メニューより上に配置 */
    }

    /* 3本線の設定 */
    .hamburger span {
        position: absolute;
        left: 5px;
        width: 30px;
        height: 2px;
        background-color: var(--color-primary);
        transition: all 0.3s ease; /* アニメーションのなめらかさ */
    }

    .hamburger span:nth-child(1) { top: 10px; }
    .hamburger span:nth-child(2) { top: 19px; }
    .hamburger span:nth-child(3) { top: 28px; }

    /* ハンバーガーボタンが押された時（×印になる動き） */
    .hamburger.is-active span:nth-child(1) {
        top: 19px;
        transform: rotate(45deg);
    }
    .hamburger.is-active span:nth-child(2) {
        opacity: 0; /* 真ん中の線を消す */
    }
    .hamburger.is-active span:nth-child(3) {
        top: 19px;
        transform: rotate(-45deg);
    }

    /* スマホ用メニュー画面の装飾 */
    .global-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* 画面いっぱいに広げる */
        background-color: rgba(252, 251, 249, 0.98); /* 背景色（少し透過） */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* 初期状態は隠しておく */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 100;
    }

    /* ボタンが押されたらメニューを表示する */
    .global-nav.is-active {
        opacity: 1;
        visibility: visible;
    }

    .global-nav ul {
        flex-direction: column; /* 縦並びにする */
        gap: 30px;
        text-align: center;
    }

    .global-nav a {
        font-size: 1.2rem;
        padding: 10px;
        display: block;
    }
}
/* ==================================
   Hero
================================== */
.hero {
    position: relative;
    min-height: 70vh; /* heightからmin-heightに変更 */
    padding: 40px 20px; /* 枠が画面端にピッタリ付かないよう余白を追加 */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4; /* 写真が入った時の調整用 */
}

.hero-content {
    background: rgba(252, 251, 249, 0.85);
    padding: 40px 60px;
    border-radius: 8px;
    text-align: center;
    width: 100%; /* 横幅のはみ出し防止 */
    max-width: 800px;
    box-sizing: border-box;
}

.hero-copy {
    font-family: var(--font-copy);
    font-size: 2.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.hero-sub {
    font-size: 1.05rem;
    font-weight: 500;
}

/* ==================================
   Issues / Cards
================================== */
.issues-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 280px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 20px;
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    background-color: #e0dcd3; /* ダミー画像用背景 */
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--color-bg-light);
    padding-bottom: 10px;
}

/* ==================================
   About (Promises)
================================== */
.lead {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.promises {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.promise-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border-left: 5px solid var(--color-secondary);
}

.promise-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-secondary);
    margin-right: 30px;
    opacity: 0.3;
}

.promise-text h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* ==================================
   Service Layout
================================== */
.service-list hr {
    border: none;
    border-top: 1px dashed #dcd5c9;
    margin: 40px 0;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-info {
    flex: 1;
    min-width: 300px;
}

.service-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.service-info p {
    margin-bottom: 20px;
}

.service-img {
    flex: 1;
    min-width: 300px;
    background-color: #e0dcd3; /* ダミー用 */
    border-radius: 8px;
    overflow: hidden;
}

/* ==================================
   Profile
================================== */
.profile-container {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.profile-img-wrap {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #dcd5c9; /* ダミー用 */
}

.profile-text {
    max-width: 500px;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ==================================
   Skills Page
================================== */
.page-header {
    background-color: var(--color-primary);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.full-img {
    width: 100%;
    height: auto; /* ← 高さを自動調整して縦横比を保つ */
    border-radius: 8px;
    margin-bottom: 40px;
}
.flow-text-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.flow-box {
    flex: 1;
    min-width: 250px;
    background: var(--color-bg-light);
    padding: 25px;
    border-radius: 8px;
}

.flow-box h3 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    border-bottom: 1px solid #dcd5c9;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.flow-box ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.data-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.data-card {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.data-title {
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.chart-dummy {
    width: 100%;
    height: 200px;
    background-color: #e0dcd3; /* ダミー用 */
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-list li {
    margin-bottom: 10px;
    padding-left: 1.5em;
    text-indent: -1.5em;
}

.data-list li::before {
    content: "✓";
    color: var(--color-secondary);
    margin-right: 8px;
    font-weight: bold;
}

.voice {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--color-bg-light);
    border-radius: 4px;
    font-family: var(--font-copy);
    font-size: 1.05rem;
    color: #6d5a4a;
}

/* ==================================
   Footer
================================== */
.footer {
    background-color: #3e3129;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* ==================================
   Profile Details / Research List
================================== */
.sub-heading {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-primary);
    border-bottom: 2px solid #dcd5c9;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.timeline {
    padding-left: 20px;
}

.timeline li {
    position: relative;
    padding-bottom: 15px;
    padding-left: 20px;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-secondary);
}

.timeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background-color: #dcd5c9;
}

.research-wrap {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.research-list li {
    margin-bottom: 12px;
    padding-left: 1.5em;
    text-indent: -1.5em;
    line-height: 1.6;
}

.research-list li::before {
    content: "■";
    color: var(--color-secondary);
    margin-right: 8px;
    font-size: 0.8em;
}

/* ==================================
   Contact Form
================================== */
.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
}

.required {
    background-color: #fff4f4; /* 薄い赤の背景 */
    color: #e60000; /* 文字を赤に */
    border: 1px solid #e60000; /* 赤い枠線 */
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcd5c9;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fcfbf9;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-secondary);
    background-color: #fff;
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: "▼";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--color-text);
    font-size: 0.8rem;
}

select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.form-submit {
    margin-top: 40px;
}

.form-submit button {
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 15px 50px;
}
/* お問い合わせ内容の枠を画面に合わせて可変にする設定 */
textarea {
    min-height: 250px; /* どんなに画面が小さくても最低限この高さを確保 */
    height: 35vh; /* 画面の高さの35%のサイズにする */
    resize: vertical; /* 右下をマウスで引っ張って縦に広げられるようにする */
}

/* ==================================
   Company Table (会社概要)
================================== */
.company-wrap {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 20px 15px;
    border-bottom: 1px dashed #dcd5c9;
    text-align: left;
    vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

.company-table th {
    width: 30%;
    font-weight: 700;
    color: var(--color-primary);
}

@media screen and (max-width: 768px) {
    .hero-copy {
        font-size: 1.5rem; /* 少しだけ小さく調整 */
        margin-bottom: 15px;
    }
    
    /* ▼▼▼ ここから追記 ▼▼▼ */
    .hero-content {
        padding: 30px 15px; /* スマホでは内側の余白を狭くして文字のスペースを確保 */
    }
    
    .hero-sub {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    /* ▲▲▲ ここまで追記 ▲▲▲ */
    
    .company-table th, 
    .company-table td {
        display: block;
        width: 100%;
        padding: 10px 5px;
    }
    
    .company-table th {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .company-table td {
        padding-top: 5px;
        margin-bottom: 15px;
    }
}