@import url(http://fonts.googleapis.com/earlyaccess/notosansjp.css);
* {
    font-family: "Noto Sans JP", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #ac2737;
    height: 100%;
    text-align: center;
    align-items: center;
    background-color: #f1ece7;
    line-height: 1.6; /* 行間を広げて読みやすく */
    overflow-x: hidden; /* 横スクロールを防止 */
}

main {
    margin-bottom: 0;
    padding: 0;
    background-color: #f1ece7;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
}

.menu-list {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

a {
    text-decoration: none;
    color: #ac2737;
}

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

.menu-tab {
    margin-top: auto;
    height: 30px;
    margin-right: 1rem;
}

.menu:nth-child(1) {
    margin-right: auto;
}

.logo-top {
    margin-top: auto;
    margin-left: 2rem;
    height: 60px;
    vertical-align: bottom;
}

.contact2 {
    height: 70px;
    vertical-align: bottom;
}

.menu:hover,
.footer-menu:hover {
    opacity: 0.6;
}

.btn:hover {
    opacity: 0.9;
}

/* top-area */
.top-area {
    text-align: left;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
}
.top-content {
    padding-top: 10rem;
    padding-left: 12rem;
    text-align: left;
    font-size: 2rem;
    line-height: 1.4; /* 行間を調整 */
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.7); /* 背景画像上でも読みやすいように */
}

.contact1 {
    object-fit: contain;
    margin-top: 2rem;
    margin-left: 12rem;
    margin-bottom: 4rem;
    height: 80px;
    vertical-align: bottom;
}

/*about-area*/
.about-area {
    background-color: #f1ece7;
}

.about-logo {
    width: 300px;
    margin-bottom: -0.2rem;
}

.about-contents {
    background-color: #ac2737;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6vw), 0 100%);
    position: relative;
    padding-bottom: 10rem;
    border-radius: 30px 30px 0 0;
    width: 100%;
    max-width: 100%;
}

.about-content-area {
    max-width: 80%;
    margin: auto;
    border-radius: 30px 30px 0 0;
    color: white;
    text-align: left;
    padding-top: 4rem;
}

.about-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.about-content {
    margin-top: 2rem;
    line-height: 1.8; /* 行間を広げる */
}

.about-icon-area {
    max-width: 80%;
    margin: auto;
    color: rgb(0, 4, 43);
    display: flex;
    justify-content: space-around;
}

.about-icon {
    padding: 15px;
    margin-top: 2rem;
    margin-right: 2rem;
    background-color: white;
    box-shadow: 5px 5px 3px 0px rgba(0, 0, 0, 0.47);
    border-radius: 20px;
}

.about-line {
    margin: 1rem auto;
    width: 80%;
    border: 1px solid rgb(0, 4, 43);
}

.about-icon-content {
    font-size: 0.8rem;
    line-height: 1.5;
}

.about-icon-img {
    position: relative;
    height: 80px;
    top: 0.5rem;
}

.about-house {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.about-house img {
    margin-bottom: 3.2rem;
    height: 200px;
    object-fit: contain;
}

.about-under-p {
    position: absolute;
    bottom: 0;
    color: white;
    transform: rotate(-4deg);
    margin-bottom: 2rem;
    margin-left: 12rem;
}

/* message-area */
.message-area {
    background-color: #f1ece7;
    color: rgb(0, 4, 43);
    margin-bottom: -1px;
}

.message-contents {
    display: flex;
    max-width: 80%;
    width: 100%;
    margin: auto;
    padding: 0 2rem;
}

.message-icon img {
    margin: 3rem 0;
    height: 400px;
    object-fit: contain;
}

.message-content {
    margin-top: 3rem;
    font-size: 0.9rem;
    line-height: 1.8;
}

.message-header p {
    font-size: 1.5rem;
    color: #ac2737;
    margin-bottom: 2rem;
    font-weight: bold;
}

.message-line {
    margin: auto;
    width: 40px;
    margin-top: -2rem;
    margin-bottom: 2rem;
    border: 1px solid #ac2737;
}

/* philosophy-area */
.philosophy-area {
    background-color: #7d7a89;
    clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 100%);
    background-position: center;
    background-size: cover;
    width: 100%;
    max-width: 100%;
}

.philosophy-contents {
    padding-top: 6rem;
    text-align: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.philosophy-t {
    width: fit-content;
    margin: auto;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 0.5rem 1rem;
    background-color: white;
    border-radius: 999px;
    color: #7f8091;
}

.philosophy-text {
    display: flex;
    color: white;
    max-width: 80%;
    margin: 2rem auto;
    align-items: center;
    flex-wrap: wrap; /* 小さい画面では折り返し */
}

.p-title {
    margin-left: 2rem;
    font-size: 3rem;
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* 読みやすさ向上 */
}

.p-title2 {
    margin-left: 1rem;
    font-size: 2rem;
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* 読みやすさ向上 */
}

.p-content {
    font-size: 1rem;
    margin-left: 3rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* 読みやすさ向上 */
}

.line {
    color: white;
    width: 80%;
    margin: auto;
    margin-top: -1rem;
}

/* company-area */
.company-yane {
    margin-top: -6.2rem;
    padding-top: 6.2rem;
    background-color: #ac2737;
    clip-path: polygon(50% 0%, 0% 100px, 100% 100px);
    position: relative;
    z-index: 1;
    margin-bottom: -0.1rem;
}

.company-area {
    background-color: #ac2737;
    position: relative;
    z-index: 2;
    padding-bottom: 2rem;
    width: 100%;
    max-width: 100%;
}

.company-logo {
    position: relative;
    margin-top: -5rem;
    margin-bottom: 2rem;
    height: 80px;
    object-fit: contain;
    z-index: 9999;
}

.company-contents {
    display: flex;
    align-items: flex-start; /* 上寄せに変更 */
    justify-content: center;
    position: relative;
    padding-top: 0.2rem;
}

.company-contents p {
    writing-mode: vertical-rl;
    color: white;
    font-size: 1.8rem;
    margin-top: 1rem;
    height: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* 読みやすさ向上 */
}

.company-text {
    margin-top: 1rem;
    font-size: 1.2rem;
}

.table {
    width: 60%;
    max-width: 800px;
    margin: 0;
    border-collapse: collapse;
    position: relative;
}

.table th,
.table td {
    padding: 10px 15px;
    vertical-align: middle;
}

.table tr {
    border-bottom: 15px solid #ac2737;
}

.table th {
    background-color: #f1ece7;
    text-align: center;
    width: 30%;
    font-weight: bold;
    font-size: 0.95rem;
}

.table td {
    background-color: white;
    color: #ac2737;
    width: 70%;
    text-align: left;
    padding-left: 3rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.company-tree1 {
    position: absolute;
    left: 0;
    bottom: -5px;
    z-index: -1;
}

.company-tree2 {
    position: absolute;
    right: 0;
    bottom: -20px;
    z-index: -1;
}

.company-tree1 img {
    height: 200px;
    object-fit: contain;
}

.company-tree2 img {
    height: 80px;
    object-fit: contain;
}

/* footer */
footer {
    background-color: #f1ece7;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.footer {
    display: flex;
    justify-content: center;
}

.footer-logo {
    height: 90px;
    object-fit: contain;
}

.allright {
    margin-top: 1rem;
    height: 50px;
    object-fit: contain;
}

.footer-left,
.footer-menu-list,
.footer-right {
    display: flex;
    flex-flow: column;
}

.footer-left {
    margin-right: 8rem;
}

.footer-menu-list {
    margin-right: 6rem;
}

.footer-img {
    height: 50px;
    margin-bottom: 0.5rem;
}

.footer-menu-tab {
    height: 30px;
    margin-top: 0.3rem;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    margin-right: 20px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #ac2737;
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger span:nth-child(1) {
    top: 0;
}

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

.hamburger span:nth-child(3) {
    top: 20px;
}

/* ハンバーガーメニューがアクティブ時 */
.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* モバイルメニュー */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    padding-top: 100px;
    transition: right 0.3s;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* スクロール可能に */
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px; /* 下部にパディングを追加 */
}

.mobile-menu-item {
    margin: 15px 0;
    width: 100%;
    text-align: center;
}

.mobile-menu-tab {
    height: 30px;
    display: block;
    margin: 0 auto;
}

/* コンタクトボタンをモバイルメニューに追加 */
.mobile-contact {
    margin-top: 20px;
    text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .top-content {
        padding-left: 8rem;
        padding-right: 2rem;
        font-size: 1.8rem;
    }

    .about-title {
        font-size: 1.6rem;
    }

    .about-content {
        font-size: 0.95rem;
    }

    .p-title {
        font-size: 2.5rem;
    }

    .p-title2 {
        font-size: 1.8rem;
    }

    .p-content {
        font-size: 0.95rem;
    }

    .about-contents {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .about-under-p {
        margin-left: 5rem;
    }

    .footer {
        flex-direction: column;
        align-items: center;
    }

    .contact1 {
        left: 9rem;
        bottom: 4rem;
    }

    .line {
        width: 80%;
    }

    .footer-left,
    .footer-menu-list {
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .footer-right {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .top-content {
        padding-left: 4rem;
        padding-right: 2rem;
        font-size: 1.5rem;
    }

    .about-icon-area {
        flex-direction: column;
        align-items: center;
    }

    .about-icon {
        width: 80%;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .about-icon-content {
        font-size: 0.8rem;
    }

    .message-contents {
        flex-direction: column;
        align-items: center;
        max-width: 90%;
        padding: 0 0.5rem;
    }

    .message-icon img {
        height: 300px;
        margin: 2rem 0 1rem;
    }

    .message-content {
        text-align: center;
        margin-top: 1rem;
    }

    .philosophy-text {
        max-width: 100%;
        padding: 0 2rem;
    }

    .p-title {
        font-size: 2.2rem;
        margin-left: 1rem;
    }

    .p-title2 {
        font-size: 1.5rem;
    }

    .p-content {
        font-size: 0.9rem;
        margin-left: 1rem;
        width: 100%;
        margin-top: 0.5rem;
        text-align: left;
    }

    .about-icon:last-child {
        margin-bottom: 5rem;
    }

    .about-house {
        bottom: -25px;
    }

    .about-house img {
        height: 150px;
    }

    .about-under-p {
        font-size: 0.8rem;
        margin-top: 5rem;
    }

    .about-content-area,
    .about-icon-area {
        max-width: 100%;
    }

    .philosophy-area {
        padding-bottom: 8rem;
    }

    .line {
        width: 90%;
    }

    .company-contents {
        flex-direction: column;
        align-items: center;
    }

    .company-contents p {
        writing-mode: horizontal-tb;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .table {
        width: 90%;
        margin-bottom: 13rem;
    }

    .table th,
    .table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .table td {
        text-align: left;
        border: none;
        padding-left: 1.5rem;
    }

    .table tr:last-child {
        border-bottom: none;
    }

    .menu-tab,
    .contact2 {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .logo-top {
        height: 50px;
        margin-left: 1rem;
    }

    header {
        border-radius: 0;
    }

    .contact1 {
        left: 8rem;
    }

    .footer-logo {
        height: 70px;
    }

    .allright {
        height: 40px;
    }

    .footer-img {
        height: 40px;
        margin: 5px 0;
    }

    .top-area {
        min-height: 80vh;
    }

    .philosophy-area {
        background-size: cover;
    }
}

@media (max-width: 600px) {
    .contact1 {
        bottom: 3rem;
        left: 5rem;
    }

    .about-house img {
        display: none;
    }

    .about-under-p {
        font-size: 0.8rem;
        margin: 1rem auto;
    }
}

@media (max-width: 480px) {
    .top-content {
        padding-left: 2rem;
        padding-right: 1rem;
        font-size: 1.2rem;
        padding-top: 8rem;
    }

    .contact1 {
        margin-left: 2rem;
        height: 60px;
    }

    .about-title {
        font-size: 1.3rem;
        padding: 0 1rem;
    }

    .about-contents {
        padding: 1rem;
    }

    .about-content {
        font-size: 0.85rem;
        padding: 0 1rem;
    }

    .about-icon {
        width: 90%;
    }

    .message-content p {
        font-size: 1.3rem;
    }

    .message-content {
        font-size: 0.85rem;
    }

    .philosophy-t {
        font-size: 1.5rem;
    }

    .p-title {
        font-size: 1.8rem;
        margin-left: 0.5rem;
    }

    .p-title2 {
        font-size: 1.2rem;
        margin-left: 0.5rem;
    }

    .p-content {
        font-size: 0.85rem;
        margin-left: 0.5rem;
    }

    .table th,
    .table td {
        display: block;
        width: 100%;
    }

    .table th {
        padding: 8px 5px;
    }

    .table td {
        padding: 8px 10px;
        text-align: center;
    }

    .logo-top {
        height: 40px;
    }

    .contact1 {
        left: 4rem;
    }

    .footer-logo {
        height: 60px;
    }

    .allright {
        height: 30px;
    }

    .footer-menu-tab {
        height: 25px;
    }

    .mobile-menu-tab {
        height: 25px;
    }
}

@media (max-width: 370px) {
    .contact1 {
        bottom: 2rem;
        left: 4rem;
    }
}

/* 大画面デスクトップ用の追加スタイル */
@media (min-width: 1400px) {
    .top-content {
        padding-left: 15%;
        font-size: 2.5rem;
        line-height: 1.5;
    }

    .contact1 {
        margin-left: 15%;
        height: 100px;
    }

    .about-content-area,
    .about-icon-area {
        max-width: 1200px;
    }

    .about-title {
        font-size: 2.4rem;
        line-height: 1.4;
    }

    .about-content {
        font-size: 1.2rem;
        line-height: 1.9;
    }

    .about-icon {
        padding: 25px;
    }

    .about-icon-title {
        font-size: 1.3rem;
    }

    .about-icon-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .about-icon-img {
        height: 100px;
    }

    .message-contents {
        max-width: 1400px;
    }

    .message-content {
        font-size: 1.2rem;
        line-height: 1.9;
    }

    .message-header p {
        font-size: 2rem;
    }

    .philosophy-text {
        max-width: 1000px;
    }

    .philosophy-t {
        font-size: 2.5rem;
        padding: 0.7rem 1.5rem;
    }

    .line {
        width: 100%;
        margin-bottom: 2rem;
    }

    .p-title {
        font-size: 4rem;
    }

    .p-title2 {
        font-size: 2.5rem;
    }

    .p-content {
        font-size: 1.3rem;
        line-height: 1.8;
    }

    .company-contents p {
        font-size: 2.2rem;
    }

    .company-text {
        font-size: 1.5rem;
    }

    .table th {
        font-size: 1.2rem;
        padding: 15px 20px;
    }

    .table td {
        font-size: 1.2rem;
        padding: 15px 30px;
        line-height: 1.8;
    }

    .footer-logo {
        height: 110px;
    }

    .allright {
        height: 60px;
    }

    .footer-menu-tab {
        height: 40px;
    }

    .footer-img {
        height: 60px;
    }

    .philosophy-area {
        padding-bottom: 5rem;
    }
}
