@charset "utf-8";

/* ==========================================================================
   Base Layout & Reset (Typemill "aboutme" Base)
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

footer { margin-top: auto; }

/* Utilities */
.mw-960 { max-width: 960px; padding: 0 20px; margin: 0 auto; }
.text-center { text-align: center; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: #3eb370; }

/* Colors & Variables */
:root {
    --wohl-primary: #3eb370; /* Wohl Green */
}

/* ==========================================================================
   Header (Matches Typemill)
   ========================================================================== */
header {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.header-inner {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo-link {
    display: block;
    line-height: 0;
}
.logo-image {
    height: 45px;
    width: auto;
    max-width: 250px;
    display: block;
}

/* Navigation */
.mainnav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.mainnav li { margin-left: 20px; }
.mainnav a { font-weight: 500; font-size: 0.95rem; }

/* レスポンシブメニューの調整 */
/* PC表示ではバーガーボタン等は非表示 */
#burger { display: none; }
.burgerbutton { display: none; font-size: 1.5rem; cursor: pointer; }

/* スマホ表示 (768px以下) */
@media (max-width: 768px) {
    /* メニューリストを通常は非表示にし、絶対配置で展開できるようにする */
    .mainnav {
        position: relative;
    }
    .mainnav ul {
        display: none; /* 初期状態は非表示 */
        flex-direction: column;
        position: fixed; /* absoluteからfixedに変更して画面幅いっぱいに */
        top: 70px; /* ヘッダーの高さ分下げる */
        left: 0;
        right: 0;
        width: 100vw; /* ビューポート幅いっぱいに */
        max-width: 100vw; /* はみ出し防止 */
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        gap: 15px;
        z-index: 999;
        box-sizing: border-box; /* パディングを含めて幅を計算 */
        margin: 0; /* マージンをリセット */
        overflow-x: hidden; /* 横スクロール防止 */
    }
    
    .mainnav li { 
        margin-left: 0;
        margin-right: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
        width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word; /* 長いテキストを折り返し */
        word-wrap: break-word;
    }
    
    .mainnav li a {
        display: block;
        width: 100%;
        padding: 5px 0;
        box-sizing: border-box;
        white-space: normal; /* テキストの折り返しを許可 */
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* チェックボックスがONになったらメニューを表示 */
    #burger:checked ~ ul {
        display: flex;
    }

    /* ハンバーガーアイコンを表示 */
    .burgerbutton {
        display: block;
        padding: 10px; /* タップしやすく調整 */
    }

    /* ddタグの余白リセット */
    dd {
        margin-inline-start: 0;
        margin-left: 0; /* margin-inline-start未対応ブラウザ用にも念のため指定 */
    }

    /* .contentのパディング調整（上書き対策） */
    body .content {
        padding: 40px 10px !important;
    }

    /* ロゴ画像のサイズ調整 */
    .logo-image {
        height: 40px;
    }

    /* select要素のフォントサイズ調整（スマホで読めるように） */
    select,
    .form__select {
        font-size: 16px !important; /* iOS/Androidで自動ズームを防ぐため16px以上に */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    /* selectのoption要素も読みやすく */
    select option {
        font-size: 16px;
        padding: 10px;
    }
}

/* ==========================================================================
   Footer (Matches Typemill)
   ========================================================================== */
.site-footer {
    background: #333; /* 背景色を濃いグレーに変更 */
    color: #fff;       /* 文字色を白に変更 */
    padding: 50px 0 20px;
    margin-top: auto;
    width: 100%;
}
.copyright {
    text-align: center;
    border-top: none; /* ボーダー削除 */
    padding-top: 20px;
    font-size: 0.8rem;
    color: #ccc;      /* コピーライトを目立たない色に */
}

/* フッター内のリンク色調整 */
.site-footer a {
    color: #fff;
    text-decoration: none;
}
.site-footer a:hover {
    color: #3eb370; /* ホバー時は緑色 */
    text-decoration: underline;
}

/* ==========================================================================
   EasyMail Form Styles (Adapted)
   ========================================================================== */
.content {
    max-width: 800px; /* 入力フォームの幅を800pxに設定 */
    width: 100%;
    margin: 0 auto 80px;
    padding: 60px 0 0; /* ヘッダー分の余白調整（左右のパディングを削除） */
    box-sizing: border-box;
}

/* 確認画面用ラッパー */
.formWrap {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.contentHead {
    margin-bottom: 50px;
}
.contentHead__ttl {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    color: #333;
    line-height: 1.4;
}
.contentHead__ttl::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--wohl-primary);
    margin: 20px auto 0;
}
.contentHead__txt {
    text-align: center;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 2;
}
.reqdMark {
    color: red;
    font-weight: bold;
    margin-left: 5px;
}

/* Form Elements */
.form__block {
    display: flex;
    align-items: flex-start; /* 上揃え */
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
@media (max-width: 767px) {
    .form__block { display: block; }
}

.form__name {
    width: 30%;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 15px 0 0;
}
@media (max-width: 767px) {
    .form__name { width: 100%; padding-bottom: 10px; }
}

.form__inputArea {
    width: 70%;
}
@media (max-width: 767px) {
    .form__inputArea { width: 100%; }
}

/* フォーム入力欄横のマーク (.form__reqdMark) */
.form__reqdMark {
    color: red;
    padding-left: 0.5em;
    font-weight: bold;
}

/* Inputs */
input[type="text"], 
input[type="email"], 
input[type="tel"], 
textarea, 
select {
    width: 100%;
    display: block;
    border: 1px solid #ddd;
    padding: 15px;
    background: #f5f5f5;
    font-size: 1rem;
    border-radius: 4px;
    box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border: 1px solid rgba(229, 226, 211, 1);
    box-shadow: 0 0 2px var(--wohl-primary);
    background: #fff;
}

textarea.form__textArea {
    min-height: 300px;
    resize: vertical;
}

/* Specific Input Adjustments */
.form__input.name { width: 48%; display: inline-block; margin-right: 2%; }
.form__input.name:last-child { margin-right: 0; }
.form__input.zipCode { width: 150px; display: inline-block; }

/* Radio & Checkbox */
.form__inputArea label {
    margin-right: 15px;
    cursor: pointer;
    display: inline-block;
    padding: 5px 0;
}
input[type=radio], input[type=checkbox] {
    margin-right: 5px;
    transform: scale(1.2);
}

/* Buttons */
.formBtns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}
.formBtns__btn {
    cursor: pointer;
    color: #fff;
    background: var(--wohl-primary); /* Typemill Green */
    font-size: 1.1rem;
    border: 0;
    padding: 15px 50px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    appearance: none;
    text-align: center;
}
.formBtns__btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
/* 戻るボタン等のスタイル */
.formBtns__btn.outline {
    background: #fff;
    color: #333;
    border: 2px solid #333;
}
.formBtns__btn.outline:hover {
    background: #333;
    color: #fff;
}

.err_msg {
    color: orangered;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}
